● 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]
H
Data size to be converted
1 to 4 bytes
Conversion direction
0: Forward direction
1: Reverse direction
(US: 1 to 2 bytes, UL: 1 to 4 bytes)
0 0
Specify the value with a four-digit H constant.
■
Conversion example
Example 1) Operation unit: 16 bits (US)
DT10
[S1]…DT0 H 1234
H 0002
[S2]…DT1
DT2
DT11
DT12
H 3433
H 3231
43
21
(characters)
[S1]…DT0 [S2]…DT1
[D]…DT10
[D]
Example 2) Operation unit: 16 bits (US)
DT10
[S1]…DT0 H 1234
H 1002
[S2]…DT1
DT2
DT11
DT12
H 3231
H 3433
[S1]…DT0 [S2]…DT1
[D]…DT10
[D]
21
43
(characters)
H 0004
Example 3) Operation unit: 32 bits (UL)
DT10
[S1]…DT0
H 5678
H 1234
[S2]…DT2
DT1
DT11
DT12
DT13
H 3837
H 3635
87
65
(characters)
[S1]…DT0 [S2]…DT2
[D]…DT10
DT3
[D]
H 3433
H 3231
43
21
Forward direction, four bytes
[i]…US
[i]…US
Reverse direction, two bytes
Forward direction, two bytes
[i]…UL
14.5 BCDA (Conversion: BCD → Decimal ASCII)
WUME-FP7CPUPGR-12 14-17