Mitsubishi MELSEC-A Series Programming Manual page 145

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

Advertisement

6. BASIC INSTRUCTIONS
Program Examples
0
DB*
Program which performs multiplication of the BCD data 68347125 and 573682, and
stores the result to D505 to 502, and at the same time, outputs the upper 8 digits to
Y30 to 4F.
M9036
P H
DB*
68347125
DMOV D504
DB/
Program which performs division of the BCD data of X20 to 3F and the BCD data of
D8 and 9, and stores the result to D765 to 768 when X1B turns on.
X01B
P K8
0
DB/
X020
• Coding
H
0
00573682
D502
1
K8
12
Y030
19
• Coding
0
D8
D765
1
12
6 − 33
LD
M9036
DB∗P
H68347125
DMOV
D504
END
LD
X01B
DB/P
K8X020
D8
END
MELSEC-A
H00573682
D502
K8Y030
D765

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents