Salta al contenuto
Note per Studenti Control System Design Specifications Report

Control System Design Specifications

In questa pagina 8

Control system design phases

The slides organise the design of a control system as a ten-step flow with iteration loops:

  1. Formulation of design specifications.
  2. Selection of the control system architecture.
  3. Selection of interfaces (sensors and actuators).
  4. Derivation of models for process, actuators and sensors.
  5. Selection of the controller structure.
  6. Controller synthesis.
  7. Validation through numerical simulations. Question: performance within specifications? If NO, go back (to step 1, or to an earlier step); if YES, continue.
  8. Physical implementation of the controller.
  9. Experimental validation. Question: performance within specifications? If NO, go back; if YES:
  10. Design finalization.

In the flow chart, the feedback arrow from the two checks returns to the beginning of the chain, and dashed arrows indicate that steps 2 to 5 can also be revisited.

What a specification contains

Control design specifications:

The reference model: underdamped second-order system

Performance specifications are typically formulated on the time response, assuming that the dominant behaviour is that of an underdamped second-order system. The closed-loop scheme is the usual one (controller CC, plant PP with disturbance dd, sensor HH with noise nn, see Block Diagram AlgebraA block diagram is a graph of elementary SISO linear blocks, branching points and summing nodes, and nine reduction rules (series, parallel, moving branching points and summing nodes, feedback) collapse it into one transfer function.Block Diagram Algebra → and The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →), with closed-loop transfer function

T(s)=Y(s)R(s)≈Ks2+2δωns+ωn2,T(s) = \frac{Y(s)}{R(s)} \approx \frac{K}{s^2 + 2\delta\omega_n s + \omega_n^2},

where δ\delta is the damping ratio and ωn\omega_n the natural frequency (see Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →). The performance can alternatively be expressed on the frequency response of the control system. In the following it is assumed that K=ωn2K = \omega_n^2, so that ∣T(j0)∣=1\lvert T(j0)\rvert = 1 (0 dB).

Time-domain specifications

On the step response (rise from 10% to 90% of the final value, settling band ±0.05\pm 0.05):

  • Steady-state performance: maximum allowable control error at steady state, in response to standard reference inputs.
  • Transient performance: parameters of the transient response to a step reference:
    • overshoot MpM_p: quantifies the damping capability (the "degree of stability");
    • rise time trt_r and settling time tst_s: quantify the system responsiveness (the "speed of response").

The step-response figure of the slides marks ymax⁡y_{\max}, the overshoot MpM_p, the levels 0.1, 0.9 and 1, the peak time tpt_p, the rise time trt_r and the settling time tst_s inside the ±0.05\pm 0.05 band.

Frequency-domain specifications

Quantities defined on ∣T(jω)∣\lvert T(j\omega)\rvert (Bode magnitude plot, with the axis marks ωn/10\omega_n/10, ωn\omega_n, ωB\omega_B, 10ωn10\omega_n and the levels MrM_r, 0 dB, −3-3 dB):

  • Static gain (DC gain): magnitude of the transfer function at zero frequency, ∣T(j0)∣\lvert T(j0)\rvert; the steady-state gain for a constant (DC) input.
  • Resonance peak MrM_r: maximum magnitude of the frequency response, attained at the resonance frequency ωr\omega_r. The resonance peak exists only for 0<δ<1/20 < \delta < 1/\sqrt{2}.
  • Control bandwidth ωB\omega_B: frequency at which the frequency response magnitude drops to 1/21/\sqrt{2} (−3-3 dB) of the DC gain.

Meaning of the specifications in the frequency domain:

  • Steady-state performance: control accuracy is related to the low-frequency magnitude of T(jω)T(j\omega) (the complementary sensitivity function) or of S(jω)S(j\omega) (the sensitivity function).
  • Transient performance: MrM_r quantifies the damping capability ("degree of stability"); ωB\omega_B quantifies the responsiveness ("speed of response").

Bandwidth

Fact (slides): the bandwidth is often approximated as

ωB≈ωn,\omega_B \approx \omega_n,

and the approximation is exact when δ=1/2\delta = 1/\sqrt{2}.

Proof (slides): ωB\omega_B can be computed exactly from ∣T(jωB)∣=1/2\lvert T(j\omega_B)\rvert = 1/\sqrt{2}:

