Panasonic FP7 Series Command Reference Manual page 721

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

Advertisement

14.14 PRINT/EPRINT Instruction Shared Conversion Form Table
Data format
Conversio
n form
Data before conversion
"%b"
16-bit BCD data
"%Lb"
32-bit BCD data
32-bit single-precision real
"%f"
number data
64-bit double-precision real
"%Lf"
number data
32-bit single-precision real
"%e"
number data
64-bit double-precision real
"%Le"
number data
32-bit single-precision real
"%g"
number data
64-bit double-precision real
"%Lg"
number data
"%s"
String data
"%S"
String data
(Note 1)
The number of converted digits for the conversion form is up to 16 digits.
(Note 2)
Conversion modifier 'L' can also specified in a lower case character.
(Note 3)
"%S" (upper-case letter) is supported for CPU unit Ver. 4.10 and later, or Ver. 3.40 to Ver. 3.**.
Options for the conversion form [S1] (BIN data → ASCII data)
Conversion
Items
form
%x
Specification
%X
of upper /
lower case
%e
characters
%E
%d
Specification
of the number
%5d
of display
digits
%10.5d
WUME-FP7CPUPGR-12
ASCII data after
conversion
Decimal ASCII data
Decimal ASCII data
Floating point number ASCII
data
Floating point number ASCII
data
Exponential notation ASCII
data
Exponential notation ASCII
data
Exponential notation ASCII
data or floating-point ASCII
data
(whichever is shorter in the
relevant notation)
Exponential notation ASCII
data or floating-point ASCII
data
(whichever is shorter in the
relevant notation)
String data (for the specified
number of characters)
String data (conversion for
the specified number of
characters, or up to H0)
BIN data before
ASCII data after
conversion
conversion
H ABCD
"abcd"
H ABCD
"ABCD"
SF1234.567
"1.234567e+3"
SF1234.567
"1.234567E+3"
K 100
"100"
K 100
"␣␣100"
K 100
"␣␣␣␣␣00100"
Usage example
"%b" , "%5b" , "%-5b" , "%05b" ,
"%10.5b"
"%Lb" , "%5Lb" , "%-5Lb" ,
"%05Lb" , "%10.5Lb"
"%f" , "%5.2f" , "%+5.2f" , "%-5.2f" ,
"%05.2f" , "%#f" , "% f"
"%Lf" , "%5.2Lf" , "%+5.2Lf" ,
"%-5.2Lf" , "%05.2Lf" , "%#Lf" , "%
Lf"
"%e" , "%5.2e" , "%+5.2e" ,
"%-5.2e" , "%05.2e" , "%#5.2e" , "%
e" , "%E"
"%Le" , "%5.2Le" , "%+5.2Le" ,
"%-5.2Le" , "%05.2Le" , "%#5.2Le" ,
"% Le" , "%LE"
"%g" , "%5.2g" , "%+5.2g" ,
"%-5.2g" , "%05.2g" , "%#5.2g" ,
"%G"
"%Lg" , "%5.2Lg" , "%+5.2Lg" ,
"%-5.2Lg" , "%05.2Lg" , "%#5.2Lg" ,
"%LG"
"%s" , "%5s" , %-5s" ,"%-05s"
"%S" , "%5S" , %-5S" ,"%-05S"
Description
Specifies upper or lower case
alphabets used for hexadecimal /
exponential notation ASCII data.
For %d, %u, %b, and %f, upper-case
letters are handled as body data.
The display digit is specified with "Total
number of characters" and "Number of
characters of precision." It is specified
with "n.m", "n", or ".m", etc.
14-71

Advertisement

Table of Contents
loading

Table of Contents