Panasonic FP7 Series Command Reference Manual page 691

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

Advertisement

[i]...UL
[S1]..."%10.7b"
[S2]...DT0
[N]...H
0002 00 01
[D]...DT100
③ Conversion data amount = 2
[S2]
[S2]
DT0
H 0123
[S2+1]
DT1
H 0000
DT2
H 3456
[S2+2]
DT3
H 0012
[S2+3]
DT4
DT0 to DT1: H 0000 0123 → DT100 to DT104: "
DT2 to DT3: H 0012 3456 → DT105 to DT109: "
Example 11) Converting 32-bit single-precision floating point real number data (2
data) to floating point ASCII data (8 digits x 2)
The high byte of DT100 is set as the beginning of the storage area. It is stored right-aligned
(high word side). A decimal point is added followed by no digit.
[i]...SF
[S1]..."%#8.0f"
[S2]...DT0
[N]...H
0002 01 01
[D]...DT100
③ Conversion data amount = 2
[S2]
[S2]
DT0
[S2+1]
DT1
DT2
[S2+2]
DT3
[S2+3]
DT4
DT5
DT0 to DT3: 123.4567
DT4 to DT7: -12.34567
WUME-FP7CPUPGR-12
Convert 32-bit BCD data into decimal ASCII data (10 digits)
① ASCII data (reverse direction)
② Storage start position (0)
③ Conversion data amount (2)
H
123
H 123456
Convert 32-bit single precision real number data into floating point ASCII data (8 digits)
① ASCII data (reverse direction)
② Storage start position (1)
③ Conversion data amount (2)
123.4567
-12.34567
→ DT100 to DT104: "
→ DT104 to DT108: "
14.9 BTOA (Conversion: BIN → ASCII)
[D]+0 bytes
Convert [S2] and [S2]+2
② Storage start position = +0 bytes
[D]
DT100
H 2020
DT101
H 3020
DT102
H 3030
DT103
H 3130
DT104
H 3332
DT105
H 2020
DT106
H 3020
DT107
H 3231
DT108
H 3433
H 3635
DT109
DT110
0000123"
␣␣ ␣
0123456"
␣␣ ␣
[D]+1 bytes
Convert [S2] and [S2]+2
② Storage start position = +1 bytes
[D]
H 20
DT100
DT101
H 2020
DT102
H 3120
DT103
H 3332
DT104
H 20
DT105
H 2020
DT106
H 2D20
DT107
H 3231
DT108
H **
DT109
123."
␣␣ ␣ ␣
-12."
␣␣ ␣ ␣
(characters)
␣␣
0 ␣
0 0
1 0
3 2
␣␣
0 ␣
2 1
4 3
6 5
(characters)
**
**
␣ ␣
1 ␣
3 2
2E
.
␣ ␣
- ␣
2 1
**
.
2E
14-41

Advertisement

Table of Contents
loading

Table of Contents