DIST (Function)


Returns the distance between two points.


DIST (<Position type1>,<Position type2>)


This statement obtains the distance between <Position type1> and <Position type2>.


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.


Top