7-22
7.1 Logical Operation Instructions
7.1.7 Exclusive NOR operation on 16-/32-bit data
WXNR, DXNR
DXNR(P)
(1) Performs an exclusive NOR operation on the 32-bit data of the device specified for
and
the 32-bit data of the device specified for
, and stores the results to the device
specified for
.
(2) For bit devices, the operation is performed regarding the bit devices after the point of
specified digit as 0.
O
peration Error
No operation error occurs in the execution of the WXNR(P) and DXNR(P) instructions.
Program Example
(1) In the following program, the exclusive NOR operation is performed on the 16-bit data from
X30 to X3F and the data in Var_D99 when X0 turns ON, and the results are stored to
Var_D7.
[Structured ladder]
[ST]
WXNRP(X0,K4X30,Var_D99,Var_D7);
[Operation]
s
1
s
2
d
s
1
s
2
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b0
b15
b31
b16
XN
R
0
0
1
1
0
0
1
1
1
1
0
0
1
1
b0
b15
b31
b16
1
0
0
1
1
0
0
1
0
1
1
0
0
1
b31
b16
b0
b15
d
s
1
s
2
d
1
1
0
0
1
0
0
1
1
1
1
1
1
1
0
0
0
1
1
0
0
0
1
1
0
1
0
1
0
1
1
0
b15
b8
b0
b7
b0
b7
b15
b8
X
NR
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X
30
X
37
X
3F
X
38
X
3F
Var
_
D
99
Var
_
D
7
X
3C
X
3
B
X
34
X
33
X
30
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: ......