PracticeVideosBlogFlashcards

18.2 PID Controller Tuning and Loop Stability

Key Takeaways

  • A linear closed-loop control system is stable if and only if all roots of its characteristic equation 1 + G_OL(s) = 0 reside strictly in the open left half of the complex Laplace plane (Re(s) < 0).

  • The Routh-Hurwitz criterion determines closed-loop stability algebraically without factoring polynomials: all coefficients in the characteristic equation must be positive, and there must be zero sign changes in the first column of the Routh array.

  • Under frequency response analysis, the Bode stability criterion requires the open-loop amplitude ratio to be strictly less than unity at the phase crossover frequency omega_co (where phase angle is -180 deg); robust chemical process loops require Gain Margin GM >= 1.7 to 2.0 and Phase Margin PM >= 30 deg to 45 deg.

  • Ziegler-Nichols closed-loop tuning determines the ultimate gain K_u and ultimate period P_u at sustained marginal oscillation: classic settings (PID: K_c = 0.60 * K_u, tau_I = P_u / 2, tau_D = P_u / 8) produce an aggressive quarter-amplitude decay ratio (DR = 0.25), whereas Tyreus-Luyben rules provide more conservative damping for chemical plants.

  • For dead-time dominated processes (theta / tau_p > 0.5), Cohen-Coon and Internal Model Control (IMC) tuning correlations significantly outperform Ziegler-Nichols rules by incorporating the controllability ratio to avoid underdamped oscillatory instability.

Last updated: September 2026

18.2 PID Controller Tuning and Loop Stability

In chemical manufacturing, improper controller tuning leads to catastrophic consequences: unstable exothermic reactors can experience thermal runaway, distillation columns can flood or dump trays, and uncoordinated pressure loops can lift relief valves. Achieving robust stability requires an analytical understanding of how controller parameters (Kc,τI,τDK_c, \tau_I, \tau_D) interact with process inertia and dead time.

On the NCEES PE Chemical Exam, stability analysis and tuning questions require finding the ultimate gain (KuK_u) and period (PuP_u), constructing Routh arrays, evaluating Gain Margin (GMGM) and Phase Margin (PMPM) on Bode plots, and applying Ziegler-Nichols, Cohen-Coon, and Internal Model Control (IMC) tuning rules.


1. Closed-Loop Stability & Pole Placement

The Characteristic Equation

The stability of any linear feedback control loop is dictated by the denominator of its closed-loop transfer function. Regardless of whether a setpoint change or load disturbance occurs, stability depends entirely on the roots of the characteristic equation:

1+GOL(s)=0  ⟺  1+Gc(s)Gv(s)Gp(s)Gm(s)=01 + G_{OL}(s) = 0 \iff 1 + G_c(s) G_v(s) G_p(s) G_m(s) = 0

Where GOL(s)G_{OL}(s) is the total open-loop transfer function. The roots of this equation are the closed-loop poles (s=pi=σi+jωis = p_i = \sigma_i + j \omega_i):

  • Stable System: All poles reside strictly in the open Left-Half Plane (LHP) of the complex ss-plane: Re(pi)=σi<0\text{Re}(p_i) = \sigma_i < 0 for all ii. In the time domain, transient terms decay exponentially (eσit→0e^{\sigma_i t} \to 0).
  • Marginally Stable System: One or more non-repeated conjugate poles lie exactly on the imaginary axis (σi=0,ωi≠0\sigma_i = 0, \omega_i \neq 0). The process exhibits sustained, constant-amplitude oscillations at frequency ωco\omega_{co}.
  • Unstable System: Any pole lies in the Right-Half Plane (RHP): Re(pi)=σi>0\text{Re}(p_i) = \sigma_i > 0. The transient response grows exponentially (eσit→∞e^{\sigma_i t} \to \infty), resulting in physical saturation or equipment failure.
                    IMAGINARY AXIS (j*omega)
                               ^
      UNSTABLE REGION          |          STABLE REGION
     (Roots Grow: e^+sigma*t)  |    (Roots Decay: e^-sigma*t)
                               |          X  p1 = -sigma + j*omega
                               |
      -------------------------+-------------------------> REAL AXIS (sigma)
                               |
                               |          X  p2 = -sigma - j*omega
                               |
                 MARGINALLY STABLE (sigma = 0)
                 Continuous Cycling at omega_co

Dynamic Damping and Decay Ratio

For second-order closed-loop poles (s2+2ζωns+ωn2=0s^2 + 2 \zeta \omega_n s + \omega_n^2 = 0 with 0<ζ<10 < \zeta < 1):

  • Damping Ratio (ζ\zeta): Controls oscillation damping. Low ζ\zeta yields sharp oscillations.
  • Decay Ratio (DRDR): The ratio of the amplitude of the second peak to that of the first peak: DR=exp⁡(−2πζ1−ζ2)=(OS)2DR = \exp\left( -\frac{2 \pi \zeta}{\sqrt{1 - \zeta^2}} \right) = (OS)^2 The classic quarter-amplitude decay ratio (DR=1/4=0.25DR = 1/4 = 0.25) corresponds to ζ≈0.36\zeta \approx 0.36. While historically popular for rapid recovery, it is considered too oscillatory for modern, tightly integrated chemical processes where ζ≈0.5−0.7\zeta \approx 0.5 - 0.7 (DR≤0.05DR \le 0.05) is preferred.

2. Algebraic Stability: The Routh-Hurwitz Criterion

The Routh-Hurwitz criterion tests whether any roots of a polynomial characteristic equation have positive real parts without requiring numerical root finding.

ansn+an−1sn−1+an−2sn−2+⋯+a1s+a0=0a_n s^n + a_{n-1} s^{n-1} + a_{n-2} s^{n-2} + \dots + a_1 s + a_0 = 0

