
Chapter 15 Functions
15-35
15.8 Distance Extraction
DIST (Function) [Conforms to SLIM]
Function
Returns the distance between two points.
Format
DIST (<Position type1>,<Position type2>)
Explanation
This statement obtains the distance between <Position type1> and <Position
type2>.
Example
DEFSNG lf1, lf2
DEFPOS lp1, lp2, lp3
6-axis lf1 = DIST((350, 0, 450, 0, 0, 180), lp1)
'Assigns the distance between (350, 0, 450, 0, 0,
180)
'and lp1 to lf1.
4-axis lf1 = DIST((350, 0, 300, 45), lp1)
'Assigns the distance between (350, 0, 300, 45)
'and lp1 to lf1.
lf2 = DIST(lp2, lp3)
'Assigns the distance between lp2 and lp3 to lf2.
Comentários a estes Manuais