Omron SYSMAC CJ Operation Manual page 250

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-209 RUN
238
/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.
Section 4-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents