Salta al contenuto
Note per Studenti Tracking and Rejection of Sinusoidal Signals Report

Tracking and Rejection of Sinusoidal Signals

In questa pagina 4

Recap: standard signals, system type and the Hurwitz theorem

Standard signal of order ℓ\ell:

1ℓ! tℓ 1(t)is the signal whose Laplace transform is1sℓ+1.\frac{1}{\ell!}\,t^{\ell}\,\mathbb{1}(t) \quad\text{is the signal whose Laplace transform is}\quad \frac{1}{s^{\ell+1}}.

For ℓ=0,1,2\ell = 0, 1, 2 these are the step 1(t)\mathbb{1}(t), the ramp t 1(t)t\,\mathbb{1}(t) and the parabola 12t2 1(t)\tfrac{1}{2}t^2\,\mathbb{1}(t) (see The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →).

System of type KK: the open-loop transfer function H(s)H(s) contains 1sK\dfrac{1}{s^K}, i.e. H(s)=1sKH1(s)H(s) = \dfrac{1}{s^K}H_1(s) with H1(0)≠∞H_1(0) \neq \infty and H1(0)≠0H_1(0) \neq 0. The closed-loop transfer function is W(s)=H(s)1+H(s)W(s) = \dfrac{H(s)}{1 + H(s)} and is assumed BIBO stable.

Steady-state error ∣e(∞)∣|e(\infty)| for a reference of order ℓ\ell (columns: 1(t)\mathbb{1}(t), t 1(t)t\,\mathbb{1}(t), 12t2 1(t)\tfrac12 t^2\,\mathbb{1}(t), ...):

type of H(s)H(s) ℓ=0\ell = 0 ℓ=1\ell = 1 ℓ=2\ell = 2
00: H=H1(s)H = H_1(s) 1∣1+H1(0)∣\dfrac{1}{\lvert 1 + H_1(0)\rvert} ∞\infty ∞\infty
11: H=1sH1(s)H = \tfrac{1}{s}H_1(s) 00 1∣H1(0)∣\dfrac{1}{\lvert H_1(0)\rvert} ∞\infty
22: H=1s2H1(s)H = \tfrac{1}{s^2}H_1(s) 00 00 1∣H1(0)∣\dfrac{1}{\lvert H_1(0)\rvert}

The pattern continues for higher types. Below the "diagonal" (type larger than ℓ\ell) the error is zero, on the diagonal (type equal to ℓ\ell) it is a finite nonzero constant, above it (type smaller than ℓ\ell) it is infinite.

Perfect tracking (rejection) of 1sr\dfrac{1}{s^r}:

perfect tracking of 1sr  ⟺  H(s) contains 1sr.\text{perfect tracking of } \frac{1}{s^r} \iff H(s) \text{ contains } \frac{1}{s^r}.

Design consequence. Let the reference be R(s)=1snRR(s) = \dfrac{1}{s^{n_R}} and the plant be G(s)=1snGG1(s)G(s) = \dfrac{1}{s^{n_G}}G_1(s) (the plant already has nGn_G poles in 00). Then

C(s) such that e(t)→0  ⟺  C(s)=1snCC1(s),nC=nR−nG,  and C(s) makes W(s) BIBO stable.C(s) \text{ such that } e(t)\to 0 \iff C(s) = \frac{1}{s^{n_C}}C_1(s),\quad n_C = n_R - n_G, \ \text{ and } C(s) \text{ makes } W(s) \text{ BIBO stable}.

Reason: we need nRn_R poles in 00 in H=CGH = CG; the plant already provides nGn_G, so the controller must include the remaining nR−nGn_R - n_G poles in 00.

Definition (Hurwitz polynomial). A polynomial P(s)P(s) is Hurwitz if all its roots have strictly negative real part:

Re⁡(λ)<0∀λ:P(λ)=0.\operatorname{Re}(\lambda) < 0 \quad \forall \lambda : P(\lambda) = 0.

