AND

The IEC operator is used for bitwise AND of bit operands.

If the input bits are 1, the output bit is 1, otherwise 0.

Permitted data types: BOOL, BYTE, WORD, DWORD, LWORD

Examples:

Result: nVar is 2#1000_0010.

ST:

nVar := 2#1001_0011 AND 2#1000_1010 

FBD:

AND 1: