EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #573 background imageLoading...
Page #573 background image
7-199
DABCD(P),DDABCD(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))
Program Example
(1) The following program converts the decimal ASCII data set from D20 to D22 to BCD
4-digit data, and outputs the results to Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program converts the decimal ASCII data set at D20 to D23 into 8-digit BCD
data, stores the result at D10 and D11, and also outputs it to from Y40 to Y5F.
[Ladder Mode]
[List Mode]
[Operation]
Outputs the converted
BCD value to a display device.
Step Instruction Device
D21
20
H
(space)34
H
(4)
39
H
(9)34
H
(4)
b15 b8 b7 b0
D20
BCD value
0 4 9 4
Y4F Y40
494
Regarded
as 0494
Outputs the converted
BCD value to a display device.
Step Instruction Device
D21
D22
D23
20
H
(space)34
H
(4)
39
H
(9)37
H
(7)
b15 b8b7 b0
32
H
(2)39
H
(9)
D20
34
H
(4)39
H
(9)
BCD value
0
4 97294 9
Regarded
as 04972949
BCD value
0
4 97294 9
D11 D10
Y5FY50
Y4F
Y40
DMOV
4972949

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals