Process Tools

PID Controller

Calc

PID Controller Theory

Introduction

The PID (Proportional-Integral-Derivative) controller is the most widely used feedback controller in process industries. It calculates an error value as the difference between a measured process variable and a desired setpoint, then applies a correction based on proportional, integral, and derivative terms.

PID Control Algorithm

The standard PID controller output is:

u(t) = Kp[e(t) + (1/Ti)∫e(τ)dτ + Td(de/dt)]

Or in terms of separate gains:

u(t) = Kpe + Ki∫e·dt + Kd(de/dt)

Proportional (P)

Produces output proportional to current error. Higher Kp means faster response but can cause oscillation. Cannot eliminate steady-state error alone.

Integral (I)

Accumulates past errors to eliminate steady-state offset. Too much integral action causes overshoot and oscillation. Ki = Kp/Ti

Derivative (D)

Predicts future error based on rate of change. Improves stability and reduces overshoot. Sensitive to noise. Kd = Kp×Td

FOPDT Process Model

Many processes can be approximated by a First Order Plus Dead Time (FOPDT) model:

G(s) = K × e-θs / (τs + 1)

  • K = Process gain (output change / input change)
  • τ = Time constant (63.2% of final value)
  • θ = Dead time (delay before response begins)

The ratio θ/τ is critical for controllability. Processes with θ/τ > 1 are difficult to control.

Tuning Methods

Ziegler-Nichols (Open-Loop)

Classic method based on step response. Aggressive tuning with ~25% overshoot.

ControllerKpTiTd
Pτ/(Kθ)--
PI0.9τ/(Kθ)3.33θ-
PID1.2τ/(Kθ)0.5θ

Cohen-Coon

Better for processes with larger dead time. Less aggressive than Z-N.

ControllerKpTiTd
PI(τ/Kθ)(0.9+θ/12τ)θ(30+3θ/τ)/(9+20θ/τ)-
PID(τ/Kθ)(4/3+θ/4τ)θ(32+6θ/τ)/(13+8θ/τ)4θ/(11+2θ/τ)

IMC (Internal Model Control)

Model-based tuning with adjustable closed-loop time constant λ (aggressiveness).

ControllerKpTiTd
PIτ/(K(λ+θ))τ-
PID(τ+θ/2)/(K(λ+θ))τ+θ/2τθ/(2τ+θ)

Recommended: λ = max(0.25τ, 0.2θ) for moderate response

Tyreus-Luyben

Conservative tuning for robust performance. Low overshoot.

ControllerKpTiTd
PI0.31τ/(Kθ)2.2τ-
PID0.45τ/(Kθ)2.2ττ/6.3

Performance Metrics

Rise Time:Time to go from 10% to 90% of final value
Settling Time:Time to stay within ±2% of final value
Overshoot:Peak value above setpoint as percentage
IAE:Integral of Absolute Error - overall performance measure

References

  • Seborg, D.E. "Process Dynamics and Control"
  • Åström, K.J. "PID Controllers: Theory, Design, and Tuning"
  • Marlin, T.E. "Process Control"