Skip to main content

Operator: NOT

The IEC operator is used for the bitwise NOT of a bit operand.

When the respective input bit yields 0, the output bit also yields 1, and the other way around.

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

Example 113. Examples

Result in Var1: 2#0110_1100

ST

Var1 := NOT 2#1001_0011;

FBD

_cds_img_not.png