EasyManua.ls Logo

Mitsubishi Electric CR750-Q - Page 448

Mitsubishi Electric CR750-Q
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-428 Detailed Explanation of Functions
4MELFA-BASIC V
Sgn
[Function]
Checks the sign of the equation.
[Format]
[Reference Program]
1 M1=-12
2 M2=Sgn(M1) ' -1 is assigned to M2.
[Explanation]
(1) Checks the sign of the equation and returns the following value.
Positive value 1
00
Negative value -1
Sin
[Function]
Calculates the sine.
[Format]
[Reference Program]
1 M1=Sin(Rad(60)) ' 0.866025 is assigned to M1.
[Explanation]
(1) Calculates the sine to which the given equation evaluates.
(2) The range of values will be the entire range that numerical values can take.
(3) The range of the return value will be from -1 to 1.
(4) The unit of arguments is in radians.
[Reference]
Cos, Tan, Atn/Atn2
<Numeric Variable>=Sgn(<Equation>)
<Numeric Variable>=Sin(<Equation>)

Table of Contents

Related product manuals