Basicerror - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Command, function and parameter description
Arguments:
See also:
Examples:

6-3-31 BASICERROR

Type:
Description:
See also:
Example:
122
axis_i
The number of the axis set as the base axis and any subsequent axes in the
group order for multi-axis moves.
AXIS
Example 1
It is possible to program each axis with its own speed, acceleration and other
parameters.
BASE(1)
UNITS = 2000
'Set unit conversion factor for axis 1
SPEED = 100
'Set speed for axis 1
ACCEL = 5000
'Set acceleration rate for axis 1
BASE(2)
UNITS = 2000
'Set unit conversion factor for axis 2
SPEED = 125
'Set speed for axis 2
ACCEL = 10000
'Set acceleration rate for axis 2
Example 2
In the example below, axes 0, 1 and 2 will move to the specified positions at
the speed and acceleration set for axis 0. BASE(0) sets the base axis to
axis 0, which determines the three axes used by MOVE and the speed and
acceleration rate.
BASE(0)
MOVE(100,-23.1,1250)
Example 3
On the command line the base group order can be shown by typing BASE.
>> BASE(0,2,1)
>> BASE
(0,2,1)
Example 4
Use the PROC modifier to show the base group order of a certain task.
>> RUN "PROGRAM",3
>> BASE PROC(3)
(0,2,1)
Example 5
Printing BASE will return the current selected base axis.
>> BASE(2)
>> PRINT BASE
2.0000
System Command
The BASICERROR command can be used to run a routine when a run-time
error occurs in a program. BASICERROR can only be used as part of an ON
... GOSUB or ON ... GOTO command. This command is required to be exe-
cuted once in the BASIC program. If several commands are used only the one
executed last is effective.
ERROR_LINE, ON, RUN_ERROR
If an error occurs in a BASIC command in the following example, then the
error routine will be executed.
ON BASICERROR GOTO error_routine
....
no_error = 1
STOP
error_routine:
IF no_error = 0 THEN
Section 6-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents