Conversion From Decimal Ascii To Bcd 4-Digit Or 8-Digit Data Dabcd(P),Ddabcd(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.6
Conversion from decimal ASCII to BCD 4-digit or 8-digit data
(DABCD(P),DDABCD(P))
DABCD(P),DDABCD(P)
DABCD,DDABCD
DABCDP,DDABCDP
Setting
Data
S
Function
DABCD
(1) Converts decimal ASCII data stored in the area starting from device number designated by
into 4-digit BCD data, and stores at device number designated by
S
S
S
+1
For example, if the ASCII code of 8765
operation results would be stored at
S
S
+1
(2) The ASCII data designated by
(3) The ASCII code set at each digit can be in the range of from "30
(4) If ASCII code for individual digits is "20
Command
Command
: ASCII data to be converted to BCD value or head number of the devices where the ASCII data is stored
S
(character string)
: Head number of the devices where the conversion result will be stored (BCD 4 digits/8 digits)
D
Internal Devices
R, ZR
Bit
Word
––
D
b15
b8b7
ASCII code for hundreds place
ASCII code for thousands place
ASCII code for units place
ASCII code for tens place
b15
b8b7
37
(7)
38
H
H
35
(5)
36
H
H
Basic
indicates an instruction symbol of DABCD/DDABCD.
J
\
U
\G
Bit
Word
––
b0
b15
b12
D
Thousands
place
is designated for the area starting from
H
in the following manner:
D
b0
b15
b12
(8)
8
D
(6)
to
+1 can be in the range of from 0 to 9999.
S
S
" or "00
", it is processed as "30
H
H
DABCD(P),DDABCD(P)
High
Process
Redundant Universal
performance
S
D
P
S
D
Constants
Zn
$
––
.
D
b11
b8
b7
b4
b3
b0
Hundreds
Tens
Units
place
place
place
S
b11
b8
b7
b4
b3
b0
7
6
5
" to "39
".
H
H
".
H
1
2
LCPU
3
4
6
6
7
Other
––
8
––
, the
7-197

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents