![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454250.webp)
All BASIC commands
Section 4-2
239
4-2-213 RUN
/i
Type
Program command
Syntax
RUN [ "program_name" [ , task_number ]]
Description
The
RUN
command executes the program in the CJ1W-MCH72 as
specified with
program_name
.
RUN
without the program name speci-
fied will run the current selected program. The program name can also
be specified without quotes.
To enable the commands to be executed, the Enable Execution bit (con-
trol word
n
, bit 0) must be set.
The task number specifies the task number on which the program will
be run. If the task number is omitted, the program will run on the highest
available task.
RUN
can be included in a program to run another pro-
gram.
Note: Execution continues until one of the following occurs:
•
There are no more lines to execute.
•
HALT
is typed at the command line to stop all programs.
•
STOP
is typed at the command line to stop a single program.
•
The
STOP
command in the program is encountered.
•
A run-time error is encountered.
•
The Enable Execution bit (control word
n
, bit 0) is reset.
Arguments
•
program_name
Any valid program name.
•
task_number
Any valid task number. Range: [1,14].
Example
>> SELECT "PROGRAM"
PROGRAM selected
>> RUN
This example executes the currently selected program.
Example
RUN "sausage"
This example executes the program named
sausage
.
Example
RUN "sausage",3
This example executes the program named
sausage
on task 3.
See also
HALT
,
STOP
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...