Panasonic FP7 Series Command Reference Manual page 684

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

Advertisement

14.9 BTOA (Conversion: BIN → ASCII)
Items
Control
character
string
%-5d
%-5x
Specification
of right align
%-5b
and left align
%-8.3f
%-010.3e
%+d
%+d
Specification
%+5d
of sign
%+8.3f
%+10.3e
%␣d
%␣d
Specification
%␣8.3f
of numerical
%␣8.3f
position
%␣10.3e
%␣10.3e
%#x
%#X
%#8.0f
Specification
of another
%#10.0e
output format
for numerical
%#10.3E
data type
%#9.0g
%#.9G
%d,
Specification
of additional
%x,
characters
%xH
after numerical
data
%bBCD
(Note 1)
"␣" in the table represents a space.
(Note 2)
For exponential notation, it consists of a code (e or E), a sign, and a 2-digit number.
(Note 3)
If the conversion results in having fewer enabled digits than before conversion, the result is rounded
off.
14-34
Binary data
ASCII data
K 100
"100␣␣"
H 12A
"12a␣␣"
H 123
"123␣␣"
SF 123.4567
"123.457␣"
SF 1234.567
"1.235e+03␣"
K 100
"+100"
K -100
"-100"
K 100
"␣+100"
123.4567
"+123.457"
1234.567
"+1.234e+03"
K 100
"␣100"
K -100
"-100"
SF 123.4567
"␣123.457"
SF -123.4567
"-123.457"
SF 1234.567
"␣1.235e+03"
SF -1234.567
"-1.235e+03"
H 12A
"0x12a"
H 12A
"0X12A"
SF 123.4567
"␣␣␣␣123."
SF 1234.567
"␣␣␣␣1.e+03"
SF 1234.567
"␣␣␣␣1.E+03"
SF 1234
"␣␣␣1234.0"
SF 1234
"1234.0000"
K 100
"100,"
H 100
"100,"
H 100
"100H"
H 100
"100BCD"
Description
Default is right align. To set to left align,
add minus (-) before the specification of
digit number.
A plus sign (+) is not added by default.
To add a plus sign (+), add (+). Not
available when %u, %b, or %x is
specified.
In the case of a positive number, a
space is added to align the position in
the case of a negative number. Add a
space to align the position.
"0x" is added.
"0X" is added.
"." is always added.
"." is always added,
and "0" after the
decimal point is not
omitted.
The characters that follow the
characters specified for conversion (d ,
x , b , f , e , g) are added after the
numerical ASCII data.
WUME-FP7CPUPGR-12
Another output
type is
automatically
given by
adding "#".

Advertisement

Table of Contents
loading

Table of Contents