NOT

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

If the corresponding input bit is 0, the output bit is 1 and vice versa.

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

Examples:

Result: nVar is 2#0110_1100.

ST:

nVar := NOT 2#1001_0011 

FBD:

NOT 1: