Standard functions, E functions, Functions – Delta RMC151 User Manual
Page 357: Function, N standard functions
5 Programming
5.14.2. Standard Functions
5.14.2.1. Standard Functions
The RMC expressions support many built-in standard functions, as listed below. You can also
create custom User Functions.
General Math
Functions
Description
Returns the absolute value of a.
Returns natural (e) raised to the a
th
power.
Returns the natural logarithm (base e) of a.
Returns the logarithm (base 10) of a.
Returns the square root of a.
Returns the polynomial calculation up to 8 coefficients
a + bt + ct
2
+ dt
3
...
Returns -1 if a is negative, +1 if a is positive, and 0 if a is
zero.
Rounding Functions Description
ROUND(a)
ROUND(a, n)
Rounds a to n decimal places.
Rounds a to the desired multiple.
Rounds a to an integer towards zero. Return type is DINT.
Rounds a to an integer towards zero. Return type is REAL.
Rounds a to the next greater (most positive) integer.
Rounds a to the next lesser (most negative) integer.
Selection Functions
Description
Returns the smallest value of the parameters (up to 10
operands).
Returns the largest value of the parameters (up to 10 operands).
Limits InVal to the lower limit Min and the upper limit Max.
In-line IF statement. If cond is true, returns a, otherwise returns
b.
Trigonometric and Hyperbolic Functions Description
SIN(a)
Returns the sine of a.
Returns the cosine of a.
Returns the tangent of a.
Returns the arcsine of a.
Returns the arccosine of a.
deltamotion.com
337