Panasonic FP7 Series Command Reference Manual page 703

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

Advertisement

Example 8) Converting two exponential notation ASCII data (with comma delimiters)
to two 32-bit single-precision real numbers
The conversion starts from the high byte of DT0. If there is no specification for the number of
digits, it is processed considering commas as the data delimiter. It is converted in reverse
direction (the low word side of [S2] is considered as high-order numerical data).
[i]...SF
[S1]..."%e"
[S2]...DT0
[N]...H
0002 01 01
[D]...DT100
② Conversion starting position = +1 byte
③ Amount of data to be converted = 2
[S2]
(characters)
DT0
**
H 31
DT1
H 322E
DT2
H 3433
DT3
H 4535
DT4
H 312B
DT5
H 2C32
DT6
H 312D
DT7
H 322E
DT8
H 4533
DT9
H 322D
DT10
H 2C33
DT0 to DT5: "1.2345E+12," → DT100 to DT101: SF 1.2345E+12
DT6 to DT10: "-1.23E-23,"
Example 9) Converting two decimal ASCII data (5 digits) to two 16-bit unsigned
binary data (decimal)
The conversion starts from the high byte of DT0. It is converted in reverse direction (the low
word side of [S2] is considered as high-order numerical data).
WUME-FP7CPUPGR-12
Converts exponential notation ASCII data to 32-bit single-precision
real number data (Data end: ',')
① ASCII data (reverse direction)
② Conversion starting position (1) → [S2]+1 byte
③ Amount of conversion data (2) → 2 data separated by a comma
1
**
2 .
4 3
E 5
1 +
,
2
1 -
2 .
E 3
2 -
, 3
→ DT102 to DT103: SF -1.23E-23
14.11 ATOB (Conversion: ASCII → BIN)
[D]
DT100
SF 1.2345E+12
DT101
DT102
SF -1.23E-23
DT103
DT104
14-53

Advertisement

Table of Contents
loading

Table of Contents