EasyManuals Logo

Panasonic FP7 Series Command Reference Manual

Panasonic FP7 Series
1222 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #685 background imageLoading...
Page #685 background image
Conversion example
Example 1) Converting unsigned 16-bit binary data (2 data) to decimal ASCII data (6
digits + comma) x 2
The high byte of DT100 is set as the beginning of the storage area. It is left-aligned (low word
side), and a comma is added before the data is stored. If it is fewer than 6 digits, spaces are
inserted.
2C
5 6
8 4
_ 0
1
3 2
_ 4
, _
H **
H 2030
H 3834
H 31
H 3536
H 2034
H 2C20
H 3332
H FFC8
H 04D2 DT100
DT1
DT101
DT102
DT103
(characters)
[S2]…DT0
[D]…DT100
[D]
DT104
[i]…US
[S1]…"%-6u,"
[N]…H
DT0
DT2
DT105
DT106
DT107
U 1234
U 65480
Convert 16-bit data into decimal ASCII data (6 digits)
ASCII data (reverse direction)
00020101
Storage start position (1) [D]+1 bytes
Conversion data amount (2) Convert [S2] and [S2]+1
[S2]
[S2]+1
[S2]
Storage start position = +1 bytes
Conversion data amount = 2
DT0 U 1234 (H 04D2) DT100 to DT103 "1234 , "
DT1 U 65480 (H FFC8) DT104 to DT107 "65480 ,"
** **
,
**
Example 2) Converting signed 16-bit binary data (2 data) to decimal ASCII data (5
digits x 2)
The high byte of DT100 is set as the beginning of the storage area. Zero padding is used to
store the data.
H **
36
6
**
0
H 30
** **
0 -
5 0
2 1
4 3
H 3530
H 302D
H 3433
H 3231
H FFC8
H 04D2
DT100
DT1
DT101
DT102
DT103
(characters)
[S2]…DT0
[D]…DT100
[D]
DT104
[i]…SS
[S1]…"%05d"
[N]…H
DT0
DT2
DT105
DT106
K 1234
K -56
Convert 16-bit data into decimal ASCII data (5 digits) (0 padding)
00020101
[S2]
[S2]+1
[S2]
Storage start position = +1 bytes
Conversion data amount = 2
DT0: K 1234 (H 04D2) DT100 to DT102: "01234"
DT1: K -56 (H FFC8) DT103 to DT105: "-0056"
ASCII data (reverse direction)
Storage start position (1) [D]+1 bytes
Conversion data amount (2) Convert [S2] and [S2]+1
14.9 BTOA (Conversion: BIN → ASCII)
WUME-FP7CPUPGR-12 14-35

Table of Contents

Other manuals for Panasonic FP7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP7 Series and is the answer not in the manual?

Panasonic FP7 Series Specifications

General IconGeneral
BrandPanasonic
ModelFP7 Series
CategoryController
LanguageEnglish

Related product manuals