Functions & Function Blocks
Reusable code blocks, standard functions, and custom libraries
A
6 terms
ABS
Absolute value function returning magnitude without sign.
ACOS
Arc cosine trigonometric function for angle calculations.
ADD
Math function adding two or more numeric values, result stored in destination.
ASIN
Arc sine trigonometric function for inverse sine calculations.
ATAN
Arc tangent trigonometric function returning angle in radians.
AVG
Calculates arithmetic mean of array or set of values.
B
3 terms
C
3 terms
F
1 term
L
4 terms
LEN
String function returning number of characters in text string.
LIMIT
Constrains value within specified minimum and maximum bounds.
LN
Natural logarithm function (base e) for exponential calculations.
LOG
Common logarithm function (base 10) for scaling calculations.
M
5 terms
MAX
Maximum selection function returning largest of input values.
MID
String function extracting substring from specified position and length.
MIN
Minimum selection function returning smallest of input values.
MOD
Modulo function returning remainder after integer division.
MUL
Multiplication function computing product of two or more values.
P
2 terms
S
6 terms
SCALE
Converts value from one range to another using linear scaling.
SIN
Sine trigonometric function for angle calculations in radians.
SQRT
Square root function calculating root of positive number.
SUB
Subtraction function calculating difference between two values.
SUM
Adds all elements in array or specified range of values.
SWAP
Function exchanging byte order in word for endianness conversion.