Skip to content
You Start with one site
Amounts in Start with one site
Control, Measurement & Energy · Course

What Breaks Real Loops: Saturation, Windup and Noise

Lesson 9 of 11 25 min read
Found this useful?

A water heater is switched on cold every morning, and every morning the water goes several degrees past the setpoint and stays hot for a quarter of an hour. The tuning was done with care and the step tests looked correct, so the technician lowers the gain, and the loop becomes slow without losing the overshoot. The cause is not the tuning. The heater reached 100 percent, the model that the tuning rule used stopped being true, and the integral term kept growing with nothing to act on. This lesson covers what the linear model omits: output limits, integral windup, noise, sticking valves and badly placed sensors. #IntegralWindup #AntiWindup #ControlLoops

Learning Objectives

By the end of this lesson, you will be able to:

  1. Explain what the integral term does while the controller output is at a limit, and estimate by hand how far it winds up
  2. Compare anti-windup by clamping with anti-windup by back-calculation, and choose the tracking time
  3. Calculate the noise reduction of a first-order measurement filter and the phase lag it adds at the crossover frequency
  4. Recognise valve stiction, deadband and a badly placed sensor from a trend of the output and the process variable
  5. Decide when a problem needs a change to the equipment and when it needs a change to the controller

Real-World System Problem: A hot water tank started from cold



The hot water tank of this course has an electric heater and a temperature sensor on the outlet pipe. Near its normal operating point the loop is easy to control. The morning start is different. The water is at 25 °C, the setpoint is 55 °C, and the controller asks for more heat than the heater has. The output stays at 100 percent for several minutes.

During those minutes the loop is open: the heater gives the same power whether the controller asks for 100 or 300 percent. A controller that does not know this keeps summing the error. When the process variable (PV), here the temperature, at last reaches the setpoint, the integral term holds a large value the plant never needed, and only a period of negative error (water that is too hot) can remove it.

The same pattern appears on a pump at full speed and on a valve that is fully open. The linear tools describe the loop between the limits. This lesson describes what happens at the limits and at the sensor.

sensorheatersetpoint r = 55 °Cu:0to100%PIheatywater tankcold: 25 °Coutlet pipedeadtime40s
Hot water tank loop at the morning start

Fundamental Theory: Limits, windup, noise and friction



Every output has limits

A controller equation can produce any number. A heater can produce between 0 and 100 percent of its power. Write for the output that the equation calculates and for the output that the final element can deliver:

When sits at a limit the output is saturated. Saturation is not a fault. A start from cold should use full power. The trouble comes from what the integral term does while the output is saturated.

What the integral does during saturation

In the ISA standard form the integral term is

with controller gain , integral time and error . The integral term is the area under the error curve, scaled by . While the output is saturated the error stays large, so the area grows quickly, and nothing in the loop uses this growth because is already at the limit. This is integral windup (also reset windup).

At the moment the process variable reaches the setpoint the error is zero, so the proportional term is zero and the output equals the integral term alone. At steady state the integral term must equal the output that holds the setpoint, . If windup has made it larger than , the plant receives too much and overshoots. The excess leaves only through negative error:

This is why windup overshoot lasts so long. The area above the setpoint is fixed by the excess, and a slow loop spreads it over many minutes.

timeerrorlarge and positivenegativee=r-youtput uheld at 100 percentstill too highintegralkeeps risingfalls slowly(the plant cannotuse it)PV reaches setpoint
What happens during a long saturation

Anti-windup by clamping

Clamping (also called conditional integration) stops the integral from changing in the wrong direction while the output is saturated. The rule is:

  • if is above the upper limit and the error is positive, do not integrate;
  • if is below the lower limit and the error is negative, do not integrate;
  • in every other case, integrate normally.

Clamping needs no extra setting, so it is the most common method in small controllers and in firmware. Its weakness is that the integral holds whatever value it had when saturation began. If that value is far from , the loop leaves saturation early and finishes slowly.

Anti-windup by back-calculation

