Pitfall 07 of 24 · Plant & People
The PID Gospel
A PID loop is a good tool, not a universal one.
Thinking cousin: The law of the instrument (hammer and nail)
The trap
The PID loop is so common and so well taught that it becomes the default answer to every control question. A new variable needs controlling, so a controller is added. The loop does not work well, so the gains are adjusted. The loop still does not work well, so the gains are adjusted again. The assumption is that the right set of three numbers must exist. For some loops it does not.
The reality check
A PID controller reacts to an error after it has appeared. It works well on processes that respond promptly and smoothly to the valve. It struggles with long dead time, strong interactions between loops, valves that stick, noisy signals and large disturbances that arrive fast. Derivative action amplifies noise, so on a noisy flow signal it makes the valve jitter and wear out. Integral action keeps adding to the output while the valve is saturated, which is called windup, and the loop overshoots badly when it comes back. Better structures exist. Feedforward acts on a disturbance before it reaches the output. Cascade control uses a fast inner loop to handle valve and supply problems. Override and split-range schemes cover constraints and two actuators. Sometimes the right answer is to fix the valve, move the sensor or change the process, and sometimes it is a simple on-off scheme with a deadband. Tuning cannot rescue a loop whose structure is wrong.
Case file: The loop that fought its own disturbance
Illustrative case. Names and details are composite.
A gas plant's reflux drum level controller was tuned tightly to hold the level close to setpoint. The level fluctuated anyway as the feed rate changed, and the reflux flow to the column swung with it. The column temperature profile moved, product quality drifted, and the engineers kept adjusting the level loop gains. The real problem was that a tight level loop passes every upstream disturbance straight into the column. Changing to a loose averaging level control, which lets the level float within its range, made the reflux flow smooth and settled the column. The drum had been sized to absorb surges, and the controller had been fighting that on purpose. No new hardware was needed.
The fix
Before tuning, ask what the loop is supposed to do and whether a plain feedback structure suits it. If dead time dominates, disturbances are measurable, valves interact or constraints matter, look at feedforward, cascade, ratio or override. Use a loose setting where smooth flow matters more than tight level. Fix valve and sensor problems first, since no setting will cover them.
Warning signs
- Gains adjusted again and again on the same loop
- Noisy signals with derivative action turned on
- Valve moving constantly with little effect on the measurement
- Integral windup after a trip or a saturated valve
- A downstream unit upset by the smooth control of an upstream one
Check it with JPB Process Calcs
- Equivalent Length of Fittings & Valves: K-factor and equivalent length for a set of fittings and valves, and the resulting pressure drop. Open in the app
- Relief Line & Flare Header Sizing: Inlet-line pressure loss (the 3% rule), and built-up, superimposed and total back pressure from the outlet line for a PSV, with choked-line detection, reusing this app's compressible-flow relations (S17). Open in the app
Related pitfalls
Fluid failures
Control strategies
Link to this pitfall: jpbprocess.com/pitfalls/pid-gospel
Pitfalls are for discussion and training. They do not replace a hazard review or the judgment of a qualified engineer.