327
WXNR, WXNRP, DXNR, DXNRP
1
2
3
4
4
6
7
8
7.1
Logical oper
atio
n instructions
7.1.7
W
XN
R, WXNRP, DXNR
, DXNRP
DXNR
(1) Conducts an exclusive NOR operation on 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 WXNR(P) or DXNR(P) instruction.
Program Example
(1) The following program performs an exclusive NOR operation on the 16-bit data from X30 to X3F and the data at D99
when X0 is turned ON, and stores the results to D7.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program performs an exclusive NOR operation on the 32-bit data at D20 and D21 and the data at D10 and
D11 when X10 is turned ON, and stores the result to D40 and D41.
[Ladder Mode]
[List Mode]
S1
S2
D
S1
S2
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b0
b15
b31
b16
XNR
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
+ 1
+ 1
+ 1
S1
S2
D
S1
S2
D
D
Step
Instruction
Device
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
N
R
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X30
X37
X3
F
X38
D99
D7
X3CX3B
X3
4
X33
X3
F
to
X30
Step
Instruction
Device