Mitsubishi MELSEC QS Series Programming Manual page 153

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

(2) For bit devices, the bit devices below 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 compares the bit pattern of the 16-bit data from X30 to X3F with the
bit pattern of the 16-bit data at D99 when X6 is ON
[Ladder Mode]
[Operation]
X3F
X30
D99
D99
(2) The following program compares the bit pattern of the 32-bit data from X20 to X3F with the
bit pattern of the data at D16 and D17 when X6 is ON.
[Ladder Mode]
[Operation]
X3F
X20
D17,D16 1
D17,D16 0
7.1.4 16-bit and 32-bit data exclusive NOR operations (WXNR(P), DXNR(P))
X3F
X3CX3B
X38
X37
0
1
0
1
0
1
0
1
0
XNR
b15
b8
b7
1
1
0
0
1
0
0
1
1
b15
b8
b7
0
1
1
0
0
0
1
1
0
+ 1
S
X3F
X3C X3B X38 X37 X34 X33
X30
X2F
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 0 1 0 1
XOR
D
+ 1
b31
b16
b15
1
0 0 1 0 0 1 0 1 1 0 1 1 0 0 0 0 1 1 1 1 0 0 1 0 0 1 1 0 1 1
+ 1
D
b31
b16
b15
1
1 0
0 0
1 1
1 1 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1
X34 X33
X30
1
0
1
0
1
0
1
b0
0
1
0
1
0
1
1
b0
0
0
0
0
0
0
1
S
X2C X2B X28 X27 X24 X23
X20
D
b0
D
b0
7.1 Logical Operation Instructions
WXNR(P), DXNR(P)
7-17
7

Advertisement

Table of Contents
loading

Table of Contents