Installation guide

142 Programming Commands
PRINT USING continued
The following special characters are used to format the numeric field:
+ The sign of the number will always be printed.
- Only the negative sign will be printed. If the data is positive a
space will be printed in place of the sign.
# represents each digit position. If no data exist at the digit position
substitute a space. The Digit field will always be filled.
. A decimal point may be inserted at any position in the field.
0 represents a digit position. If no data exist at the digit position sub-
stitute a 0. The Digit field will always be filled.
Any other character will be printed as encountered.
Note: if no sign is used the - sign is assumed.
The valid formats are:
Left side format Comments
+0000 The sign with leading zero’s will be printed.
+0000. The sign with leading zero’s and decimal point will be
printed. The right side format is optional
+#### The leading spaces with a sign and digits will be printed.
+####. The leading spaces with a sign, digits and deci-
mal point will be printed. The right side format is optional.
0000 The - sign or a space with leading zero’s will be printed.
0000. The - sign or a space with leading zero’s and decimal
point will be printed. The right side format is optional.
#### The leading spaces with a -sign or a space and digits will
be printed.
####. The leading spaces with a -sign or a space, digits and
decimal point will be printed. The right side format is op-
tional.
+. The sign and decimal point will be printed. This requires
the right side format also.
. The sign and decimal point will be printed. This requires
the right side format also.
Right side format Comments
0000 Prints digits with trailing zer’s.
#### Prints digits with trailing spaces
00## Print two digits with trailing spaces.
If the expressions are literal strings or variable strings they will be printed
as is.
If a semicolon is used at the end of the Print Using command, no car-
riage-return / line-feed sequence will be generated.
When numeric data is to be printed, the format string is searched from
the beginning for a format character (+0#.). The string data up to this po-
sition is sent via the serial port. The format characters (+0#.) are now
processed and the formatted value is sent via the serial port. When the
next numeric data is to be printed, this process continues from the current
position in the string. When the end of the format string is encountered
and numeric data is to be printed, a default format (PRINT # format) is
used. If the format string end is not encountered and the command is
complete the remaining characters in the format string will be printed.