max (Function) |
Top Previous Next |
The max function takes two numbers as parameters and returns the value of the highest of the two numbers.
Input: a : DINT The first value.
b : DINT The second value.
Returns: DINT The highest value.
Declaration: FUNCTION max : DINT;
Example: INCLUDE rtcu.inc |