DRAW (Statement)


Executes the relative movement designated in the work coordinate system.


DRAW <Interpolation method>,[<Pass start displacement amount>]<Parallel movement distance>[,<Motion option>][,NEXT]


The robot moves from the current position by a distance of <Translation movement distance>.
Either P (or PTP) or L can be selected for <Interpolation method>.
Interpolation method
Meaning
P (or PTP)
Moves in PTP control.
L
Moves in CP control.

The value of <Pass start displacement> is expressed using the radius of the globe with the target position centered. If the motion instruction value is entered, the robot proceeds to the next control. Designate the value in millimeters. This value aims to change the pass start timing, and if the end of the arm enters the globe, the robot does not always proceed to the next control.
If the value is ignored, it is processed as the default value @0.
If the value is @0, the robot moves in the end movement.
If @P, it moves in the pass movement.
If @E, the robot checks the arrival at the target position with the value of the encoder and then proceeds to the next movement.
The SPEED, ACCEL, and DECEL options are available for <Motion option>.
Motion option
Meaning
SPEED (or S)
Designates the movement speed. The meaning is the same as the SPEED statement.
ACCEL
Designates acceleration. The meaning is the same as the ACCEL statement. However, deceleration cannot be designated. Use the DECEL statement to designate deceleration.
DECEL
Designates deceleration. The meaning is the same as the DECEL statement.

If <NEXT option> is added, the robot proceeds to the next no-movement instruction without waiting for movement to finish. However, the following instructions will not be executed until the robot movement ends (pass start).
Robot motion instructions (CHANGETOOL, CHANGEWORK, SPEED, JSPEED, ACCEL, JACCEL, DECEL, JDECEL), optimal carrying mass setting library (aspACLD, aspChange), arm movement library (mvSetPulseWidth, etc.)
If this command is used with the movement option, the NEXT option is no longer valid. When <NEXT option> is added and if step stop is executed in the waiting status for the next movement instruction, the robot will stop after movement ends. Therefore, care must be exercised since it requires a long distance to stop.
And also, the NEXT option is no valid in the teach check mode.
The DRAW statement can be rewritten using the MOVE statement.
DRAW <Interpolation method>,[<Pass start displacement> ]<Translation movement distance>[,<Motion option>] [,NEXT]
The following shows the statement if the above DRAW statement is rewritten using the MOVE statement.
MOVE <Interpolation method>,[<Pass start displacement> ]<Current position>+<Translation movement distance>
Example: DRAW L, (50, 10, 50) 'The same as MOVE L, P0+(50, 10, 50)



The figure of the DRAW motion position is that of motion start. As a result there is a possibility that "error 667* software motion limit over, beyond motion space 2" may occur since the DRAW operation position will be beyond the motion space. In this case, replace the instruction with the MOVE instruction as described in REMARKS and change the figure using LETF (refer to "10.3 Figure").


DEFVEC lv1, lv2
DRAW L, (50, 10, 50)
'The robot moves (CP control) to a position
'(X = 50, Y = 10, Z = 50) away from the current position.
DRAW L, lv1, SPEED=90
'The robot moves (CP control, S = 90) to a position
'lv1 away
'from the current position.
DRAW L, lv2, S = 50
'The robot moves (CP control, S = 50) to a position
'lv2 away from the current position.


Top