Techniquecore
Anti-windup
Also called anti-windup compensation, back-calculation.
Stops or bleeds the integrator of a controller while the actuator saturates, by conditional integration or by feeding back the saturation error.
Anti-windup is the set of methods that keep the integral of a controller in line with what the actuator really does. When the actuator is at a limit, the loop is in effect open, and an unprotected integral grows without bound; this is integrator windup. An anti-windup method either stops the integration while the actuator saturates (conditional integration) or drives the integral so that the controller output tracks the limited actuator signal (tracking, with back-calculation as its usual form). Inside the limits the methods change nothing, so the linear design still holds. Every PID controller used on a real plant needs one of them.
In plain words
A controller with an integral term keeps a memory of the past error. When the actuator is fully open and cannot do more, this memory should not keep growing, because the growth has no effect now and causes a large overshoot later. Anti-windup tells the controller what the actuator really did. One way is simple: stop adding to the memory while the actuator is at its limit and the error pushes further out. The other way compares what the controller asked for with what the actuator gave, and uses the difference to pull the memory back, so the request stays close to the limit. When the actuator is not at a limit, both ways do nothing. The time that the pull-back takes is a tuning knob.
When it applies
- The controller has integral action, or other states that integrate or drift, and the actuator has a limit on its range or its rate.
- The limits are reached in normal operation: large set-point changes, start-up, large loads, or a manual mode.
- The controller can know the actuator signal that the plant really gets, by a model of the limits in the controller or by a measurement of the actuator position.
- The linear design is fine inside the limits. Anti-windup repairs the behaviour at the limits; it does not fix a loop that is too fast or a set point that the actuator cannot reach.
The template
- Model the limit. Write the controller output before the limit as and the actuator signal as , with the same limits as the real actuator. If the actuator has its own limits that the controller cannot know exactly, measure .
- Choose the method. For a PI or PID controller :
- Back-calculation (tracking). Let the integral follow
Inside the limits and the second term is 0.
- Conditional integration. Integrate only when , or when the error drives back toward the limits: if or , else .
- Back-calculation (tracking). Let the integral follow
- Choose the tracking time . A small resets the integral fast. A large acts like no protection. Åström and Hägglund give the rule of thumb , with between and (a rule of thumb, not a theorem). For a PI controller, a value below is common.
- Sample it. With the period :
This is the form of the PID controller page. Keep (see below).
- Check it. Simulate a large set-point step and a large load with the actuator limits, and compare the overshoot and the settling time with and without the protection.
Why it works (theorems). Inside the limits , so both methods give the linear controller and the linear analysis holds unchanged. Under saturation, hold and constant. Back-calculation then has the fixed point where , that is
which it approaches with the time constant . So stays within of the limit instead of running away, and the controller leaves the limit soon after the error changes sign. In the sampled form the integral obeys with a constant while , and the other terms are held. This converges if and only if , and without a change of sign of if and only if . Conditional integration holds constant under saturation, so it cannot wind up at all.
What is not proved here. Both methods keep the integral bounded under saturation, but neither guarantees that the loop with the limits converges for every set point and load. Analysis of the loop with the saturation uses tools such as the circle criterion and the small gain theorem; Kothare et al. (1994) show that the common schemes are special cases of one structure, which makes this analysis uniform.
Classic examples
An integrator plant. Let , with the PI controller , , the limits and a set-point step to . The integrator windup page works out the case without protection by hand: the integral reaches 50 at s, and the actuator stays at its limit until s. Measured with a simulation step of 0.001 s:
| method | peak of | settling time (2 percent) |
|---|---|---|
| no protection | 19.002 | 62.3 s |
| back-calculation, s | 10.546 | 12.75 s |
| back-calculation, s | 10.350 | 12.48 s |
| back-calculation, s | 10.300 | 12.40 s |
| conditional integration | 10.298 | 12.40 s |
With the integral follows during saturation, so it rises toward 1 and never passes it. With conditional integration the integral stays 0 while , so and the actuator leaves the limit at , at s.
A third order lag with a PID controller. Take , the Ziegler-Nichols PID , s, s with the derivative filter , the sampling period s, a unit set-point step and the limits . The rule gives 0.907 s. The numbers are measurements; IAE is the integral of over 40 s.
| method | overshoot | settling time (2 percent) | IAE |
|---|---|---|---|
| no limits | 0.550 | 9.72 s | 2.304 |
| limits, no protection | 0.569 | 9.96 s | 3.164 |
| back-calculation, s | 0.019 | 6.18 s | 1.888 |
| back-calculation, s | 0.035 | 7.71 s | 1.890 |
| back-calculation, s | 0.162 | 8.38 s | 2.054 |
| back-calculation, s | 0.300 | 8.89 s | 2.344 |
| back-calculation, s | 0.431 | 9.38 s | 2.695 |
| conditional integration | 0.076 | 7.99 s | 1.924 |
A smaller helps on this plant, and the rule of thumb is far from the best value here. As grows, the result moves toward the case without protection. With protection the loop even does better than the loop without limits, because the limit cuts the large first push of the aggressive Ziegler-Nichols tuning and the integral does not pay for it later.
Variations
- Conditional integration (clamping). Stop the integral when the actuator is at a limit, or only when the error would drive it further. Some versions also stop it when the error is large. It needs no extra parameter.
- Back-calculation (tracking). Feed back into the integral with the gain , as in the template. The same input can carry a manual value of , which gives bumpless transfer from manual to automatic mode.
- Velocity form. A controller that computes the change and adds it to the last actuator value cannot wind up if it adds to the limited value. The integral is implicit in the sum.
- Observer form for general controllers. Write a controller with integral action as an observer of the plant state and feed it the limited , so its states follow the plant that really runs. This works for state space controllers, not only PID.
- Unified and model-based designs. Kothare et al. (1994) write the known schemes as one structure with a gain on . Later designs choose this gain to guarantee properties of the loop with the saturation.
- Avoid the limit. Ramp the set point, or use a reference governor, so that the actuator does not saturate. Model predictive control puts the limits into the optimization.
- Cascade loops. When an inner loop of a cascade saturates, the outer controller tracks the measured value of the inner set point, which is the same idea one level up.
Pitfalls
- Wrong limits in the controller. If the limits in the controller are wider than those of the actuator, the controller sees while the actuator saturates, and windup comes back. Use the true limits, or measure .
- too small for the sampling period. In the sampled form a value makes the integral overshoot its fixed point at each sample, and makes it diverge.
- too small with noise. Noise that drives over a limit for one sample resets the integral by back-calculation. A larger filters this.
- Rate limits. A valve with a limited speed saturates in rate, not in range. The model of the limit must include the rate limit, or the protection does not act.
- Derivative and set-point weights. The limit acts on the sum , so a large derivative kick or a large proportional step can push to a limit for a short time. That is not windup, but it can trigger the protection.
- An unreachable set point. If the actuator cannot hold the output at the set point, no anti-windup method removes the error. It only keeps the controller ready to act when the set point becomes reachable.
Exercises
- In the integrator example without protection, compute . (Answer: .)
- Show that back-calculation with and held has the fixed point , and that approaches it with the time constant . (Answer: and , so with .)
- For the sampled form with s, for which does the integral converge under saturation without a change of sign of its steps? (Answer: , so s.)
- In the integrator example with conditional integration, when does the actuator leave the limit? (Answer: , so at , at s.)
- In the integrator example with back-calculation and s, what value does approach during the saturation? (Answer: , so .)
References
- Karl Johan Åström and Lars Rundqwist, Integrator windup and how to avoid it, Proceedings of the 1989 American Control Conference, 1693-1698, the whole paper (conditional integration, tracking with back-calculation and the observer view)
- Mayuresh V. Kothare, Peter J. Campo, Manfred Morari and Carl N. Nett, A unified framework for the study of anti-windup designs, Automatica 30(12) (1994) 1869-1883, the whole paper (the known anti-windup schemes as special cases of one structure)
- Karl Johan Åström and Tore Hägglund, Advanced PID Control, ISA, 2006, Chapter 3, PID Control (the section on integrator windup); Section 13.3, Computer implementations
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag NFWJA3 Edit this page History Report an error Markdown