Integral windup
On this page
A lorry climbs a steep hill with the pedal pressed fully down, and it still slows. Suppose the driver counted every second of wanting more power, and held the pedal down for that long after the top of the hill. The lorry would race down the other side. Integral windup is the growth of the integral term while the output is already at its limit and can do no more.
See it
A tank of water at 25 °C is switched on with a setpoint of 55 °C. The controller asks for more heat than the heater has, so the heater runs at 100% for several minutes. What does the controller do at the moment the water reaches 55 °C?
The upper graph is the water temperature. The lower graph shows two things in percent: the heater output, which cannot pass 100%, and the integral term inside the controller, which has no such limit. The dashed line at 60% is the output that holds 55 °C.
The idea
A PI or PID controller has an integral term. It adds the error for as long as the error lasts.
I is the integral term in percent of output, Kc is the controller gain, Ti is the integral time, and the area is the error multiplied by the time it lasts
Every real output has a limit: a heater gives at most 100%, and a valve opens fully. At its limit the output is saturated. The heater gives the same power whether the controller asks for 100% or for 300%. But the error is still large, so the integral term keeps growing.
When the measured value reaches the setpoint at last, the integral term holds far more than the process needs. The excess can leave only through error of the opposite sign: time spent beyond the setpoint. That is the overshoot, and it is long.
The cure is called anti-windup. The simplest kind is a clamp: while the output is saturated and the error still pushes the same way, the integral term stops adding. A clamp removes the overshoot, but the finish can be slow.
One worked number
A controller has Kc = 5.0 percent per °C and Ti = 300 s. During a start from cold the heater is at 100%, and the area under the error grows to 4,702 °C·s by the time the water reaches the setpoint. The tank needs 60% to hold the setpoint. How large is the integral term, and what must happen to remove the excess?
Show the worked solution, 3 steps
- The integral term at the setpoint
I = (5.0 ÷ 300) × 4,702 = 78.4%. The figure shows 78.5%.
- The excess
The tank needs 60%. The excess is 78.4 − 60 = 18.4%.
- The area that removes it
Rearrange the formula: area = 18.4 × 300 ÷ 5.0 = 1,100 °C·s above the setpoint. That is 1 °C too hot for more than 18 minutes.
The mistake to avoid
The lesson on what breaks real loops compares the clamp with a method that finishes in less than half the time.
Check yourself
A controller has Kc = 2 percent per °C and Ti = 100 s. Its output is saturated, and the error stays at 10 °C for 200 s. With no protection, by how much does the integral term grow?
A temperature loop settles well after small changes of setpoint. After a start from cold it overshoots by several degrees and takes 15 minutes to come back. What should be checked first?
A pressure controller holds its valve fully open for an hour, because the supply pressure is too low to reach the setpoint. It has no anti-windup. The supply then returns to normal. What happens?
Where you meet it
- A heater or an oven started from coldThe output is at 100% for minutes, and the first approach to the setpoint overshoots.
- A pump on a variable speed driveWhen demand is more than the pump can give, it runs at full speed and the pressure controller winds up.
- A cold room after a long door openingThe cooling runs at its limit, then pulls the room colder than the setpoint.
- At its limit an output can do no more, but the integral term keeps adding.
- The excess leaves only through time spent beyond the setpoint: a long overshoot.
- The cure is anti-windup, not a lower gain.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.