![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033059.webp)
48
is output immediately after the preceding value. When the expressions are sep-
arated with comas, the values are output at intervals of nine characters.
If the list of expressions is not terminated with a semicolon, a carriage return is
appended after the last expression.
If numeric expressions are used, a blank is output before and after the resultant
value. The blank before the value is used for a minus sign, if one is required.
If <list of exp> is omitted, execution of this statement causes a carriage return to
be output.
If the port specification is omitted, port 1 is assumed for the PRINT statement,
and port 2 for the LPRINT statement.
The LPRINT statement outputs data under control of the device connected to
port 2, irrespective of the OPEN statement directives.
LPRINT USING Statement
Purpose:
To output strings or numbers according to a specified format
Format:
PRINT [#<port>,] USING “<format>”; <list of exp>
Example:
PRINT #1, USING “####,# \\###”;A;B
Remarks:
The following characters control the format of the output:
!
Outputs the first character only.
& &
Outputs the characters enclosed by &.
@
Outputs the corresponding character string.
#
Outputs the corresponding character string.
.
Inserts a decimal point at any desired place.
+
Places a plus sign before and after a numeric value.
-
Places a minus sign before and after a numeric value. (Write this
character at the end of the format character string.)
**
Places two asterisks in the blank, upper digit positions of a nu-
meric value.
\\
Places one \ in the blank digit position immediately before a nu-
meric value.
**\
Combines the functions of ** and \\.
’
Delimits an integer at every third digit position from the right.
^^^^
Indicates the output in exponential format (E+nn). Add this char-
acter after #.
””
is output before the numeric value if the specified number of dig-
its is too great.
If the port number is omitted, port 1 is assumed for the PRINT USING statement
and port 2 for the LPRINT USING statement.
The LPRINT statement outputs data under control of the peripheral device con-
nected to port 2 irrespective of the OPEN statement directives.
RANDOM Statement
Purpose:
To reseed the random number generator
Format:
RANDOM [<exp>]
<exp> is a single or double-precision integer that is used as the
random number seed.
Commands, Statements, and Functions
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...