PID Control and Tuning: P, I and D Actions, FOPDT Models, Ziegler–Nichols and Lambda Tuning
PID controllers hold temperatures, pressures, speeds and flows on test rigs and in plants. Most loops are tuned by trial and error and end up either sluggish or oscillating. A short step test that fits a first-order-plus-dead-time model, followed by a tuning rule, gives good settings in minutes and explains why some loops cannot be made fast.
Key takeaways
- u = Kc·[e + (1/Ti)∫e dt + Td·de/dt]: P reacts to error, I removes offset, D anticipates.
- A bump test gives a FOPDT model: gain K, time constant τ and dead time θ; difficulty rises with θ/τ.
- Lambda (IMC) tuning: Kc = τ/(K(λ + θ)), Ti = τ; choose λ ≥ θ for robustness.
- Ziegler–Nichols closed-loop: Kc = 0.6Ku, Ti = Pu/2, Td = Pu/8; aggressive (quarter-decay) by design.
- Use derivative on measurement with filtering, and anti-windup on the integral when the output saturates.
1. The three terms
| Term | Effect | Too much causes |
|---|---|---|
| Proportional (Kc) | Output proportional to error | Oscillation; steady offset if used alone |
| Integral (1/Ti) | Accumulates error to remove offset | Slow oscillation, overshoot, windup |
| Derivative (Td) | Reacts to rate of change; damps | Noise amplification, output chatter |
2. Process model from a step test
FOPDT: G(s) = K·e^(−θs)/(τs + 1)
K = ΔPV/ΔOutput; θ = time before PV starts to move; τ = time from start of movement to 63 % of change
3. Tuning rules
| Rule | Kc | Ti | Td |
|---|---|---|---|
| Lambda / IMC (PI) | τ/(K·(λ + θ)) | τ | 0 |
| Ziegler–Nichols open loop (PID) | 1.2τ/(K·θ) | 2θ | 0.5θ |
| Ziegler–Nichols closed loop (PID) | 0.6·Ku | Pu/2 | Pu/8 |
| Ziegler–Nichols closed loop (PI) | 0.45·Ku | Pu/1.2 | 0 |
4. Practical points
- Fix mechanical and sensor problems first (valve stiction, sensor noise, wrong scaling).
- Anti-windup: stop integrating when the output saturates, or use back-calculation.
- Bumpless transfer between manual and auto.
- For dead-time-dominant loops (θ/τ > 1), accept slower tuning or use a Smith predictor or feedforward.
5. Calculators
PID loop simulator (FOPDT process)
6. Self-test: check your understanding
Pick an answer to see the explanation. Numerical answers are accepted within the stated tolerance (±3 % unless noted).
Score
7. References and further reading
- Åström, K. J. and Hägglund, T., Advanced PID Control, ISA, 2006.
- Ziegler, J. G. and Nichols, N. B., 'Optimum settings for automatic controllers', Trans. ASME, 64, 1942.
- Skogestad, S., 'Simple analytic rules for model reduction and PID controller tuning', J. Process Control, 13, 2003.
- Seborg, D. E. et al., Process Dynamics and Control, 4th ed., Wiley, 2016.