Back-calculation does not freeze the integral. It feeds the difference between the delivered output and the calculated output back to the integrator through a tracking time :

Between the limits and the extra term is zero. At a limit is negative (for the upper limit), and it reduces the integral until comes back to the limit. The tracking time sets how quickly this happens.

KclimitKc/Ti1/Tte(+)vuI(+)[∫](u-v)
PI controller with back-calculation

Choosing the tracking time

A short resets the integral quickly, but too short a value drives the integral far below the value the plant needs, and the loop then finishes slowly. A common starting point for a PI controller is . For a PID controller, Åström and Hägglund suggest . Application 1 shows what happens when is ten times too short.

Derivative kick and the derivative filter

The derivative term acts on a rate of change. A setpoint step is a change in zero time, so a derivative that acts on the error produces a very large, very short output pulse. This pulse is the derivative kick. The usual cure is to take the derivative of the measurement and not of the error. The measurement cannot jump, so the kick disappears, and the response to a disturbance is unchanged.

A pure derivative also has a gain that rises without limit as frequency rises, so it amplifies noise. Every practical controller therefore filters the derivative with a first-order filter of time constant :

The divisor is usually 8 to 10. It limits the high-frequency gain of the derivative to . If the derivative acts on the error, a setpoint step of size produces a kick of height , which shows why derivative on measurement is the normal choice.

Measurement noise and what a filter costs

A pressure or flow signal carries noise from turbulence, pump pulsation and the electronics. The proportional term multiplies this noise by and sends it to the final element. The drive or valve then moves all the time, which wears it and wastes energy for no benefit.

A first-order filter on the measurement reduces the noise. In a digital controller with sample time it is one line:

Here is the new reading, is the filtered value and is the filter time constant. For white noise (noise with no link between one sample and the next) of standard deviation , the filtered standard deviation is

The filter is not free. It is one more lag inside the loop. At a frequency it adds a phase lag of

and the lag at the crossover frequency is subtracted directly from the phase margin. For a small the filter acts like extra dead time of about . A filter that is strong enough to make the trend look smooth can remove most of the margin, so always compute the phase before choosing the time constant.

Valve stiction and deadband

A control valve with a tight stem packing does not move for a small change of signal. The force must rise until it exceeds the static friction, and then the stem jumps. This is stiction. Deadband is the related fault where the stem does not follow a reversal of the signal until the signal has moved by some amount (for example, slack in a linkage).

With stiction and integral action the loop oscillates in a fixed pattern, a limit cycle: the stuck valve leaves a small error, the integral ramps the output until the valve jumps too far, the error changes sign, and the ramp reverses. Its amplitude is set by the size of the jump, not by the tuning. A heavy box on a rough floor behaves the same way: push, nothing, push harder, and it slides past where you wanted it.

output uslow ramps(triangle wave)PV ysudden jumps(square wave)
Stiction: the signature in a trend

No tuning removes this limit cycle: a lower gain or a longer integral time only makes the period longer. To test, put the controller in manual with the output constant. If the oscillation stops, the loop was producing it. If the trend then shows a triangle in the output and a square in the process variable, as in the drawing, suspect the valve. The cure is mechanical (service the packing, fit or calibrate a positioner).

Sensor placement and dead time

A sensor fitted far from the place where the process changes adds transport delay. For a pipe of length with fluid velocity the delay is . A temperature sensor 6 m downstream of a tank, in water that moves at 0.15 m/s, adds 40 s of dead time. Dead time sets the limit on the speed of every loop, and no controller setting can remove it. Moving the sensor closer is often the cheapest improvement available. A sensor in a thick thermowell adds a lag of its own for the same reason.

Nonlinear gain and gain scheduling

The process gain is the slope of a curve, and the curve is seldom straight. Pump pressure rises roughly with the square of speed, so the gain in bar per percent is higher at high speed than at low speed. A valve with an equal-percentage trim has a gain that changes several times over its travel. A loop tuned where the gain is low becomes oscillatory where the gain is high. Tune at the highest process gain if one set of settings must serve everywhere, and accept a slower loop elsewhere. Gain scheduling is the alternative: the controller holds a small table of against operating point (speed, load or valve position) and changes so that the product stays about constant.

