Basic Principles of Serial Data Transmission
2.8 Configuration data
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
100 Manual, 09/2008, A5E02191071-01
Conversion statement
The figure illustrates the structure of a conversion statement schematically.
5HSUHVHQWDWLRQ
W\SH
3UHFLVLRQ:LGWK)ODJ
Figure 2-29 Schematic structure of a conversion statement
Flag
None = Right-justified output
– = Left-justified output
Width
None = Output in the default display
N = Exactly n characters are output (up to 255 characters are possible); blanks may
be added before (right-justified output) or after (left-justified output)
Precision
Precision is only relevant to display types A, D, F, and R. It is ignored otherwise.
None = Output in the default display
.0 = No output of decimal point or decimal places in
real (R) and floating point (F) display types.
.n = Output of decimal point and n (1 to 99) significant decimal places in real (R) and
floating point (F) display types. In the case of dates (= display types A and D),
precision relates to the number of digits used for the year. Only 2 and 4 are
permitted for dates.
Note that the precision is always preceded by a period. The period serves to identify it and
separate it from the width.
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/