∣T(jωB)∣=∣ωn2−ωB2+2jδωnωB+ωn2∣=12\lvert T(j\omega_B)\rvert = \left\lvert \frac{\omega_n^2}{-\omega_B^2 + 2j\delta\omega_n\omega_B + \omega_n^2}\right\rvert = \frac{1}{\sqrt{2}}

⇓(ωn2−ωB2)2+(2δωnωB)2=2ωn4\Downarrow \quad (\omega_n^2 - \omega_B^2)^2 + (2\delta\omega_n\omega_B)^2 = 2\omega_n^4

⇓  ωB=ωn1−2δ2+2−4δ2+4δ4  \Downarrow \quad \boxed{\;\omega_B = \omega_n\sqrt{1 - 2\delta^2 + \sqrt{2 - 4\delta^2 + 4\delta^4}}\;}

So ωB\omega_B depends on δ\delta; it equals ωn\omega_n when δ=1/2\delta = 1/\sqrt{2}. The plot of ωB/ωn\omega_B/\omega_n against δ\delta in the slides starts at about 1.55 for δ=0\delta = 0, crosses 1 at δ=1/2\delta = 1/\sqrt{2} and falls to about 0.65 at δ=1\delta = 1.

Resonance peak

Fact (slides): the resonance peak is often approximated as

Mr≈12δ,valid for 0<δ<1/2.M_r \approx \frac{1}{2\delta}, \qquad \text{valid for } 0 < \delta < 1/2.

Proof (slides): the exact value is

Mr=12δ1−δ2≈12δ,M_r = \frac{1}{2\delta\sqrt{1 - \delta^2}} \approx \frac{1}{2\delta},

and the approximation is considered acceptable for 0<δ<1/20 < \delta < 1/2 (the two curves in the plot of the slides are practically superimposed there and separate for larger δ\delta).

Relations between time and frequency specifications

Fact (slides): time-domain and frequency-domain specifications are related by the following approximate relationships:

tr≈1.8ωB,ts,5%≈3δ ωB.t_r \approx \frac{1.8}{\omega_B}, \qquad t_{s,5\%} \approx \frac{3}{\delta\,\omega_B}.

With the bandwidth in hertz, B=ωB/2πB = \omega_B/2\pi, the first relation becomes tr≈1.8/ωB≈1.8/(2πB)t_r \approx 1.8/\omega_B \approx 1.8/(2\pi B), i.e.

tr≈0.3B.t_r \approx \frac{0.3}{B}.

Moreover (slides):

Mr≈12δ,Mp=e−δπ1−δ2.M_r \approx \frac{1}{2\delta}, \qquad M_p = e^{-\frac{\delta\pi}{\sqrt{1 - \delta^2}}}.

The slides plot MpM_p against δ\delta: Mp=1M_p = 1 at δ=0\delta = 0, about 0.37 at δ=0.3\delta = 0.3, about 0.16 at δ=0.5\delta = 0.5, going to 0 as δ→1\delta \to 1.

Specifications on the loop transfer function

Because of the direct relationship between the controller C(s)C(s) and the loop transfer function L(s)=C(s)P(s)L(s) = C(s)P(s), it is convenient to reformulate the specifications on T(s)T(s) as equivalent specifications on L(s)L(s).

The scheme considered (slides) is a closed loop with a one-degree-of-freedom (1-DOF) controller and unit feedback: error e=r−yme = r - y_m, controller C(s)C(s), input disturbance did_i added to the controller output uu, plant P(s)P(s), output yy, measurement noise nin_i added to yy to give ymy_m.

Steady-state performance

Let esse_{ss} denote the steady-state control error. A specification of the type

{ess=0with r(t)=δ−1(t), δ−2(t), …, δ−h(t)∣ess∣≤εwith r(t)=δ−(h+1)(t)\begin{cases} e_{ss} = 0 & \text{with } r(t) = \delta_{-1}(t),\ \delta_{-2}(t),\ \dots,\ \delta_{-h}(t) \\[2pt] \lvert e_{ss}\rvert \le \varepsilon & \text{with } r(t) = \delta_{-(h+1)}(t) \end{cases}

(where δ−1\delta_{-1} is the step, δ−2\delta_{-2} the ramp, and so on) implies that L(s)L(s) is of type hh and has Bode gain Kl≥1/εK_l \ge 1/\varepsilon:

L(s)=Klsh L^(s)with L^(0)=1, Kl≥1ε.L(s) = \frac{K_l}{s^h}\,\hat L(s) \quad \text{with } \hat L(0) = 1,\ K_l \ge \frac{1}{\varepsilon}.

Transient performance

The time and/or frequency specifications

  • rise time trt_r or settling time tst_s / bandwidth ωB\omega_B;
  • overshoot MpM_p / resonance peak MrM_r

must be translated into specifications for L(jω)L(j\omega):

  • gain crossover frequency ωgc\omega_{gc};
  • phase margin φm\varphi_m.

The second-order assumption on the loop

If the dominant dynamics of the control system can be approximated by an underdamped second-order system, then

T(s)=Y(s)R(s)=L(s)1+L(s)=ωn2s2+2δωns+ωn2T(s) = \frac{Y(s)}{R(s)} = \frac{L(s)}{1 + L(s)} = \frac{\omega_n^2}{s^2 + 2\delta\omega_n s + \omega_n^2}

⇓L(s)=P(s)C(s)=T(s)1−T(s)=ωn2s (s+2δωn).\Downarrow \quad L(s) = P(s)C(s) = \frac{T(s)}{1 - T(s)} = \frac{\omega_n^2}{s\,(s + 2\delta\omega_n)}.

Fact 1 - gain crossover frequency. At ωgc\omega_{gc}, ∣L(jωgc)∣=1\lvert L(j\omega_{gc})\rvert = 1:

∣ωn2jωgc (jωgc+2δωn)∣=1  ⇒  ωgc4+(2δωn)2 ωgc2−ωn4=0\left\lvert \frac{\omega_n^2}{j\omega_{gc}\,(j\omega_{gc} + 2\delta\omega_n)}\right\rvert = 1 \;\Rightarrow\; \omega_{gc}^4 + (2\delta\omega_n)^2\,\omega_{gc}^2 - \omega_n^4 = 0

⇒  ωgc=ωn1+4δ4−2δ2  \Rightarrow\quad \boxed{\;\omega_{gc} = \omega_n\sqrt{\sqrt{1 + 4\delta^4} - 2\delta^2}\;}

In general ωgc\omega_{gc} precedes the natural frequency, ωgc/ωn<1\omega_{gc}/\omega_n < 1 (the plot in the slides goes from 1 at δ=0\delta = 0 down to about 0.49 at δ=1\delta = 1).

Fact 2 - phase margin. At ωgc\omega_{gc}, ∠L(jωgc)=−π+φm\angle L(j\omega_{gc}) = -\pi + \varphi_m:

φm=π+∠L(jωgc)=π+∠ωn2jωgc (jωgc+2δωn)\varphi_m = \pi + \angle L(j\omega_{gc}) = \pi + \angle\frac{\omega_n^2}{j\omega_{gc}\,(j\omega_{gc} + 2\delta\omega_n)}

⇒φm=π−π2−atan⁡ ⁣(ωgc2δωn)\Rightarrow\quad \varphi_m = \pi - \frac{\pi}{2} - \operatorname{atan}\!\left(\frac{\omega_{gc}}{2\delta\omega_n}\right)

⇒  φm=atan⁡ ⁣(2δ1+4δ4−2δ2)  \Rightarrow\quad \boxed{\;\varphi_m = \operatorname{atan}\!\left(\frac{2\delta}{\sqrt{\sqrt{1 + 4\delta^4} - 2\delta^2}}\right)\;}

The last step (marked (∗)(*) on the slide) uses the expression for ωgc\omega_{gc} found above and the identity π2−atan⁡θ=atan⁡1θ\frac{\pi}{2} - \operatorname{atan}\theta = \operatorname{atan}\frac{1}{\theta}.

Practical rules from the phase-margin curve

  • Typical phase margin. For φm≈55∘\varphi_m \approx 55^\circ it holds that δ≈0.54\delta \approx 0.54, yielding ωgc≈0.76 ωn\omega_{gc} \approx 0.76\,\omega_n. Since ωB≈ωn\omega_B \approx \omega_n, one typically imposes

ωgc≈0.76⋅2πB≈5 B.\omega_{gc} \approx 0.76\cdot 2\pi B \approx 5\,B.

  • Damping and phase margin. For φm≤70∘\varphi_m \le 70^\circ (first-order term of the Taylor expansion of φm\varphi_m as a function of δ\delta):

φm≈2δ [rad],φm≈100 δ [deg].\varphi_m \approx 2\delta\ \text{[rad]}, \qquad \varphi_m \approx 100\,\delta\ \text{[deg]}.

So the damping ratio δ\delta is proportional to the phase margin of the system.

  • Phase margin and overshoot. From Mp=exp⁡ ⁣(−πδ/1−δ2)M_p = \exp\!\big(-\pi\delta/\sqrt{1-\delta^2}\big) one gets

δ=ln⁡1Mpπ2+ln⁡21Mp,\delta = \frac{\ln\frac{1}{M_p}}{\sqrt{\pi^2 + \ln^2\frac{1}{M_p}}},

which inserted in the formula of φm(δ)\varphi_m(\delta) gives the curve φm(Mp)\varphi_m(M_p). The slides propose the very rough (but often used in practice) approximation

φm≈1.04−0.8 Mp[rad].\varphi_m \approx 1.04 - 0.8\,M_p\quad \text{[rad]}.

(In the plot the approximating line goes from about 60∘60^\circ at Mp=0M_p = 0 to about 14∘14^\circ at Mp=1M_p = 1, i.e. 1.04 rad≈60∘1.04\ \text{rad} \approx 60^\circ.)

Summary of the translation

Specification Where it is imposed Rule
Steady-state error loop type hh and gain KlK_l Kl≥1/εK_l \ge 1/\varepsilon
Overshoot MpM_p phase margin φm\varphi_m φm≈1.04−0.8Mp\varphi_m \approx 1.04 - 0.8M_p rad, or φm≈100 δ\varphi_m \approx 100\,\delta deg
Speed (trt_r, ωB\omega_B) gain crossover frequency ωgc\omega_{gc} ωgc≈0.76 ωn≈5B\omega_{gc} \approx 0.76\,\omega_n \approx 5B for φm≈55∘\varphi_m \approx 55^\circ

These crossover frequency and phase margin are the inputs of the PID design described in PID Controllers and Bode Method DesignPID controllers exist in parallel and series forms, ideal and real (with a pole on the derivative), and are designed with the Bode method by choosing the controller type and gain from the steady-state specifications and then the PID parameters that give the required gain and phase correction at the crossover frequency.PID Controllers and Bode Method Design →; for the effect of the sampling frequency on the same quantities see Discretization Methods for ControllersDesign by emulation discretizes a continuous-time controller with impulse or step invariance or with numerical integration rules (forward Euler, backward Euler, Tustin), choosing the sampling frequency 10 to 20 times or more above the bandwidth, and accounting for the half-sample delay of the zero-order hold.Discretization Methods for Controllers →. The loop and complementary-sensitivity frequency responses are the topic of 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 →.

Versione ripasso

Design flow: specifications, architecture, interfaces (sensors and actuators), models, controller structure, synthesis, simulation check (if not within specs go back), implementation, experimental check (if not within specs go back), finalization.

Specifications: stability (internal, also under parameter variations); steady-state performance; transient performance (speed and damping); robustness.

Reference model: T(s)≈ωn2/(s2+2δωns+ωn2)T(s) \approx \omega_n^2/(s^2 + 2\delta\omega_n s + \omega_n^2), so ∣T(j0)∣=1\lvert T(j0)\rvert = 1.

  • Time domain: overshoot MpM_p (damping), rise time trt_r and settling time tst_s (speed).
  • Frequency domain: resonance peak MrM_r (exists only for 0<δ<1/20 < \delta < 1/\sqrt{2}), bandwidth ωB\omega_B (−3-3 dB).

Formulas:

ωB=ωn1−2δ2+2−4δ2+4δ4    (ωB≈ωn exact at δ=1/2),\omega_B = \omega_n\sqrt{1 - 2\delta^2 + \sqrt{2 - 4\delta^2 + 4\delta^4}} \;\;(\omega_B \approx \omega_n \text{ exact at } \delta = 1/\sqrt{2}),

Mr=12δ1−δ2≈12δ (0<δ<1/2),Mp=e−δπ/1−δ2,M_r = \frac{1}{2\delta\sqrt{1-\delta^2}} \approx \frac{1}{2\delta}\ (0<\delta<1/2),\qquad M_p = e^{-\delta\pi/\sqrt{1-\delta^2}},

tr≈1.8ωB≈0.3B,ts,5%≈3δ ωB.t_r \approx \frac{1.8}{\omega_B} \approx \frac{0.3}{B},\qquad t_{s,5\%} \approx \frac{3}{\delta\,\omega_B}.

On the loop L=CP=ωn2/(s(s+2δωn))L = CP = \omega_n^2/(s(s + 2\delta\omega_n)):

  • Steady state: L=KlshL^L = \dfrac{K_l}{s^h}\hat L, L^(0)=1\hat L(0) = 1, type hh, Kl≥1/εK_l \ge 1/\varepsilon.
  • ωgc=ωn1+4δ4−2δ2\omega_{gc} = \omega_n\sqrt{\sqrt{1 + 4\delta^4} - 2\delta^2} (always <ωn< \omega_n).
  • φm=atan⁡ ⁣(2δ/1+4δ4−2δ2)\varphi_m = \operatorname{atan}\!\big(2\delta/\sqrt{\sqrt{1 + 4\delta^4} - 2\delta^2}\big).

Rules of thumb: φm≈55∘⇒δ≈0.54\varphi_m \approx 55^\circ \Rightarrow \delta \approx 0.54, ωgc≈0.76 ωn≈5B\omega_{gc} \approx 0.76\,\omega_n \approx 5B; φm≈100 δ\varphi_m \approx 100\,\delta deg for φm≤70∘\varphi_m \le 70^\circ; φm≈1.04−0.8Mp\varphi_m \approx 1.04 - 0.8M_p rad (very rough).

Passi per tradurre le specifiche sul loop:

  1. Errore a regime ε\varepsilon con riferimento di ordine hh: LL di tipo hh e Kl≥1/εK_l \ge 1/\varepsilon.
  2. Overshoot MpM_p (o MrM_r): si traduce in fase φm\varphi_m (e δ\delta con δ=ln⁡(1/Mp)π2+ln⁡2(1/Mp)\delta = \dfrac{\ln(1/M_p)}{\sqrt{\pi^2 + \ln^2(1/M_p)}}).
  3. Velocità (trt_r, ωB\omega_B): si traduce in pulsazione di attraversamento ωgc\omega_{gc}.
  4. Con ωgc\omega_{gc} e φm\varphi_m si progetta il PID (PID Controllers and Bode Method DesignPID controllers exist in parallel and series forms, ideal and real (with a pole on the derivative), and are designed with the Bode method by choosing the controller type and gain from the steady-state specifications and then the PID parameters that give the required gain and phase correction at the crossover frequency.PID Controllers and Bode Method Design →).

Dimostrazione di ωgc\omega_{gc}: da ∣L(jωgc)∣=1\lvert L(j\omega_{gc})\rvert = 1 si ottiene ωgc4+(2δωn)2ωgc2−ωn4=0\omega_{gc}^4 + (2\delta\omega_n)^2\omega_{gc}^2 - \omega_n^4 = 0, quindi ωgc=ωn1+4δ4−2δ2\omega_{gc} = \omega_n\sqrt{\sqrt{1+4\delta^4} - 2\delta^2}.

Dimostrazione di φm\varphi_m: φm=π+∠L(jωgc)=π/2−atan⁡ ⁣(ωgc/(2δωn))\varphi_m = \pi + \angle L(j\omega_{gc}) = \pi/2 - \operatorname{atan}\!\big(\omega_{gc}/(2\delta\omega_n)\big), che con l'espressione di ωgc\omega_{gc} dà la formula con atan⁡\operatorname{atan} sopra.

Tabella riassuntiva:

Specifica Dove si impone Regola
Errore a regime tipo hh e guadagno KlK_l Kl≥1/εK_l \ge 1/\varepsilon
Overshoot MpM_p margine di fase φm\varphi_m φm≈1.04−0.8Mp\varphi_m \approx 1.04 - 0.8M_p rad
Velocità (trt_r, ωB\omega_B) ωgc\omega_{gc} ωgc≈0.76 ωn≈5B\omega_{gc} \approx 0.76\,\omega_n \approx 5B per φm≈55∘\varphi_m \approx 55^\circ

Errori tipici:

  • Mescolare BB (hertz) con ωB\omega_B (rad/s): ωB=2πB\omega_B = 2\pi B.
  • Usare tr≈0.3/Bt_r \approx 0.3/B con BB in rad/s invece che in hertz.
  • Prendere come esatta la formula φm≈1.04−0.8Mp\varphi_m \approx 1.04 - 0.8M_p: è solo una stima grossolana.
  • Assumere ωgc>ωn\omega_{gc} > \omega_n: in generale vale ωgc/ωn<1\omega_{gc}/\omega_n < 1.

Teoria collegata