
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 001001011011000011110010011011
b31
b16
b0
b15
1
D17,D16 0101100 110001101001011000110001
X3FX30 X20X2F
1
00
10101010101010101010101010101
X3CX3B X38 X37 X34X33 X2CX2B X28X27 X24X23
XOR
b31
b16
b0
b15
15
+ 1
+ 1
+ 1
D18
D
S
D
D
S
D
X3F to X20