325
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 compares the bit patterns of the 16-bit data located from X30 to X3F with the bit patterns of the
16-bit data at D99 when XC is ON, and stores the number of identical bit patterns at D7.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program compares the bit patterns of the 32-bit data located from X20 to X3F with the bit patterns of the
data at D16 and D17 when X6 is ON, and stores the number of identical bit patterns at D18.
[Ladder Mode]
[List Mode]
D
S
D
1
1
1
1
0
0
0
0
1
1
1
1
0
0
b0
b15
b31
b16
XNR
1
1
0
0
0
0
0
0
0
0
0
0
1
1
b0
b15
b31
b16
1
1
0
0
1
1
1
1
0
0
0
0
0
0
b31
b16
b0
b15
+ 1
+ 1
+ 1
D
S
D
D
S
D
D
S
D
Step
Instruction
Device
1
1
0
0
1
0
0
1
1
0
1
0
1
0
1
1
0
1
1
0
0
0
1
1
0
0
0
0
0
0
0
1
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
D99
X3CX3B
X3
4
X33
5
D7
X3
F
to
X30
Step
Instruction
Device