Omron C200H-ASC11 Manual page 219

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Details of BASIC Commands
The number of digits including codes is indicated by the number of "#" symbols. If the number of
digits of data is less than the number indicated by the "#" symbols, the number will displayed
with more significant digits. If the number of digits of data is greater than the number indicated by
the "#" symbols, the number will displayed after a "%" symbol.
Note:
Example 1:
> 10 PRINT "HELLO WORLD"
> RUN
HELLO WORLD
> 10 X=1234.56
Example 2:
> 20 PRINT USING "####.###";X
> 30 PRINT USING "+####.###";X
> 40 PRINT USING "X=#####.##";X
> 50 PRINT USING "+###.#";1234.5
> 60 END
> RUN
1234.560
+1234.560
X= 1234.56
%+1234.5
See also:
LPRINT
210
\\
Prefixes \ at the beginning of the numeric value. \ allocates
space for one digit position.
**\
A combination of ** and \\.
,
Separates the integer portion of a numeric value by a comma
every three digits from the right of the integer part.
^^^^
When specified at the end of a numeric field it specifies that
exponential form should be used. The exponential format is
(E+nn,D+nn).
^^^^^
When specified at the end of a numeric field it specifies that
specification format should be used. The specification format is
(E+nnn,D+nnn).
_
Allows the printing of the above special characters in the format
string. If the special character is preceded by the '_' it is printed
as normal.
1. The port must be opened for output.
2. Port #3 corresponds to the terminal port of the ASC31.
3. If Port #3 is specified on the ASC11 or ASC21 an "ILLEGAL FUNCTION CALL"
error (code B005) will result.
4. If the specified number of digits to be output is greater that that specified in the
numerical format a "%" will be output before the numerical value.
It is possible to use DMA transfer for printing through port #1 of the ASC31 and port #2
of the ASC11, ASC21 and ASC31. DM m+2 bits 08-15 specify whether or not DMA is
used for port #1 and DM m+3 bits 08-15 specify whether or not DMA is used for port #2.
A maximum of 255 bytes of data can be sent for each DMA data transmission.
,
WAIT
7-6
Section

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents