![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243195.webp)
180
Command, function and parameter description
Section 6-3
6-3-163 RS_LIMIT
Type:
Axis Parameter
Alternative:
RSLIMIT
Description:
The RS_LIMIT parameter contains the absolute position of the reverse soft-
ware limit in user units.
A software limit for reverse movement can be set from the program to control
the working range of the machine. When the limit is reached, the MC Unit will
decelerate to zero, and then cancel the move. Bit 10 of the AXISSTATUS axis
parameter will be turned ON while the axis position is smaller than / below
RS_LIMIT.
See also:
AXIS, FS_LIMIT, UNITS
6-3-164 RUN
Type:
Program Command
Syntax:
RUN
[ “
program_name
” [ ,
task_number
]]
Description:
The RUN command executes the program in the MC Unit as specified with
program_name. RUN with the program name specification will run the current
selected program. The program name can also be specified without quotes.
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 program.
Precautions:
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.
• A run-time error is encountered.
Arguments:
program_name
Any valid program name.
task_number
Any valid task number. Range: [1,3].
See also:
HALT, STOP
Examples:
Example 1
The following example executes the currently selected program.
>> SELECT "PROGRAM"
PROGRAM selected
>> RUN
Example 2
The following example executes the program named “sausage”.
RUN "sausage"
Example 3
The following example executes the program named “sausage” on task 3.
RUN "sausage",3
6-3-165 RUN_ERROR
Type:
Task Parameter
Description:
The RUN_ERROR parameter contains the number of the last BASIC run-time
error that occurred on the specified task.