
153
Part 4 Commands
EOR (Logical exclusive-OR)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional EOR Variable
number
Data ZR
[Function] Assign the logical exclusive-OR operation result of the content of the variable specified in
operand 1 and the value specified in operand 2, to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
[Example 1]
LET
1
204
Assign 204 to variable 1.
EOR
1
170
Assign the logical exclusive-OR operation result (102)
of the content of variable 1 (204) and 170, to variable
1.
[Example 2]
LET
1
2
Assign 2 to variable 1.
LET
2
204
Assign 204 to variable 2.
LET
3
170
Assign 170 to variable 3.
EOR
*1
*3
Assign the logical exclusive-OR operation result (102)
of the content of variable 1 (which is variable 2, or
204) and the content of variable 3 (170), to the content
of variable 1 (variable 2).
Decimal Binary
204
EOR 170
102
11001100
EOR 10101010
01100110
154
Part 4 Commands
1.5 Comparison Operation
CP
(Compare)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
EQ NE
GT GE
Optional Optional CP
Variable
number
Data
LT LE
[Function] 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.
(Note)
The output will not be turned OFF when the command is executed.
CP
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
[Example 1]
LET
1
10
Assign 10 to variable 1.
CPEQ 1
10
600
Turn ON flag 600 if the content of variable 1 is 10.
600 ADD
2
1
Add 1 to variable 2 if flag 600 is ON.
[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
Turn ON output 310 if the content of variable 1
(variable 2) is not equal to the content of variable 3.
156
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......