Panasonic FP7 User Manual page 177

Cpu unit enthernet expansion function
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

• Specification of another output type for numerical data type
Another output type is automatically given by adding (#).
Example)
Conversion form
%#x
%#X
%#8.0f
%#10.0e
%#10.0E
%#9.0g
%#.9G
* (?) represents a space.
* Even if (#) is added when specifying %d, %u, %b or %s, it will not be reflected in the results.
Example) %#u K100 -> The output data is "100", and the output format does not change.
• Complex pattern
Complex patterns are as follows.
Example)
Conversion
Binary data
form
%-10.3e
SF123.4567
%+u
K1234
% u
K1234
%#u
K1234
%˽+d
K1234
%+˽d
K1234
Conversion
Source
form
character data
%-010s
"abcdef"
%010s
"abcdef"
%10.5s
"abcdef"
Binary data
ASCII data
H12A
"0x12a"
H12A
"0X12A"
" ˽˽˽123."
SF123.45678
SF1234.5678
"˽˽˽˽1.e+03"
SF-1234.5678
" ˽˽˽1.E+03"
SF1234
"˽˽˽1234.00"
SF1234
"1234.00000000"
ASCII data
"1.235e+02˽"
"1234"
"1234"
"1234"
"1234"
"+1234"
Converted
character data
"0000abcdef"
"abcdef ˽˽˽˽"
"abcdef ˽˽˽˽"
6.3 How to Use Event Mail Transmission
Remarks
"0x" is added.
"0X" is added.
"." is always added.
"." is always added, and "0" after the decimal
point is not omitted.
Remarks
Exponent is output in at least two digits.
When (+) is added to a conversion form to
which "sign indication" is not applied, it will not
be reflected in the result.
For information on applicable forms, refer to
"Specification of sign".
When (?) is added to a conversion form to
which "specification of digit position" is not
applied, it will not be reflected in the result.
For information on applicable forms, refer to
"Specification of digit position".
When (#) is added to a conversion form to
which "specification of another output type for
numerical data type" is not applied, it will not be
reflected in the result.
For information on applicable forms, refer to
"specification of another output type for
numerical data type".
When (+) is used with ( ̺ ) simultaneously and ( ̺ )
is put before (+), neither "sign indication" nor
"specification of digit position" will be reflected.
When (+) is put before (˽), "sign indication" will
be valid.
This rule is applied to all forms in which (+) and
(?) are used.
Remarks
%s is left-aligned by defualt, therefore, (-) is
needed for zero padding.
When the decimal part is specified with %s, the
settings after (.) will be invalid.
6-49

Advertisement

Table of Contents
loading

Table of Contents