Interacting loops

Two loops that share one process disturb each other. A pressure loop and a flow loop on the same pipe are the usual example: when the flow valve opens the pressure falls, the pressure loop raises the pump speed, and the flow changes again. If both loops have similar speeds they can oscillate together even though each one is stable alone. The practical rule is to separate them in speed by a factor of 3 to 5. Tune the loop that matters most to be fast, and tune the other to be slow.

The questions below sort the common causes in the order that costs the least time on site.

Application 1: Hot water tank start from cold



Step 1: Settings and the size of the problem

Click to reveal the settings
  1. Controller gain from the lambda rule:

    ✅
  2. Integral time: s. ✅

  3. Output needed at the setpoint. The rise is °C, so percent. ✅

  4. First output asked for. The error at is 30 °C, so the proportional term is percent. The heater gives 100 percent. The loop is saturated from the first instant. ✅

Step 2: Estimate the windup by hand

Click to reveal the hand estimate
  1. Temperature while the heater is at 100 percent. After the dead time the rise follows a first-order curve towards °C above cold:

    ✅
  2. Time to reach 55 °C. Set the rise to 30 °C: , so s after the dead time, which is s. ✅

  3. Area under the error. During the dead time the error is 30 °C for 40 s, which gives °C s. After that the error is :

    The total area is °C s. ✅

  4. Integral term at the setpoint with no anti-windup:

    ✅
  5. Excess. The plant needs 60 percent. The integral holds 78.4 percent, an excess of 18.4 percent. To remove it the temperature must spend °C s above the setpoint (for example 1 °C high for more than 18 minutes). ✅

Step 3: Simulate the three cases

The simulation uses a time step of 0.5 s, an exact first-order update and a buffer of 80 past outputs for the 40 s dead time.

Click to reveal the simulation results
  1. No anti-windup. The integral term peaks at 78.5 percent. The temperature overshoots by 2.42 °C (8.1 percent of the 30 °C change) and stays above 55.5 °C for 666 s. ✅

  2. Clamping. The integral term is held at zero while the output is saturated and never exceeds 60.0 percent. There is no overshoot, but the heater leaves the limit after only 107 s (when falls below 100 percent, at 35 °C) and the approach is slow. ✅

  3. Back-calculation, s. The integral term rises during saturation but is limited, and it approaches 60.0 percent from below. There is no overshoot and the heater stays at full power for 186 s. ✅

  4. Back-calculation with s (too short). The integral term is driven down to percent and the heater leaves the limit after 77 s. ✅

CaseOvershoot (°C)Time above 55.5 °C (s)Time at 100 percent (s)Integral peak (percent)Within 0.5 °C at (s)
No anti-windup2.4266625078.5994
Clamping0.00010760.0981
Back-calculation, s0.00018660.0402
Back-calculation, s0.0007760.01,064

Step 4: Check the result a second way

Click to reveal the check
  1. Integral peak. The hand estimate gave 78.4 percent at 314.9 s. The simulation gives a peak of 78.5 percent. The two agree within the 0.5 s time step. ✅

  2. Steady state. At the setpoint the error is zero, so the output equals the integral term, and it must equal percent. All four cases end with the integral term at 60.0 percent. ✅

  3. Area above the setpoint. The estimate asked for about 1,100 °C s above the setpoint. An overshoot of 2.42 °C that takes more than 600 s to fall below 0.5 °C is of this size. ✅

Application 2: A filter for a noisy pressure signal



Step 1: Crossover frequency and margin without a filter

Click to reveal the loop calculation
  1. Settings. percent per bar and s. ✅

  2. Loop transfer function. Because , the controller zero cancels the process pole:

    ✅
  3. Crossover frequency. gives rad/s. The numerical solution with the exact dead time gives 0.5000 rad/s. ✅

  4. Phase margin. The integrator gives degrees and the dead time gives rad degrees:

    ✅

