Mitsubishi MELSEC QS Series Programming Manual page 155

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 performs an exclusive NOR operation on the 16-bit data from X30 to
X3F and the data at D99 when X0 is turned ON, and stores the results to D7.
[Ladder Mode]
[Operation]
X3F
D99
(2) The following program performs an exclusive NOR operation on the 32-bit data at D20 and
D21 and the data at D10 and D11 when X10 is turned ON, and stores the result to D40 and
D41.
[Ladder Mode]
[Operation]
D21,D20
D11,D10
D41,D40
7.1.4 16-bit and 32-bit data exclusive NOR operations (WXNR(P), DXNR(P))
X3F
X3C X3B
X30
0
1
0
1
0
1
0
b15
1
1
0
0
1
0
0
b15
D7
0
1
1
0
0
0
1
S
+ 1
b31
b16
0
1
0
1
1
0
S
+ 1
b31
b16
0
1
1
0
0
1
D
+ 1
b31
b16
1
1
0
0
0
0
X38
X37
X34 X33
1
0
1
0
1
0
1
0
XNR
b8
b7
1
1
1
1
1
1
1
0
b8
b7
1
0
1
0
1
0
1
1
S
b15
b0
1
0
1
0
0
1
0
XNR
S
b15
b0
0
1
1
0
1
1
0
D
b15
b0
0
0
1
1
0
1
1
7.1 Logical Operation Instructions
WXNR(P), DXNR(P)
X30
1
b0
0
b0
0
1
0
0
7-19
7

Advertisement

Table of Contents
loading

Table of Contents