All BASIC commands
Section 4-2
238
4-2-209 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
.
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...