User guide
Page 153
EOR (Exclusive OR)
Chapter 4. Programming
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional EOR Variable no. Data·Variable no. Optional
[Function] Stores the results of the exclusive OR (EOR) operation on the contents of the variable in Operand 1 and the
data in Operand 2, in the variable in Operand 1. Stores the results of the EOR operation on the variable in
Operand 1 and the contents of the variable in Operand 2, in the variable in Operand 1. If there is a post
instruction (flag, output port), it turns ON when the computation result is zero.
[Example] EOR 1 3
If the content of variable 1 in Operand 1 is 128 in decimal notation (10000000 in binary notation)
and the data in Operand 2 is 3 in decimal notation (00000011 in binary notation), the result of the OR
operation is 131 in decimal notation (10000011 in binary notation), and variable 1 becomes 131.
Variable 1 (Operand 1) 10000000
Data (Operand 2) 00000011
Result (Store in Variable 1) 10000011 (131 in decimal notation, variable 1 becomes 131)
EOR