Panasonic FP7 Series Command Reference Manual page 670

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

14.6 ABCD (Conversion: Decimal ASCII → BCD)
● 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.
● If the data size to be converted is an odd number, bits of the final data of the conversion
result are padded with '0'.
1. Bits 0 to 3 are padded with '0'. (In the forward direction)
2. Bits 0 to 7 are padded with '0'. (In the reverse direction)
Setting the conversion data amount and conversion direction [S2]
Specify a 4-digit BCD (H constant) according to the following format.
H
0
Conversion example
Example 1) Operation unit: 16 bits (US)
[i]...US
[S1]...DT0
[D]...DT10
[S1]...DT0
DT1
[S2]...DT2
DT3
DT4
Example 2) Operation unit: 16 bits (US)
[i]...US
[S1]...DT0
[D]...DT10
[S1]...DT0
DT1
[S2]...DT2
DT3
DT4
14-20
Size of data to be converted
1 to 16 words
Conversion direction
0: Forward direction
1: Reverse direction
[S2]...DT2
(Characters)
21
H 3231
43
H 3433
H 0004
[S2]...DT2
(Characters)
21
H 3231
43
H 3433
H 1004
Forward direction/
4 characters
[D]
DT10
H 3412
DT11
DT12
DT13
DT14
Reverse direction/
4 characters
[D]
DT10
H 1234
DT11
DT12
DT13
DT14
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents