Part 5 · Chapter 20

PID Controller Tuning Methods

Chapter 19 showed what each control action does; it did not say how large to make it, and on a plant whose transfer function nobody has written down that question cannot be answered by analysis at all — so this chapter builds the numbers out of a single deliberate experiment, first the reaction curve and the ultimate cycle that Ziegler and Nichols proposed in 1942, then the model-based rules that repair what those two leave behind.

Control Systems Prof. Mithun Mondal Reading time ≈ 45 min
i What you'll learn
  • Why every classical tuning rule is written for one plant shape — the first-order-plus-dead-time model — and how to extract its three numbers \(K\), \(L\), \(T\) from a reaction curve.
  • The Ziegler–Nichols open-loop rules and the slope-and-delay reasoning behind them.
  • The ultimate gain \(K_u\) and ultimate period \(P_u\), how to measure them, and how to compute them from Routh or from the phase crossover of Chapter 17.
  • Why quarter-amplitude decay means 50 % overshoot exactly, and what the Tyreus–Luyben and refined rules do about it.
  • The Cohen–Coon rules for delay-dominant plants and the direct-synthesis / IMC rules that let you dial in the closed-loop speed with a single parameter \(\lambda\).
  • Relay auto-tuning: how \(K_u=4d/\pi a\) falls out of a describing-function argument, and why every commercial auto-tuner uses it.
Section 20-1

Why Tuning Rules Exist

Everything in Parts 3 and 4 began from a transfer function. Give me \(G(s)\) and I will give you a root locus, a Bode plot, a gain margin, and a controller designed against any of them. In a heat exchanger, a distillation column, or a paper machine, nobody has \(G(s)\). What exists is a valve, a sensor, and a plant whose dynamics are the accumulated result of pipes, mixing, thermal mass and transport delay. Writing down the differential equations of Chapter 2 for such a system is possible in principle and hopeless in practice.

A tuning rule closes that gap. It is a formula that takes two or three numbers measured directly from the plant and returns \(K_p\), \(T_i\) and \(T_d\) — no model, no locus, no plot. The price of that convenience is that the rule must assume a plant shape, and it will behave well only on plants that actually have that shape. Understanding which shape each rule assumes is the difference between using a tuning table and being used by it.

There are two ways to get the numbers. An open-loop test breaks the loop, steps the actuator, and records the response — this gives the reaction curve of Section 20-3. A closed-loop test leaves the loop closed and pushes it deliberately to the edge of instability — this gives the ultimate cycle of Section 20-4. Everything else in this chapter is a refinement of one of those two experiments.

Tuning is identification in disguise. A reaction curve is a crude step-response identification; an ultimate-cycle test is a single-point frequency-response identification, measuring exactly the phase-crossover point that Chapter 17 called \(\omega_{pc}\). The tuning table that follows is only the last, easiest step. The experiment is where the information comes from, and a careless experiment cannot be rescued by a careful table.
Section 20-2

The Model Every Rule Assumes

Open-loop step responses of industrial plants look remarkably alike: nothing happens for a while, then the output rises along an S-shaped curve and levels off. Three numbers describe that shape well enough for control purposes, and the model that carries them is the first-order-plus-dead-time (FOPDT) plant.

🔑
The FOPDT model
\[ G(s) = \frac{K\,e^{-Ls}}{Ts+1} \]

\(K\) is the process gain (output units per input unit, at steady state), \(L\) is the dead time or transport lag, and \(T\) is the time constant. Three numbers stand in for a plant that may genuinely be of tenth order.

The compression is legitimate because of what happens to a chain of lags. A cascade of \(n\) identical first-order lags has, at high frequency, a phase that falls without bound and a magnitude that rolls off steeply — behaviour indistinguishable, over the one decade around crossover that actually decides the loop, from a single lag followed by a delay. The FOPDT model is therefore not a claim about the plant's physics; it is a claim that the plant's phase near crossover is captured by one lag and one delay. That is all a controller needs.

The three parameters are read off a process reaction curve: put the controller in manual, wait for steady state, apply a step \(\Delta u\) to the actuator, and record the output. Draw the tangent at the point of steepest slope. Where the tangent meets the initial level defines \(L\); where it meets the final level defines \(L+T\); the total output change \(\Delta c\) gives \(K=\Delta c/\Delta u\).

t c(t) final level Δc tangent at inflection L T Δc step Δu applied here
Reading K, L and T from the process reaction curve

