MIN (Minimum Selection)
Returns the smaller of two or more input values.
The MIN function returns the smaller of two (or more) input values. It is used for low-select control strategies from redundant sensors, implementing output ceilings, finding minimum values in process data, and conservative safety-oriented value selection.
Parameters
Inputs
| Name | Type | Description |
|---|---|---|
| IN1 | ANY_NUM | First value |
| IN2 | ANY_NUM | Second value |
Outputs
| Name | Type | Description |
|---|---|---|
| OUT | ANY_NUM | Minimum value (smaller of inputs) |
Ladder Logic Example
// Ladder Logic - MIN (Low-Select) // // |----[MIN]----| // | IN1: Sensor_1 | // | IN2: Sensor_2 | // | OUT: Lowest_Reading |
Structured Text Example
// Low-select from redundant sensors Lowest_Pressure := MIN(Sensor_1, Sensor_2); // Cap output to maximum Capped_Output := MIN(Calculated_Output, Max_Allowed);
20 Production-Ready Ladder Logic Templates
Stop writing the same rungs from scratch. Get copy-paste-ready templates for motor control, PID loops, safety interlocks, conveyors, and more.
Platform-Specific Implementation
Siemens (TIA Portal)
Use MIN instruction in TIA Portal SCL. In LAD/FBD, use comparison with MOVE.
Allen-Bradley (Studio 5000)
No direct MIN; implement with LES comparison and MOV.
CODESYS
Use MIN() function in ST.
Common Applications
- Low-select from redundant sensors
- Output ceiling enforcement
- Conservative value selection
- Minimum inventory tracking
- Safety-oriented value selection
Frequently Asked Questions
What is MIN (Minimum Selection) in PLC programming?
Returns the smaller of two or more input values. The MIN function returns the smaller of two (or more) input values. It is used for low-select control strategies from redundant sensors, implementing output ceilings, finding minimum values in process data, and conservative safety-oriented value selection.
What are common applications of MIN (Minimum Selection)?
MIN (Minimum Selection) is commonly used for: Low-select from redundant sensors, Output ceiling enforcement, Conservative value selection, Minimum inventory tracking, Safety-oriented value selection.
How do I use MIN (Minimum Selection) in different PLC platforms?
Siemens: Use MIN instruction in TIA Portal SCL. In LAD/FBD, use comparison with MOVE. Allen-Bradley: No direct MIN; implement with LES comparison and MOV. CODESYS: Use MIN() function in ST.
Related Function Blocks
MAX (Maximum Selection)
Returns the larger of two or more input values.
View Reference →SEL (Binary Selector)
Selects between two values based on a boolean condition: FALSE=IN0, TRUE=IN1.
View Reference →LIMIT (Limiter / Clamp)
Clamps a value between minimum and maximum boundaries.
View Reference →MUX (Multiplexer)
Selects one of N input values based on an integer selector index.
View Reference →LIMIT (Value Limiter)
Constrains input value to specified minimum and maximum range.
View Reference →Stop Writing Ladder Logic From Scratch
Get 20 production-ready ladder logic templates for $29 -- download instantly and use them on your next project today.
Instant download - 30-day money-back guarantee - Use on unlimited projects