BASIC commands
PROGRAMMING MANUAL
182
R
e
vi
si
o
n
1
.0
3.2.254 RS_LIMIT
/i
3.2.255 RUN
/i
3.2.256 RUN_ERROR
/i
Type
Axis parameter
Syntax
RS_LIMIT
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 TJ2-MC64
will decelerate to 0, 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
.
Arguments
N/A
Example
No example.
See also
AXIS
,
FS_LIMIT
,
UNITS
.
Type
Program command
Syntax
RUN [ "program_name" [ , task_number ]]
Description
The
RUN
command executes the program in the TJ2-MC64 as specified with
program_name
.
RUN
with the program name specification will run the cur-
rent 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.
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.
Arguments
•
program_name
Any valid program name.
•
task_number
Any valid task number. Range: [2,21].
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
.
Type
Task parameter (read-only)
Syntax
RUN_ERROR
Description
The
RUN_ERROR
parameter contains the number of the last BASIC run-time
error that occurred on the specified task.
Each task has its own
RUN_ERROR
parameter. Use the
PROC
modifier to
access the parameter for a certain task. Without
PROC
the current task will be
assumed.
The table below gives an overview of error numbers and the associated error
messages.