22-Elec-B2 Advanced Control Systems · December 2015
Question 5 of 6: Sampled-data loop: ZOH equivalent, Jury stability range and a deadbeat redesign
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. National Examinations, December 2015 — 07-Elec-B2 Advanced Control Systems. Three hours, closed book; tables of Laplace and z-transforms are supplied as pages 4 and 5 of the paper. Six questions are printed, “any four questions constitute a complete paper” and “all questions are of equal value”, i.e. 25 marks each. All six are solved here, because the set is a study resource rather than a sitting.
Reference texts. G. F. Franklin, J. D. Powell and A. Emami-Naeini, Feedback Control of Dynamic Systems (frequency response and stability margins, Ch. 6; state-space design and pole placement, Ch. 7; digital control and the ZOH equivalent, Ch. 8). K. Ogata, Modern Control Engineering (Routh and root locus, Ch. 5–6; controllability and observability, Ch. 9). N. S. Nise, Control Systems Engineering (steady-state error and system type, Ch. 7). A. V. Oppenheim and A. S. Willsky, Signals and Systems (z-transform and the unit-circle stability test, Ch. 10). L. Ljung, System Identification: Theory for the User (least-squares ARX estimation and its convergence conditions, Ch. 7–8).
Sign conventions used throughout. The error is always $e = r - y$. On Question 1 the block diagram shows the disturbance subtracted at the plant input (a minus at $d$, a plus at $u$), so the plant sees $u - d$; this is read from the printed figure, not assumed. Phase margins are quoted at the gain crossover and gain margins at the phase crossover, both from the exact transfer functions rather than from asymptotic sketches. “At least 6 dB” is applied literally as a gain-margin ratio of $10^{6/20} = 1.9953$; the customary 2:1 shorthand is quoted alongside where it differs.
Question 5: Sampled-data loop: ZOH equivalent, Jury stability range and a deadbeat redesign (25 marks)
Given. A unity-feedback sampled-data loop with a one-sample-delay digital controller driving a first-order continuous plant through a zero-order hold.
Given data
Quantity
Value
Continuous plant
$P(s)=\dfrac{1}{s+0.2}$ (DC gain 5, time constant 5 s)
Digital controller
$C(z)=Kz^{-1}$
Sample period
$h=1$ s
Hold
zero-order hold on the plant input
Feedback
unity, sampled at the same rate
Find. (a) $T(z)=Y(z)/R(z)$; (b) the range of $K$ that puts both closed-loop roots inside the unit circle; (c) a stable controller giving zero steady-state step error at the sample instants.
The sampled-data loop of Question 5. All three samplers run at $h=1$ s, so the loop can be analysed entirely in the $z$ domain.
Approach. Replace the hold-plus-plant chain by its exact ZOH equivalent $P(z)$, close the loop algebraically, apply the Jury conditions to the resulting quadratic, and then add a pole at $z=1$ to make the loop Type 1 in the discrete sense.
Part (a) — form the ZOH equivalent of the plant. The standard result is $P(z)=\left(1-z^{-1}\right)\mathcal{Z}\left\{P(s)/s\right\}$. Expanding by partial fractions with $a=0.2$,$$\frac{P(s)}{s}=\frac{1}{s\left(s+a\right)}=\frac{1}{a}\left[\frac{1}{s}-\frac{1}{s+a}\right]$$and taking the $z$-transform of each term from the supplied table,$$\mathcal{Z}\left\{\frac{P(s)}{s}\right\}=\frac{1}{a}\left[\frac{z}{z-1}-\frac{z}{z-e^{-ah}}\right]$$
Part (a) — evaluate it. Multiplying by $\left(1-z^{-1}\right)=\left(z-1\right)/z$ collapses the bracket:$$P(z)=\frac{1}{a}\left[1-\frac{z-1}{z-e^{-ah}}\right]=\frac{1}{a}\cdot\frac{1-e^{-ah}}{z-e^{-ah}}$$With $a=0.2$ and $h=1$ s, $e^{-0.2}=0.818731$, so$$\boxed{P(z)=\frac{0.906346}{z-0.818731}}$$The check that costs nothing: $P(1)=0.906346/0.181269=5.000$, which is the continuous DC gain $1/0.2$. A ZOH equivalent always preserves the DC gain, and if yours does not, the partial fractions are wrong.
Part (a) — close the loop. The forward path is $L(z)=C(z)P(z)=\dfrac{0.906346K}{z\left(z-0.818731\right)}$, and with unity feedback$$T(z)=\frac{L(z)}{1+L(z)}\;\Rightarrow\;\boxed{T(z)=\frac{0.906346K}{z^{2}-0.818731z+0.906346K}}$$The $z^{-1}$ in the controller has become the second closed-loop pole: a one-sample computation delay costs exactly one order.
Part (b) — apply the Jury test to the quadratic. For $z^{2}+a_{1}z+a_{0}$ with $a_{1}=-0.818731$ and $a_{0}=0.906346K$, all roots lie inside the unit circle if and only if the three conditions$$\left|a_{0}\right|\lt1,\qquad 1+a_{1}+a_{0}\gt0,\qquad 1-a_{1}+a_{0}\gt0$$hold simultaneously. Taking them in turn:$$\left|0.906346K\right|\lt1\;\Rightarrow\;\left|K\right|\lt1.10333$$$$1-0.818731+0.906346K\gt0\;\Rightarrow\;K\gt-\frac{0.181269}{0.906346}=-0.200$$$$1+0.818731+0.906346K\gt0\;\Rightarrow\;K\gt-2.00666$$
Part (b) — intersect them. The binding pair is the first and second conditions, so$$\boxed{-0.200\lt K\lt1.10333}$$Both endpoints have closed forms worth quoting because they are exact rather than numerical:$$K_{\min}=-a=-0.2,\qquad K_{\max}=\frac{a}{1-e^{-ah}}=\frac{0.2}{0.181269}$$At $K=-0.2$ a root leaves through $z=+1$ (the loop loses DC feedback), and at $K=1.10333$ the pair leaves through the unit circle as a complex conjugate pair, i.e. as a sustained oscillation. In practice only $0\lt K\lt1.10333$ is useful, since negative gain gives positive feedback at DC.
Part (c) — identify what is missing. With the original controller the loop is Type 0 in the discrete sense: $L(1)=0.906346K/(1-0.818731)=5K$ is finite, so a unit step leaves$$e_{ss}=\frac{1}{1+L(1)}=\frac{1}{1+5K}$$which is $0.153$ even at the largest stable gain. Driving this to zero requires $L(1)\to\infty$, i.e. a discrete integrator — a controller pole at $z=1$. This is the exact discrete analogue of the continuous $1/s$; nothing about the sample rate changes the argument.
Part (c) — choose the controller. Take$$\boxed{C(z)=\frac{K\left(z-0.818731\right)}{z-1}}$$which is bi-proper (hence realisable) and cancels the plant pole with its zero, leaving the first-order loop$$L(z)=\frac{0.906346K}{z-1},\qquad T(z)=\frac{0.906346K}{z-1+0.906346K}$$The single closed-loop pole is $z=1-0.906346K$, so the loop is stable for$$0\lt K\lt\frac{2}{0.906346}=2.20666$$and $L(1)=\infty$ gives $e_{ss}=0$ for a step, as required.
Part (c) — take the natural gain and get a deadbeat response. Choosing $K$ to put the closed-loop pole at the origin,$$1-0.906346K=0\;\Rightarrow\;\boxed{K=1.10333}\;\Rightarrow\;T(z)=\frac{1}{z}$$The step response is then $Y(z)=T(z)R(z)=1/\left(z-1\right)$, i.e. $y(0)=0$ and $y(k)=1$ for every $k\ge1$: the error is zero after a single sample, not merely in the limit. The control sequence follows from $U(z)/R(z)=C/\left(1+CP\right)=K\left(z-0.818731\right)/z$, giving$$u(0)=1.10333,\qquad u(k)=0.200\ \ (k\ge1)$$and the steady control effort $0.200$ is exactly the value needed to hold the plant output at 1 through its DC gain of 5.
Deadbeat redesign: the sampled output (dots) reaches the set point in one sample and stays, while the continuous response between samples is the plant’s own exponential.
Check: the recommended controller cancels the plant pole at $z=0.818731$. That is admissible here only because the pole is stable and reasonably well damped; the cancelled mode still appears in the disturbance response and would be excited by any modelling error in the plant time constant. If the plant pole were uncertain, the safer choice is the plain integrator $C(z)=K/\left(z-1\right)$, which needs no cancellation and is stable for $0\lt K\lt0.200$ — slower, but robust.