Step 2: What the noise does with no filter

Click to reveal the noise at the drive
  1. Proportional term. Noise of 0.05 bar becomes percent of speed (standard deviation). ✅

  2. Peaks. Almost all samples of this kind of noise lie within three standard deviations, so the speed command moves by about percent, one hundred times per second, with no change in the real pressure. ✅

  3. Reduction needed. The requirement of 0.2 percent needs a ratio of at most . ✅

Step 3: Choose the filter and find its cost

Click to reveal the filter choice
  1. Try s. The filter coefficient is . ✅

  2. Noise ratio.

    The filtered noise is bar, and the speed command moves by percent. This meets the 0.2 percent requirement. ✅

  3. Phase lag at crossover.

    This is inside the 5 degree allowance. With the filter in the loop the exact phase margin is 72.84 degrees. ✅

  4. Compare the alternatives. s gives 0.226 percent (not enough). s gives 0.117 percent but costs 5.71 degrees (too much). s would make the trend very smooth and cost 26.57 degrees, leaving a margin of 52.49 degrees. ✅

(s) (bar)Speed noise (percent)Lag at (degrees)Phase margin (degrees)
0.020.33330.4470.02240.3350.5775.10
0.050.16670.3020.01510.2261.4374.25
0.100.09090.2180.01090.1642.8672.84
0.200.04760.1560.00780.1175.7170.06
0.500.01960.1000.00500.07514.0462.43
1.000.00990.0710.00350.05326.5752.49

Step 4: Check with random numbers

Click to reveal the check
  1. Simulate the filter. The script passes 200,000 random samples with a standard deviation of 0.05 bar through the filter with s. The output has a standard deviation of 0.0108 bar, against 0.0109 bar from the formula. ✅

  2. Short formula. , close to the exact 0.218. ✅

Verify It in Python



