376
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
• There is no operation error in the WXNR(P) or DXNR(P) instruction.
• 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.
*1
• 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.
*1
*1 See Page 421 16-bit data bit check, 32-bit data check for more information on the SUMP/DSUMP instructions.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
11001 00110 1 0 1 0 11
0
11
000
11
0000000
1
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
D99
X3C
X3B X34X33
5D7
X3F to X30
Step Instruction Device
1D17,D16 1 0 0 1 001 0 110 110 0001 1110 0 1 00110 1 1
b31
b16
b0
b15
1
D17,D16
0 1 0 110 0
110
00110 1 001 0 110001 1 0001
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 X28X27X24 X23
XOR
b31
b16
b0
b15
15
+ 1
+ 1
+ 1
D18
D
S
D
D
S
D
X3F to X20