4MELFA-BASIC IV
Dist
[Function]
Calculates the distance between two points (position variables).
[Format]
<Numeric Variable>=Dist(<Position 1>, <Position 2>)
[Reference Program]
1 M1=Dist(P1,P2)
[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]
<Numeric Variable>=Exp(<Equation>)
[Reference Program]
1 M1=Exp(2)
[Explanation]
(1) Returns the exponential function value of the equation.
[Reference]
Ln
4-317 Detailed Explanation of Functions
' M1 will contain the distance between positions 1 and 2.
2
' e
is assigned to M1.