windup_and_filter.py
"""Windup on the hot water tank (plant A) and a noise filter for the
booster pump pressure signal (plant B). numpy, scipy, matplotlib only."""
import numpy as np
from scipy.optimize import brentq
import matplotlib.pyplot as plt
# ---------------- Application 1: plant A, start from cold ----------------
K, TAU, THETA = 0.5, 300.0, 40.0 # degC per percent, s, s
LAM = 2.0 * THETA
KC, TI = TAU / (K * (LAM + THETA)), TAU # lambda tuning, PI, ISA form
Y_COLD, R = 25.0, 55.0 # degC
DT, T_END = 0.5, 3000.0
print("Plant A: Kc = %.2f percent per degC, Ti = %.0f s" % (KC, TI))
def start_up(mode, tt=TI):
"""mode: 'none', 'clamp' or 'back'. Returns t, y, u, integral term."""
n, nd = int(T_END / DT), int(round(THETA / DT))
a = np.exp(-DT / TAU)
buf = [0.0] * nd # dead-time buffer of past outputs
x, integ = 0.0, 0.0 # rise above cold, integral term
t = np.arange(n) * DT
y_log, u_log, i_log = np.zeros(n), np.zeros(n), np.zeros(n)
for k in range(n):
y = Y_COLD + x
e = R - y
v = KC * e + integ # output before the limits
u = min(100.0, max(0.0, v)) # the heater can give 0 to 100
y_log[k], u_log[k], i_log[k] = y, u, integ
di = KC / TI * e * DT
if mode == "none":
integ += di
elif mode == "clamp":
if not ((v > 100.0 and e > 0) or (v < 0.0 and e < 0)):
integ += di
else: # back-calculation
integ += di + (u - v) / tt * DT
buf.append(u)
x = a * x + K * (1.0 - a) * buf.pop(0)
return t, y_log, u_log, i_log
print(" case overshoot above 55.5 at 100 % integral (%) within 0.5")
print(" (degC) (s) (s) peak min at (s)")
fig, axes = plt.subplots(3, 1, figsize=(7, 8), sharex=True)
cases = [("no anti-windup", "none", TI), ("clamping", "clamp", TI),
("back-calc Tt=300 s", "back", 300.0), ("back-calc Tt=30 s", "back", 30.0)]
for label, mode, tt in cases:
t, y, u, i = start_up(mode, tt)
outside = np.where(np.abs(y - R) > 0.5)[0]
print(" %-19s %7.2f %8.0f %8.0f %6.1f %6.1f %7.0f"
% (label, max(y.max() - R, 0.0), np.sum(y > R + 0.5) * DT,
np.sum(u >= 100.0) * DT, i.max(), i.min(), t[outside[-1] + 1]))
for ax, sig in zip(axes, (y, u, i)):
ax.plot(t, sig, label=label)
axes[0].axhline(R, color="gray", lw=0.8, ls="--")
for ax, name in zip(axes, ("temperature (degC)", "heater (%)", "integral term (%)")):
ax.set_ylabel(name); ax.grid(alpha=0.3)
axes[0].legend(); axes[2].set_xlabel("time (s)"); axes[2].set_xlim(0, 1500)
fig.tight_layout(); fig.savefig("windup_start_up.png", dpi=120)
# hand check of the integral at the moment the temperature reaches 55 degC
t_rise = TAU * np.log(50.0 / 20.0)
area = 30.0 * THETA + (30.0 - 50.0) * t_rise + 50.0 * TAU * (1 - np.exp(-t_rise / TAU))
print(" hand check: reaches 55 degC at %.1f s, error area %.0f degC s, "
"integral %.1f percent" % (THETA + t_rise, area, KC / TI * area))
# ---------------- Application 2: plant B, measurement filter -------------
K, TAU, THETA = 0.10, 3.0, 0.5 # bar per percent, s, s
KC, TI = TAU / (K * (3.0 * THETA + THETA)), TAU
SIGMA, TS = 0.05, 0.01 # bar, s (100 samples per second)
print("\nPlant B: Kc = %.1f percent per bar, Ti = %.1f s" % (KC, TI))
def loop(w, tf=0.0):
s = 1j * w
return KC * (1 + 1 / (TI * s)) * K * np.exp(-THETA * s) / (TAU * s + 1) / (tf * s + 1)
def crossover(tf=0.0):
wc = brentq(lambda w: abs(loop(w, tf)) - 1.0, 1e-3, 10.0)
return wc, 180.0 + np.degrees(np.angle(loop(wc, tf)))
wc, pm = crossover()
print(" no filter: crossover %.4f rad/s, phase margin %.2f deg" % (wc, pm))
print(" Tf (s) alpha noise ratio sigma (bar) Kc*sigma (%) lag (deg) PM (deg)")
for tf in (0.02, 0.05, 0.1, 0.2, 0.5, 1.0):
alpha = TS / (tf + TS)
ratio = np.sqrt(alpha / (2.0 - alpha))
print(" %5.2f %.4f %8.4f %9.4f %10.3f %8.2f %7.2f"
% (tf, alpha, ratio, SIGMA * ratio, KC * SIGMA * ratio,
np.degrees(np.arctan(wc * tf)), crossover(tf)[1]))
rng = np.random.default_rng(1) # check the formula on random noise
noise = rng.normal(0.0, SIGMA, 200000)
alpha, f, out = TS / (0.1 + TS), 0.0, np.zeros(noise.size)
for k, v in enumerate(noise):
f += alpha * (v - f)
out[k] = f
print(" random check, Tf = 0.1 s: raw %.4f bar, filtered %.4f bar"
% (noise.std(), out[1000:].std()))

Expected output

Plant A: Kc = 5.00 percent per degC, Ti = 300 s
case overshoot above 55.5 at 100 % integral (%) within 0.5
(degC) (s) (s) peak min at (s)
no anti-windup 2.42 666 250 78.5 0.0 994
clamping 0.00 0 107 60.0 0.0 981
back-calc Tt=300 s 0.00 0 186 60.0 0.0 402
back-calc Tt=30 s 0.00 0 77 60.0 -27.4 1064
hand check: reaches 55 degC at 314.9 s, error area 4702 degC s, integral 78.4 percent
Plant B: Kc = 15.0 percent per bar, Ti = 3.0 s
no filter: crossover 0.5000 rad/s, phase margin 75.68 deg
Tf (s) alpha noise ratio sigma (bar) Kc*sigma (%) lag (deg) PM (deg)
0.02 0.3333 0.4472 0.0224 0.335 0.57 75.10
0.05 0.1667 0.3015 0.0151 0.226 1.43 74.25
0.10 0.0909 0.2182 0.0109 0.164 2.86 72.84
0.20 0.0476 0.1562 0.0078 0.117 5.71 70.06
0.50 0.0196 0.0995 0.0050 0.075 14.04 62.43
1.00 0.0099 0.0705 0.0035 0.053 26.57 52.49
random check, Tf = 0.1 s: raw 0.0499 bar, filtered 0.0108 bar

The script also saves windup_start_up.png, with the temperature, the heater output and the integral term of the four cases on one time axis.

Common Mistakes



  • Lowering the gain to cure an overshoot that follows a period at the output limit. The cause is windup. A lower gain may hide it and makes the loop slow for everything else. The cure is anti-windup with the tuning unchanged.
  • Setting the output limits in the controller wider than the real limits of the final element. If the drive stops at 90 percent and the controller limit is 100 percent, the anti-windup never acts between 90 and 100 percent.
  • Choosing a back-calculation tracking time that is much shorter than the integral time. The integral is then driven far from the value the plant needs, and the loop finishes slowly.
  • Choosing a measurement filter by looking at the trend until it is smooth. Compute the phase lag at the crossover frequency first, and count the filter as part of the process when tuning.
  • Retuning a loop that has a limit cycle from stiction. The period changes and the oscillation stays. Test in manual, then have the valve serviced.
  • Using derivative on the error in a loop where operators change the setpoint in steps. Every step produces a kick of times the step.

Summary



  • A controller output has limits. While the output is at a limit the loop is open, and the linear model no longer describes it.
  • During saturation an unprotected integral term grows past the value the plant needs. The excess is removed only by time spent beyond the setpoint, which is the windup overshoot.
  • Clamping and back-calculation both prevent the overshoot. On the hot water tank start, back-calculation with reached the setpoint band in 402 s against 981 s for clamping and 994 s with no protection.
  • A first-order measurement filter reduces white noise by about and costs of phase margin.
  • Stiction, deadband, sensor position and interaction between loops are properties of the equipment. Tuning can hide them for a time and cannot remove them.

Exercises



  1. A PID controller has percent per °C, s and a derivative filter with . The derivative acts on the error. An operator raises the setpoint by 2 °C in one step. Find the filter time constant and the height of the derivative kick. What is the kick if the derivative acts on the measurement?

    Answer

    s. The kick is percent, the whole output range. With derivative on measurement the kick is zero, because the measurement does not jump.

  2. The booster pump loop of Application 2 has rad/s. Find the phase lag of a filter with s at the crossover frequency, and the largest that costs no more than 10 degrees.

    Answer

    degrees. For 10 degrees, s.

  3. The valve in a pressure loop sticks until the controller output has changed by 2 percent. The loop has percent per bar and s, and the error is steady at 0.05 bar while the valve is stuck. How long does the integral term need to move the output by 2 percent? The process gain is 0.10 bar per percent. How large is the pressure change when the valve jumps by 2 percent?

    Answer

    The integral ramps at percent per second, so it needs s. The jump changes the pressure by bar, four times the error that caused it, so the error changes sign and the cycle repeats.

  4. The pump of Application 2 has a process gain of 0.10 bar per percent at 60 percent speed and 0.16 bar per percent at 90 percent speed. The loop was tuned at 60 percent with percent per bar. What should a gain schedule use at 90 percent speed to keep the same loop gain?

    Answer

    Keep constant: percent per bar.

  5. Repeat the hand estimate of Application 1 for a setpoint of 65 °C (same plant, same settings, start at 25 °C, no anti-windup). Find the time to reach the setpoint, the integral term at that moment and the excess over the output the plant needs.

    Answer

    The rise is 40 °C and percent. gives s, so the setpoint is reached at 522.8 s. The error area is °C s, and percent. The excess is 66 percent. A setpoint close to the limit of the heater gives far worse windup.

References



  • K. J. Åström and T. Hägglund, Advanced PID Control, ISA, 2006.
  • K. J. Åström and R. M. Murray, Feedback Systems: An Introduction for Scientists and Engineers, 2nd edition, Princeton University Press, 2021.
  • D. E. Seborg, T. F. Edgar, D. A. Mellichamp and F. J. Doyle, Process Dynamics and Control, 3rd edition, Wiley, 2011.


© 2021-2026 SiliconWit®. All rights reserved.
Predict first

The tank starts cold at 25 °C with a setpoint of 55 °C. The PI controller holds the heater at 100 percent for the first minutes. To hold 55 °C the tank needs 60 percent. What does the heater output do at the moment the temperature first reaches 55 °C?

See it: the integral term during a cold start

Overshoot
Time above 55.5 °C
Peak of the integral term
Time at the heater limit
Within 0.5 °C of the setpoint from
Output that holds 55 °C60.0 percent

The loop is the lesson's hot water tank started cold: the water is at 25 °C, the setpoint is 55 °C from time zero, and the PI controller has the lesson's settings, a gain of 5 percent per °C and an integral time of 300 s. The third plot is the integral term alone. At rest it must equal the output that holds the setpoint, which is 60 percent, the gold line. Watch what the integral term does while the output is held at its limit. Back-calculation uses a tracking time equal to the integral time, 300 s. The noise is one standard deviation, and it is the same noise at every run so that you can compare. The first plot shows the reading that the controller sees. The readouts use the true water temperature.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. With no anti-windup the integral term of the tank controller peaks at 78.5 percent. The tank needs 60 percent to hold 55 °C. How does the extra 18.5 percent leave the integral term?

2. Clamping and back-calculation both start the tank with no overshoot. With which one is the water within 0.5 °C of the setpoint sooner?

3. The heater is replaced by a smaller one. It gives 80 percent of the old power at most, so the output limit is now 80 percent. The controller has no anti-windup. What happens to the overshoot after a cold start?

heater outputintegraltemperature held at 100 %keeps fillingovershoot drains it
wanted push grows stuck jumps too far
Watch it build: the integral winds up on a cold start
25 55 100 0 °C 1200 s Cold start: 25 °C to 55 °Cheater limit 100 % heater u held at 100 % integral I keeps rising needs 60 I = 78.5 %at 55 °C +2.42 °C, 11 minutes high
  1. The tank starts cold at 25 °C with a setpoint of 55 °C. The heater can give at most 100 percent.
  2. The heater sits at its 100 percent limit for the first 250 s: the output is saturated.
  3. The error stays large, so the integral term keeps climbing, though the heater cannot give more.
  4. At 55 °C the error is zero and the output is the integral alone: 78.5 percent, where 60 is enough.
  5. The extra 18.5 percent leaves only through error below zero: 2.42 °C over, about 11 minutes above 55.5 °C.
PI Heater Water tank cold: 25 °C Sensor setpoint r = 55 °C u: 0 to 100 % heat outlet pipe dead time 40 s y
Hot water tank loop at the morning start
e Kc Limit v u Kc/Ti ∫ I + + + + + − 1/Tt u − v v u
PI controller with back-calculation. Try it on the PID simulator
output u, % PV y, % of span −1 mean +1 −1 mean +1 slow ramps (triangle wave) dashed: the valve, stuck, then a jump sudden jumps (square wave) 0 10 20 30 40 50 t, s
Stiction: the signature in a trend (example: a fast flow loop)
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.