The ratio \(L/T\) is called the controllability ratio, and it decides how hard the loop can be pushed. A plant with \(L/T\) below about \(0.1\) is lag-dominant: the delay is negligible, the phase lag near crossover comes from the lag alone, and a high-gain controller is perfectly safe. A plant with \(L/T\) above \(1\) is delay-dominant: the delay contributes phase without contributing attenuation, which is exactly the situation Chapter 16 identified as dangerous, and such a loop must be detuned severely. The classical rules were calibrated in the middle of that range, roughly \(0.1\le L/T\le 1\), and it is there that they work.

Delay is the enemy, not slowness. A slow plant is merely slow; scale time and it becomes a fast plant with the same loop performance. A delayed plant is different in kind, because \(e^{-Ls}\) contributes phase \(-\omega L\) that grows without limit while its magnitude stays at unity. Every rule in this chapter reduces, at bottom, to the same instruction: the faster the loop is asked to be, the more the delay costs, so let \(L\) set the speed.
Section 20-3

Ziegler–Nichols: The Reaction-Curve Method

Ziegler and Nichols asked a blunt question: given only \(L\) and the initial slope of the reaction curve, what gains give a response that a plant operator would accept? Their answer, arrived at by extensive simulation on an analogue computer and then verified on real loops, was the first tuning table in the subject's history, and it is still the first one every engineer learns.

Write the slope of the tangent as \(R=K/T\), the rate at which the output climbs per unit step of input. The delay \(L\) is the time during which the controller acts blind: whatever the controller does at time \(t\), the effect does not appear until \(t+L\), and during that window the error keeps growing at the rate \(R\) times the current control effort. The product \(RL\) therefore measures how far the plant can drift before the controller sees any consequence, and the proportional gain must scale as its reciprocal.

Where the reciprocal comes from
\[ K_p \propto \frac{1}{RL} = \frac{T}{KL} \]

The constants of proportionality are what Ziegler and Nichols supplied, along with the observation that \(T_i\) and \(T_d\) should both be measured in units of \(L\), since \(L\) is the only time scale the loop's stability actually cares about.

Controller\(K_p\)\(T_i\)\(T_d\)
P\(\dfrac{T}{KL}\)
PI\(0.9\dfrac{T}{KL}\)\(3.33L\)
PID\(1.2\dfrac{T}{KL}\)\(2L\)\(0.5L\)

Read the table as a sentence rather than three rows. Adding integral action forces the gain down by ten per cent, because the extra \(90^\circ\) of low-frequency phase lag identified in Section 19-4 eats into the margin. Adding derivative action then allows the gain to go back up, by a third relative to PI, because the derivative zero returns phase near crossover — precisely the trade recorded in the last table of Chapter 19, now with numbers attached. The integral time falls from \(3.33L\) to \(2L\) for the same reason: the derivative term is paying for the extra integral aggression.

Section 20-4

Ziegler–Nichols: The Ultimate-Cycle Method

The second Ziegler–Nichols method never opens the loop. Switch the controller to pure proportional — set \(T_i=\infty\) and \(T_d=0\) — and raise \(K_p\) from a small value while watching the output. The response becomes progressively more oscillatory, and at one particular gain the oscillation neither grows nor decays. That gain is the ultimate gain \(K_u\), and the period of the sustained oscillation is the ultimate period \(P_u\).

Chapters 11, 16 and 17 already told us exactly what this experiment measures. Sustained oscillation means a pair of closed-loop poles sitting on the imaginary axis: the root locus of Chapter 12 is crossing the \(j\omega\) axis, the Nyquist plot of Chapter 16 is passing through \(-1\), and the Bode plot of Chapter 17 has unity gain at the phase-crossover frequency. All three statements are the same statement.

🔑
What the ultimate cycle measures
\[ K_u\,|G(j\omega_u)| = 1, \qquad \angle G(j\omega_u) = -180^\circ, \qquad P_u=\frac{2\pi}{\omega_u} \]

\(\omega_u\) is the phase-crossover frequency \(\omega_{pc}\) of Chapter 17, and \(K_u\) is the gain margin of the loop expressed as a ratio rather than in decibels. The experiment reads one point of the plant's frequency response — the only point at which the loop can be destabilised by gain alone.

σ 0 −1 −4 +jω_u −jω_u K = K_u
The locus crosses jω at K = K_u
t P_u constant amplitude
Neither growing nor decaying: the ultimate cycle
Controller\(K_p\)\(T_i\)\(T_d\)
P\(0.5K_u\)
PI\(0.45K_u\)\(P_u/1.2\)
PID\(0.6K_u\)\(P_u/2\)\(P_u/8\)

The proportional entry is the easiest to justify. Setting \(K_p=0.5K_u\) leaves a gain margin of exactly \(2\), or \(6\) dB — the lower end of the range Chapter 17 called acceptable. Everything else in the table is then a correction to that starting point, and the PID row hides a piece of structure worth uncovering.

The Ziegler–Nichols PID has a double real zero
\[ G_c(s)=K_p\left(1+\frac{1}{T_is}+T_ds\right)=\frac{K_pT_d}{s}\left(s^2+\frac{s}{T_d}+\frac{1}{T_iT_d}\right) \]
\[ T_i=\frac{P_u}{2},\;T_d=\frac{P_u}{8}\;\Longrightarrow\;T_i=4T_d\;\Longrightarrow\;s^2+\frac{s}{T_d}+\frac{1}{4T_d^2}=\left(s+\frac{1}{2T_d}\right)^2 \]
🔑
Ziegler–Nichols in pole–zero language
\[ G_c(s)=K_pT_d\,\frac{\left(s+4/P_u\right)^2}{s},\qquad \frac{4}{P_u}=\frac{2\omega_u}{\pi}\approx 0.64\,\omega_u \]

The rule places a pole at the origin and a double zero at \(-0.64\omega_u\) — just inside the frequency at which the plant reaches \(-180^\circ\). Seen this way the table stops being arbitrary: it is a root-locus design that anchors two zeros to the one frequency the experiment measured. The condition \(T_i=4T_d\) is also exactly the boundary at which the parallel PID zeros are real, met in Section 19-8; Ziegler–Nichols sits precisely on it.

Section 20-5

What Quarter-Amplitude Decay Actually Costs

Ziegler and Nichols tuned for a quarter-amplitude decay ratio: each overshoot should be a quarter of the one before it. On a 1940s chart recorder that criterion is easy to judge by eye, which is why it was chosen. Chapter 8 lets us translate it into the language of damping, and the translation is unflattering.

Decay ratio and overshoot are not independent
\[ M_p=\exp\!\left(\frac{-\pi\zeta}{\sqrt{1-\zeta^2}}\right),\qquad \text{decay ratio}=\exp\!\left(\frac{-2\pi\zeta}{\sqrt{1-\zeta^2}}\right)=M_p^{\,2} \]
\[ M_p^{\,2}=\tfrac14 \;\Longrightarrow\; M_p=\tfrac12 \;\Longrightarrow\; \zeta=0.215 \]

The second overshoot is one quarter of the first because the first is one half of the step: quarter decay is fifty per cent overshoot, exactly, with no room for negotiation. A damping ratio of \(0.215\) is far below the \(0.5\) to \(0.7\) that Chapter 13 treated as a reasonable design target, and it leaves a phase margin in the region of \(20^\circ\). Ziegler–Nichols settings are aggressive by construction, not by accident.

They are also fragile. A loop with \(\zeta=0.215\) has almost no margin left for the plant gain to drift, and process gains drift constantly with throughput, feed composition and equipment fouling. The settings are best regarded as a first pass — a place from which to detune — and the refined tables below are simply the detuning written down in advance.

t setpoint Ziegler–Nichols Tyreus–Luyben IMC, λ = L
The same plant under three tuning rules: aggression versus smoothness
Rule (from \(K_u\), \(P_u\))\(K_p\)\(T_i\)\(T_d\)Character
Ziegler–Nichols PID\(0.6K_u\)\(P_u/2\)\(P_u/8\)quarter decay, \(M_p\approx 50\%\)
ZN modified — some overshoot\(0.33K_u\)\(P_u/2\)\(P_u/3\)\(M_p\approx 20\%\)
ZN modified — no overshoot\(0.2K_u\)\(P_u/2\)\(P_u/3\)monotone step response
Tyreus–Luyben PI\(K_u/3.2\)\(2.2P_u\)robust, slow integral
Tyreus–Luyben PID\(K_u/2.2\)\(2.2P_u\)\(P_u/6.3\)robust, well damped
Look at the integral times, not the gains. The Tyreus–Luyben rules cut the gain by only a third relative to Ziegler–Nichols but stretch \(T_i\) by a factor of more than four. That is the important correction. Chapter 19 showed that integral action is what costs phase near crossover; a long \(T_i\) pushes the PI corner far below crossover, so the integrator restores accuracy at low frequency and stays out of the way where stability is decided. Detuning a sluggish loop is usually a matter of lengthening \(T_i\), not of lowering \(K_p\).
Section 20-6

Cohen–Coon: Correcting for Dead Time

The Ziegler–Nichols reaction-curve rules use \(L\) and the slope \(R\) but discard \(T\) once the product \(RL\) has been formed. That is acceptable while \(L/T\) is small. When the delay becomes comparable with the time constant, two plants with the same \(RL\) but very different \(L/T\) behave quite differently, and the rules start to give loops that are far too fast.

Cohen and Coon addressed this in 1953 by fitting their rules to the FOPDT model over the whole range of \(L/T\), targeting the same quarter-decay criterion but also demanding a minimum offset for proportional-only control. The result keeps the \(T/KL\) skeleton of Ziegler–Nichols and adds a correction term in \(L/T\).

Controller\(K_p\)\(T_i\)\(T_d\)
P\(\dfrac{T}{KL}\left(1+\dfrac{L}{3T}\right)\)
PI\(\dfrac{T}{KL}\left(0.9+\dfrac{L}{12T}\right)\)\(L\,\dfrac{30+3L/T}{9+20L/T}\)
PD\(\dfrac{T}{KL}\left(1.25+\dfrac{L}{6T}\right)\)\(L\,\dfrac{6-2L/T}{22+3L/T}\)
PID\(\dfrac{T}{KL}\left(1.33+\dfrac{L}{4T}\right)\)\(L\,\dfrac{32+6L/T}{13+8L/T}\)\(\dfrac{4L}{11+2L/T}\)

Letting \(L/T\to 0\) in the PID row recovers \(K_p=1.33\,T/KL\), \(T_i=32L/13=2.46L\) and \(T_d=4L/11=0.36L\) — recognisably the Ziegler–Nichols PID row with slightly more gain and a slightly longer integral time. The correction terms only bite when \(L/T\) is appreciable, which is precisely the situation Ziegler–Nichols handles badly.

Cohen–Coon inherits the quarter-decay target, so it inherits the aggression as well; it is a better-conditioned version of the same philosophy, not a more conservative one. For genuinely delay-dominant plants the honest answer is not a table at all, but the model-based approach of the next section, in which the desired closed-loop speed is chosen explicitly rather than inherited from a 1940s chart recorder.

Section 20-7

Direct Synthesis and IMC Tuning

Every rule so far answers the question "what gains will produce a response of a certain shape?" Direct synthesis reverses the question: state the closed-loop transfer function you want, and solve for the controller that delivers it. If the loop is \(L(s)=G_c(s)G(s)\) and the closed-loop response is \(M(s)=L/(1+L)\), then the controller is determined by inversion.

Direct synthesis
\[ M(s)=\frac{G_cG}{1+G_cG}\;\Longrightarrow\; G_c(s)=\frac{1}{G(s)}\cdot\frac{M(s)}{1-M(s)} \]

The choice of \(M(s)\) is not free. It must contain the plant's delay — no controller can make an output move before the delay has elapsed — and it must be no faster than the actuator can support. The standard choice for an FOPDT plant is therefore a first-order response with the same delay and one adjustable time constant \(\lambda\).

Deriving the PI controller for an FOPDT plant
\[ G(s)=\frac{Ke^{-Ls}}{Ts+1},\qquad M(s)=\frac{e^{-Ls}}{\lambda s+1} \]
\[ G_c(s)=\frac{Ts+1}{Ke^{-Ls}}\cdot\frac{e^{-Ls}/(\lambda s+1)}{1-e^{-Ls}/(\lambda s+1)}=\frac{Ts+1}{K}\cdot\frac{1}{\lambda s+1-e^{-Ls}} \]
\[ e^{-Ls}\approx 1-Ls \;\Longrightarrow\; \lambda s+1-e^{-Ls}\approx(\lambda+L)s \]
\[ G_c(s)\approx\frac{Ts+1}{K(\lambda+L)s}=\underbrace{\frac{T}{K(\lambda+L)}}_{K_p}\left(1+\frac{1}{Ts}\right) \]
🔑
IMC / λ-tuning for an FOPDT plant (SIMC form)
\[ K_p=\frac{T}{K(\lambda+L)},\qquad T_i=\min\bigl(T,\;8L\bigr),\qquad \lambda\ge L \]

The integral time comes out of the derivation as \(T_i=T\): the controller zero cancels the plant lag exactly. The \(\min\) is a repair for very lag-dominant plants, where a literal \(T_i=T\) would make the integral action so slow that disturbances take forever to reject. Choosing \(\lambda=L\) gives the fastest setting that is still robust; \(\lambda=3L\) gives a distinctly conservative loop.

Two features make this family different from everything before it. First, \(\lambda\) is a genuine design knob with physical meaning — it is the closed-loop time constant — so a specification such as "settle in thirty seconds" translates directly into a number instead of into trial and error. Second, the derivation shows why the rule is safe: with \(\lambda=L\) the gain is \(K_p=T/2KL\), a little over half the Ziegler–Nichols PI value of \(0.9T/KL\), and the integral time is \(T\) rather than \(3.33L\), typically several times longer. The IMC rule is the Tyreus–Luyben correction arrived at from first principles rather than from experience.

Retaining a second-order term in the delay expansion — the Padé approximation \(e^{-Ls}\approx(1-Ls/2)/(1+Ls/2)\) — produces a PID instead of a PI, with

IMC-PID from the first-order Padé approximation
\[ K_p=\frac{1}{K}\cdot\frac{T+L/2}{\lambda+L/2},\qquad T_i=T+\frac{L}{2},\qquad T_d=\frac{TL}{2T+L} \]
Every model-based rule is a cancellation. \(T_i=T\) means the PI zero sits exactly on the plant pole. That is what makes the closed loop first-order, and it is also the rule's one weakness: if the plant lag is badly identified, or if it is a slow disturbance mode rather than a genuine pole, the cancellation is imperfect and a slow tail appears in the disturbance response. Ziegler–Nichols never cancels anything, which is why it degrades gracefully under model error and why it has outlived every attempt to retire it.
Section 20-8

Relay Auto-Tuning and Loop Validation

The ultimate-cycle experiment has an obvious defect: it asks an engineer to drive a working plant to the edge of instability, by trial and error, while hoping the oscillation does not grow. Åström and Hägglund's relay method obtains the same two numbers without ever going unstable, and it is the technique behind the "auto-tune" button on essentially every industrial controller.

Replace the controller temporarily by an on–off relay of amplitude \(\pm d\). The relay drives the plant hard in whichever direction reduces the error, the plant output crosses the setpoint, the relay switches, and the loop settles into a self-sustaining limit cycle. Its period is measured directly and its amplitude \(a\) is recorded at the output.

r + e +d −d relay u G(s) y u(t) y(t) P_u a
Relay auto-tuning: a deliberate limit cycle in place of a dangerous gain sweep

Why the limit cycle appears, and what its amplitude means, follows from the describing function — the subject of Chapter 29, borrowed here for one result. The relay's output is a square wave; expand it in a Fourier series and keep only the fundamental. A square wave of amplitude \(d\) has a fundamental of amplitude \(4d/\pi\), so a relay driven by a sinusoid of amplitude \(a\) behaves like an equivalent gain

Describing function of an ideal relay
\[ N(a)=\frac{4d}{\pi a} \]

A sustained oscillation requires the loop gain to be exactly \(-1\) at the oscillation frequency, so \(N(a)G(j\omega)=-1\). Since \(N(a)\) is real and positive, the frequency must be the one at which \(\angle G=-180^\circ\) — the ultimate frequency — and the magnitude condition then fixes the amplitude.

🔑
Ultimate gain from a relay test
\[ |G(j\omega_u)|=\frac{\pi a}{4d}\;\Longrightarrow\; K_u=\frac{1}{|G(j\omega_u)|}=\frac{4d}{\pi a} \]

with \(P_u\) read straight off the limit cycle. The plant never leaves a bounded oscillation whose size is set by the relay amplitude \(d\), which the engineer chooses — typically a few per cent of full actuator range. Safety and information are obtained at the same time.

A tuning exercise is not finished when the gains are computed. Three checks belong to every loop before it is left running.

