1Control loop basics

Setpoint, gain, deadband and PID in plain words.

2Easy definition, and a picture to remember

In plain words

A control loop measures a value (the process variable, PV), compares it with the value you want (the setpoint, SP), and moves a valve (the output, OP) to close the gap. The controller works on the error, e = SP − PV, with three actions: P reacts to the error now, I to the error added up over time, D to how fast the error is changing.

Imagine it

Think of holding a shower at the right temperature. P is turning the tap in proportion to how cold it feels. I is the patience that keeps nudging the tap until the water is exactly right. D is easing off when you feel it warming quickly, so you do not overshoot into scalding. Too keen, and you swing between hot and cold.

Memory hook

P acts now, I removes the leftover offset, D calms the swing. Too much gain and the loop hunts.

3What decides it, and how

Three settings shape how a loop behaves.

1

Gain (P)

How hard the controller pushes for each percent of error.

Too low is sluggish and leaves an offset. Too high makes the loop swing and then oscillate.

OP = bias + Kc · e

2

Integral time (I)

How fast the controller adds up the leftover error and removes it.

Integral action brings the PV exactly to the setpoint. Too much of it makes the loop overshoot.

∫ e dt / Ti

3

Derivative time (D)

How strongly the controller reacts to the rate of change of the error.

It reduces overshoot and settles the loop faster, but it amplifies noise.

Td · de/dt

Try it: change the setpoint, load the process and tune the loop

A controller with proportional action only (P) holds a flow loop. The setpoint is raised. Will the flow ever reach exactly the new setpoint?

Process variable (PV)Setpoint (SP)Output (OP)
20406080100last 90 s (sped up)%
Process variable (PV)
50.0 %
Setpoint (SP)
50 %
Output (OP)
50 %
Error
0.0 %

The loop follows the setpoint and recovers from the load change without a lasting error.

5Units and formulas

PV, SP and OP are percent of range (0–100). Kc is output percent per percent of error (often shown as proportional band, PB = 100 / Kc). Ti and Td are in seconds.

Formulas

  • e = SP − PV
  • OP = bias + Kc · (e + (1/Ti) ∫ e dt + Td · de/dt)
  • PB = 100 / Kc

6Why it matters, and common mistakes

Why it matters

  • ✓Every automatic valve is part of a loop. Tuning decides whether it is steady or hunting.
  • ✓A hunting loop wears the valve and wastes energy.
  • ✓Knowing P, I and D helps you read a trend and see what is wrong.

Common mistakes

  • !Turning the gain up to speed a loop and creating oscillation.
  • !Using derivative on a noisy signal such as flow.
  • !Blaming the controller when the valve is oversized or sticking.

Keep going: more on valves and systems