What a control loop does
A control loop holds one thing in the plant, such as a tank level, a flow, a pressure or a temperature, at the value the operator wants. It does this by itself, all day, without anyone touching a valve. The value being held is the process variable (PV). The value wanted is the setpoint (SP).
Every loop has the same four parts: a sensor that measures the PV, a controller that decides what to do, a control valve (the final control element) that does it, and the process itself. They are connected in a circle, which is why it is called a loop. Because the result of the action is measured again and fed back, the scheme is called feedback control. The most common controller type is the PID controller: P, I and D are three simple ways of turning an error into a valve movement.
The figure shows a level loop on a real tank. The valve is a throttling valve of the kind described in the globe valve lesson. The same loop, drawn with other equipment, holds the level in a deaerator or in the tanks of a tank farm.
How it works
- The process and its disturbance. Liquid flows into a tank and leaves through an outlet pipe. The level is the PV. The inflow keeps changing with the rest of the plant. This change is the disturbance: without a loop the level would rise or fall until the tank overflowed or ran dry.
- The sensor measures. A level transmitter on a low nozzle measures the pressure of the liquid column above it, which grows with the level. It turns the reading into a standard 4 to 20 mA current: 4 mA is the bottom of its range and 20 mA the top.
- The controller compares. The signal arrives in the controller. It subtracts the setpoint from the measurement to get the error. The screen shows the setpoint (dashed green line), the measured level (yellow) and the controller output (cyan).
- P, I and D calculate the output. P (proportional) pushes in proportion to the error now: a big error gives a big move. I (integral) adds up the error over time, so a small error that will not go away is slowly pushed out. D (derivative) looks at how fast the error is changing and pulls back early when the level is rushing towards the setpoint. The three dials stand for these settings. Choosing them is called tuning.
- The output goes to the valve. The controller output is again a 4 to 20 mA signal. An I/P converter next to the valve turns it into air pressure, typically 0.2 to 1.0 bar, and a positioner checks the stem position and corrects it until it matches.
- The valve moves. The air pushes on the diaphragm of the actuator. The stem moves and the plug in the valve opens or closes the gap, so the outlet flow goes up or down. The clamp on the stem and its scale show the position.
- The loop closes. With the valve opened wider, more liquid leaves than comes in, and the level falls back towards the setpoint. The sensor sees this, the error shrinks, the output backs off, and the cycle starts again. When the plant is quiet the loop makes only small corrections.
The numbers
Typical signals: 4 to 20 mA electrical, 0.2 to 1.0 bar (3 to 15 psi) pneumatic. The 4 mA “live zero” is on purpose: a reading of 0 mA means a broken wire, not a low level. Typical loop speeds differ widely: a flow loop reacts in seconds, a pressure loop in seconds to minutes, a level loop in minutes and a temperature loop in minutes to hours. Flow loops usually run with P and I only; D is used mostly on slow temperature loops.
Worked example. Assume a level transmitter set so that 4 mA is 0 percent and 20 mA is 100 percent of the range. The controller acts directly (a rising level raises the output, which opens the outlet valve). Its setpoint is 50 percent, its proportional gain is 2 (output change in percent for each percent of error), and its output with no error is 50 percent. The level has risen to 58 percent. The valve is assumed to open in step with the output.
| Quantity | Working | Result |
|---|
| Transmitter signal at 58 percent | 4 + 0.58 × 16 | 13.28 mA |
| Error | 58 − 50 | 8 percent |
| Proportional change | 2 × 8 | 16 percent |
| Controller output | 50 + 16 | 66 percent |
| Signal to the I/P converter | 4 + 0.66 × 16 | 14.56 mA |
| Air to the actuator | 0.2 + 0.66 × 0.8 | 0.728 bar |
| Integral action, integral time 2 min, error held 1 min | 2 × 8 × (1 ÷ 2) | another 8 percent, so 74 percent |
| Derivative action, derivative time 0.5 min, error rising 4 percent per min | 2 × 0.5 × 4 | an early 4 percent |
The valve goes from 50 to 66 percent open, a rise of about one third in the outflow. If the level had stayed at 58 percent, the integral action would have kept adding to the output until the level came back. P alone would have left a permanent error; that is what the I is for.
Assumed inputs, not data from a particular plant. This lesson is education, not a procedure: tuning a loop or putting it into manual changes how the plant behaves, and it is done by trained people under the site’s own rules. A loop is not a safety system; for that see the safety instrumented system lesson.
What the operator watches
- PV against setpoint. On a healthy loop the PV stays close to the setpoint and returns quickly after a disturbance.
- The controller output. It is the valve position the loop is asking for. An output stuck at 0 or 100 percent means the loop has run out of valve and can no longer control.
- Auto or manual. In manual the person sets the valve, and the loop does nothing until it is put back in automatic.
- Alarms. High and low level alarms and deviation alarms warn when the loop loses control.
Common problems
- Oscillation. If the gain is too high or the integral too fast, the loop overshoots and swings round the setpoint.
- Sluggish loop. Too little gain and a slow integral let a disturbance drag on for a long time.
- Integral windup. While the valve is already fully open, the integral term keeps growing, and the loop overshoots badly when it recovers. Good controllers have a limit for this.
- Sticking valve. Friction in the packing or a worn positioner makes the valve move in jumps, which causes small repeating swings.
- Wrong action. A controller set to act the wrong way pushes the PV further from the setpoint instead of back, and the loop runs away.
- Noisy sensor. Derivative action amplifies noise, so it is switched off or filtered on noisy signals.
Words you will meet
- Process variable (PV)
- The measured value the loop holds, such as the level.
- Setpoint (SP)
- The value the operator wants.
- Error
- The difference between the PV and the setpoint.
- Output (OP)
- What the controller sends to the valve, in percent.
- Disturbance
- Any change from outside that pushes the PV away, such as a new inflow.
- Gain
- How much output change the controller makes for each unit of error.
- Integral time
- How long the controller takes to repeat the proportional move: a short time acts faster.
- Derivative time
- How far ahead the controller looks at the rate of change.
- Direct and reverse acting
- Whether a rising PV raises or lowers the output.
- I/P converter
- A device that turns a current signal into air pressure.
- Positioner
- A device on the valve that checks the stem position and corrects it.
Check your understanding
Why does the signal start at 4 mA and not at 0 mA?
So that a broken wire can be told from a low reading. 0 mA can only mean a fault. It also leaves a little current to power the transmitter itself.
The level is 8 percent above the setpoint and stays there with P control only. Why does it not come back?
The proportional action needs an error to make any output change. The valve opening that balances the new inflow needs a different output than the starting one, so a steady error is left, called offset. Integral action adds up the error and keeps moving the output until the error is zero.
The same level controller is moved to a valve on the inflow line. Must it still be direct acting?
No. A rising level should now close the inlet valve, so the controller must be reverse acting: a rising PV lowers the output. The right action always depends on which way the valve works on the process.