Theorem. Let W(s)=NW(s)DW(s)W(s) = \dfrac{N_W(s)}{D_W(s)} be in least terms (no common factors). Then

W(s) is BIBO stable  ⟺  DW(s) is Hurwitz.W(s) \text{ is BIBO stable} \iff D_W(s) \text{ is Hurwitz}.

For the basic control scheme with H(s)=NH(s)DH(s)H(s) = \dfrac{N_H(s)}{D_H(s)} one has DW(s)=NH(s)+DH(s)D_W(s) = N_H(s) + D_H(s), hence

the closed-loop system is BIBO stable  ⟺  DH(s)+NH(s) is Hurwitz.\text{the closed-loop system is BIBO stable} \iff D_H(s) + N_H(s) \text{ is Hurwitz}.

(See The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion → for a test of the Hurwitz property.)

Basic scheme with a disturbance on the output

                                                 d(t)
                                                  |
 r(t)    e(t)   +------+  u(t)   +------+          v
 ---->(+)------>| C(s) |-------->| G(s) |-------->(+)----+---> y(t)
       ^ -      +------+         +------+                |
       |                                                 |
       +-------------------------------------------------+

The diagram shows the loop: the error e=r−ye = r - y drives the controller C(s)C(s), whose output uu drives the plant G(s)G(s); the disturbance dd is added at the plant output, and yy (the sum) is fed back with a minus sign.

Transfer functions:

H(s)=C(s)G(s)=NH(s)DH(s),W(s)=H(s)1+H(s),Wd(s)=11+H(s)=DH(s)NH(s)+DH(s).H(s) = C(s)G(s) = \frac{N_H(s)}{D_H(s)}, \qquad W(s) = \frac{H(s)}{1 + H(s)}, \qquad W_d(s) = \frac{1}{1 + H(s)} = \frac{D_H(s)}{N_H(s) + D_H(s)}.

Assume W(s)W(s) (and Wd(s)W_d(s)) are BIBO stable. The objective is to design C(s)C(s) such that e(t)→0e(t) \to 0 for a sinusoidal reference and a sinusoidal disturbance. The output is

Y(s)=W(s)R(s)+Wd(s)D(s)⏟Yd(s).Y(s) = W(s)R(s) + \underbrace{W_d(s)D(s)}_{Y_d(s)}.

The term Yd(s)Y_d(s) is the contribution of the disturbance to the output.

Rejection of a sinusoidal disturbance

Focus on rejecting a sine disturbance, so set r(t)=0r(t) = 0 (R(s)=0R(s) = 0) and

d(t)=sin⁡(ω0t),D(s)=ω0s2+ω02,Yd(s)=Wd(s)D(s).d(t) = \sin(\omega_0 t), \qquad D(s) = \frac{\omega_0}{s^2 + \omega_0^2}, \qquad Y_d(s) = W_d(s)D(s).

Since Wd(s)W_d(s) is BIBO stable, the Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems → theorem applies:

lim⁡t→+∞(yd(t)−MdAsin⁡(ω0t+θd))=0,Md=∣Wd(jω0)∣,θd=∠Wd(jω0).\lim_{t\to+\infty}\Big(y_d(t) - M_d A \sin(\omega_0 t + \theta_d)\Big) = 0, \qquad M_d = |W_d(j\omega_0)|, \quad \theta_d = \angle W_d(j\omega_0).

Therefore the disturbance effect on the output vanishes if and only if the limiting sinusoid is identically zero. The chain of equivalences from the slides:

yd(t)→0  ⟺  MdAsin⁡(ω0t+θd)=0  ∀t  ⟺  Md=0  ⟺  ∣Wd(jω0)∣=0  ⟺  DH(jω0)=0  ⟺  jω0 is a pole of H(s)  ⟺  ±jω0 are poles of H(s)  ⟺  H(s)=1s2+ω02Hs(s)(Hs(jω0)≠0).\begin{aligned} y_d(t) \to 0 &\iff M_d A \sin(\omega_0 t + \theta_d) = 0 \ \ \forall t \\ &\iff M_d = 0 \\ &\iff |W_d(j\omega_0)| = 0 \\ &\iff D_H(j\omega_0) = 0 \\ &\iff j\omega_0 \text{ is a pole of } H(s) \\ &\iff \pm j\omega_0 \text{ are poles of } H(s) \\ &\iff H(s) = \frac{1}{s^2 + \omega_0^2}H_s(s) \quad (H_s(j\omega_0) \neq 0). \end{aligned}

Step by step:

  1. A sinusoid of nonzero amplitude is not identically zero, so the only way is Md=0M_d = 0.
  2. Wd=DH/(NH+DH)W_d = D_H/(N_H + D_H), so ∣Wd(jω0)∣=0|W_d(j\omega_0)| = 0 happens when the numerator DHD_H vanishes at s=jω0s = j\omega_0 (the denominator is nonzero there because WdW_d is BIBO stable, hence has no poles on the imaginary axis).
  3. DH(jω0)=0D_H(j\omega_0) = 0 says jω0j\omega_0 is a pole of H(s)H(s).
  4. Since HH has real coefficients, complex poles come in conjugate pairs: −jω0-j\omega_0 is a pole too.
  5. The pair ±jω0\pm j\omega_0 corresponds to the factor (s−jω0)(s+jω0)=s2+ω02(s - j\omega_0)(s + j\omega_0) = s^2 + \omega_0^2 in the denominator of HH.

Result:

perfect rejection (tracking) of 1s2+ω02  ⟺  H(s) contains 1s2+ω02.\text{perfect rejection (tracking) of } \frac{1}{s^2 + \omega_0^2} \iff H(s) \text{ contains } \frac{1}{s^2 + \omega_0^2}.

This is the internal model principle: to perfectly reject (or track) a signal, the loop must contain a model of the generator of that signal. For a step the model is 1/s1/s; for polynomial signals 1/sr1/s^r; for a sinusoid at ω0\omega_0 it is 1/(s2+ω02)1/(s^2+\omega_0^2). Since the plant may already supply part of this model, the controller needs to add only the missing poles, exactly as in the design consequence above (the case GG with no such poles gives C(s)=1s2+ω02C1(s)C(s) = \tfrac{1}{s^2+\omega_0^2}C_1(s)).

Rejection of a disturbance at the input of the plant

                                      d_i(t)
                                        |
 r(t)    e(t)   +------+  u_c(t)        v   u(t)   +------+
 ---->(+)------>| C(s) |-------------->(+)-------->| G(s) |----+---> y(t)
       ^ -      +------+                           +------+    |
       |                                                       |
       +-------------------------------------------------------+

Here the disturbance di(t)d_i(t) is added to the controller output uc(t)u_c(t) before the plant, so the plant input is u(t)=uc(t)+di(t)u(t) = u_c(t) + d_i(t). With

H(s)=C(s)G(s),W(s)=H(s)1+H(s),C(s)=NC(s)DC(s),G(s)=NG(s)DG(s)H(s) = C(s)G(s), \quad W(s) = \frac{H(s)}{1+H(s)}, \quad C(s) = \frac{N_C(s)}{D_C(s)}, \quad G(s) = \frac{N_G(s)}{D_G(s)}

and W(s)W(s) BIBO stable, the objective is to design C(s)C(s) such that e(t)→0e(t) \to 0 for some disturbance di(t)d_i(t).

Relation between did_i and yy. Chain of substitutions:

Y(s)=G(s)U(s),U(s)=Uc(s)+Di(s),Uc(s)=C(s)E(s),E(s)=R(s)−Y(s),Y(s) = G(s)U(s), \quad U(s) = U_c(s) + D_i(s), \quad U_c(s) = C(s)E(s), \quad E(s) = R(s) - Y(s),

