The first Control lesson used a linear plant and a parallel PID law with no actuator limit. That model already said so. This lesson keeps the same plant and the same moderate PI gains, and adds a documented symmetric limit on the applied effort. The point is not to retune $K_p$, $K_i$, and $K_d$. It is to see what the limit does to the integrator, and what a standard back-calculation anti-windup term changes.
The curves are still a simulation. They are not a measurement of a motor, a valve, or any other piece of hardware. Anti-windup is not a license to ignore actuator limits, or to tune real hardware unsafely. The method used here is one documented method, not the only method.
What you will be able to explain
State the plant, the parallel PI law, and the symmetric saturation used in the figure. For a unit step that starts with a command already above the limit, say what happens to the integral term while the error is still positive, and how that shows up in the applied effort after the output has crossed the reference. Write the back-calculation law, including the extra gain $k_{\mathrm{aw}}$ and the tracking time $T_{\mathrm{aw}}=1/k_{\mathrm{aw}}$. Say what changes when that term is switched on, and what the model still leaves out.
Time and the signals in the figure are dimensionless. Time is measured in units of the plant's open-loop time constant, which is 1.
The plant is the same as in the first lesson,
$$P(s)=\frac{1}{(s+1)^3},$$
or
$$y”’+3y”+3y’+y=u.$$
It has DC gain 1 and three coincident poles at $-1$. It is type 0. A unit-step steady state, if the loop reaches one, therefore requires $u\to 1$. The figure in this lesson is computed from the model below, not copied from a book.
The controller is the same parallel form, written here in terms of the integral term $I$ rather than the integrated error $\xi$ of the first lesson. The two are related by $I=K_i\xi$. The unsaturated command is
$$u_a=K_p e+I-K_d d,$$
with $e=r-y$. The derivative is still taken on the output and then filtered,
$$d=\frac{y-z}{\tau},\qquad z’=\frac{y-z}{\tau},\qquad \tau=0.05.$$
The figure holds the gains fixed at the moderate PI already used in that first lesson: $K_p=2$, $K_i=0.6$, and $K_d=0$. With $K_d=0$ the derivative term does not affect $u_a$, but the law is the same one.
A symmetric actuator model is then applied,
$$u=\operatorname{sat}(u_a,-U_{\max},U_{\max}),$$
except in the no-limit mode, where $u=u_a$. The default limit is $U_{\max}=1.2$. That value is low enough for this PI to saturate on a unit step, and high enough that a reachable steady state with $u=1$ still exists. The limit is symmetric about zero; an asymmetric stop would need its own statement.
Without anti-windup the integral law is unchanged,
$$I’=K_i e.$$
With back-calculation, following the construction in Åström and Murray, Feedback Systems, §11.4, the difference between the applied effort and the unsaturated command is fed back to the integrator,
$$I’=K_i e+k_{\mathrm{aw}}(u-u_a),\qquad T_{\mathrm{aw}}=\frac{1}{k_{\mathrm{aw}}}.$$
The extra parameter $k_{\mathrm{aw}}$ has units of inverse time. It is zero in effect when $u=u_a$, so the law reduces to the ordinary integrator whenever the command is inside the limit. A reasonable starting choice, in that book, is to take $k_{\mathrm{aw}}$ as a multiple of the integral gain $K_i$. The figure defaults to $k_{\mathrm{aw}}=1$, so $T_{\mathrm{aw}}=1$, and lets you change $k_{\mathrm{aw}}$ in the range $[0.2,6]$ when anti-windup is on. A very large $k_{\mathrm{aw}}$ shortens the reset, but would also pass more measurement noise into $I$; this figure has no measurement noise.
The law is integrated with a fixed-step fourth-order Runge–Kutta method at $\mathrm{d}t=0.005$, from $t=0$ to $t=20$, independently of the display's frame rate. The tabulated $y(20)$ is a finite-horizon value, not a certificate that the trajectory has settled.
Predict
Under the default saturated run with no anti-windup, once the actuator is at $+U_{\max}$ and the error is still positive, what happens to the integral term $I$?
$I$ freezes at the value it had when $u$ first hit the limit, so the response is only a slower version of the unlimited run and the integrator does not keep stacking. $I$ keeps growing. When $y$ later reaches the reference, $u$ can still be on the limit, the overshoot can arrive later, and $I$ can be larger than the value needed in steady state. Saturation automatically stops the integrator, so the limited response is the unlimited curve shifted later in time.
Predict before changing the mode. You may skip the question and come back later; nothing is locked.
Manipulate and observe
The figure starts paused on the default frame, with the full curve already computed. That response is simulated. Compare the default (saturation only) with the no-limit mode, then switch on back-calculation. Optionally change $U_{\max}$, or change $k_{\mathrm{aw}}$ with anti-windup on, and watch $u$, $u_a$, and $I$ together with $y$.
Explain
The no-limit mode is the same moderate PI as in the first lesson: $K_p=2$, $K_i=0.6$, $K_d=0$, and no actuator stop. In this model the output at $t=20$ is about $0.996$, the overshoot is about $0.220$, and the peak occurs near $t=3.70$. The applied effort starts at $u(0)=2$ and reaches a peak of about $2.27$. The integral term ends near $1$, which is the value needed for a unit-step steady state on this plant, because $u\to 1$ and $e\to 0$.
The default frame keeps those gains and adds the symmetric limit $U_{\max}=1.2$, with no anti-windup. At $t=0$ the unsaturated command is still $u_a=2$, but the applied effort is already clipped to $1.2$. While $u$ is held at the stop and the error stays positive, $I$ continues to grow. In this model $y$ crosses the reference at about $t=4.57$. At that crossing $I$ is already about $1.44$ and $u_a$ is still about $1.44$, so $u$ is still saturated. Only after the error changes sign does $I$ start to fall. The applied effort leaves the limit at about $t=5.64$, when $y$ is already about $1.10$. The output then peaks near $1.15$ at about $t=6.99$, an overshoot of about $0.15$, and $y(20)$ is about $1.006$.
That overshoot is smaller than the unlimited overshoot of about $0.22$. The comparison is not a claim that a hard stop is a free way to cut overshoot. The unlimited run applies a peak effort of about $2.27$, which this actuator cannot produce, so the limited plant is driven more slowly and the peak arrives later. The signature of windup is elsewhere: $I$ grows past the steady value $1$, $u_a$ rises to about $2.40$, and the applied effort remains on the limit after the error has already changed sign.
Back-calculation changes the integrator while the command is outside the limit. With the default $k_{\mathrm{aw}}=1$, the same step still saturates at $t=0$, but $u$ leaves the limit at about $t=2.27$, when $y$ is only about $0.47$ and $I$ is only about $0.15$. In this model the output does not overshoot the reference; $y(20)$ is about $0.994$, and $I$ stays near $1$ after a small dip (the lowest value is about $-0.10$). The command comes back inside the stop while the error is still large and positive, so the integrator is not left with a surplus to unwind after the crossing.
A larger $k_{\mathrm{aw}}$ resets $I$ faster; a smaller one leaves more of the windup in place. The slider is there so that dependence is visible. One value of $k_{\mathrm{aw}}$ is not a tuning certificate, and back-calculation is not the only anti-windup method. Conditional integration, which stops integrating while the command is saturated and the error would push it further into the limit, is a common alternative. This lesson implements one documented law so that the comparison can be repeated.
None of this is a license to ignore the actuator, or to copy the same gains onto hardware. The model still leaves out delay, an asymmetric or rate-limited stop, and measurement noise. A trajectory that looks acceptable on $P(s)=\frac{1}{(s+1)^3}$ with $U_{\max}=1.2$ is not a tuning certificate for a different plant, or for a real actuator.
Practice and transfer
A colleague says: “Once you have anti-windup, you can ignore the actuator limits when you choose gains, and back-calculation is the only method that works.” What is wrong with that claim?
Nothing is wrong: with anti-windup you may choose gains as if the actuator were unlimited and apply them directly to hardware. Anti-windup is not a license to ignore actuator limits or to tune real hardware unsafely. Back-calculation is one documented method, not the only method. This is still a model. Back-calculation is the only anti-windup method that works, so other schemes and the limits themselves can be ignored.
Assumptions and reproducibility
The plant is linear, time-invariant, and initially at rest, except for the static symmetric saturation on $u$ when a limit is enabled. The reference is a unit step at $t=0$. There is no input disturbance and no measurement noise. The gains are fixed at $K_p=2$, $K_i=0.6$, and $K_d=0$; the derivative filter time constant remains $\tau=0.05$. The default limit is $U_{\max}=1.2$; the slider runs over $U_{\max}\in[1.05,2.5]$. In the no-limit mode, $u=u_a$ and the anti-windup term is identically zero. In the anti-windup mode, $k_{\mathrm{aw}}$ defaults to $1$ and may be set in $[0.2,6]$. Changing a control recomputes the trajectory from the same model. The figure does not store answers or send them anywhere.
Related ideas
This lesson follows what Kp, Ki and Kd do to a step response, which uses the same plant without an actuator limit. The Control topic collects both with other planned lessons on feedback. Integrator windup is the growth of the integral term after the applied effort has already reached a stop; anti-windup is a modification of the integrator, not a removal of the stop. A step response is still the output that follows a sudden change in the reference; overshoot, the remaining error, and the control effort are properties of that trajectory in a stated model, not licenses to copy the same gains onto hardware.
References
Åström, K. J., and Murray, R. M. Feedback Systems: An Introduction for Scientists and Engineers, 2nd ed., electronic edition v3.1.5 (24 July 2020), Chapter 11, §11.4, Integral Windup. https://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf
FBSwiki, PID Control, including the section Integral Windup. https://fbswiki.org/wiki/index.php/PID_Control
Concept connections
- Feedback
- A command formed from a measured output and a reference, rather than from an open-loop prescription alone.
- PID
- A controller that adds a proportional term, an integral term, and a derivative term. In this lesson the integral term is written $I$, with $I=K_i\xi$ in the notation of the first Control lesson.
- Step response
- The output that follows a sudden change in the reference. Rise, overshoot, remaining error, and the control effort are properties of that trajectory in a stated model.
- Integrator windup
- Growth of the integral term after the applied effort has already reached an actuator stop, so that the command can remain saturated after the error changes sign.
- Anti-windup
- A modification of the integrator that acts while the command is outside the actuator limit. This lesson uses back-calculation, $I'=K_i e+k_{\mathrm{aw}}(u-u_a)$, which is one documented method, not the only method.
This lesson follows what Kp, Ki and Kd do to a step response. More planned lessons on feedback are listed on the Control topic page.
