4-317
Detailed Explanation of Functions
4MELFA-BASIC IV
Dist
[Function]
Calculates the distance between two points (position variables).
[Format]
[Reference Program]
1 M1=Dist(P1,P2)
' M1 will contain the distance between positions 1 and 2.
[Explanation]
(1) Returns the distance between positions 1 and 2 (in mm).
(2) Posture angles of the position data will be ignored; only the X, Y, and Z data will be used for calculation.
(3) The joint variables cannot be used. Trying to use it will result in an error during execution.
(4) It is not possible to describe a function that contains an argument in <position 1> and <position 2>. If
such a function is described, an error will be generated during execution.
Exp
[Function]
Calculates exponential functions. (an equation that uses "e" as the base.)
[Format]
[Reference Program]
1 M1=Exp(2)
' e
2
is assigned to M1.
[Explanation]
(1) Returns the exponential function value of the equation.
[Reference]
<Numeric Variable>=Dist(<Position 1>, <Position 2>)
<Numeric Variable>=Exp(<Equation>)