PID (Proportional-Integral-Derivative) control is the most widely used control algorithm in industrial automation. From maintaining the temperature in a chemical reactor to controlling the level in a water tank, PID controllers are found in virtually every process plant. Understanding PID tuning is a core skill for any automation engineer.
What Is PID Control?
A PID controller continuously calculates an error value as the difference between a desired setpoint (SP) and the measured process variable (PV). It applies a correction based on three terms:
Proportional (P): The correction is proportional to the current error. A larger error produces a larger correction. The proportional gain (Kp) determines how aggressively the controller responds. However, proportional control alone always leaves a steady-state error (offset).
Integral (I): The correction is proportional to the accumulated error over time. The integral term eliminates the steady-state offset that proportional control cannot remove. The integral time (Ti) determines how quickly the accumulated error is corrected.
Derivative (D): The correction is proportional to the rate of change of the error. The derivative term provides anticipatory action, slowing down the controller output as the process variable approaches the setpoint. The derivative time (Td) determines the strength of this anticipatory action.
The PID Equation
The standard PID equation in parallel form is:
Output = Kp x (Error + (1/Ti) x Integral of Error + Td x Derivative of Error)
Most PLC platforms implement PID in a function block with configurable parameters for gain, integral time, derivative time, and output limits.
Practical Tuning Methods
Manual tuning is the most common approach in the field:
- Start with proportional control only (Ti = maximum, Td = 0)
- Increase Kp until the system oscillates continuously
- Reduce Kp to approximately 50% of the oscillation value
- Gradually reduce Ti to eliminate steady-state offset
- Add a small amount of Td if the system responds too slowly
Ziegler-Nichols method provides a systematic starting point:
- Determine the ultimate gain (Ku) and oscillation period (Pu)
- Calculate initial PID parameters using standard tables
- Fine-tune from these starting values based on process response
Common PID Applications in Industry
- Temperature control: Furnaces, ovens, heat exchangers, and HVAC systems
- Level control: Tanks, silos, and vessels in water treatment and chemical processing
- Pressure control: Compressors, boilers, and pipeline systems
- Flow control: Pumps and control valves in process plants
- Speed control: Motors and drives where external disturbances affect speed
PID in Siemens TIA Portal
Siemens TIA Portal provides the PID_Compact function block for the S7-1200 and S7-1500. It includes an auto-tuning feature that can determine optimal PID parameters automatically, saving significant commissioning time.
Key features of PID_Compact:
- First-cycle auto-tune for initial parameter estimation
- Fine-tune mode for optimisation during normal operation
- Anti-windup to prevent integral saturation
- Manual/automatic switching with bumpless transfer
Learn PID Control at EDWartens UK
Our process control training at EDWartens UK includes hands-on PID tuning exercises using real process rigs with temperature, level, and flow control loops. Students learn both manual and automatic tuning techniques using Siemens PLC hardware.