14.5 BCDA (Conversion: BCD → Decimal ASCII)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ● ●
■
List of operands
Operand Description
S1 Starting number of the area storing the BCD numerical value
S2
The area that stores the data that express data size to be converted or conversion direction, or the
constant
D Starting number of the area that stores the ASCII code as the conversion result
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices, 32-bit devices, and integer constants can be modified. (Real number constants,
and character constants cannot be specified.)
■
Outline of operation
● This instruction converts up to 8-digit BCD data into an ASCII code string.
● The BCD figure stored in the area specified by [S1] is converted into ASCII codes.
● The conversion result is stored in the area starting with [D].
● The BCD data size (number of bytes) to be converted, and the conversion direction, are
specified by [S2].
● The conversion result (ASCII code) should have twice the size of the source data.
● The maximum value of the data size to be converted varies with the operation unit. (US: 2
bytes, UL: 4 bytes)
14.5 BCDA (Conversion: BCD → Decimal ASCII)
14-16 WUME-FP7CPUPGR-12