EasyManua.ls Logo

Omron R88A-MCW151-DRT-E - Basicerror

Omron R88A-MCW151-DRT-E
276 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
122
Command, function and parameter description Section 6-3
Arguments:
axis_i
The number of the axis set as the base axis and any subsequent axes in the
group order for multi-axis moves.
See also: AXIS
Examples: 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
6-3-31 BASICERROR
Type: System Command
Description: 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.
See also: ERROR_LINE, ON, RUN_ERROR
Example: 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

Table of Contents

Related product manuals