7-20
WXOR(P),DXOR(P)
DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by and the 32-bit data of the device designated by , and stores the results at the device
designated by .
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as
"0" in the operation.
Operation Error
(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.
Program Example
(1) The following program performs an exclusive OR operation on the data at D10 and D20
when XA is ON, and stores the result at D10.
[Ladder Mode] [List Mode]
[Operation]
D
S
D
D
S
D
0110 011010 0110
b0b15b31 b16
XOR
+ 1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b0b15b31 b16
+ 1
0011 00111 0011
b31 b16 b0b15
1
D
S
D
+ 1
D
S
D
Step Instruction Device
0011100100111001
0110110001101100
b15 b8 b0b7
b0b7b15 b8
XOR
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b0b7b15 b8
D10
D20
D10