Panasonic FP7 Series Command Reference Manual page 698

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

Advertisement

14.11 ATOB (Conversion: ASCII → BIN)
Control
Format of data for conversion
charact
ASCII data before
er
conversion
string
Floating point real
number (including
exponential notation)
ASCII data
(Note 1)
For "n", specify the number of digits. Conversion is performed for every "n" digits. However, data
separation occurs wherever a comma (",") appears.
(Note 2)
When omitting "n", insert a comma (",") to separate the data.
(Note 3)
When there is a comma followed by another comma, it is converted to the value "0". Example: When
the number of the data is three, ",," is processed as the data "0, 0, and 0".
Specification of conversion method [N]
Conversion method [N] should be specified in a Hex format (8 digits) in the 32-bit area.
[N] =
Amount of data to be converted
H1 to H FFFF (1 to 65535)
Convert the data to hexadecimal and
specify it here
Conversion starting position
H0 to H FF (Conversion)
Specify the header of the character string to convert from the
relative position of the low byte of [S2]. The round numbers
in the following diagram indicate the relative position.
The character string to be converted starts from relative
position ① for H00 and from relative position ② for H1.
H
[S2]
[S2+1]
[S2+2]
[S2+3]
Conversion example
Example 1) Converting two hexadecimal ASCII data (4 digits) to two 16-bit binary
data (hexadecimal)
The conversion starts from the low byte of DT0. It is converted in reverse direction (the low
word side of [S2] is considered as high-order numerical data).
14-48
BIN data after conversion
64-bit double-precision
floating point real number
data
H
2
L
Available
operation
units
DF
00
01
Conversion direction
H00: Forward direction
H01: Reverse direction
Specify a conversion direction. Forward direction can only be
specified for hexadecimal data (control string %x) or BCD data
(control string %b). For all other data formats, reverse direction
is specified (fixed).
Forward direction
[S2]
H34
[S2+1]
H32
Reverse direction
H32
[S2]
[S2+1]
H34
Data range
1.797693134862231E+308
to 2.2250738585072014E-308
-2.2250738585072014E-308
to -1.797693134862231E+308
H 1234
(Characters)
4 3
H33
2 1
H31
(Characters)
2 1
H31
4 3
H33
WUME-FP7CPUPGR-12
[D]

Advertisement

Table of Contents
loading

Table of Contents