7-31
WXNR(P),DXNR(P)
1
2
3
4
6
6
7
8
7.1 Logical operation instructions
7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))
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 are no operation errors associated with the WXNR(P) or DXNR(P) instructions.
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]
S1
S2
D
S1
S2
0101 010101 0101
b0b15b31 b16
XNR
0011 001111 0011
b0b15b31 b16
1
00
11
00
1
0
11
00
1
b31 b16 b0b15
+ 1
+ 1
+ 1
S1
S2
D
S1
S2
D
D
Step Instruction Device
1100100111111100
011000110101011
0
b15 b8 b0b7
b0b7b15 b8
XNR
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X30X37X3F X38
D99
D7
X3C
X3B X34X33
X3F to X30