VA Motion Controller Programming Manual
163
Data type processed by
NOT
instruction
Funtion and Action examples
Invert the value
of address
V520
(
BOOL
)
When the contact C300 is ON , the
instruction is executed to invert the value of
the address V5 20 ( BOOL ) :
Execution result: 0 ( V520 )
inversion output 1 ( V521 )
10.1.33 OR (Logic or Instruction )
LD, FBD programming language
Function: The OR instruction is used to logically OR the input value by bit.
Note : IL, ST language programming needs to insert variables IN1, IN2 and OUT or use
constants in the current POU variable worksheet
Data type processed by the OR instruction
Result, logical OR operation
IN1=0, IN2=0, OUT is 0;
IN1=0, IN2=1, OUT is 1;
IN1=1 , IN2=0 , OUT is 1;
IN1=1 , IN2=1 , OUT is 1;