Necessary Condition (Stodola's Rule)

All polynomial coefficients an,an−1,…,a0a_n, a_{n-1}, \dots, a_0 must be strictly non-zero and share the same mathematical sign (conventionally all positive, ai>0a_i > 0). If any coefficient is zero or negative, the system is automatically unstable.

Constructing the Routh Array

Arrange the polynomial coefficients into a Routh array:

Polynomial RowColumn 1Column 2Column 3
s^nana_nan−2a_{n-2}an−4a_{n-4}
s^(n-1)an−1a_{n-1}an−3a_{n-3}an−5a_{n-5}
s^(n-2)b1b_1b2b_2b3b_3
s^(n-3)c1c_1c2c_2c3c_3
s^0a0a_000

Where the array elements are calculated via cross-multiplication:

b1=an−1an−2−anan−3an−1,b2=an−1an−4−anan−5an−1b_1 = \frac{a_{n-1} a_{n-2} - a_n a_{n-3}}{a_{n-1}}, \quad b_2 = \frac{a_{n-1} a_{n-4} - a_n a_{n-5}}{a_{n-1}} c1=b1an−3−an−1b2b1,c2=b1an−5−an−1b3b1c_1 = \frac{b_1 a_{n-3} - a_{n-1} b_2}{b_1}, \quad c_2 = \frac{b_1 a_{n-5} - a_{n-1} b_3}{b_1}

Stability Theorem

The system is stable if and only if all elements in the first column of the Routh array are strictly positive (an,an−1,b1,c1,⋯>0a_n, a_{n-1}, b_1, c_1, \dots > 0). The number of sign changes in the first column equals the number of unstable roots with positive real parts (in the RHP).

To find the ultimate controller gain KuK_u, set the row element containing KcK_c to zero (b1=0b_1 = 0 or c1=0c_1 = 0). The auxiliary equation formed by the preceding row yields the sustained oscillation frequency ωco\omega_{co}.

Tip

Handling Dead Time with Padé Approximations:
Because dead time e−θse^{-\theta s} is transcendental, Routh-Hurwitz cannot be applied directly. To use Routh-Hurwitz, approximate dead time using a first-order Padé approximation: e−θs≈1−θ2s1+θ2sor first-order Taylor seriese−θs≈1−θse^{-\theta s} \approx \frac{1 - \frac{\theta}{2} s}{1 + \frac{\theta}{2} s} \quad \text{or first-order Taylor series} \quad e^{-\theta s} \approx 1 - \theta s


3. Frequency Response & Bode Stability Criteria

Frequency response evaluates loop behavior when subjected to sinusoidal inputs by substituting s=jωs = j\omega into the open-loop transfer function: GOL(jω)=∣GOL(jω)∣ejϕ(ω)G_{OL}(j\omega) = |G_{OL}(j\omega)| e^{j \phi(\omega)}.

Amplitude Ratio (AR):AROL(ω)=∣GOL(jω)∣=∣Gc∣⋅∣Gv∣⋅∣Gp∣⋅∣Gm∣\text{Amplitude Ratio (AR):} \quad AR_{OL}(\omega) = |G_{OL}(j\omega)| = |G_c| \cdot |G_v| \cdot |G_p| \cdot |G_m| Total Phase Angle (ϕ):ϕOL(ω)=∠GOL(jω)=∠Gc+∠Gv+∠Gp+∠Gm\text{Total Phase Angle (}\phi\text{):} \quad \phi_{OL}(\omega) = \angle G_{OL}(j\omega) = \angle G_c + \angle G_v + \angle G_p + \angle G_m
   BODE PLOT: GAIN AND PHASE MARGIN DEFINITIONS
   Log AR
     ^
 1.0 +==================\============================ (0 dB Line)
     |                   \     Gain Crossover (omega_g: AR = 1)
     |                    \ 
     |                     *-----------------+ 
     |                      \                | Gain Margin (GM = 1 / AR_co)
     |                       \               v
     +------------------------*----------------------> Frequency (omega)
                               \ Phase Crossover (omega_co: phi = -180°)
   Phase (deg)                  \ 
     |                           \ 
-135°|                            \    +------+ Phase Margin
     |                             \   |      | (PM = 180° + phi_g)
-180°+------------------------------*--+------v------
     |                              |
     v                              v omega_co

Characteristic Frequencies

  1. Phase Crossover Frequency (ωco\omega_{co}): The frequency where total open-loop phase lag reaches −180∘-180^\circ (−π radians-\pi\text{ radians}): ϕOL(ωco)=∠GOL(jωco)=−180∘\phi_{OL}(\omega_{co}) = \angle G_{OL}(j\omega_{co}) = -180^\circ
  2. Gain Crossover Frequency (ωg\omega_g): The frequency where open-loop amplitude ratio is exactly unity (0 dB0\text{ dB}): AROL(ωg)=∣GOL(jωg)∣=1.0AR_{OL}(\omega_g) = |G_{OL}(j\omega_g)| = 1.0

The Bode Stability Criterion

A closed-loop system is stable if and only if the open-loop amplitude ratio is strictly less than 1.0 at the phase crossover frequency:

AROL(ωco)<1.0AR_{OL}(\omega_{co}) < 1.0

If AROL(ωco)=1.0AR_{OL}(\omega_{co}) = 1.0, the loop is marginally stable and oscillates continuously. If AROL(ωco)>1.0AR_{OL}(\omega_{co}) > 1.0, signals circulating around the loop grow with each cycle, causing severe instability.

Robustness Metrics: Gain Margin and Phase Margin

To safeguard against modeling errors and plant aging, chemical engineering loops are tuned to maintain strict stability margins:

Gain Margin (GM):GM=1∣GOL(jωco)∣≥1.7 to 2.0\text{Gain Margin (GM):} \quad GM = \frac{1}{|G_{OL}(j\omega_{co})|} \ge 1.7 \text{ to } 2.0 GMdB=20log⁡10(GM)=−20log⁡10∣GOL(jωco)∣≥4.6 to 6.0 dBGM_{\text{dB}} = 20 \log_{10}(GM) = -20 \log_{10} |G_{OL}(j\omega_{co})| \ge 4.6 \text{ to } 6.0\text{ dB} Phase Margin (PM):PM=180∘+ϕOL(ωg)≥30∘ to 45∘\text{Phase Margin (PM):} \quad PM = 180^\circ + \phi_{OL}(\omega_g) \ge 30^\circ \text{ to } 45^\circ

Phase Angles for Elementary Dynamic Elements

  • Dead Time (e−θse^{-\theta s}): AR=1.0AR = 1.0, ϕ=−θω radians=−180∘πθω\phi = -\theta \omega\text{ radians} = -\frac{180^\circ}{\pi} \theta \omega. Introduces unbounded phase lag without gain attenuation, making dead time the primary limiter of loop performance!
  • First-Order Lag (1/(τs+1)1/(\tau s + 1)): AR=1/1+ω2τ2AR = 1/\sqrt{1 + \omega^2 \tau^2}, ϕ=−arctan⁡(ωτ)\phi = -\arctan(\omega \tau).
  • Pure Integrator (1/s1/s): AR=1/ωAR = 1/\omega, ϕ=−90∘\phi = -90^\circ.
  • Ideal Derivative (ss): AR=ωAR = \omega, ϕ=+90∘\phi = +90^\circ.

4. Empirical Controller Tuning Methodologies

1. Ziegler-Nichols Closed-Loop (Ultimate Gain) Method

The Ziegler-Nichols (Z-N) closed-loop technique (also known as the continuous cycling method) is performed with the controller installed in automatic mode:

  1. Deactivate integral action (set τI→∞\tau_I \to \infty, or reset rate =0= 0) and derivative action (set τD=0\tau_D = 0).
  2. Introduce a small setpoint disturbance.
  3. Incrementally increase controller gain KcK_c until the process variable exhibits sustained, constant-amplitude oscillations.
  4. Record this critical gain as the Ultimate Gain (KuK_u) and measure the period of oscillation as the Ultimate Period (PuP_u): Pu=2πωcoP_u = \frac{2 \pi}{\omega_{co}}
Controller ModeController Gain KcK_cIntegral Time τI\tau_IDerivative Time τD\tau_D
P0.50 Ku0.50 \, K_u——
PI0.45 Ku0.45 \, K_uPu/1.20P_u / 1.20—
PID0.60 Ku0.60 \, K_uPu/2.00P_u / 2.00Pu/8.00P_u / 8.00

2. Tyreus-Luyben Tuning (Conservative Chemical Process Rules)

Ziegler-Nichols settings yield a quarter-amplitude decay ratio (DR=0.25DR = 0.25), which is often too aggressive for chemical reactors and distillation columns. The Tyreus-Luyben rules provide a more conservative, robust response:

  • PI Control: Kc=0.31 KuK_c = 0.31 \, K_u, τI=2.20 Pu\tau_I = 2.20 \, P_u.
  • PID Control: Kc=0.31 KuK_c = 0.31 \, K_u, τI=2.20 Pu\tau_I = 2.20 \, P_u, τD=Pu/6.30\tau_D = P_u / 6.30.

3. Open-Loop Step Testing: Ziegler-Nichols vs. Cohen-Coon

When closed-loop cycling is forbidden for safety reasons, the loop is decoupled to manual mode, and a step change in valve output Δu\Delta u is introduced to obtain the process reaction curve (Kp,τp,θK_p, \tau_p, \theta):

Controllability Ratio:χ=θτp\text{Controllability Ratio:} \quad \chi = \frac{\theta}{\tau_p}
  • If χ<0.20\chi < 0.20: Easy to control; standard Z-N open-loop rules work well.
  • If 0.20≤χ≤0.500.20 \le \chi \le 0.50: Moderate difficulty.
  • If χ>0.50\chi > 0.50: Dead-time dominated; classic Z-N tuning produces severe instability. Cohen-Coon or IMC rules must be applied.
Tuning MethodController ModeController Gain KcK_cIntegral Time τI\tau_IDerivative Time τD\tau_D
Z-N Open-LoopP1Kp(τpθ)\frac{1}{K_p} \left( \frac{\tau_p}{\theta} \right)——
PI0.90Kp(τpθ)\frac{0.90}{K_p} \left( \frac{\tau_p}{\theta} \right)3.33 θ3.33 \, \theta—
PID1.20Kp(τpθ)\frac{1.20}{K_p} \left( \frac{\tau_p}{\theta} \right)2.00 θ2.00 \, \theta0.50 θ0.50 \, \theta
Cohen-CoonP1Kp(τpθ)[1+θ3τp]\frac{1}{K_p} \left( \frac{\tau_p}{\theta} \right) \left[ 1 + \frac{\theta}{3 \tau_p} \right]——
PI1Kp(τpθ)[0.90+θ12τp]\frac{1}{K_p} \left( \frac{\tau_p}{\theta} \right) \left[ 0.90 + \frac{\theta}{12 \tau_p} \right]θ[30+3(θ/τp)9+20(θ/τp)]\theta \left[ \frac{30 + 3(\theta/\tau_p)}{9 + 20(\theta/\tau_p)} \right]—
PID1Kp(τpθ)[16τp+3θ12τp]\frac{1}{K_p} \left( \frac{\tau_p}{\theta} \right) \left[ \frac{16 \tau_p + 3 \theta}{12 \tau_p} \right]θ[32+6(θ/τp)13+8(θ/τp)]\theta \left[ \frac{32 + 6(\theta/\tau_p)}{13 + 8(\theta/\tau_p)} \right]θ[411+2(θ/τp)]\theta \left[ \frac{4}{11 + 2(\theta/\tau_p)} \right]

4. Internal Model Control (IMC) Tuning

Internal Model Control parameterizes the controller in terms of the desired closed-loop time constant τc\tau_c (a tuning knob where smaller τc\tau_c gives faster response, while larger τc\tau_c increases robustness):

Kc=1Kp(τpτc+θ),τI=τpK_c = \frac{1}{K_p} \left( \frac{\tau_p}{\tau_c + \theta} \right), \quad \tau_I = \tau_p

Typically, set τc=θ\tau_c = \theta for moderate performance, or τc=3θ\tau_c = 3 \theta for high robustness. IMC produces smooth, monotonic setpoint tracking with zero overshoot.


5. Summary Comparison Table: PID Tuning Strategies

MethodPrimary Test / InputBasis & PhilosophyProsCons / Traps
Z-N Closed-LoopKu,PuK_u, P_u from continuous cycling.Marginally stable loop (AR=1,ϕ=−180∘AR=1, \phi=-180^\circ).Direct experimental measurement; no transfer function required.Pushes plant to the brink of instability; quarter-decay is too oscillatory.
Tyreus-LuybenKu,PuK_u, P_u from continuous cycling.Damped chemical process response.Prevents valve wear; minimal overshoot; conservative.Slower disturbance settling times.
Z-N Open-LoopKp,τp,θK_p, \tau_p, \theta from manual step test.Reaction curve tangent slope (S=Kp/τpS = K_p / \tau_p).Safe manual step test; simple calculation.Fails completely when dead time is large (θ/τp>0.5\theta / \tau_p > 0.5).
Cohen-CoonKp,τp,θK_p, \tau_p, \theta from manual step test.Quarter-decay with dead-time ratio compensation.Excellent for moderate to high dead-time systems.Formulae are complex; can still yield high overshoot.
IMC / Direct SynthesisKp,τp,θK_p, \tau_p, \theta and user choice of τc\tau_c.Process model inversion with low-pass filter.Robust; non-oscillatory; intuitive single tuning knob (τc\tau_c).Slow load disturbance rejection on lag-dominated processes if τc\tau_c is too large.

6. Comprehensive Worked Numerical Example

Problem Statement

A chemical reactor temperature control loop consists of three first-order non-interacting thermal capacitances in series, governed by the following open-loop transfer function (Gv=1.0,Gm=1.0G_v = 1.0, G_m = 1.0):

GOL(s)=2.0 Kc(s+1)(2s+1)(4s+1)G_{OL}(s) = \frac{2.0 \, K_c}{(s + 1)(2s + 1)(4s + 1)}
  1. Routh-Hurwitz Stability: Formulate the closed-loop characteristic polynomial, construct the Routh array, and determine the range of controller gain KcK_c for closed-loop stability.
  2. Ultimate Parameters: Evaluate the ultimate gain KuK_u, phase crossover frequency ωco\omega_{co}, and ultimate period PuP_u.
  3. Bode Verification: Verify ωco\omega_{co} and KuK_u using frequency response principles.
  4. PID Tuning Calculations: Calculate the controller settings (Kc,τI,τDK_c, \tau_I, \tau_D) using classic Ziegler-Nichols closed-loop rules, and compare them with Tyreus-Luyben settings.

Step 1: Characteristic Polynomial & Routh Array

The closed-loop characteristic equation is 1+GOL(s)=01 + G_{OL}(s) = 0:

1+2.0 Kc(s+1)(2s+1)(4s+1)=01 + \frac{2.0 \, K_c}{(s + 1)(2s + 1)(4s + 1)} = 0 (s+1)(2s+1)(4s+1)+2.0 Kc=0(s + 1)(2s + 1)(4s + 1) + 2.0 \, K_c = 0

Expand the product of terms:

(s+1)(2s+1)=2s2+3s+1(s + 1)(2s + 1) = 2s^2 + 3s + 1 (2s2+3s+1)(4s+1)=8s3+2s2+12s2+3s+4s+1=8s3+14s2+7s+1(2s^2 + 3s + 1)(4s + 1) = 8s^3 + 2s^2 + 12s^2 + 3s + 4s + 1 = 8s^3 + 14s^2 + 7s + 1

Adding the controller gain yields the characteristic polynomial:

8s3+14s2+7s+(1+2Kc)=08s^3 + 14s^2 + 7s + (1 + 2 K_c) = 0

Construct the Routh array:

Polynomial RowElement 1Element 2
s^387
s^2141+2Kc1 + 2 K_c
s^1b1b_10
s^01+2Kc1 + 2 K_c0

Compute b1b_1:

b1=(14)(7)−(8)(1+2Kc)14=98−8−16Kc14=90−16Kc14b_1 = \frac{(14)(7) - (8)(1 + 2 K_c)}{14} = \frac{98 - 8 - 16 K_c}{14} = \frac{90 - 16 K_c}{14}

For stability, all elements in the first column must be strictly positive:

  1. 8>08 > 0 and 14>014 > 0 (satisfied)
  2. b1>0  ⟹  90−16Kc>0  ⟹  16Kc<90  ⟹  Kc<5.625b_1 > 0 \implies 90 - 16 K_c > 0 \implies 16 K_c < 90 \implies K_c < 5.625
  3. 1+2Kc>0  ⟹  Kc>−0.5001 + 2 K_c > 0 \implies K_c > -0.500

Thus, the range of controller gain for closed-loop stability is:

−0.500<Kc<5.625\mathbf{-0.500 < K_c < 5.625}

Step 2: Ultimate Gain and Period

The upper stability boundary defines the Ultimate Gain:

Ku=5.625K_u = \mathbf{5.625}

At Kc=Ku=5.625K_c = K_u = 5.625, the s1s^1 row vanishes (b1=0b_1 = 0). Form the auxiliary equation from the s2s^2 row:

14s2+(1+2Ku)=0  ⟹  14s2+(1+2(5.625))=014 s^2 + (1 + 2 K_u) = 0 \implies 14 s^2 + (1 + 2(5.625)) = 0 14s2+12.25=0  ⟹  s2=−12.2514=−0.87514 s^2 + 12.25 = 0 \implies s^2 = -\frac{12.25}{14} = -0.875 s=±j0.875=±j 0.93541 rad/mins = \pm j \sqrt{0.875} = \pm j \, 0.93541 \text{ rad/min}

The phase crossover frequency is:

ωco=0.9354 rad/min\omega_{co} = \mathbf{0.9354 \text{ rad/min}}

The ultimate period of oscillation is:

Pu=2πωco=2π0.93541=6.717 minP_u = \frac{2 \pi}{\omega_{co}} = \frac{2 \pi}{0.93541} = \mathbf{6.717 \text{ min}}

Step 3: Frequency Response (Bode) Verification

At phase crossover, the sum of individual phase angles must equal −180∘-180^\circ:

ϕ(ω)=−arctan⁡(ω)−arctan⁡(2ω)−arctan⁡(4ω)=−180∘\phi(\omega) = -\arctan(\omega) - \arctan(2\omega) - \arctan(4\omega) = -180^\circ

Substitute ω=0.93541 rad/min\omega = 0.93541\text{ rad/min}:

  • −arctan⁡(0.93541)=−43.09∘-\arctan(0.93541) = -43.09^\circ
  • −arctan⁡(2×0.93541)=−arctan⁡(1.8708)=−61.88∘-\arctan(2 \times 0.93541) = -\arctan(1.8708) = -61.88^\circ
  • −arctan⁡(4×0.93541)=−arctan⁡(3.7416)=−75.03∘-\arctan(4 \times 0.93541) = -\arctan(3.7416) = -75.03^\circ
  • ∑ϕ=−43.09∘−61.88∘−75.03∘=−180.00∘\sum \phi = -43.09^\circ - 61.88^\circ - 75.03^\circ = -180.00^\circ (Verified!)

Compute the amplitude ratio of the process at ωco\omega_{co}:

∣Gp(jωco)∣=2.01+ω21+4ω21+16ω2|G_p(j\omega_{co})| = \frac{2.0}{\sqrt{1 + \omega^2} \sqrt{1 + 4\omega^2} \sqrt{1 + 16\omega^2}} 1+ω2=1+0.875=1.875  ⟹  1.875=1.36931 + \omega^2 = 1 + 0.875 = 1.875 \implies \sqrt{1.875} = 1.3693 1+4ω2=1+3.500=4.500  ⟹  4.500=2.12131 + 4\omega^2 = 1 + 3.500 = 4.500 \implies \sqrt{4.500} = 2.1213 1+16ω2=1+14.00=15.00  ⟹  15.00=3.87301 + 16\omega^2 = 1 + 14.00 = 15.00 \implies \sqrt{15.00} = 3.8730 ∣Gp(jωco)∣=2.0(1.3693)(2.1213)(3.8730)=2.011.250=0.17778|G_p(j\omega_{co})| = \frac{2.0}{(1.3693)(2.1213)(3.8730)} = \frac{2.0}{11.250} = 0.17778

At marginal stability, ∣GOL∣=Ku∣Gp∣=1.0|G_{OL}| = K_u |G_p| = 1.0:

Ku=1∣Gp(jωco)∣=10.17778=5.625(Exact Match!)K_u = \frac{1}{|G_p(j\omega_{co})|} = \frac{1}{0.17778} = \mathbf{5.625} \quad (\text{Exact Match!})

Step 4: PID Controller Settings Comparison

  • Classic Ziegler-Nichols Closed-Loop PID Settings:

    Kc=0.60 Ku=0.60×5.625=3.375K_c = 0.60 \, K_u = 0.60 \times 5.625 = \mathbf{3.375} τI=Pu2.0=6.717 min2.0=3.359 min\tau_I = \frac{P_u}{2.0} = \frac{6.717\text{ min}}{2.0} = \mathbf{3.359\text{ min}} τD=Pu8.0=6.717 min8.0=0.840 min\tau_D = \frac{P_u}{8.0} = \frac{6.717\text{ min}}{8.0} = \mathbf{0.840\text{ min}}
  • Tyreus-Luyben Chemical Process Settings:

    Kc=0.31 Ku=0.31×5.625=1.744K_c = 0.31 \, K_u = 0.31 \times 5.625 = \mathbf{1.744} τI=2.20 Pu=2.20×6.717 min=14.777 min\tau_I = 2.20 \, P_u = 2.20 \times 6.717\text{ min} = \mathbf{14.777\text{ min}} τD=Pu6.30=6.717 min6.30=1.066 min\tau_D = \frac{P_u}{6.30} = \frac{6.717\text{ min}}{6.30} = \mathbf{1.066\text{ min}}

(Notice that Tyreus-Luyben slashes the controller gain by nearly 50% and increases integral time by over 400%, suppressing oscillations and providing superior gain and phase margins).


7. Critical PE Exam Traps & Pitfalls

Warning

Trap 1: Confusing Ultimate Gain (KuK_u) with Process Gain (KpK_p)
Process gain KpK_p is an inherent physical parameter of the equipment (Δyss/Δu\Delta y_{ss} / \Delta u). Ultimate gain KuK_u is the controller gain setting that causes the closed loop to enter sustained, undamped oscillations at ωco\omega_{co}. Never substitute KpK_p into the Ziegler-Nichols closed-loop tuning formulas in place of KuK_u.

Warning

Trap 2: Mixing Radians and Degrees in Dead-Time Phase Lag
The phase contribution of dead time is ϕdead=−θω\phi_{dead} = -\theta \omega. This formula yields radians! When summing with arc-tangent terms in degrees, you must convert radians to degrees: ϕdead=−θω×(180∘/π)\phi_{dead} = -\theta \omega \times (180^\circ / \pi). Forgetting this conversion leads to gross errors in calculating ωco\omega_{co} and stability margins.

Warning

Trap 3: Reset Rate vs. Integral Time Constant Units
Exam questions often quote integral action as either integral time τI\tau_I (minutes per repeat) or reset rate II (repeats per minute), where I=1/τII = 1 / \tau_I. Entering II where τI\tau_I is expected in tuning formulas produces an inverted, destabilizing integral action.

Warning

Trap 4: Miscalculating Phase Margin Sign
Phase margin is defined as PM=180∘+ϕOL(ωg)PM = 180^\circ + \phi_{OL}(\omega_g), where ϕOL(ωg)\phi_{OL}(\omega_g) is inherently negative (e.g., −145∘-145^\circ). Therefore, PM=180∘+(−145∘)=+35∘PM = 180^\circ + (-145^\circ) = +35^\circ. A positive phase margin signifies stability; a negative phase margin indicates an unstable loop.

Test Your Knowledge

A third-order chemical reactor level system has the open-loop transfer function G_OL(s) = 4.0 * K_c / [(s + 1)(s + 2)(s + 3)]. Using the Routh-Hurwitz criterion, what is the maximum controller gain K_c,max to maintain closed-loop stability, and what is the oscillation frequency omega_co at this stability boundary?

A

K_c,max = 6.0, omega_co = 1.41 rad/min

B

K_c,max = 11.0, omega_co = 2.45 rad/min

C

K_c,max = 25.0, omega_co = 4.12 rad/min

D

K_c,max = 15.0, omega_co = 3.32 rad/min

Test Your Knowledge

A thermal process is characterized by the FOPDT transfer function G_p(s) = 2.5 * exp(-2.0 * s) / (5.0 * s + 1) (°C / %). A chemical engineer performs frequency response analysis to determine Ziegler-Nichols PI tuning settings. What are the phase crossover frequency omega_co, the ultimate gain K_u, and the resulting Ziegler-Nichols PI controller gain K_c and integral time tau_I?

A

omega_co = 0.90 rad/min, K_u = 1.84% / °C, K_c = 0.83% / °C, tau_I = 5.85 min

B

omega_co = 1.57 rad/min, K_u = 3.14% / °C, K_c = 1.41% / °C, tau_I = 3.33 min

C

omega_co = 0.90 rad/min, K_u = 0.54% / °C, K_c = 0.24% / °C, tau_I = 7.02 min

D

omega_co = 0.45 rad/min, K_u = 2.50% / °C, K_c = 1.12% / °C, tau_I = 14.0 min

Test Your Knowledge

An open-loop frequency response sweep is conducted on a chemical reactor temperature loop. At frequency omega_1 = 0.40 rad/min, the amplitude ratio is |G_OL| = 1.00 and phase angle is phi_1 = -135°. At frequency omega_2 = 0.85 rad/min, the phase angle is phi_2 = -180° and amplitude ratio is |G_OL| = 0.40. What are the Gain Margin (GM) and Phase Margin (PM), and does this loop satisfy standard chemical process robustness criteria?

A

GM = 0.40, PM = -45°; the loop is unstable because gain margin is below unity

B

GM = 2.50 (7.96 dB), PM = +45°; the loop satisfies standard robustness criteria (GM >= 1.7, PM >= 30°)

C

GM = 1.40, PM = +35°; the loop fails the gain margin criterion but passes phase margin

D

GM = 2.50, PM = -135°; the loop passes gain margin but has an unacceptable negative phase margin

Sections you finish are checked off in the contents.