![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243196.webp)
181
Command, function and parameter description
Section 6-3
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.
Note This parameter is read-only.
See also:
BASICERROR, ERROR_LINE, PROC
Example:
>> PRINT RUN_ERROR PROC(5)
9.0000
6-3-166 RUNTYPE
Type:
Program Command
Syntax:
RUNTYPE
“
program_name
”,
auto_run
[ ,
task_number
]
Description:
The RUNTYPE command determines whether the program, specified by
program_name, is run automatically at start-up or not and which task it is to
run on. The task number is optional, if omitted the program will run at the high-
est available task.
The current RUNTYPE status of each programs is displayed when a DIR
command is executed. If one program has compilation errors no programs will
be started at power up. To set the RUNTYPE using Motion Perfect, select
"Set Power-up mode" from the Program Menu.
Note The execution of the EPROM command is required to store the new
RUNTYPE settings into Flash memory. Otherwise the new settings will be lost
when the power is switched off.
Arguments:
program_name
The name of the program whose RUNTYPE is being set.
autorun
task_number
The number of the step on which to execute the program. Range: [1, 3].
See also:
AUTORUN, EPROM, EX
Example:
>> RUNTYPE progname,1,3
The above line sets the program "progname" to run automatically at start-up
on task 3.
>> RUNTYPE progname,0
The above line sets the program "progname" to manual running.
6-3-167 S_RATE
Type:
Axis Parameter
Description:
The S_RATE parameter contains the speed reference rate for the attached
Servomotor. This parameter is defined as the speed value in rounds per
minute which the Servomotor will move per reference unit.
This parameter will apply to the following parameters: S_REF, S_REF_OUT,
OUTLIMIT, AIN2 (Servo Driver rotation speed data).
Note This parameter is read-only.
0
Running manually on command.
1
Automatically execute on power up. All non-zero values are consid-
ered as 1.
Rotational Speed [RPM]
Speed Reference[1] S_RATE
⋅
=