7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
535
7
■DBCDDA
• Converts the individual digit numbers of hexadecimal notation of the BCD 8-digit data designated by (S) into ASCII codes,
and stores the results into the area starting from the device designated by (D).
For example, if the value 01234056 is designated by (S), the operation result would be stored following (D) in the following
manner:
• The BCD data designated by (S) can be in the range of from 0 to 99999999.
• The results of calculation stored in the device (D). All zeros on the left side of the "Number of significant digits" are zero-
suppressed.
• The data to be stored at the device designated by (D)+4 differs depending on the ON/OFF status of SM701 (number of
characters to output select signal).
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• When SM701 is OFF: Stores "0"
• When SM701 is ON: Does not change
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 During the operation of the BCDDA instruction, the data of (S) is other than 0
to 9999.
During the operation of the DBCDDA instruction, the data of (S) is other than
0 to 99999999.
4101 The range of the device specified in (D) exceeds the range of the
corresponding device.
+1
Ten
millions
place
ASCII code for ten-millions placeASCII code for millions place
ASCII code for ten-thousands place
b15 b8b7 b0
+2
(Only when
SM701 is OFF)
ASCII code for thousands place
ASCII code for hundreds place
ASCII code for tens placeASCII code for unit place
0
+3
Millions
place
Hundred
thou-
sands
place
Ten
thou-
sands
place
+1
Thou-
sands
place
Hundreds
place
Tens
place
Units
place
b31 b28 b24b27 b16b19b23 b20 b15 b12 b0b3b7 b4b8b11
S S
D
D
D
D
ASCII code for hundred-thousands place
+1
+2
+3
+1
+4
b31 b28 b24b27 b16b19b23 b20 b15 b12 b7 b4
20
H
31
H
(1)
32
H
(2)33
H
(3)
b15
b8b7
b0
34
H
(4)30
H
(0)
35
H
(5)36
H
(6)
00
H
b0b3b8b11
0123 4056
S
D
S
D
D
D
D
0001
Number of significant digits
20
H
2098