
7-6
Section
Details of BASIC Commands
171
load
Syntax:
LOAD
# <port expression> [,<“communication definition string expression”>]
Description:
Command. Loads an ASCII program to the ASCII Unit.
<port expression> is an expression returning an integer in the range: [1… 3].
See the
OPEN
statement for a description of the <communication definition string expression>.
The communications conditions specified by the
LOAD
command’s <communication definition
string expression> are valid while the
LOAD
command is being executed. The original conditions
are valid again after execution of the
LOAD
command is completed.
Remarks:
Note:
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
LOAD
operation by toggling the start/stop
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.
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
,
SAVE
loc
Syntax:
LOC
(<port expression>)
Description:
Function Returns the number of bytes in the input buffer of the specified communications port.
<port expression> is a numerical expression returning a valid port number. Valid Range: [1…3].
Remarks:
Note:
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.
Examples:
> 10 OPEN #2, “COMU:”
> 20 A = LOC(2)
> 30 PRINT A
See also:
log
Syntax:
LOG
(<numerical expression>)
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:
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...