10 include statement – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 86
![background image](/manuals/580318/86/background.png)
6Ć46
6.9.2
RESUME Statement
After BASIC has transferred control to an error handling routine,
RESUME tells BASIC that the error handling is complete. The
RESUME statement has the following format:
RESUME
The RESUME statement returns processing to the statement that
was in progress when the error condition diverted it to the error
handling routine.
The following is a program with a valid RESUME statement:
10 ON ERROR GOTO 850
.
.
.
850!ĆĆĆĆĆĆĆĆRun time error handlerĆĆĆĆĆĆĆ
860!
870 IF ERR% = INT_VAR_OVRFLOW% AND &
ERL% = 720 THEN GAIN = 0
880...
890...
895...
900 RESUME
6.9.3
CLR_ERRLOG
The statement CLR_ERRLOG is used to clear the error log for the
application task, regardless of the number of logged errors. See
7.35 for more information about testing the error log. The format of
the statement is:
CLR_ERRLOG.
6.10
INCLUDE Statement
The INCLUDE statement allows the programmer to include a file
containing BASIC statements in the task as it is compiling.
MultiĆstatement lines and multiĆline statements are permitted. The
file must not include line numbers. The compiler will add line
numbers in increments of 1, beginning with the INCLUDE statement
line number. The programmer must allow enough line numbers
between the INCLUDE statement and the statement that follows it to
accommodate the lines automatically generated. There are no limits
on the number of INCLUDE statements in a task. However, no
INCLUDE statements are permitted in a file that will be included in
the task. The format of the INCLUDE statement is:
INCLUDE filename.INC"
where:
filename =
name of the file containing the statements to
be included. The extension .INC is required.
No drive or subdirectory specification is
permitted. The file to be included must be
located in the drive and subdirectory in which
the task is located.