Panasonic FP7 Series Command Reference Manual page 687

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

Advertisement

Example 5) Converting unsigned 16-bit binary data (2 data) to decimal ASCII data (10
digits x 2)
The low byte of DT100 is set as the beginning of the storage area. 5 digits are stored as
significant figures. If the control string is "u", the sign "+" is not output.
[i]...US
[S1]..."%+10.5u"
[S2]...DT0
[N]...H
0002 00 01
[D]...DT100
③ Conversion data amount = 2
[S2]
[S2]
DT0
H 04D2
[S2]+1
H FFC8
DT1
DT2
DT0: U 1234 (H 04D2) →
DT1: U 65480 (H FFC8) →
Example 6) Converting unsigned 32-bit binary data (2 data) to decimal ASCII data (12
digits x 2)
The low byte of DT100 is set as the beginning of the storage area. It is stored left-aligned (low
word side). Spaces are inserted.
WUME-FP7CPUPGR-12
Convert 16-bit data into decimal ASCII data (10 digits)
①ASCII data (reverse direction)
②Storage start position (0)
③Conversion data amount (2)
U 1234
U 65480
DT100 to DT104: "
DT105 to DT109: "
14.9 BTOA (Conversion: BIN → ASCII)
[D]+0 bytes
Convert [S2] and [S2]+1
② Storage start position = +0 bytes
[D]
H 2020
DT100
DT101
H 2020
DT102
H 3020
DT103
H 3231
DT104
H 3433
DT105
H 2020
DT106
H 2020
DT107
H 3620
DT108
H 3435
DT109
H 3038
01234"
␣␣ ␣ ␣ ␣
65480"
␣␣ ␣ ␣ ␣
(characters)
␣ ␣
␣ ␣
0
2 1
4 3
␣ ␣
␣ ␣
6 ␣
4 5
0 8
14-37

Advertisement

Table of Contents
loading

Table of Contents