6. BASIC INSTRUCTIONS
6
−
33
MELSEC-A
Program Examples 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.
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.
M9036
0
P
H
H
DB* 68347125 00573682 D502
K8
DMOV D504
Y030
•
Coding
0 LD
M9036
1 DB
∗
P H68347125
H00573682 D502
12
DMOV
D504
K8Y030
19
END
P
K8
DB/
X020
D8
D765
X01B
0
•
Coding
0 LD
X01B
1 DB/P
K8X020
D8
D765
12
END
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......