Specifications

BASIC commands
PROGRAMMING MANUAL 159
Revision 5.0
3.2.232 RS_LIMIT
/i
3.2.233 RUN
/i
3.2.234 RUN_ERROR
/i
/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 TJ1-MC__
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 TJ1-MC__ 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: [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.
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.
Number Message Number Message
1 Command not recognized 70 Value is incorrect
2 Invalid transfer type 71 Invalid I/O channel
3 Error programming Flash 72 Value cannot be set. Use
CLEAR_PARAMS command
4 Operand expected 73 Directory not locked