The first is a margin check. Compute the gain and phase margins of the tuned loop by the methods of Chapter 17; anything below \(6\) dB or \(30^\circ\) should be regarded as provisional. The second is a disturbance test. Tuning rules are quoted for setpoint response, but most loops spend their lives rejecting disturbances, and the two responses are different — a controller with a long \(T_i\) may track a setpoint beautifully and reject a load change slowly. The third is anti-windup. Section 19-8 described what happens when the integrator keeps accumulating against a saturated actuator; an aggressively tuned loop reaches saturation more often, so the more aggressive the rule, the more essential the limiter.

Which rule, and when. If the plant can be taken off line, run a reaction curve and use Cohen–Coon for \(L/T\) above \(0.3\), IMC otherwise. If it cannot, run a relay test and use Tyreus–Luyben. Use Ziegler–Nichols when a fast first answer matters more than a good one — and always as a starting point to detune from, never as a final setting. On a loop that must not overshoot at all, no table substitutes for the explicit \(\lambda\) of Section 20-7.
Section 20-9

Worked Examples

1 Reaction curve to Ziegler–Nichols PID

Problem. A temperature loop is put in manual and the valve signal is stepped by \(\Delta u=10\%\). The measured temperature eventually rises by \(4\,^\circ\mathrm{C}\); the tangent construction gives \(L=1\) min and \(T=5\) min. Find the Ziegler–Nichols PID settings in both standard and parallel form.

Solution. The process gain is the ratio of the two steady changes, \(K=\Delta c/\Delta u = 4/10=0.4\,^\circ\mathrm{C}/\%\). The controllability ratio is \(L/T=0.2\), comfortably inside the range the rules were fitted to.

Working
\[ K_p=1.2\frac{T}{KL}=1.2\times\frac{5}{0.4\times 1}=15\ \%/^\circ\mathrm{C},\qquad T_i=2L=2\ \text{min},\qquad T_d=0.5L=0.5\ \text{min} \]
\[ K_i=\frac{K_p}{T_i}=7.5\ \%/(^\circ\mathrm{C}\cdot\text{min}),\qquad K_d=K_pT_d=7.5\ \%\cdot\text{min}/^\circ\mathrm{C} \]

Expect roughly \(50\%\) overshoot on a setpoint change, by the argument of Section 20-5. Detuning to \(T_i=4\) min while keeping \(K_p\) is the usual first correction.

2 Ultimate gain and period from Routh

Problem. A plant has \(G(s)=\dfrac{1}{s(s+1)(s+4)}\) under unity feedback. Find \(K_u\) and \(P_u\) analytically, then the Ziegler–Nichols PID settings and the position of the controller zeros.

Solution. With proportional gain \(K\) the characteristic equation is \(s(s+1)(s+4)+K=0\), that is \(s^3+5s^2+4s+K=0\). Build the Routh array of Chapter 11.

Routh array
\[ \begin{array}{c|cc} s^3 & 1 & 4\\ s^2 & 5 & K\\ s^1 & \dfrac{20-K}{5} & 0\\ s^0 & K & \end{array} \]

The first column changes sign when \(K\) exceeds \(20\), so \(K_u=20\). At that gain the \(s^1\) row vanishes and the auxiliary equation \(5s^2+K_u=0\) gives the imaginary-axis roots:

Working
\[ 5s^2+20=0\;\Longrightarrow\; s=\pm j2 \;\Longrightarrow\; \omega_u=2\ \mathrm{rad/s},\qquad P_u=\frac{2\pi}{2}=\pi=3.142\ \mathrm{s} \]
\[ K_p=0.6K_u=12,\qquad T_i=\frac{P_u}{2}=1.571\ \mathrm{s},\qquad T_d=\frac{P_u}{8}=0.393\ \mathrm{s} \]
\[ K_i=\frac{K_p}{T_i}=7.64,\qquad K_d=K_pT_d=4.71 \]

By the result of Section 20-4 the controller has a double zero at \(-1/(2T_d)=-4/P_u=-1.273\), which is \(0.64\omega_u\) as predicted. The compensated loop is \(G_c(s)G(s)=\dfrac{4.71(s+1.273)^2}{s^2(s+1)(s+4)}\) — type 2, so the ramp error of Chapter 9 has been driven to zero as well.

3 Ultimate cycle of a plant with dead time

Problem. For \(G(s)=\dfrac{e^{-0.2s}}{(s+1)^2}\), compute \(\omega_u\), \(K_u\) and \(P_u\), and compare the Ziegler–Nichols and Tyreus–Luyben PI settings.

