Omron C200H-ASC11 Manual page 180

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

Advertisement

Details of BASIC Commands
load
Syntax:
LOAD
Command. Loads an ASCII program to the ASCII Unit.
Description:
<port expression> is an expression returning an integer in the range: [1... 3].
Remarks:
See the
The communications conditions specified by the
string expression> are valid while the
are valid again after execution of the
Note:
Examples:
> NEW
> LOAD #1, "COMU:9600,8,N,2"
> LIST
10 REM THIS IS THE SAMPLE PROGRAM THAT WAS LOADED
20 PRINT "HELLO WORLD"
>
See also:
OPEN
loc
Syntax:
LOC
Function Returns the number of bytes in the input buffer of the specified communications port.
Description:
Remarks:
<port expression> is a numerical expression returning a valid port number. Valid Range: [1...3].
Note:
> 10 OPEN #2, "COMU:"
Examples:
> 20 A = LOC(2)
> 30 PRINT A
See also:
log
Syntax:
LOG
Description:
Function. Calculates the natural logarithm of a numerical expression.
Remarks:
<numerical expression> must be greater than 0.
The return type is single-precision floating point if the argument is of type integer or single-
precision floating point. If the argument is of type double-precision floating point then the return
type is also double precision floating point.
Examples:
> 10 A = 0.4
> 20 PRINT LOG(A)
> RUN
-.916291
See also:
# <port expression> [,<"communication definition string expression">]
statement for a description of the <communication definition string expression>.
OPEN
1. Port #3 corresponds to the terminal port of the ASC31.
2. If Port #3 is specified on the ASC11 or ASC21, an "ILLEGAL FUNCTION CALL"
error (code B005) will result.
3. The transfer can be interrupted during the
switch from start to stop.
Refer to 7-1 Programming Procedure for details on this procedure and for information
about loading a BASIC program to the ASCII Unit.
,
SAVE
(<port expression>)
1. The port must be opened for input.
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.
(<numerical expression>)
command's <communication definition
LOAD
command is being executed. The original conditions
LOAD
command is completed.
LOAD
LOAD
Section
operation by toggling the start/stop
7-6
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents