Numeric functions, Sqrt, Numeric functions 3 – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 1075: L-force | plc designer
                                    Advertising
                                    
                                        
                                    
                                
                                
L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
1073
16.3.10
Numeric Functions 
The following numeric IEC operators are available: 
ABS, SQRT, LN, LOG, EXP, SIN, COS, TAN, ASIN, ACOS, ATAN, EXPT 
 
ABS 
IEC Operator: Returns the absolute value of a number. ABS(-2) returns 2. 
In- and output can be of any numeric basic data type. 
 
Example in IL: ( Result in i is 2 ) 
Example in ST:
i:=ABS(-2);
Example in FBD:
SQRT 
IEC Operator: Returns the square root of a number. 
The input variable can be of any numeric basic data type, the output variable must be 
type REAL or LREAL. 
Example in IL: ( Result in q is 4 ) 
Example in ST:
q:=SQRT(16);
Example in FBD:
                                    Advertising