![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243202.webp)
187
Command, function and parameter description
Section 6-3
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 without
quotes. If STEPLINE is executed without program name on the command line
the current selected program will be stepped. If STEPLINE is executed with-
out 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,3].
See also:
RUN, SELECT, STOP, TROFF, TRON
Examples:
Example 1
>> STEPLINE "conveyor"
Example 2
>> STEPLINE "maths",2
6-3-183 STOP
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 stepped. Range: [1,3].
See also:
HALT, RUN, SELECT
Examples:
Example 1
>> STOP progname
Example 2
The lines from label on will not be executed in this example.
STOP
label:
PRINT var
RETURN
6-3-184 SWITCH_STATUS
Type:
System Parameter
Description:
The SWITCH_STATUS parameter contains the status of the 10 external DIP-
switches on the MC Unit. For the MCW151-DRT-E these are also used for the
DeviceNet settings.