EasyManua.ls Logo

Mitsubishi Electric CR750-Q - Page 418

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-398 Detailed Explanation of Functions
4MELFA-BASIC V
Abs
[Function]
Returns the absolute value of a given value.
[Format]
[Reference Program]
1 P2.C=Abs(P1.C) ' P2.C will contain the value of P1.C without the sign.
2 Mov P2
3 M2=-100
4 M1=Abs(M2) ' 100 is assigned to M1.
[Explanation]
(1) Returns the absolute value (Value with the positive sign) of a given value.
[Reference]
Sgn
<Numeric Variable>=Abs(<Equation>)

Table of Contents

Related product manuals