● Since the amount of data to be converted is specified in bytes, it is also possible to convert
only the low byte of one word data.
■
Setting the conversion data amount and conversion direction [S2]
Specify the value with a four-digit H constant.
H
0
0
■
Conversion example
Example 1) Operation unit: 16 bits (US)
[i]...US
[S1]...DT0
[D]...DT10
[S1]...DT0
[S2]...DT1
DT2
Example 2) Operation unit: 16 bits (US)
[i]...US
[S1]...DT0
[D]...DT10
[S1]...DT0
[S2]...DT1
DT2
Example 3) Operation unit: 32 bits (UL)
[i]...UL
[S1]...DT0
[D]...DT10
[S1]...DT0
DT1
[S2]...DT2
DT3
WUME-FP7CPUPGR-12
14.5 BCDA (Conversion: BCD → Decimal ASCII)
Data size to be converted
1 to 4 bytes
(US: 1 to 2 bytes, UL: 1 to 4 bytes)
Conversion direction
0: Forward direction
1: Reverse direction
[S2]...DT1
H 1234
H 0002
[S2]...DT1
H 1234
H 1002
[S2]...DT2
H 5678
H 1234
H 0004
Forward direction, two bytes
(characters)
[D]
DT10
H 3433
43
DT11
H 3231
21
DT12
Reverse direction, two bytes
(characters)
[D]
21
DT10
H 3231
DT11
H 3433
43
DT12
Forward direction, four bytes
(characters)
[D]
87
DT10
H 3837
DT11
H 3635
65
DT12
H 3433
43
DT13
H 3231
21
14-17