Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-28
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) 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]
D
S
D
1111 000011 1100
b0b15b31 b16
XNR
1100 000000 0011
b0b15b31 b16
11
00
1111
00 0000
b31 b16 b0b15
+ 1
+ 1
+ 1
D
S
D
D
S
D
D
S
D
Step Instruction Device
1100100110101011
0
11
000
11
0000000
1
b15 b8 b0b7
b0b7b15 b8
XNR
010101010101010
1
X30X37X3F X38
D99
D99
X3C
X3B X34X33
5D7
X3F to X30