7-29
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))
(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]
[Operation]
Remark
See 7.5.2 for more information on the SUMP/DSUMP instructions.
Step Instruction Device
1D17,D16 1 0 01001011011000011110010011011
b31
b16
b0
b15
1
D17,D16
010110 0
110
001101001011000110001
X3F X30 X20X2F
1
00
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
X3C X3B X38 X37 X34 X33 X2C X2B X28 X27 X24 X23
XOR
b31
b16
b0
b15
15
+ 1
+ 1
+ 1
D18
D
S
D
D
S
D
X3F to X20