Solution. The ultimate frequency is the phase crossover of Chapter 17. The delay contributes \(-\omega L\) radians and each lag contributes \(-\arctan\omega\):

Phase-crossover condition
\[ 2\arctan\omega_u+0.2\,\omega_u=\pi \]

Solving numerically: at \(\omega=3.0\) the left side is \(3.098\), at \(\omega=3.2\) it is \(3.176\); interpolating and refining gives \(\omega_u=3.110\) rad/s. Then

Working
\[ |G(j\omega_u)|=\frac{1}{1+\omega_u^2}=\frac{1}{10.675}=0.0937,\qquad K_u=\frac{1}{0.0937}=10.68 \]
\[ P_u=\frac{2\pi}{3.110}=2.020\ \mathrm{s} \]
\[ \text{ZN PI: } K_p=0.45K_u=4.81,\quad T_i=\frac{P_u}{1.2}=1.683\ \mathrm{s} \]
\[ \text{T–L PI: } K_p=\frac{K_u}{3.2}=3.34,\quad T_i=2.2P_u=4.44\ \mathrm{s} \]

Tyreus–Luyben uses \(31\%\) less gain and an integral time \(2.6\) times longer. Note that \(K_u\) is precisely the gain margin of the uncompensated loop: \(20\log_{10}10.68=20.6\) dB.

4 Cohen–Coon against Ziegler–Nichols

Problem. A reaction curve gives \(K=2\), \(L=1\) s, \(T=4\) s. Compute the PID settings by both the Ziegler–Nichols reaction-curve rule and Cohen–Coon, and comment.

Solution. Here \(L/T=0.25\). Ziegler–Nichols first:

Ziegler–Nichols
\[ K_p=1.2\frac{T}{KL}=1.2\times\frac{4}{2}=2.4,\qquad T_i=2L=2\ \mathrm{s},\qquad T_d=0.5L=0.5\ \mathrm{s} \]

Now Cohen–Coon, substituting \(L/T=0.25\) into each correction factor:

Cohen–Coon
\[ K_p=\frac{T}{KL}\left(1.33+\frac{L}{4T}\right)=2\,(1.33+0.0625)=2.785 \]
\[ T_i=L\,\frac{32+6(0.25)}{13+8(0.25)}=\frac{33.5}{15}=2.233\ \mathrm{s},\qquad T_d=\frac{4L}{11+2(0.25)}=\frac{4}{11.5}=0.348\ \mathrm{s} \]

Cohen–Coon asks for \(16\%\) more gain, a slightly longer integral time and a shorter derivative time. Both target quarter decay, so both will overshoot heavily; the difference matters far more at \(L/T=1\) than it does here.

5 λ-tuning the same plant

Problem. For the plant of Example 4 — \(K=2\), \(L=1\) s, \(T=4\) s — find the IMC PI settings for \(\lambda=L\) and for \(\lambda=2L\), and compare with Ziegler–Nichols PI.

Solution. Apply the SIMC form directly. With \(\lambda=L=1\):

Working
\[ K_p=\frac{T}{K(\lambda+L)}=\frac{4}{2(1+1)}=1.00,\qquad T_i=\min(T,8L)=\min(4,8)=4\ \mathrm{s} \]
\[ \lambda=2L=2:\qquad K_p=\frac{4}{2(2+1)}=0.667,\qquad T_i=4\ \mathrm{s} \]
\[ \text{ZN PI: } K_p=0.9\frac{T}{KL}=0.9\times 2=1.8,\qquad T_i=3.33L=3.33\ \mathrm{s} \]

Ziegler–Nichols asks for \(1.8\) times the gain of the \(\lambda=L\) setting and a shorter integral time — aggression compounded on both axes, which is exactly why the overshoot is so large. The IMC loop is designed to settle with a time constant of about \(\lambda+L=2\) s, a specification the operator can state in advance.

6 Reading a relay auto-tune

Problem. An auto-tuner applies a relay of amplitude \(d=1\) (in per cent of valve travel) and records a limit cycle of output amplitude \(a=0.32\) and period \(4.2\) s. Find \(K_u\) and \(P_u\), and give the Ziegler–Nichols PID settings. Where are the controller zeros?

Solution. The describing-function result gives the ultimate gain directly, and the period is measured:

