342 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 7 Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Example 1: This example complements bool_in1 and places the result in value_result_not.
Structured Text
value_result_not := NOT bool_in1;
Function Block
Example 2: If bool_in1 is cleared, light1 is cleared (off ). Otherwise, light1 is set (on).
Structured Text
IF NOT bool_in1 THEN
light1 := 0;
ELSE
light1 := 1;
END_IF;
If BOOL_IN1 is Then VALUE_RESULT_NOT is
01
10