Part 4 Commands
1.5 Comparison Operation
CPXX (Compare)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Output
(Output, flag)
Operand 1 Operand 2
Optional Optional CPXX
Variable
number
Data
The output will be turned ON if the comparison result of the content of the variable specified
in operand 1 and the value specified in operand 2 satisfies the condition.
The value in the variable does not change.
The output will be turned OFF if the condition is not satisfied.
The output will not be turned OFF when the command is executed.
≠
≥
Turn ON flag 600 if the content of variable 1
is 10.
Add 1 to variable 2 if flag 600 is ON.
CPNE *1 *3 310 Turn ON output 310 if the content of variable
1 (variable 2) is not equal to the content of
Kommentare zu diesen Handbüchern