MAX

Yields the maximum of two integer values.
lrsf_ma1_cam5
Arguments
IN1
IN1
DINT
Any signed integer value
IN2
IN2
DINT
(cannot be REAL)
MAX
Q
DINT
Maximum of both input values
Example
(* FBD Program using "MIN" and "MAX" Function *)
lrsf_ma2_cam5
(* ST Equivalence: *)
new_value := MAX (MIN (max_value, value), min_value); (* bounds the value to the [min_value..max_value] set *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal