Panasonic FP7 Series Command Reference Manual page 689

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

Advertisement

[i]...US
[S1]..."%8.5X, "
[S2]...DT0
[N]...H
0002 00 00
[D]...DT100
③ Conversion data amount = 2
[S2]
[S2]
DT0
H 0123
[S2]+1
DT1
H 89AB
DT2
DT0: H 0123 → DT100 to DT104: "2301
DT1: H 89AB → DT104 to DT108: "AB89
Example 8) Converting unsigned 32-bit binary data (2 data) to hexadecimal ASCII
data (8 digits x 2)
The low byte of DT100 is set as the beginning of the storage area. It is stored right-aligned
(high word side) for 6 significant figures. The characters "0x" that represent Hex data are
added.
[i]...UL
[S1]..."%#8.6x"
[S2]...DT0
[N]...H
0002 00 01
[D]...DT100
③ Conversion data amount = 2
[S2]
DT0
H 0123
[S2]
[S2+1]
DT1
H 0000
DT2
H ABCD
[S2+2]
DT3
H 0089
[S2+3]
DT4
DT0 to DT1: H 0123 → DT100 to DT103: "0x000123"
DT2 to DT3: H 89AB → DT104 to DT107: "0x89abcd"
WUME-FP7CPUPGR-12
Convert 16-bit data into hexadecimal ASCII data (8 digits)
① ASCII data (forward direction)
② Storage start position (0)
③ Conversion data amount (2)
H 123
H 89AB
Convert 32-bit data into hexadecimal ASCII data (8 digits) (add "0x")
① ASCII data (reverse direction)
② Storage start position (0)
③ Conversion data amount (2)
H
123
H 89ABCD
14.9 BTOA (Conversion: BIN → ASCII)
[D]+0 bytes
Convert [S2] and [S2]+1
② Storage start position = +0 bytes
[D]
DT100
H 3332
DT101
H 3130
DT102
H 3020
DT103
H 2020
DT104
H 412C
DT105
H 3842
DT106
H 2039
DT107
H 2030
DT108
H 2C20
DT109
␣␣
0
,"
␣␣
0
,"
[D]+0 bytes
Convert [S2] and [S2]+2
② Storage start position = +0 bytes
[D]
DT100
H 7830
DT101
H 3030
DT102
H 3130
DT103
H 3332
DT104
H 7830
DT105
H 3938
DT106
H 6261
DT107
H 6463
DT108
(characters)
3 2
1 0
0 ␣
␣␣
A
,
8 B
␣ 9
␣ 0
, ␣
(characters)
x 0
0 0
1 0
3 2
x 0
9 8
b a
d c
14-39

Advertisement

Table of Contents
loading

Table of Contents