7-162
7.11 String Processing Instructions
7.11.3 4-/8-digit BCD data to decimal ASCII data conversion
BCDDA, DBCDDA
Function
BCDDA(P)
(1) Converts each digit number of hexadecimal notation of the 4-digit BCD data specified for
to ASCII code data, and stores the results to the device specified for
and the following
devices.
For example, if the value 9105 is specified for
, the results are stored to the devices from
as shown below.
(2) The BCD data specified for
can be in the range of from 0 to 9999.
(3) For the results of calculation stored to the device
, all zeros on the left side of the
significant figures are zero-suppressed.
(4) The data to be stored to the device specified for
[2] differs depending on the ON/OFF
status of SM701 (signal for switching the number of output characters).
When SM701 is OFF......Stores 0
When SM701 is ON .......Does not change
s
d
O
n
ly w
hen
SM701 i
s
OFF
T
housan
d’
s
p
l
ace
H
un
d
re
d’
s
p
l
ace
T
en
’
s
p
l
ace
Un
i
t
’
s
p
l
ace
b15
b12
b8
b11
b7
b4
b0
b3
ASCII
co
d
e
for
thousan
d’
s
p
l
ace
ASCII
co
d
e
for
ten
’
s
p
l
ace
b15
b8 b7
b0
ASCII
co
d
e
for
hun
d
re
d’
s
p
l
ace
ASCII
co
d
e
for
un
i
t
’
s
p
l
ace
0
s
d
d
d
[0]
[1]
[2]
s
d
9
1
0
5
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
[
0
]
[
1
]
[
2
]
s
d
0 0 5 0
N
um
b
er
of
s
i
gn
i
f
i
cant
f
i
gures
20
H
i
s
set
d
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......