Strategy 06 of 24 · Loop Structures · Basic
Bang-Bang Control
The Light Switch
On/off control switches a pump or valve between two states. The gap between the switch points sets how often it cycles.
US units 1,250 gal between switches
SI units 4.73 m³ between switches
The setup
Bang-bang control is on/off control. The output is either fully on or fully off, with nothing in between. A household thermostat is the best known example. In a plant, the common cases are a sump pump that starts on high level and stops on low level, a heater that cycles around a temperature, and a compressor that loads and unloads.
It is cheap, simple and robust. It also never settles. The variable always swings between the two switch points.
The reality
Real on/off control always has a gap between the on point and the off point. A level loop has a high level switch and a low level switch. The gap between them sets how often the pump starts. A narrow gap means frequent starts, and a wide gap means fewer starts but a bigger swing.
Frequent starts are what damage equipment. Motors heat up on each start, contactors wear, and a pump that starts into a long line can cause surge problems. The motor maker sets the limit on starts, so use their number rather than a rule of thumb.
The worst case for starts is not at full inflow or at no inflow. It happens when the inflow is about half the pump rate. At that point the pump fills for as long as it empties, and the cycle time is as short as it can get. The smallest volume between the switches that keeps the cycle at or above the minimum is the pump rate times the minimum cycle time, divided by 4.
Level tanks have a related rule on tank working volume. Bang-bang is also the usual choice for very small loops where nothing better is worth paying for. For slow averaging jobs, a dead band or a gentle level loop on the next card is often better.
Run the numbers
A pump moves 500 gpm and the motor maker allows a minimum cycle of 10 minutes.
US units:
- Volume between switches = 500 × 10 ÷ 4 = 1,250 gal
- At the worst case inflow of 250 gpm, the tank fills in 1,250 ÷ 250 = 5 minutes
- It then empties at 500 minus 250 = 250 gpm in another 5 minutes, so the cycle is 10 minutes
- At any other inflow the cycle is longer
SI units:
- Pump rate 113.6 m³/h and a minimum cycle of 10 minutes
- Volume between switches = 113.6 × (10 ÷ 60) ÷ 4 = 4.73 m³
- At the worst case inflow of 56.8 m³/h, fill and empty each take 5 minutes
- The cycle is again 10 minutes
Where it goes wrong
A gap that is too narrow leads to frequent starts and heat in the motor.
A switch that sticks or drifts shifts the gap and changes the cycle.
Starting a pump into a long line or against a check valve adds hydraulic shock, as the fluid failures on water hammer and check valve slam explain.
Using bang-bang on a process that needs steady control gives constant swings that reach everything downstream.
Ignoring the motor maker's limit on starts shortens the life of the motor.
What to check in the field
- Time the cycle at normal inflow and compare it with the motor maker's limit
- Confirm the gap between the high and low switch points matches the design volume
- Check that switches and their wiring are not fouled or sticking
- Watch the line at pump start and stop for hammer or slam
Calculators that check it
- Tank Geometry & Capacity: Total, partial and working capacity of a vertical cylindrical, horizontal cylindrical, or spherical tank, with a level-vs-volume table. Open in the app
- Fan & Pump Power: Fan and circulating-pump power, total power, and power per ton of cooling for a cooling tower. Open in the app
Rules of thumb that help
Related fluid failures
Related strategies
Link to this strategy: jpbprocess.com/control-strategies/bang-bang-control
Control Strategies are for awareness and training. Check real control designs against the process, the instrument data and a qualified control engineer.