The Short Answer
A PID controller keeps a process variable, such as temperature or pressure, at its set point by continuously adjusting an output. It calculates the error between the set point and the measured value, then combines three actions: proportional reacts to the present error, integral removes error that persists over time, and derivative anticipates future error from how fast it is changing.
The Three Terms
- Proportional (P): the output changes in proportion to the error. More P gives a faster response but, on its own, always leaves an offset.
- Integral (I): adds up the error over time and keeps pushing until it is zero, removing the offset. Too much causes overshoot and oscillation.
- Derivative (D): reacts to the rate of change of the error, damping overshoot. It is sensitive to noise and is often turned off for fast, noisy loops such as flow.
Output = Kp × error + Ki × ∫error dt + Kd × d(error)/dt
PID vs On/Off Control
On/off control
- Output is fully on or fully off.
- Simple and inexpensive.
- The process cycles around the set point.
- Fine for heating tanks and simple alarms.
PID control
- Output varies smoothly.
- Holds the process close to set point.
- Minimizes overshoot and cycling.
- Needed for precise temperature, pressure and flow control.
Tuning a PID Loop
Tuning means choosing the P, I and D values that suit your process. Most modern controllers include autotuning, which deliberately disturbs the process, measures how it responds and calculates suitable settings. For manual tuning, a common approach is to start with P only, increase it until the loop just begins to oscillate, then back off and add integral action until the offset disappears.
Typical Outputs
- Relay or SSR drive: time-proportioned control of heaters.
- 4-20 mA or 0-10 V: control valves, dampers and variable speed drives.
- Modbus RS-485: set point and monitoring from a PLC or SCADA system.
Related Products
We supply panel-mount PID controllers with universal inputs, relay and analog outputs, and Modbus communication.
Frequently Asked Questions
What is the most common type of PID control?
PI control, with derivative set to zero, is the most common in industry because it is stable and easy to tune.
Why does my temperature overshoot the set point?
Too much integral or proportional action, or a controller that has not been tuned for the process. Running autotune usually helps.
What is a set point?
The target value you want the process to hold, such as 150 °F or 50 psi.