Omron SYSMAC C200H-ASC02 Operation Manual page 60

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language
RESTORE Statement
RESUME Statement
STOP Statement
WAIT Statement
50
Format:
REM <remark>
<remark> text does not need to be enclosed in quotes.
Example:
REM SAMPLE PROGRAM
Remarks:
The REM statement is used to provide titles to programs and to insert helpful
comments to be used during program debugging or modification.
Remarks may be added to the end of a line by preceding the remark with a
single quotation mark instead of: REM.
Do not use a REM statement in a DATA statement as it will be taken as legal
data.
Purpose:
To allow DATA statements to be reread from a specified line
Format:
RESTORE [<line>]
<line> should be the line number of a valid DATA statement.
Example:
RESTORE 1000
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 state-
ment.
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.
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.
Purpose:
Sets a time limit for the execution of a specific statement
Format:
WAIT "<wait time>"[,<line number>]
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents