WXOR(P),DXOR(P)
DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by
D
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]
[Operation]
7-20
and the 32-bit data of the device designated by
.
D
+ 1
D
b31
0
1
0
1
0
D
S
+ 1
b31
S
0
1
1
0
0
D + 1
b31
D
0
0
1
1
0
b15
D10
0
1
0
1
0
1
b15
D20
0
0
1
1
1
0
b15
D10
0
1
1
0
1
1
, and stores the results at the device
S
D
b16
b15
b0
1
0
1
0
1
0
1
0
1
XOR
S
b16
b15
b0
1
1
0
1
0
0
1
1
0
D
b16
b15
b0
0
1
1
1
1
0
0
1
1
[List Mode]
Step
Instruction
b8
b7
0
1
0
1
0
1
0
1
XOR
b8
b7
0
1
0
0
1
1
1
0
b8
b7
0
0
0
1
1
0
1
1
Device
b0
0
1
b0
0
1
b0
0
0