
Chapter 8
Defining Strings for Serial Ports and Viewports
8 – 14
W1(–08) 12340000
Examples: Assume formula 1 result = 123.4
This code
transmits (or displays) this field:
F1(08) 0123.400
F1(–08) 123.4000
(x.d) The x indicates the field width, while the d value specifies the
maximum number of decimal places to be present in the field. Note that the
d value is only effective if decimal places are actually part of the tool result.
Also, if the specified field width is not large enough to include the entire
result – whole number component and all of the decimal component – the
result is truncated from the right. A d value of 0 can be used – this specifies
that no decimal places (or decimal points) are used.
Examples: Assume formula 1 result = 1234.56
This code
transmits (or displays) this field:
F1(7.2) 1234.56
F1(8.1) _ _ 1234.5
F1(–8.1) 1234.5 _ _
F1(08.1) 001234.5
F1(–08.1) 1234.500
F1(6.3) 1234.5
F1(5.0) _ 1234 (with .0 used, the decimal point is suppressed)
Default Formats:
If you do not specify a format for a data or index field, the default format is
used. The default formats are:
(9) for all fields, other than index fields, with no decimal places. The
field width is 9 characters; the contents of the field are right justified.
(9.3) for fields with decimal places. The field width is 9 characters –
including five places left of the decimal point, and three decimal places.
Komentáře k této Příručce