7.1 Logical Operation Instructions
7.1.5 Exclusive OR operation on 16-/32-bit data
7-17
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
W
X
OR
, DX
O
R
WXOR, DXOR
(2) In the following program, the exclusive OR operation is performed on the data in Var_D20
and the data in Var_D30 when X10 turns ON, and the results are stored to Var_D40.
[Structured ladder]
[ST]
DXORP(X10,Var_D20,Var_D30,Var_D40);
[Operation]
0
0
0
0
1
1
0
0
0
1
0
1
0
1
b0
b15
b31
b16
X
OR
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
Var
_
D
20
Var
_
D
30
Var
_
D
40
s
1
s
2
d1
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......