Manual
43
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOXXPC.oNelbairaVataD
QEEN
TGEG
TLEL
● CPXX (Compare)
[Function] Compares the contents of the variable in operand 1 and the value in operand 2 and if the
condition is satisfied, the output turns ON. When the condition is not satisfied, the output turns
OFF.
12. SEL Language
[Example 1] LET 1 10 Assign 10 to variable 1.
CPEQ 1 10 600 If the content of variable 1 is 10, flag 600 turns ON,
600 ADD 2 1 If flag 600 is ON, 1 is added to variable 2.
[Example 2] LET 1 2 Assign 2 to variable 1.
LET 2 10 Assign 10 to variable 2.
LET 3 10 Assign 10 to variable 3.
CPNE *1 *3 310 If the variable in 2 (the content of variable 1) does not equal the
content of variable 3, then output 310 turns ON. Therefore, in this
example, output 310 is OFF.
CPXX
EQ ... Operand 1 = Operand 2
NE ... Operand 1 ≠ Operand 2
GT ... Operand 1 > Operand 2
GE ... Operand 1 ≥ Operand 2
LT ... Operand 1 < Operand 2
LE ... Operand 1 ≤ Operand 2
12.5 Comparison operation commands