Salta al contenuto
Note per Studenti Non-Idealities in a Control Loop Report

Non-Idealities in a Control Loop

In questa pagina 7

Real control loops differ from the ideal feedback scheme of 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 →. This note collects the basic non-idealities of sensors and actuators, time delays, disturbances and uncertainties, with a simple model and the control implications of each. A complete worked example (temperature of a heated-air tube) is in Case Study - Temperature Control of a Heated-Air Tubemodeling of an air-temperature control rig, deriving a first-order model with transport delay from a heat balance, then the PWM heater driver, the thermocouple and its 12-bit converter, and the resulting digital control loop.Case Study - Temperature Control of a Heated-Air Tube →.

1. The loop with non-idealities

                    Disturbances d
                          |
                          v
 r --> [Controller C] --u--> [Actuator] --> [Process] --+--> y
         ^                  \_______ Plant (P) _______/ |
         |                                              |
         +-- y_m <---- [Sensor H] <---------------------+
                            ^
                            |
                  Measurement noise (errors) n

Typical non-idealities:

  • sensors with finite bandwidth and limited accuracy/precision;
  • actuators with finite bandwidth and output limits;
  • time delays around the loop;
  • plant uncertainties and disturbances.

2. Sensor non-idealities

Ideal sensor and sensitivity

An ideal sensor is a pure gain:

ym=Ks y.y_m = K_s\,y .

The sensitivity (sensor gain) is the ratio of the change in the output signal to the change in the physical quantity being measured:

Ks=dymdy∣operating point.K_s = \left.\frac{d y_m}{d y}\right|_{\text{operating point}} .

KsK_s has measurement units, and getting them right is critical for loop calculations. Examples from the slides: Ks=0.05 V/(rad/s)K_s = 0.05\ \mathrm{V/(rad/s)} for an analog tachometer, Ks=0.16 mA/∘CK_s = 0.16\ \mathrm{mA/^\circ C} for a temperature sensor.

Accuracy and precision

  • Accuracy: closeness to the true value.
  • Precision (repeatability): closeness between repeated measurements.

The slides illustrate the four cases with a target:

                 Low accuracy              High accuracy
 Low precision   scattered, off-centre     scattered around the centre
 High precision  tight cluster off-centre  tight cluster at the centre
  • Low accuracy appears as a constant offset (bias) superimposed on the true value.
  • Low precision appears as a random uncertainty (noise) superimposed on the true value.

Model of a sensor with bias bb and noise nn:

ym=Ks y+b+n.y_m = K_s\,y + b + n .

Control implications:

  • Accuracy affects steady-state performance: the sensor bias can cause a steady-state control error.
  • Precision affects the variability of the control effort: the sensor noise recirculates in the control loop and may increase control activity.

Resolution and quantization

Resolution is the smallest detectable change in the measured variable. The sensor output can take only discrete values (output quantization), producing a "staircase effect" (examples: optical encoders, A/D converters).

Uniform quantization with quantization step qq:

Q(x)=n qfor(n−12)q≤x<(n+12)q.Q(x) = n\,q \qquad\text{for}\quad \left(n - \tfrac12\right)q \le x < \left(n + \tfrac12\right)q .

The staircase has levels …,−2q,−q,0,q,2q,…\dots, -2q, -q, 0, q, 2q, \dots and the steps are centred on those levels, so the transitions occur at ±q/2\pm q/2, ±3q/2\pm 3q/2, ±5q/2\pm 5q/2, and so on.

Model of a sensor with quantization: the gain KsK_s followed by the block Q(⋅)Q(\cdot), which is nonlinear. Control implications:

  • steady-state oscillations (limit cycles);
  • jitter around the steady-state value of the output;
  • increased actuator activity (chattering).

Linear statistical model. The nonlinear quantizer can be replaced by a uniformly distributed noise nn added after the gain KsK_s:

n∼U ⁣(−q2,q2),σn2=q212.n \sim \mathcal{U}\!\left(-\frac{q}{2}, \frac{q}{2}\right), \qquad \sigma_n^2 = \frac{q^2}{12} .

Limited sensor bandwidth

A sensor cannot react instantly to infinitely fast changes of the measured quantity. This comes from the intrinsic low-pass dynamics of the sensing principle and/or from intentional low-pass filtering in signal-conditioning filters. First-order model, in series with the gain KsK_s:

Hs(s)=1τss+1.H_s(s) = \frac{1}{\tau_s s + 1} .

Control implications:

  • it attenuates high-frequency noise, but limits the achievable closed-loop bandwidth;
  • it adds phase lag that erodes the phase margin of the feedback loop, causing larger overshoot (a less damped system) or even instability.

3. Actuator non-idealities

Saturation

The actuator output can vary only within a range and cannot exceed its physical limits:

usat=sat⁡(u)={umax⁡if u>umax⁡uif umin⁡≤u≤umax⁡umin⁡if u<umin⁡u_{\text{sat}} = \operatorname{sat}(u) = \begin{cases} u_{\max} & \text{if } u > u_{\max} \\ u & \text{if } u_{\min} \le u \le u_{\max} \\ u_{\min} & \text{if } u < u_{\min} \end{cases}

(The slide prints umax⁡u_{\max} in the third case; it is evidently umin⁡u_{\min}.) Control implications:

  • the nonlinear behaviour may lead to limit cycles or unexpected oscillations, especially for large command variations;
  • command saturation during transients may cause integrator windup (if the controller has integral action), resulting in large overshoot, long recovery times and possible stability degradation.

Limited actuator bandwidth

Actuators cannot change state instantly, because of the intrinsic low-pass dynamics of the actuation principle (the slide says "can change state instantly", evidently a misprint for "cannot"). First-order model producing the band-limited command uBLu_{\mathrm{BL}}:

Ha(s)=1τas+1.H_a(s) = \frac{1}{\tau_a s + 1} .

Control implications:

  • additional phase lag, reducing the phase margin of the feedback loop;
  • the achievable closed-loop bandwidth is limited by the actuator bandwidth, which constrains the maximum speed of response;
  • neglecting actuator dynamics in the design may cause oscillations or degraded performance.

4. Time delays

Time delays are caused by the finite propagation speed of matter, energy or information in a control loop:

  • in industrial plants, material transport along conveyor belts or pipelines takes time: delay in the plant;
  • in remote satellite control, time is needed to transmit and receive data: delay in the actuator and/or sensor;
  • in any digital control system, time is needed to compute the new control command: delay in the controller.

Model

A delay Td>0T_d > 0 gives y(t)=u(t−Td)y(t) = u(t - T_d). By the time-translation property of the Laplace transform, Y(s)=e−sTd U(s)Y(s) = e^{-sT_d}\,U(s), so

H(s)=Y(s)U(s)=e−sTd=∑n=0+∞(−sTd)nn!=1−sTd+(sTd)22!−(sTd)33!+⋯H(s) = \frac{Y(s)}{U(s)} = e^{-sT_d} = \sum_{n=0}^{+\infty}\frac{(-sT_d)^n}{n!} = 1 - sT_d + \frac{(sT_d)^2}{2!} - \frac{(sT_d)^3}{3!} + \cdots

This is a non-rational transfer function.

Pade approximation

A rational approximation of e−sTde^{-sT_d} is obtained with Pade approximants. The approximant of order (m,n)(m,n) is

B(s)A(s)=bmsm+bm−1sm−1+⋯+b0ansn+an−1sn−1+⋯+a0,\frac{B(s)}{A(s)} = \frac{b_m s^m + b_{m-1}s^{m-1} + \cdots + b_0}{a_n s^n + a_{n-1}s^{n-1} + \cdots + a_0},

bk=Tdk (m+n−k)!  m!(m+n)!  k!  (m−k)! (−1)k,k=0,…,m,ak=Tdk (m+n−k)!  n!(m+n)!  k!  (n−k)!,k=0,…,n.b_k = T_d^k\,\frac{(m+n-k)!\;m!}{(m+n)!\;k!\;(m-k)!}\,(-1)^k, \quad k = 0, \dots, m, \qquad a_k = T_d^k\,\frac{(m+n-k)!\;n!}{(m+n)!\;k!\;(n-k)!}, \quad k = 0, \dots, n .

Typical approximants:

e−sTd≈11+sTd(0,1),e−sTd≈1−Tds21+Tds2(1,1),e^{-sT_d} \approx \frac{1}{1 + sT_d} \quad (0,1), \qquad e^{-sT_d} \approx \frac{1 - \frac{T_d s}{2}}{1 + \frac{T_d s}{2}} \quad (1,1),

e−sTd≈1−Tds2+(Tds)2121+Tds2+(Tds)212(2,2).e^{-sT_d} \approx \frac{1 - \frac{T_d s}{2} + \frac{(T_d s)^2}{12}}{1 + \frac{T_d s}{2} + \frac{(T_d s)^2}{12}} \quad (2,2).

The order (m,n)(m,n) determines the accuracy of the approximation. The slides show the unit step response of the delay for Pade approximants of order (3,3)(3,3), (6,6)(6,6), (9,9)(9,9) and (12,12)(12,12): the response starts away from zero, oscillates, and rises to 1 around t=Tdt = T_d; the higher the order, the sharper the transition near TdT_d.

Frequency response

For s=jωs = j\omega: H(jω)=e−jωTdH(j\omega) = e^{-j\omega T_d}, hence

∣H(jω)∣=1,∠H(jω)=−ωTd.|H(j\omega)| = 1, \qquad \angle H(j\omega) = -\omega T_d .

The magnitude is constant (0 dB) and the phase decreases linearly with ω\omega. The slide plot, for Td=0.1T_d = 0.1, shows the phase going from 0 to about −540∘-540^\circ and beyond over 00 to 100100 rad/s.

Control implications:

  • the delay adds phase lag, increasing linearly with frequency;
  • the phase margin is reduced, lowering the overall robustness;
  • even a stable system may become unstable for sufficiently large delays.

5. Disturbances

  • Load disturbance dd: acts at the plant input. Usually at low frequency; it is rejected via high controller gain (integral action).
  • Measurement disturbance (noise, error) nn: typically acts at the sensor output. Usually at high frequency; it requires low controller gain to avoid amplification.

Control implications:

  • perfect rejection of both load disturbances and measurement noise at the same frequencies is impossible;
  • control design is inherently a trade-off between disturbance rejection and noise sensitivity.

6. Parameter and model uncertainties

The real plant is never exactly equal to the nominal model, because of:

  • parameter variations (temperature, aging, wear, and so on);
  • unmodeled or neglected high-frequency dynamics;
  • simplifications in modeling.

Two descriptions:

parameter uncertainty: P(s)=P(s,θ),θ=θ0+Δθ;model (multiplicative) uncertainty: P(s)=P0(s)[1+Δ(s)].\text{parameter uncertainty: } P(s) = P(s,\theta), \quad \theta = \theta_0 + \Delta\theta; \qquad \text{model (multiplicative) uncertainty: } P(s) = P_0(s)\left[1 + \Delta(s)\right].

Control implications:

  • closed-loop performance differs from the predictions based on the nominal model;
  • stability margins are reduced if the variations increase loop gain or phase lag;
  • high-gain controllers are more sensitive to modeling errors;
  • robust control design aims to guarantee stability and acceptable performance despite uncertainty.

7. Conclusions

Real-world non-idealities affect performance through:

  • nonlinearities: actuator saturation, sensor quantization;
  • dynamics: limited sensor/actuator bandwidths, time delays;
  • disturbances: load disturbance, measurement noise;
  • uncertainties: parameter variations, model uncertainties.

All of them ultimately impact stability margins, bandwidth, performance and robustness. The numerical simulation of noise and quantization is the subject of Numerical Lab - Simulation with Noise and QuantizationNumerical lab session on a sampled-data speed controller for a DC motor: discrete-time derivative filters compared on Bode plots and on a noisy ramp, then a P and a PI speed loop simulated first with the Control System Toolbox and then in Simulink with DAC and encoder quantization and actuator saturation.Numerical Lab - Simulation with Noise and Quantization →, and the effect of sampling and computation delay in digital loops is treated in Digital Control SystemsA digital control system replaces the analog controller with a processing unit interfaced to the plant through an A/D converter (sampling plus quantization) and a D/A converter (zero-order hold), and neglecting quantization it becomes a sampled-data system that can be designed by emulation or directly in discrete time.Digital Control Systems →. For the frequency-domain meaning of phase margin see 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 → and Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →.

Versione ripasso

Sensor

  • Ideal: ym=Ksyy_m = K_s y, Ks=dym/dyK_s = dy_m/dy at the operating point (has units, e.g. 0.05 V/(rad/s)0.05\ \mathrm{V/(rad/s)}, 0.16 mA/∘C0.16\ \mathrm{mA/^\circ C}).
  • Accuracy = closeness to truth (low accuracy = bias bb, causes steady-state error). Precision = repeatability (low precision = noise nn, raises control effort variability). ym=Ksy+b+ny_m = K_s y + b + n.
  • Quantization Q(x)=nqQ(x) = nq for (n−12)q≤x<(n+12)q(n-\frac12)q \le x < (n+\frac12)q: nonlinear, gives limit cycles, jitter, chattering. Linear statistical model: n∼U(−q/2,q/2)n \sim \mathcal{U}(-q/2, q/2), σn2=q2/12\sigma_n^2 = q^2/12.
  • Limited bandwidth Hs=1τss+1H_s = \dfrac{1}{\tau_s s + 1}: filters HF noise but limits closed-loop bandwidth and erodes phase margin.

Actuator

  • Saturation usat=sat⁡(u)u_{\text{sat}} = \operatorname{sat}(u) between umin⁡u_{\min} and umax⁡u_{\max}: limit cycles, integrator windup (large overshoot, long recovery).
  • Limited bandwidth Ha=1τas+1H_a = \dfrac{1}{\tau_a s + 1}: phase lag, lower phase margin, closed-loop bandwidth bounded by actuator bandwidth.

Time delay y(t)=u(t−Td)y(t) = u(t - T_d):

  • H(s)=e−sTdH(s) = e^{-sT_d}, non-rational; ∣H(jω)∣=1|H(j\omega)| = 1, ∠H(jω)=−ωTd\angle H(j\omega) = -\omega T_d (phase lag grows linearly, margin reduced, can destabilise).
  • Pade (m,n)(m,n): bk=Tdk(m+n−k)! m!(m+n)! k! (m−k)!(−1)kb_k = T_d^k\frac{(m+n-k)!\,m!}{(m+n)!\,k!\,(m-k)!}(-1)^k, ak=Tdk(m+n−k)! n!(m+n)! k! (n−k)!a_k = T_d^k\frac{(m+n-k)!\,n!}{(m+n)!\,k!\,(n-k)!}.
    • (0,1)(0,1): 11+sTd\frac{1}{1+sT_d}; (1,1)(1,1): 1−Tds/21+Tds/2\frac{1 - T_ds/2}{1 + T_ds/2}; (2,2)(2,2): 1−Tds/2+(Tds)2/121+Tds/2+(Tds)2/12\frac{1 - T_ds/2 + (T_ds)^2/12}{1 + T_ds/2 + (T_ds)^2/12}.

Disturbances: load disturbance (low frequency, rejected by high gain/integral action); measurement noise (high frequency, needs low gain). Trade-off: both cannot be rejected at the same frequencies.

Uncertainties: P(s,θ)P(s,\theta) with θ=θ0+Δθ\theta = \theta_0 + \Delta\theta; multiplicative P=P0(1+Δ)P = P_0(1 + \Delta). Nominal predictions fail, margins shrink, high gain is more sensitive; robust design needed.

Overall: nonlinearities (saturation, quantization), dynamics (bandwidths, delays), disturbances, uncertainties all hit stability margins, bandwidth, performance and robustness.

Ritardo, risposta in frequenza: H(jω)=e−jωTdH(j\omega) = e^{-j\omega T_d}, quindi ∣H∣=1\lvert H\rvert = 1 (0 dB) e la fase scende linearmente con ω\omega. Per Td=0.1T_d = 0.1 s la fase arriva a circa −540∘-540^\circ entro 100100 rad/s. Un sistema stabile può diventare instabile con ritardi grandi.

Pade: e−sTd≈11+sTde^{-sT_d} \approx \dfrac{1}{1+sT_d} per (0,1)(0,1); 1−Tds/21+Tds/2\dfrac{1-T_ds/2}{1+T_ds/2} per (1,1)(1,1). L'ordine più alto è più accurato: a (3,3)(3,3), (6,6)(6,6), (9,9)(9,9), (12,12)(12,12) la risposta al gradino si avvicina al ritardo ideale con transizione più netta attorno a t=Tdt = T_d.

Quantizzazione: la forma lineare sostituisce il quantizzatore con un rumore uniforme nn sommato dopo KsK_s, con σn2=q2/12\sigma_n^2 = q^2/12.

Disturbi: di carico dd, a bassa frequenza, si respinge con alto guadagno (azione integrale); di misura nn, ad alta frequenza, richiede basso guadagno. Nessuno dei due si elimina completamente alle stesse frequenze: il progetto è un compromesso.

Errori tipici:

  • Confondere accuratezza (bias, errore a regime) con precisione (rumore, variabilità del controllo).
  • Dimenticare che KsK_s ha unità di misura e usarlo come numero puro nei calcoli di anello.
  • Considerare la quantizzazione un effetto trascurabile: produce oscillazioni persistenti (limit cycle).
  • Usare la forma (1,1)(1,1) di Pade per ritardi grandi e aspettarsi la stessa precisione della (3,3)(3,3).

Teoria collegata