452
BCDDA, BCDDAP, DBCDDA, DBCDDAP
: BCD data to be converted to ASCII (BCD 4 digits/8 digits)
: Head number of the devices where the conversion result will be stored (character string)
F
unct
i
on
BCDDA
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 4-digit data designated by into ASCII codes,
and stores the results into the area starting from the device designated by .
For example, when "9105" is designated for , the results of the operation are stored into the area starting from in the
following manner:
(2) The BCD data designated by can be in the range of from 0 to 9999.
(3) The results of calculation stored in the device . All zeros on the left side of the "Number of significant digits" are zero-
suppressed.
(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of
characters to output select signal).
When SM701 is OFF.....Stores "0"
When SM701 is ON......Does not change
7.11.3
BCDDA, BCDDAP
Conversion from BCD 4-digit data to decimal ASCII data
DBCDDA, DBCDDAP
Conversion from BCD 8-digit data to decimal ASCII data
7.11.3
BCDDA, BCDDAP, DBCDDA,
DBCDDAP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
P
D
S
D
S
BCDDA, DBCDDA
BCDDAP, DBCDDAP
i
nd
i
cates
an
i
nstruct
i
on
symbo
l
of
BCDDA
/
DBCDDA
.
S
D
S
D
S
D
Only
w
hen SM701 is OFF
+1
+2
Thousands
place
Hundreds
place
Tens
place
U
nits
place
b15
b12
b8
b11
b7
b4
b0
b3
ASCII code for thousands place
ASCII code for tens place
b15
b8 b7
b0
ASCII code for hundreds place
ASCII code for units place
0
S
D
D
D
S
D
9
1
0
5
+
1
+
2
b15
b12
b8
b11
b7
b
4
b0
b3
b15
b8b7
b0
39
H
(9)
31
H
(1)
30
H
(0)
35
H
(5)
00
H
S
D
D
D
S
D
0 0 5 0
N
umber
of
s
i
gn
i
f
i
cant
d
i
g
i
ts
20
H
D