Skip to main content

Operator: AND

The 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

Example 114. Examples

Result in var1: 2#1000_0010

ST

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

FBD

_cds_img_and.png