Wxnr, Wxnrp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

DXNR
(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by
designated by
, and stores the results at the device designated by
S2
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
Operation Error
(1)
There is no operation error in the WXNR(P) or DXNR(P) instruction.
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
X3CX3B
X3F to X30
0
1
0
1
b15
D99
1
1
0
0
b15
D7
0
1
1
0
(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]
S1
+ 1
b31
S1
0
0
1
1
0
0
S2
+ 1
b31
S2
0
1
0
1
0
1
D
+ 1
b31
D
1
0
0
1
1
0
[List Mode]
Step
X38
X37
X34X33
0
1
0
1
0
1
0
1
0
XNR
b8
b7
1
0
0
1
1
1
1
1
1
b8
b7
0
0
1
1
0
1
0
1
0
[List Mode]
Step
WXNR, WXNRP, DXNR, DXNRP
.
D
S1
b16
b15
1
1
1
1
0
0
1
XNR
S2
b16
b15
0
1
0
1
0
1
0
D
b16
b15
0
1
0
1
1
0
0
Instruction
Device
X30
1
0
1
b0
1
0
0
b0
1
1
0
Instruction
Device
and the 32-bit data of the device
S1
b0
1
b0
1
b0
1
1
2
3
4
4
6
7
8
327

Advertisement

Table of Contents
loading

Table of Contents