50
Remarks:
This statement causes the next READ statement to read the first element in the
first DATA statement that exists in the program. If <line> is specified, the next
READ statement accesses the first item in the specified DATA statement.
RESUME Statement
Purpose:
To resume program execution after an error handling procedure
has been performed
Formats:
RESUME [0]: execution resumes at the statement which caused
the error.
RESUME NEXT: execution resumes at the statement immediate-
ly following the one which caused the error.
RESUME <line>: execution resumes at <line>.
Example:
RESUME 100
Remarks:
Any one of the above formats may be used.
STOP Statement
Purpose:
To terminate program execution and return to the BASIC com-
mand level
Format:
STOP
Remarks:
Execution of this statement causes the message “BREAK IN xxxx” to be dis-
played and the ASCII Unit to return to the command level.
The ports will not be closed.
Program execution can be resumed with the CONT command.
WAIT Statement
Purpose:
Sets a time limit for the execution of a specific statement
Format:
WAIT “<wait time>”[,<line number>]
<wait time> is the allowable time for the monitored statement to
be executed.
<line number> is any valid line number.
Example:
WAIT “10:30.5”,100
Remarks:
The delay time is set in the form MM.SS.F, where:
MM is the number of minutes - up to 59
SS is the number of seconds
F is tenths of seconds.
The statement immediately following the WAIT statement is the monitored state-
ment. If execution of this statement is not completed within the set wait time, pro-
gram execution will branch to <line number>.
Interrupts invoked by the ON COM, ON KEY, ON PC, or ON ERROR statements
will not be recognized until after the WAIT statement or the monitored statement
has been processed.
The WAIT statement can monitor the following statements:
INPUT, INPUT$, LINE INPUT, PC READ, PC WRITE, PRINT, LPRINT, PRINT
USING, LPRINT USING
If a statement other than one of those listed above is specified to be monitored by
a WAIT statement, and if execution of that statement is not completed within the
set time of the WAIT statement, an error will occur.
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 ...