Mitsubishi MELSEC-A Series Programming Manual page 221

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
DXNR
(1) Program which compares the bit pattern of the 32-bit data of X20 to 3F and that
of the data of D16 and 17, and stores the number of the same bit patterns to
D18 when X6 turns on.
X006
P
K8
0
DXNR
X020
MOV
• Coding
0
LD
1
DXNRP K8X020
10
DSUMP D16
13
MOVP
18
END
Exclusive NOR of the 32-bit data of X20 to 3F
D16
and the data of D16 and 17 is performed.
P
Among 32-bit data of D16 and 17, the total
DSUM
D16
number of "1" bits is stored into A0.
P
A0
D18
Data of A0 is stored into D18.
X006
D16
A0
D18
7 − 19
MELSEC-A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents