Mitsubishi MELSEC Q Series Programming Manual page 402

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

WXNR(P),DXNR(P)
DXNR
(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by
the 32-bit data of the device designated by
designated by
(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 are no operation errors associated with the WXNR(P) or DXNR(P) instruction.
Program Example
(1) 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.
[Ladder Mode]
[Operation]
7-28
.
D
D
+ 1
b31
D
1
1
0
0
0
0
S
+ 1
b31
S
1
1
1
1
0
0
D
+ 1
b31
D
1
1
0
0
1
1
X3F
X3CX3B
X3F to X30
0
1
0
1
0
1
b15
D99
1
1
0
0
1
0
b15
D99
0
1
1
0
0
0
, and stores the results at the device
S
D
b16
b15
b0
0
0
0
0
0
0
1
1
XNR
S
b16
b15
b0
0
0
1
1
1
1
0
0
D
b16
b15
b0
1
1
0
0
0
0
0
0
[List Mode]
Step
Instruction
X38
X37
X34X33
0
1
0
1
0
1
0
1
0
XNR
b8
b7
0
1
1
0
1
0
1
0
1
b8
b7
1
1
0
0
0
0
0
0
0
D7
5
D
Device
X30
1
b0
1
b0
1
and

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents