MIN

Yields the minimum of two integer values.
lrsf_mn1_cam5
Arguments
IN1
IN1
DINT
Any signed integer value
IN2
IN2
DINT
(cannot be REAL)
MIN
Q
DINT
Minimum of both input values
Example
(* FBD Program using "MIN" and "MAX" Function *)
lrsf_mn2_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