Mitsubishi Electric CR750-Q Instruction Manual page 142

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
(2) Relative calculation of position data (multiplication)
Numerical variables are calculated by the usual four arithmetic operations. The calculation of position vari-
ables involves coordinate conversions, however, not just the four basic arithmetic operations. This is
explained using simple examples.
M ultip lication b etween P variab les
(relative calculation in the tool coord inate system )
Tool coord inate system at P1
X1
P100
Y1
Y
(3) Relative calculation of position data (Addition)
Ad d ition of P variab les
(relative calculation in the rob ot coord inate system )
P100
Y
CAUTION)
In the example above, the explanation is made in two dimensions for the sake of simplicity. In actuality, the
calculation is made in three dimensions. In addition, the tool coordinate system changes depending on the
posture.
CAUTION)
Relative calculation cannot be used in 5-axis robots, because correct values cannot be obtained.
4-122 MELFA-BASIC V functions
X
10mm
P1
5mm
Rob ot coord inate system
X
5mm
P1
10mm
Rob ot coord inate system
An example of relative calculation (multiplication)
1 P2=(10,5,0,0,0,0)(0,0)
2 P100=P1*P2
3 Mov P1
4 Mvs P100
P1=(200,150,100,0,0,45)(4,0)
In this example, the hand tip is moved relatively within the
P1 tool coordinate system at teaching position P1. The
values of the X and Y coordinates of P2 become the
amount of movement within the tool coordinate system.
The relative calculation is given by multiplication of the P
variables. Be aware that the result becomes different if the
order of multiplication is different. The variable that speci-
fies the amount of relative movement (P2) should be
entered lastly.
If the posture axis parts of P2 (A, B, and C) are 0, the pos-
ture of P1 is used as is. If there are non-zero values avail-
able, the new posture is determined by rotating the hand
around the Z, Y, and X axes (in the order of C, B, and A)
relative to the posture of P1. Multiplication corresponds to
addition within the tool coordinate system, while division
corresponds to subtraction within the tool coordinate sys-
tem.
An example of relative calculation(Addition)
1 P2=(5,10,0,0,0,0)(0,0)
2 P100=P1+P2
3 Mov P1
4 Mvs P100
P1=(200,150,100,0,0,45)(4,0)
In this example, the hand is moved relatively within the
robot coordinate system at teaching position P1. The val-
ues of the X and Y coordinates of P2 become the amount
of movement within the robot coordinate system. The rela-
tive calculation is given by addition of the P variables.
If a value is entered for the C-axis coordinate of P2, it is
possible to change the C-axis coordinate of P100. The
resulting value will be the sum of the C-axis coordinate of
P1 and the C-axis coordinate of P2.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents