EasyManua.ls Logo

Mitsubishi Electric CR760-D - Page 422

Mitsubishi Electric CR760-D
730 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-402 Detailed Explanation of Functions
4MELFA-BASIC V
ASin
[Function]
Returns the arc sine from the specified sine.
[Format]
[Terminology]
<Numeric Varia
ble> Calculates the arc sine with specified expression, and returns the result.
The unit is radian.
Setting range: -PI/2 to +PI/2
<Equation> Specifies the sine.
Setting range: -1.0 to +1.0
[Reference Program]
1 MRad=ASine(-0.4) ' Assigns the arc sine of -0.4 (-0.411516846067488 rad) to the MRad.
[Explanation]
(1) Returns the arc sine from the specified equation. Unit is in radians.
Atn/Atn2
[Function]
Calculates the arc tangent.
[Format]
[Terminology]
<Numeric Varia
ble> Calculates the arc tangent with specified expression, and returns the result.
The unit is radian.
<Equation> Calculated value of delta Y/delta X.
<Equation 1> delta Y
<Equation 2> delt
a X
[Reference Program]
1 M1=Atn(100/100) 'PI/4 is assigned to M1.
2 M2=Atn2(-100,100) '-PI/4 is assigned to M1.
[Explanation]
(1) Calculates the arc tangent of a given equation. Unit is in radians.
(2) The range of the returned value for Atn is -PI/2 < Atn < PI/2.
(3) The range of the returned value for Atn2 is -PI < Atn < PI.
(4) If <Equation 2> evaluates to 0, Atn2 will return PI/2 when <Equation 1> evaluates to a positive value and
-PI/2 when <Equation 1> evaluates to a negative value.
(5) In the case of Atn2, it is not possible to describe a function that contains an argument in <Equation 1>
and <Equation 2>. If such a function is described, an error will be generated during execution.
NG example
M1=Atn2(Max(MA,MB), 100)
M1=Atn2(Cint(10.2), 100)
[Reference]
Sin, Cos, Tan
<Numeric Variable>=ASin(<Equation>)
<Numeric Variable>=Atn(<Equation>)
<Numeric Variable>=Atn2(<Equation 1>, <Equation 2>)

Table of Contents

Related product manuals