Working
\[ K_u=\frac{4d}{\pi a}=\frac{4(1)}{\pi(0.32)}=\frac{4}{1.005}=3.98,\qquad P_u=4.2\ \mathrm{s} \]
\[ K_p=0.6K_u=2.39,\qquad T_i=\frac{P_u}{2}=2.1\ \mathrm{s},\qquad T_d=\frac{P_u}{8}=0.525\ \mathrm{s} \]
\[ \text{double zero at } -\frac{1}{2T_d}=-\frac{4}{P_u}=-0.952\ \mathrm{s^{-1}} \]

The equivalent parallel gains are \(K_i=K_p/T_i=1.14\) and \(K_d=K_pT_d=1.25\). The whole experiment required a valve excursion of \(\pm 1\%\) and about four cycles of data — under half a minute of plant time.

Review

Chapter Summary

One model

Every classical rule assumes \(Ke^{-Ls}/(Ts+1)\); \(L/T\) decides how hard the loop can be driven.

Reaction curve

ZN open loop: \(K_p=1.2T/KL\), \(T_i=2L\), \(T_d=0.5L\) for PID.

Ultimate cycle

\(K_u\) is the gain margin as a ratio, \(\omega_u\) the phase crossover; ZN PID uses \(0.6K_u\), \(P_u/2\), \(P_u/8\).

Quarter decay

Decay ratio \(=M_p^2\), so quarter decay means exactly \(50\%\) overshoot and \(\zeta=0.215\).

Model-based rules

Cohen–Coon corrects for \(L/T\); IMC sets \(K_p=T/K(\lambda+L)\), \(T_i=T\), with \(\lambda\) the closed-loop time constant.

Relay test

\(K_u=4d/\pi a\) from a bounded limit cycle — the ultimate cycle without the risk.

Practice

Practice Problems

Identify which experiment supplies the data before reaching for a table, and state the units of every gain you compute. Difficulty rises down the list.

  1. A reaction curve gives \(K=1.5\), \(L=2\) s and \(T=8\) s. Find the Ziegler–Nichols PI and PID settings and the corresponding parallel gains \(K_i\) and \(K_d\).
  2. For \(G(s)=\dfrac{1}{s(s+2)(s+5)}\) find \(K_u\), \(\omega_u\) and \(P_u\) by Routh's criterion, then the Ziegler–Nichols PID settings.
  3. A loop is tuned for a decay ratio of \(1/8\). What overshoot and what damping ratio does that imply?
  4. A relay test with \(d=2\%\) produces an oscillation of amplitude \(0.85\) units and period \(6.4\) s. Find \(K_u\) and give the Tyreus–Luyben PID settings.
  5. Show that the Ziegler–Nichols PID always satisfies \(T_i=4T_d\), and explain why that guarantees the controller zeros are real and coincident.
  6. For \(K=3\), \(L=0.5\) s, \(T=1\) s, compute the Cohen–Coon PID settings and the Ziegler–Nichols reaction-curve settings, and comment on which correction terms are significant at this \(L/T\).
  7. Using the IMC PI rule with \(\lambda=L\), show that the resulting proportional gain is always \(0.56\) times the Ziegler–Nichols PI gain, independent of the plant.
  8. A plant is \(G(s)=\dfrac{4}{(s+1)(s+2)}\). Explain why the ultimate-cycle method cannot be applied to it, and what to do instead.
  9. The plant of Problem 2 is retuned with the "no overshoot" modified Ziegler–Nichols rule. Compute the settings and compare the proportional gain with the original.
  10. A tuned loop shows good setpoint tracking but rejects load disturbances very slowly. Which parameter is most likely at fault, and in which direction should it be moved?
  11. Explain why an aggressively tuned integral term makes anti-windup protection more important, and describe one mechanism that provides it.
  12. A distillation column has \(L/T\approx 1.5\). Discuss why Ziegler–Nichols settings are likely to produce an unstable loop, and which of the methods in this chapter you would use instead.
Tip: in an examination, the ultimate-cycle questions almost always reduce to a Routh array. Write the characteristic equation with the proportional gain symbolic, set the \(s^1\) row to zero to get \(K_u\), and take the auxiliary equation from the \(s^2\) row to get \(\omega_u\) — then \(P_u=2\pi/\omega_u\) and the table does the rest. The reaction-curve questions reduce to reading three numbers off a graph, and the only common error is forgetting that \(K\) is a ratio of the two steady-state changes, not the output change alone. Every remaining mark is arithmetic.