Panasonic FP7 Series Command Reference Manual page 688

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

Advertisement

14.9 BTOA (Conversion: BIN → ASCII)
[i]...UL
[S1]..."%-12u"
[S2]...DT0
[N]...H
0002 00 01
[D]...DT100
③ Conversion data amount = 2
[S2]
H 04D2
[S2]
DT0
[S2+1]
DT1
H 0000
DT2
H FFC8
[S2+2]
DT3
H FFFF
[S2+3]
DT4
DT0 to DT1: U
DT2 to DT3: U 4294967240 (H FFFF FFC8) → DT106 to DT110: "4294967240
Example 7) Converting unsigned 16-bit binary data (2 data) to hexadecimal ASCII
data (8 digits + comma) x 2
The low byte of DT100 is set as the beginning of the storage area. It is stored left-aligned (low
word side) for 5 significant figures. Spaces and a comma are inserted. Hex data is in upper
case.
14-38
Convert 32-bit data into decimal ASCII data (12 digits) (left align)
①ASCII data (reverse direction)
②Storage start position (0)
③Conversion data amount (2)
U
1234
U 4294967240
1234 (H 0000 04D2) → DT100 to DT105: "1234
[D]+0 bytes
Convert [S2] and [S2]+2
②Storage start position = +0 bytes
[D]
(characters)
DT100
H 3231
DT101
H 3433
␣ ␣
DT102
H 2020
␣ ␣
DT103
H 2020
␣ ␣
DT104
H 2020
␣ ␣
DT105
H 2020
DT106
H 3234
DT107
H 3439
DT108
H 3639
DT109
H 3237
DT110
H 3034
DT111
H 2020
WUME-FP7CPUPGR-12
2 1
4 3
2 4
4 9
6 9
2 7
0 4
␣␣
"
"
␣␣ ␣
"

Advertisement

Table of Contents
loading

Table of Contents