Specifications

BASIC commands
PROGRAMMING MANUAL 168
Revision 5.0
3.2.254 STEPLINE
/i
3.2.255 STOP
/i
3.2.256 SYSTEM_ERROR
/i
/i
Type Program command
Syntax STEPLINE [ "program_name" [ , task_number ]]
Description The STEPLINE command executes one line (i.e., "steps") in the program
specified by program_name. The program name can also be specified with-
out quotes. If STEPLINE is executed without program name on the command
line the current selected program will be stepped. If STEPLINE is executed
without program name in a program this program will be stepped.
If the program is specified then all occurrences of this program will be
stepped. A new task will be started when there is no copy of the program run-
ning. If the task is specified as well then only the copy of the program running
on the specified task will be stepped. If there is no copy of the program run-
ning on the specified task then one will be started on it.
Arguments program_name
The name of the program to be stepped.
task_number
The number of the task with the program to be stepped. Range: [1,14].
Example >> STEPLINE "conveyor"
Example >> STEPLINE "maths",2
See also RUN, SELECT, STOP, TROFF, TRON.
Type Program command
Syntax STOP [ "program_name" [ , task_number ]
Description The STOP command will halt execution of the program specified with
program_name. If the program name is omitted, then the currently selected
program will be halted. The program name can also be specified without
quotes.
In case of multiple executions of a single program on different tasks the
task_number can be used to specify the specific task to be stopped.
Arguments program_name
The name of the program to be stopped.
task_number
The number of the task with the program to be stopped. Range: [1,14].
Example >> STOP progname
Example The lines from label on will not be executed in this example.
STOP
label:
PRINT var
RETURN
See also HALT, RUN, SELECT.
Type System parameter (read only)
Syntax SYSTEM_ERROR
Description The SYSTEM_ERROR parameter contains system errors that occurred in the
TJ1 system since the last time it was initialized. The bits in the
SYSTEM_ERROR parameter are given in the table below.
Bit Description
0SRAM error
1 Battery low error
2 - 7 Reserved for future use
8 Configuration unit error (Any unit in the system)
9 Configuration device error (Any device in the system)
10 - 15 Reserved for future use
16 Unit lost error (Any unit in the system)
17 Terminator not fitted
18 Device lost error (Any device in the system)