320
WXOR, WXORP, DXOR, DXORP
When three data are set ( ( +1, ) ( +1, ) ( +1, ))
,
: Data for an exclusive OR operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
Function
WXOR
(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by and the 16-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.
(See Program Example (1))
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 is no operation error in the WXOR(P) or DXOR(P) instruction.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
S1
S2
D
S1
S1
S2
S2
D
D
Command
Command
P
WXOR, DXOR
WXORP, DXORP
S1
S2
S1
S2
D
D
indicates an instruction s
y
mbol of
W
XOR/DXOR.
S1 S2
D
S1
S2
D
S1
S2
D
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
b15
b8
b0
b7
b0
b7
b15
b8
XOR
0
0
1
1
1
1
1
1
1
1
0
0
b0
b7
b15
b8
0
0
0
0
D
S1
S2
S1
S2
D
1
1
1
1
1
0
1
0
1
0
1
1
0
0
b0
b15
b31
b16
XOR
1
1
1
1
0
0
0
0
0
0
1
1
1
1
b0
b15
b31
b16
0
0
0
0
1
0
1
0
1
0
0
0
1
1
b31
b16
b0
b15
+ 1
+ 1
+ 1
S1
S2
S1
S2
S1
S2
D
D
D