so

Y(s)=C(s)G(s)(R(s)−Y(s))+G(s)Di(s).Y(s) = C(s)G(s)\big(R(s) - Y(s)\big) + G(s)D_i(s).

Collecting Y(s)Y(s):

Y(s)(1+C(s)G(s))=C(s)G(s)R(s)+G(s)Di(s),Y(s)\big(1 + C(s)G(s)\big) = C(s)G(s)R(s) + G(s)D_i(s),

Y(s)=C(s)G(s)1+C(s)G(s)⏟W(s)R(s)+G(s)1+C(s)G(s)⏟Wdi(s)Di(s)=W(s)R(s)+Wdi(s)Di(s)⏟Ydi(s).Y(s) = \underbrace{\frac{C(s)G(s)}{1 + C(s)G(s)}}_{W(s)}R(s) + \underbrace{\frac{G(s)}{1 + C(s)G(s)}}_{W_{di}(s)}D_i(s) = W(s)R(s) + \underbrace{W_{di}(s)D_i(s)}_{Y_{di}(s)}.

Expanding WdiW_{di} with C=NC/DCC = N_C/D_C and G=NG/DGG = N_G/D_G:

Wdi(s)=G1+CG=NGDG1+NCDCNGDG=NGDGDCDG+NCNGDCDG=NGDCDCDG+NCNG.W_{di}(s) = \frac{G}{1+CG} = \frac{\dfrac{N_G}{D_G}}{1 + \dfrac{N_C}{D_C}\dfrac{N_G}{D_G}} = \frac{\dfrac{N_G}{D_G}}{\dfrac{D_C D_G + N_C N_G}{D_C D_G}} = \frac{N_G D_C}{D_C D_G + N_C N_G}.

(The common factor DGD_G cancels, as shown by the crossed-out terms on the slide.)

Step disturbance. Focus on di(t)=1(t)d_i(t) = \mathbb{1}(t), Di(s)=1sD_i(s) = \dfrac{1}{s}. Then Ydi(s)=Wdi(s)1sY_{di}(s) = W_{di}(s)\dfrac{1}{s} and ydi(t)=L−1[Ydi(s)]y_{di}(t) = \mathcal{L}^{-1}[Y_{di}(s)]. Since W(s)W(s) is BIBO stable, Wdi(s)W_{di}(s) is BIBO stable too, so the final value theorem applies:

lim⁡t→+∞ydi(t)=lim⁡s→0sYdi(s)=lim⁡s→0s Wdi(s)1s=Wdi(0).\lim_{t\to+\infty} y_{di}(t) = \lim_{s\to 0} sY_{di}(s) = \lim_{s\to 0} s\,W_{di}(s)\frac{1}{s} = W_{di}(0).

Hence

ydi(t)→0  ⟺  Wdi(0)=0  ⟺  NG(0)DC(0)=0⟸DC(0)=0  ⟺  C(s)=1sC1(s)(C1(0)≠0).\begin{aligned} y_{di}(t) \to 0 &\iff W_{di}(0) = 0 \\ &\iff N_G(0)D_C(0) = 0 \\ &\Longleftarrow D_C(0) = 0 \\ &\iff C(s) = \frac{1}{s}C_1(s) \quad (C_1(0) \neq 0). \end{aligned}

Note the arrow: DC(0)=0D_C(0) = 0 is sufficient (the product vanishes), not necessary, because NG(0)=0N_G(0) = 0 would also do (a plant zero at the origin). The design rule from the slide:

perfect rejection of a step disturbance 1s at the input of the plant  ⟺  C(s) contains 1s.\text{perfect rejection of a step disturbance } \tfrac{1}{s} \text{ at the input of the plant} \iff C(s) \text{ contains } \tfrac{1}{s}.

In the formula Wdi=NGDC/(DCDG+NCNG)W_{di} = N_G D_C/(D_C D_G + N_C N_G) the plant poles sit in DGD_G, which does not appear in the numerator: an integrator in the plant therefore does not help against a disturbance entering at the plant input, while one in the controller does. (This is a reading of the formula above, not a separate statement on the slides.)

Versione ripasso

Recap

  • Standard signal of order ℓ\ell: 1ℓ!tℓ1(t) ↔ 1/sℓ+1\tfrac{1}{\ell!}t^\ell\mathbb{1}(t)\ \leftrightarrow\ 1/s^{\ell+1}. System of type KK: H(s)H(s) contains 1/sK1/s^K.
  • Steady-state error: type <ℓ<\ell gives ∞\infty; type =ℓ=\ell gives 1/∣H1(0)∣1/|H_1(0)| (type 0, ℓ=0\ell=0: 1/∣1+H1(0)∣1/|1+H_1(0)|); type >ℓ>\ell gives 00.
  • Perfect tracking/rejection of 1/sr  ⟺  H(s)1/s^r \iff H(s) contains 1/sr1/s^r. Controller must add nC=nR−nGn_C = n_R - n_G poles in 00: C=1snCC1C = \tfrac{1}{s^{n_C}}C_1.
  • Hurwitz polynomial: all roots with Re⁡<0\operatorname{Re}<0. W=NW/DWW = N_W/D_W in least terms is BIBO stable   ⟺  DW\iff D_W Hurwitz. Closed loop: DW=NH+DHD_W = N_H + D_H.

Sinusoidal disturbance on the output

  • W=H/(1+H)W = H/(1+H), Wd=1/(1+H)=DH/(NH+DH)W_d = 1/(1+H) = D_H/(N_H + D_H), Y=WR+WdDY = WR + W_d D.
  • d=sin⁡(ω0t)d = \sin(\omega_0 t), D=ω0/(s2+ω02)D = \omega_0/(s^2 + \omega_0^2). By the frequency response theorem yd→MdAsin⁡(ω0t+θd)y_d \to M_d A\sin(\omega_0 t + \theta_d), with Md=∣Wd(jω0)∣M_d = |W_d(j\omega_0)|.
  • yd→0  ⟺  Md=0  ⟺  DH(jω0)=0  ⟺  ±jω0y_d \to 0 \iff M_d = 0 \iff D_H(j\omega_0) = 0 \iff \pm j\omega_0 poles of H  ⟺  H=1s2+ω02HsH \iff H = \tfrac{1}{s^2+\omega_0^2}H_s, Hs(jω0)≠0H_s(j\omega_0)\neq 0.
  • Internal model principle: perfect rejection (tracking) of 1/(s2+ω02)  ⟺  H(s)1/(s^2+\omega_0^2) \iff H(s) contains 1/(s2+ω02)1/(s^2+\omega_0^2).

Disturbance at the plant input

  • Y=WR+WdiDiY = WR + W_{di}D_i, Wdi=G1+CG=NGDCDCDG+NCNGW_{di} = \dfrac{G}{1+CG} = \dfrac{N_G D_C}{D_C D_G + N_C N_G}.
  • Step did_i: final value theorem gives ydi(∞)=Wdi(0)y_{di}(\infty) = W_{di}(0); it is zero if DC(0)=0D_C(0) = 0, i.e. C=1sC1C = \tfrac1s C_1, C1(0)≠0C_1(0)\neq 0.
  • Integrator must be in the controller (not just the plant) for input disturbances.

Typical mistakes

  • Forgetting the stability requirement: all results need WW (and WdW_d, WdiW_{di}) BIBO stable.
  • Taking only +jω0+j\omega_0 as a pole: the conjugate −jω0-j\omega_0 is needed, giving s2+ω02s^2+\omega_0^2.
  • Counting a plant integrator as protection against a disturbance at the plant input.

Teoria collegata