Lesson 9 of 14 · Module C: Feedback control

Feedback control and the PID controller

Process Dynamics and Control · EIE306

By the end of this lesson you can

  • Describe proportional, integral and derivative action
  • Explain offset and why integral action removes it
  • Know practical PID features: direct/reverse action, anti-windup, derivative on measurement

Notes

The PID controller is used in more than 90 % of industrial loops. In parallel (ISA) form:

$$u(t) = \bar u + K_c\left[e(t) + \frac{1}{\tau_I}\int_0^t e\,dt + \tau_D\frac{de}{dt}\right]$$

The three actions

ActionResponds toEffect
Proportional ($K_c$)Present errorFast correction, but leaves an offset for most processes
Integral ($\tau_I$)Past (accumulated) errorRemoves offset, but adds oscillation
Derivative ($\tau_D$)Rate of change of errorAnticipates and damps, but amplifies noise

Why P-only leaves an offset

To hold a new steady state the valve must sit at a new position. With P-only, the valve can only move away from $\bar u$ if there is an error, so some error must remain. Integral action keeps moving the valve until the error is exactly zero.

Practical details

  • Direct or reverse action: choose the sign so the controller pushes the right way (heater: temperature too low, increase power).
  • Reset windup: if the valve saturates, the integral keeps growing and causes a large overshoot later. Anti-windup stops integrating while the output is saturated.
  • Derivative on measurement: use $-dy/dt$ instead of $de/dt$ to avoid a "derivative kick" on set-point changes.

In the simulation, set $K_i = 0$ and $K_d = 0$ and raise $K_p$: the offset shrinks but never disappears. Then add a little $K_i$.

Lecture

🎬
Lecture video
Coming soon. The recorded lecture for this lesson will appear here.

Try it

Exercises

  1. A P-only controller with $K_c = 4$ controls a process with $K = 0.5$. What fraction of a set-point step remains as offset?
    Show solution
    Offset $= 1/(1 + K_cK) = 1/(1 + 2) = 1/3$ of the step.
  2. Should a cooling-water valve on a reactor temperature loop be direct or reverse acting, if the valve opens on increasing signal?
    Show solution
    Direct acting: when the temperature rises above the set-point, the controller output must increase to open the cooling valve further.
  3. Why is derivative action rarely used on flow loops?
    Show solution
    Flow measurements are noisy and the loops are already fast, so derivative action mainly amplifies noise and wears the valve.