
7-6
Section
Details of BASIC Commands
217
rts
Syntax:
RTS
#<port expression> (
SET
|
RESET
)
Description:
Statement. Sets or resets the
RTS
line of the specified communications port.
<port expression> is an expression returning an integer in the range: [1…3].
If accompanied with the
SET
command the
RTS
line is made active, if the
RESET
command is used
then the
RTS
becomes inactive. The
RTS
statement can only be used with open ports.
Remarks:
Note:
1.
Port #3 corresponds to the terminal port of the ASC31.
2.
If Port #3 is specified on the ASC11 or if port #2 or port #3 is specified on ASC21
an “ILLEGAL FUNCTION CALL” error (code B005) will result.
Examples:
RTS #2 SET
See also:
CTS
,
DSR
,
DTR
run
Syntax:
RUN
[<start line number>][
TO
<end line number>]
Description:
Command. Starts program execution.
<start line number> is any valid line number in the range : [1…65535]. If it is omitted then it
defaults to the first line in the BASIC program. If the <start line number> is used then program
execution will begin at the line number specified.
If the
RUN
command is used with the
TO
modifier then a breakpoint will be set at the specified
<end line number> and execution will terminate just before this point.
If a line number that does not exist is specified in a program, an “UNDEFINED LINE NUMBER”
error will occur.
The RUN command clears all variables and closes all open ports before beginning execution of
the program.
Program execution can be aborted by pressing
CTRL
+
X
, or by setting the
START
/
STOP
toggle
switch to
STOP
. If the switch is already at
STOP
when the
RUN
command is given the program will
not run, but the “CANNOT RUN WITH SWITCH IN STOP POSITION” message is displayed.
Program execution can be halted from within the BASIC program using the
END
or the
STOP
statements.
If the
RUN
command is executed immediately after programming is completed, a message saying
that the program is being compiled will be displayed.
The time required from when the
RUN
command is executed to when the program actually starts
to be executed may be delayed depending on the time taken to compile the BASIC program and to
perform garbage collection.
If a <start line number> or <end line number> that does not exist is specified in a program, an
“UNDEFINED LINE NUMBER” error will occur.
The RUN compile time for a 53-Kbyte (approx. 1,300 column) program is approximately 10
seconds. The time however, may differ depending on the commands that are used in the program.
Remarks:
Note:
If RUN is executed after making more than one change to the program, several minutes
may be required to compile the program (due to complex memory status in the ASCII
Unit).
Examples:
RUN
See also:
END
,
STOP
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...