PID Transfer Function and Block Diagram

Quick Answer

The PID controller transfer function is C(s) = Kp + Ki/s + Kd·s = (Kd·s² + Kp·s + Ki)/s, with one pole at the origin (integrator) and two zeros determined by the PID gains. The PI controller transfer function is C(s) = Kp + Ki/s = (Kp·s + Ki)/s, with one zero at s = −Ki/Kp. The PD controller is C(s) = Kp + Kd·s. In a block diagram, the PID receives the error E(s) and outputs U(s) = C(s)·E(s), which drives the plant G(s). The closed-loop transfer function is T(s) = C(s)G(s)/[1 + C(s)G(s)].

PID Transfer Function: Mathematical Form

The PID controller transfer function in the Laplace domain relates the control output U(s) to the error input E(s). Parallel (ideal) form: C(s) = Kp + Ki/s + Kd·s. Combining over a common denominator: C(s) = (Kd·s² + Kp·s + Ki)/s. This transfer function has one pole at s = 0 (the integrator) and two zeros at s = [−Kp ± √(Kp² − 4KdKi)]/(2Kd). The ISA standard (ideal) form is C(s) = Kp(1 + 1/(Ti·s) + Td·s), where Ti = Kp/Ki is the integral time and Td = Kd/Kp is the derivative time. Many older controllers use the series (interacting) form Kp(1 + 1/(Ti·s))(1 + Td·s) = Kp(Ti·Td·s² + (Ti + Td)·s + 1)/(Ti·s). The parallel and ISA forms have different gain parameters but produce equivalent controller behavior when properly converted. The filtered derivative form adds a low-pass filter: C(s) = Kp + Ki/s + Kd·s/(1 + s·Td/N), preventing infinite high-frequency gain.

Key Formulas

PID Controller Block Diagram

The standard PID block diagram shows three parallel paths from the error E(s) to the output U(s). The proportional path: E(s) → Kp → summing junction. The integral path: E(s) → Ki/s → summing junction. The derivative path: E(s) → Kd·s → summing junction. The summing junction adds all three contributions: U(s) = Kp·E(s) + (Ki/s)·E(s) + Kd·s·E(s) = C(s)·E(s). In the complete control loop: R(s) → summing junction [R−Y] → C(s) → G(s) → Y(s), with unity feedback from Y back to the summing junction. The forward-path transfer function is C(s)·G(s), the loop transfer function is L(s) = C(s)·G(s), and the closed-loop transfer function is T(s) = C(s)G(s)/[1+C(s)G(s)]. Alternative block diagrams show the PID with separate setpoint weighting on P and D terms for two-degree-of-freedom control.

Transfer Function for PI Controller

The PI controller (proportional-integral, Kd = 0) has transfer function C(s) = Kp + Ki/s = (Kp·s + Ki)/s. This provides one integrator pole at s = 0 and one zero at s = −Ki/Kp = −1/Ti. The integrator ensures zero steady-state error for step inputs by providing infinite DC gain. The zero's location determines the controller's speed: placing the zero near the plant's dominant pole provides effective cancellation, speeding up the closed-loop response. In the ISA form: C(s) = Kp(1 + 1/(Ti·s)) = Kp(Ti·s + 1)/(Ti·s). The Bode plot shows: high gain falling at −20 dB/dec at low frequencies (integrator), flattening to gain Kp above the zero frequency ω = 1/Ti. Phase starts at −90° and rises toward 0° at high frequencies. PI control is the most common choice in industrial loops because it balances simplicity, zero offset, and adequate speed.

PID Zeros and Their Effect on Performance

The PID transfer function (Kd·s² + Kp·s + Ki)/s has two zeros that shape the closed-loop response. The zero locations are s = [−Kp ± √(Kp²−4KdKi)]/(2Kd). For typical PID gains, these zeros are real and negative (left half-plane), adding phase lead to the loop transfer function — improving stability margins and reducing overshoot. In root locus analysis, the PID zeros attract closed-loop poles toward the left half-plane, fundamentally reshaping the locus compared to proportional-only control. The zero placement relative to the plant poles determines the controller's effectiveness: zeros near plant poles provide approximate pole-zero cancellation, while zeros placed strategically create desired closed-loop pole configurations. PID tuning methods (Ziegler-Nichols, Lambda, pole placement) implicitly position these zeros for optimal performance.

PID Transfer Function in Control Design Tools

MATLAB: pid_tf = tf([Kd Kp Ki],[1 0]) creates the PID transfer function. The pidtune() function automatically selects Kp, Ki, Kd for a given plant: [C,info] = pidtune(G,'PID'). The pidTuner app provides interactive tuning with real-time Bode and step response updates. Simulink PID Controller block provides both parallel and ISA forms with anti-windup and output limits. Python: control.tf([Kd,Kp,Ki],[1,0]) or use the simple-pid package for numerical simulation. The Bode plot of the PID transfer function reveals: the integral's low-frequency gain boost, the proportional's mid-frequency flat region, and the derivative's high-frequency phase lead. Gain and phase margins of the loop transfer function L(s) = C(s)G(s) determine closed-loop stability.

Frequently Asked Questions

C(s) = Kp + Ki/s + Kd·s = (Kd·s² + Kp·s + Ki)/s. It has one pole at s = 0 (integrator for zero steady-state error) and two zeros (positions depend on gain values). The ISA form is C(s) = Kp(1 + 1/(Ti·s) + Td·s), where Ti = Kp/Ki and Td = Kd/Kp.

Try the LapCalc calculator

Exact Laplace transforms with every step, free, plus free calculators for partial fractions, ODEs, circuits, control and Fourier series. Premium adds the inverse Laplace calculator and AI explanations.

Open LapCalc

Related Topics