ETO · Part 1 · Theory

PID Tuning

The jacket-water temperature controller is hunting, and the chief wants it fixed. A live loop to tune: gain, integral and derivative, a load change to ride out, and a valve that sticks.

Engine outlet temperature · setpoint 85°C
0:00

Controller
Engine load
The loop
Jobs
  • Stop the hunt: from the “as found” settings, get it to hold within ±0.5°C for five minutes.
  • P only leaves an offset: see it, then use integral to bring it back to setpoint.
  • Ride a load change from 75% to 100% with less than 1.5°C overshoot.
  • Turn on the sticking valve and decide what to do about it.
What the three terms do

P, gain: the valve moves in proportion to the error. More gain, faster correction, but too much and it overshoots and hunts. On its own, P can’t get rid of a steady error (offset): it needs some error to hold the valve anywhere but its starting point.

I, integral time: keeps moving the valve as long as there’s any error, until the error is gone. The shorter the integral time, the stronger the action. Too short is the most common cause of a slow, rolling hunt on a temperature loop.

D, derivative: reacts to how fast the temperature is changing, to get ahead of it. Little used on temperature loops; it amplifies noise.

Tuning by hand: write down the as-found settings first. Integral long, derivative off. Raise the gain until it just starts to hunt after a small disturbance, then halve it. Shorten the integral until it starts to roll, then double it. Change one thing at a time and let it settle.

Before any of that: stroke the valve and watch it move. No tuning fixes a sticking valve.