Mitsubishi MELSEC-A Series Programming Manual page 139

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

Advertisement

6. BASIC INSTRUCTIONS
Program Examples
DB+
Program which performs the addition of BCD data 98765400 and 123456, and
stores the result to D888 and D887, and at the same time, outputs it to Y30 to 4F.
M9036
P
0
DMOV
P
DB+
P
DMOV
• Coding
0
LD
M9036
1
DMOVP H98765400
8
DB+P
H00123456
17
DMOVP D887
24
END
H
98765400
D887
98765400 is stored into D888 and D887 in BCD.
H
BCD data 98765400 and 123456 are added and
00123456
D887
the result is stored into D888 and D887.
K8
D887
Y030
Data of D888 and D887 is output to Y30 to 4F.
D887
D887
K8Y030
6 − 27
MELSEC-A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents