M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.6 Logical Operation Instructions
WXOR, WXORP, DXOR, DXORP: 16-bit and 32-bit exclusive OR operations (Device at storage destina-
tion: Independent type)
Setting
Bit devices
data
X
Y
M
L
F
S1
○
○
○
○
○
S2
○
○
○
○
○
D
○
○
○
○
○
△ 1: S1 and S2 cannot be specified as constant at the same time.
△ 2: This is not available with DXOR(P).
[Instruction symbol] [Execution condition]
WXOR, DXOR
WXORP, DXORP
Setting data
Setting data
S1
Data on which exclusive OR operation will be performed, or device No. of device
where the data is stored
S2
D
Number of devices storing data to be EXCLUSIVE ORed
Functions
WXOR
Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by "S1" and the 16-bit data of
the device designated by "S2", and stores the results in the device designated by "D".
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
Before execution S1
Before execution S2
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
After execution D
0 1 0 1 1
For the bit device, the bits corresponding the digits other than the designated digit are handled as "0" in the operation.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
Command
Command
Meaning
16 Bit
XOR
0
1
0
0 1 0 1 1
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
△
△
○
○
○
○
○
2
1
△
△
○
○
○
○
○
2
1
△
○
○
○
○
○
2
1
0
1
0
272
Digit
Pointer
designa-
Index
tion
H
P
△
1
△
○
○
1
indicates the signs WXOR/DXOR
S1 S2
D
P
S1 S2
D
Data type
BIN 16/32 bits