Direct answer
A PID controller computes its output from the error between setpoint and process variable using three actions: proportional reacts to the present error, integral removes steady offset, and derivative reacts to the rate of change. Tuning means adjusting those three parameters until the loop responds quickly and stays stable.
Institutional content: Authomathika
Published:
Most closed loops in a plant run on a PID algorithm inside a PLC, a DCS or a standalone controller. The algorithm is simple, but a loop only performs well when the instrument, the final element and the parameters work together. This guide covers the algorithm and the field tuning routine, not the loop architectures themselves.
What do the proportional, integral and derivative actions do?
PID is a control algorithm that calculates the controller output from the error, which is the difference between setpoint and process variable. Each of the three actions covers a different part of that error.
| Action | What it responds to | Main effect | Risk when overdone |
|---|---|---|---|
| Proportional (P) | Present size of the error | Fast response, output moves in proportion to the error | Sustained oscillation, leftover offset when used alone |
| Integral (I) | Accumulated error over time | Eliminates steady offset | Overshoot, slow oscillation, windup |
| Derivative (D) | Rate of change of the error | Damps the response, anticipates trends | Amplifies measurement noise, jittery output |
Proportional action is set as gain or as proportional band, which is the inverse of gain. Integral action is set as integral time or as repeats per minute, and derivative action as derivative time. Different controllers use different forms and units, so always confirm which one your controller uses before copying values from another loop.
Many loops, such as flow and pressure, work well as PI only. Derivative action is most useful on slow processes with significant lag, like temperature, and only when the signal is clean.
How does the PID enter the closed loop?
The PID is the controller block in a closed loop: it reads the measurement from a transmitter, compares it with the setpoint and sends an output to a final element such as a control valve or a drive. The process then reacts, and the transmitter reads the new value.
The parameters you choose only make sense in the context of the whole chain. The transmitter range and damping, the valve characteristic and stroke time, and the process dead time and lag all shape the response. If you need a refresher on the structures around the controller, see open loop vs closed loop control and control loops: open, closed, cascade and split range. For the final element, see control valves: what they are, how they work and types.
Two process properties matter most for tuning:
- Process gain: how much the process variable moves for a given change in output.
- Dead time and time constant: how long the process takes to start reacting and how slowly it settles. Loops with long dead time need gentler tuning.
How do you prepare the loop before tuning?
Prepare the loop by confirming that every device in it works correctly, because no parameter set can compensate for a sticking valve or a wrong scaling. Tuning a loop with a hardware fault only hides the problem.
- Confirm the loop passed its loop check: wiring, signal range, scaling and alarms. The instrumentation loop check and commissioning checklist covers this step.
- Check the control action: direct or reverse, and the valve failure position.
- Verify the final element for stiction, backlash and travel limits with small steps in manual mode.
- Review transmitter range and filtering so noise does not reach the derivative term.
- Define the operating point and the acceptable limits for the process variable during tests.
- Record the existing parameters and the controller form before changing anything.
- Get approval from operations, since tests disturb the process.
Which tuning methods are used in the field?
The common field methods are the step response test, the closed loop oscillation test and trial and error, and the choice depends on how much disturbance the process can accept.
| Method | How it works | Best for | Caution |
|---|---|---|---|
| Open loop step test | Put the loop in manual, apply a small output step, record the response and derive gain, dead time and time constant | Slow, stable processes | Needs a steady process during the test |
| Closed loop oscillation test (Ziegler-Nichols type) | Raise gain with P only until sustained oscillation, then derive parameters from that gain and period | Fast, tolerant processes | Pushes the loop to the edge of stability, often too aggressive |
| Trial and error | Adjust one parameter at a time and watch the response | Small corrections to an existing loop | Slow and depends on operator experience |
| Software or autotune | Controller or tool runs a test and proposes values | Many loops, repeatable routines | Check the result and the test conditions |
Whatever the method, the starting values are only a first estimate. Refine them with setpoint changes and disturbance checks, and decide what you want: a fast response that accepts some overshoot, or a smooth response with no overshoot. Level loops in buffer tanks, for example, often favor smooth output over tight control.
For application specifics, see temperature and pressure control loops.
What symptoms show a loop is badly tuned?
A badly tuned loop shows oscillation, sluggish response, large overshoot or a noisy output. Before changing parameters, check whether the symptom comes from tuning or from hardware.
| Symptom | Probable cause | What to check |
|---|---|---|
| Steady oscillation around setpoint | Gain too high or integral too fast | Reduce gain, lengthen integral time |
| Slow return to setpoint | Gain too low or integral too slow | Increase gain moderately |
| Large overshoot after a setpoint change | Excess integral action or windup | Integral time, anti-windup, setpoint ramp |
| Jittery output | Derivative with a noisy signal | Filter, reduce or disable derivative |
| Slow limit cycle with small amplitude | Valve stiction or backlash | Valve test in manual |
| Output saturated at 0 or 100 percent | Undersized final element or wrong operating point | Valve sizing, process conditions |
A limit cycle that persists even after retuning almost always points to the final element, not to the PID.
How do you record the final tuning in the documentation?
Record the final tuning in the loop's controller data sheet or the plant's loop documentation, so the next technician can restore or audit it. Without a record, parameters are lost after a controller replacement or a program download.
Include at least:
- Loop tag, controller form and units used.
- Final gain or band, integral time and derivative time.
- Control action, output limits, setpoint limits and filters.
- Operating conditions during the test and the method used.
- Date, who tuned it and who approved it.
- Performance observed: response to a setpoint change and to a disturbance.
At Authomathika, tuning and loop documentation are part of the automation work, delivered together with commissioning according to each project's scope. Scope and budget are assessed case by case. If you want to discuss a plant, use the request a quote page.
