Operator ‘AND’

This IEC operator is used for the bitwise AND of bit operands.

When the input bits all yield 1, the output bit also yields 1; otherwise 0.

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

Examples

Result in var1 ist 2#1000_0010

ST:

var1 := 2#1001_0011 AND 2#1000_1010;

FBD:

../_images/4da3b07ccb0db7c9c0a8640e01fc475c