321
WXOR, WXORP, DXOR, DXORP
1
2
3
4
4
6
7
8
7.1
Logical oper
atio
n instructions
7.1.5
W
XOR, WXORP, DXOR, DXORP
Program Example
(1) The following program conducts an exclusive OR operation on the data from X10 to X1B and the data at D33 when X10
is ON, and outputs the result to Y30 to Y3B.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program conducts an exclusive OR operation on the data at D20 and D21, and the data at D30 and D31
when X10 is turned ON, and stores the results at D40 and D41.
[Ladder Mode]
[List Mode]
[Operation]
Step
Instruction
Device
1
1
1
1
0
0
1
1
0
0
1
1
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
0
1
1
0
0
Y38
Y30
Y37
b0
b7
b15
b8
XOR
D33
Y3B to Y30
Regarded as 0s.
0
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
X10
X17
X1B to X10
X13
X18
X1B
Y3B
Y34Y33
X14
Not changed
Step
Instruction
Device
0
0
0
0
1
1
0
0
0
1
0
1
0
1
b0
b15
b31
b16
XOR
1
1
0
0
1
0
1
0
1
1
0
0
1
1
b0
b15
b31
b16
1
1
0
0
0
1
1
0
1
0
0
1
1
0
b31
b16
b0
b15
+ 1
+ 1
+ 1
D21
,
D20
D31
,
D30
D41
,
D40
D
S1
S1
S2
S2
D