Publication 1757-RM810A-EN-P - May 2002
3-4 Functional Blocks
Table3.A Expression Operators and Functions Reference
Operators Description
Unary + –
Binary Arithmetic
+ – / MOD (x MOD y) ^ (x^y)
Logical AND OR NOT
Relational = <> <= >= < >
Conditional ? : (For example, X ? Y : Z; similar to IF, THEN, ELSE)
Assignment :=
Parenthesis ()
Array Syntax [ ]
Unary Functions
ABS Absolute value LOG Natural Logarithm of a number
ATN arc tangent RND Round value
COS Cosine SGN sign of value (returns -1,0 or +1)
EXP e to the power of x SIN Sine
INT convert to integer SQR Square of a number
ISFIN is finite SQRT Square root
ISNAN is Not a Number TAN Tangent
LN Log to the base of e
Multiple Argument Functions
MIN Minimum of n arguments (ignore
bad values)
MID Medium value of n arguments
(average of middle values for even
n)
MAX Maximum of n arguments
(ignore bad values)
MUL Product of n arguments
AVG Average of n arguments SUM sum of n arguments