MIN
Function Name |
MIN |
---|---|
Description |
Outputs the same value as its lowest input. |
Arguments |
Input 1 - Input n {ANY} For more information on the data types for the inputs and outputs, see Data Type Hierarchy. |
Returns |
Output {ANY}. The MIN function outputs the same value as its lowest input. The output is of the same type as the input. |
Example:
Function Block Diagram - MIN:
In this example, the inputs are constant values. The MIN function outputs the same value as its lowest input. In this case, it has inputs of 4 and 5, so it outputs 5.
ST Program - MIN:
The syntax for a MIN function in an ST Program is:
- Output := MIN (Input 1, Input n);
Where Output, Input 1 and Input n are defined as variables earlier in the ST program.