LABORATORY OF AUTOMATION SYSTEMS Analytical design of digital controllers

Size: px
Start display at page:

Download "LABORATORY OF AUTOMATION SYSTEMS Analytical design of digital controllers"

Transcription

1 LABORATORY OF AUTOMATION SYSTEMS Analytical design of digital controllers Claudio Melchiorri Dipartimento di Ingegneria dell Energia Elettrica e dell Informazione (DEI) Università di Bologna claudio.melchiorri@unibo.it C. Melchiorri (DEI) LAS - AnDes 1 / 98

2 Analytical design of digital controllers 1 Poles and zeros assignment Introduction The Diophantine equation Design procedure Dealing with noise Control of an electromechanical system 2 Simplified techniques for analytical design Deadbeat design Simplified deadbeat design Dahlin design Specifications on the control variable 3 Appendix Note on the implementation of a digital controller Choice of the sampling period C. Melchiorri (DEI) LAS - AnDes 2 / 98

3 Poles and zeros assignment Introduction Poles and zeros assignment Let us assume to have the following block scheme: v G p (z) v(k) u(k) T Contr. H (s) T G p (s) y y(k) T G p (z) = Y(z) U(z) = B(z) A(z) where B(z) and A(z) have no common factors and have degree m and n respectively, with n m Controller: R(z)U(z) = T(z)V(z) S(z)Y(z) C. Melchiorri (DEI) LAS - AnDes 3 / 98

4 Poles and zeros assignment Introduction Poles and zeros assignment d 1 d 2 v T u B x y R A controller S R Closed loop system: Specification: Design equation: where Y(z) V(z) = BT AR +BS G m (z) = B m(z) A m (z) B T AR +BS = B m A m degree(a m ) degree(b m ) degree(a) degree(b) C. Melchiorri (DEI) LAS - AnDes 4 / 98

5 Poles and zeros assignment Introduction Poles and zeros assignment Note that the control action combines a feedforward term H ff (z) = T(z) R(z) and a feedback term Moreover, causality implies that H fb (z) = S(z) R(z) degree(r) degree(t), degree(r) degree(s) In practice, common choices are degree(r) = degree(t) = degree(s) or degree(r) = 1+degree(T) = 1+degree(S) C. Melchiorri (DEI) LAS - AnDes 5 / 98

6 Poles and zeros assignment Introduction Poles and zeros assignment Considering an internal stable dynamics A (z) (observer dynamics) we could define as reference transfer function G m (z) = A (z)b m (z) A (z)a m (z) Notice that the polynomial A (z) has no effects of the input/output relationship Y(z)/V(z), but has influence of the functions Y(z)/D 1 (z), and Y(z)/D 2 (z). Moreover, in order to have small errors for low-frequency disturbances, the closed-loop gain B(z) S(z) must be high for ω. A(z) R(z) z=e jωt Therefore, we can use integral actions and define: R(z) = (z 1) q R 1 (z) Design problem: compute the polynomials R, S and T. C. Melchiorri (DEI) LAS - AnDes 6 / 98

7 Poles and zeros assignment Introduction Poles and zeros assignment From the design equation: BT AR +BS = B m A m it follows that the cancellation among roots of B (zeros of the system) and roots of AR +BS (i.e. poles of the closed loop system) must be limited to stable terms: B = B + B where { B + stable zeros B unstable zeros B m = B B m Unstable (or non minimum phase) zeros have module > 1 ( z > 1). C. Melchiorri (DEI) LAS - AnDes 7 / 98

8 Poles and zeros assignment Introduction Poles and zeros assignment The presence of non minimum phase zeros in G p (z) may depend also on the choice of the sampling period T. In fact, for T [ ] [ 1 e Ts 1 e Ts G p (z) = Z G(s) Z s s ] 1 s k being k = n m the difference between the order of the denominator and numerator of G(s). For k 3 we always have unstable zeros. As a matter of fact, for k = 3 (and for T ) G p (z) T3 z 1 (1+4z 1 +z 2 ) 3! (1 z 1 ) 3 with a zero in z = C. Melchiorri (DEI) LAS - AnDes 8 / 98

9 Poles and zeros assignment Example Poles and zeros assignment Example. Consider the two transfer functions G 1 (s) = 1 s 3 +2s 2 +2s +1 p 1 = 1 p 2 =.5.866i p 3 = i G 2 (s) = 1 s 2 +2s +1 { p1 = 1 p 2 = G 1(s) G 2(s) Time (s) Time (s) C. Melchiorri (DEI) LAS - AnDes 9 / 98

10 Poles and zeros assignment Example Poles and zeros assignment With T = 2.5s we obtain G 1(z) =.6438z z z z z.6738 Poles in: p 1 = i p 2 = i p 3 =.821 Zeros in: { z1 =.8178 z 2 =.14 G 2(z) =.7127z z z Poles in: { p1 =.821 p 2 =.821 Zeros in: { z1 =.1822 C. Melchiorri (DEI) LAS - AnDes 1 / 98

11 Poles and zeros assignment Example Poles and zeros assignment G(s) vs G(z), T = 2.5 s G(s) vs G(z), T = 2.5 s Time (s) Time (s) π/T.6π/T.4π/T Poles Zeros.7π/T.1.3π/T.2.3.8π/T.4.2π/T π/T.8.1π/T.9 1π/T 1π/T Magnitude (db) Bode Diagram π/T.6π/T.4π/T Poles Zeros.7π/T.1.3π/T.2.3.8π/T.4.2π/T π/T.8.1π/T.9 1π/T 1π/T Magnitude (db) Bode Diagram π/T.8π/T.1π/T.2π/T Phase (deg) π/T.8π/T.1π/T.2π/T Phase (deg) π/T.3π/T.6π/T.4π/T.5π/T Frequency (rad/s).8 1.7π/T.3π/T.6π/T.4π/T.5π/T Frequency (rad/s) G 1(z) =.6438z z z z z.6738 G 2(z) =.7127z z z C. Melchiorri (DEI) LAS - AnDes 11 / 98

12 Poles and zeros assignment Example Poles and zeros assignment With T = 1.s we obtain G 1(z) =.9861z z z z z.1353 Poles in: p 1 = i p 2 = i p 3 =.3679 Zeros in: { z1 = z 2 =.1676 G 2(z) =.2642z z z Poles in: { p1 =.3679 p 2 =.3679 Zeros in: { z1 =.5122 C. Melchiorri (DEI) LAS - AnDes 12 / 98

13 Poles and zeros assignment Example Poles and zeros assignment G(s) vs G(z), T = 1 s G(s) vs G(z), T = 1 s Time (s) Time (s) Poles Zeros 1.6π/T.5π/T.4π/T.7π/T.1.3π/T.2.3.8π/T.4.2π/T π/T.8.1π/T.9 1π/T 1π/T.9π/T.1π/T.5.8π/T.2π/T.7π/T.3π/T.6π/T.4π/T.5π/T Phase (deg) Magnitude (db) Bode Diagram Frequency (rad/s) π/T.6π/T.4π/T Poles Zeros.7π/T.1.3π/T.2.3.8π/T.4.2π/T π/T.8.1π/T.9 1π/T 1π/T.9π/T.1π/T.8π/T.2π/T.7π/T.3π/T Magnitude (db) Phase (deg) Bode Diagram π/T.5π/T.4π/T Frequency (rad/s) G 1(z) =.9861z z z z z.1353 G 2(z) =.2642z z z C. Melchiorri (DEI) LAS - AnDes 13 / 98

14 Poles and zeros assignment Example Poles and zeros assignment With T =.1s we obtain G 1(z) =.1585z z z 3 2.8z z.8187 Poles in: p 1 = i p 2 = i p 3 =.948 Zeros in: { z1 = z 2 =.255 G 2(z) =.4679z z z Poles in: { p1 =.948 p 2 =.948 Zeros in: { z1 =.9355 Note that z 3.73 for T. C. Melchiorri (DEI) LAS - AnDes 14 / 98

15 Poles and zeros assignment Example Poles and zeros assignment G(s) vs G(z), T =.1 s G(s) vs G(z), T =.1 s Time (s) Time (s) π/T.5π/T.4π/T.7π/T.3π/T π/T.4.5.2π/T.6.7.9π/T.8.1π/T.9 1π/T 1π/T.9π/T.8π/T.7π/T.3π/T.6π/T.5π/T.4π/T Poles Zeros.1π/T.2π/T Magnitude (db) Phase (deg) Bode Diagram Frequency (rad/s) π/T.6π/T.4π/T Poles Zeros.7π/T.1.3π/T.2.3.8π/T.4.2π/T π/T.8.1π/T.9 1π/T 1π/T.9π/T.1π/T.8π/T.2π/T.7π/T.3π/T Phase (deg) Magnitude (db) Bode Diagram π/T.5π/T.4π/T Frequency (rad/s) G 1(z) =.1585z z z 3 2.8z z.8187 G 2(z) =.4679z z z C. Melchiorri (DEI) LAS - AnDes 15 / 98

16 Poles and zeros assignment Poles and zeros assignment The stable factor B + in B = B + B can be canceled by choosing R = B + R. Rewriting the design equation as: BT AR +BS = B + B T B + (AR +B S) = B m A m = B B m A m that is T AR +B S = B m A m and considering also the observer dynamics A, the two design equations became AR +B S = A A m T = A B m C. Melchiorri (DEI) LAS - AnDes 16 / 98

17 Poles and zeros assignment Poles and zeros assignment The characteristic equation of the feedback loop is AR +BS = B + A A m and therefore the poles are - the stable zeros of the plant (B + ) - the poles imposed by the design specification (A m ) - the poles of the observer dynamics (A ) C. Melchiorri (DEI) LAS - AnDes 17 / 98

18 Poles and zeros assignment The Diophantine equation The Diophantine equation The first design equation is in the form (Diophantine equation) AX +BY = C Necessary and sufficient condition for the existence of a solution (X,Y) is that the maximum common divider of A and B is a factor of C. Note that this condition is satisfied if A and B do not have common factors, as assumed here. Given a solution (X,Y ), then infinite solutions exist (Q arbitrary polynomial): Example 3x +4y = 7 X = X +QB Y = Y QA with x, y integer numbers A particular solution is x = y = 1, while the general solution is (n integer): { x = x +4n y = y 3n C. Melchiorri (DEI) LAS - AnDes 18 / 98

19 Poles and zeros assignment The Diophantine equation The Diophantine equation It is possible to show that a unique solution exists if the additional condition is assigned degree(x) < degree(b) or (the following will be used in the pole/zero assignment problem) degree(y) < degree(a) The solution of the Diophantine equation can be computed by solving a linear system. Given A(z) = z n +a 1 z n 1 +a 2 z n 2 + +a n B(z) = b z m +b 1 z m 1 +b 2 z m 2 + +b m C(z) = c z p +c 1 z p 1 +c 2 z p 2 + +c p Assuming degree(y) = n 1, then degree(x) = p n, and Y(z) = y z n 1 +y 1 z n 2 + +y n 1 X(z) = x z p n +x 1 z p n 1 + +x p n C. Melchiorri (DEI) LAS - AnDes 19 / 98

20 Poles and zeros assignment The Diophantine equation The Diophantine equation A note on the degrees of the polynomials in AX +BY = C (AR +BS = A m ). from s = deg(y) deg(a) = n, s = n 1 from H fb (z) = S(z)/R(z) s = deg(s) deg(r) = deg(x) = r r n 1 p = deg(c) = max {(deg(a)+deg(x)),(deg(b)+deg(y))} p max{(n+n 1),(m+n 1)} = 2n 1 In conclusion, a possible choice for the degrees of the polynomials X,Y, (S,R) and C is deg(x) = deg(r) = n 1 deg(y) = deg(s) = n 1 deg(c) = p = 2n 1 If a polynomial A is considered in C, the above relationships must be modified accordingly. C. Melchiorri (DEI) LAS - AnDes 2 / 98

21 Poles and zeros assignment The Diophantine equation The Diophantine equation By equating in AX +BY = C the terms of the same order, a square system of order p +1 (p +1 equations in p +1 unknowns) is obtained, given by a b a 2 a 1... b1 b a n... a1 b m... b a n... bm a n... b m x x 1... x p n y y 1... y n 1 = c c 1 c 2... c p 2 c p 1 c p Note that from the first row we get immediately x = c! C. Melchiorri (DEI) LAS - AnDes 21 / 98

22 Poles and zeros assignment The Diophantine equation The Diophantine equation Since form the first equation we have x = c, we obtain a square system of order p (Sylvester matrix) 1... b... a b1 b a 2 a 1... b2 b b a n... a1 b m... b1 a n... bm a n... b m x 1... x p n y y 1... y n 1 = c 1 c a 1 c 2 c a 2... c n c a n c n+1... c p In our case, we assign in order to have a unique solution: degree(s) = degree(a) 1 for causality: degree(a m ) degree(b m ) degree(a) degree(b) degree(a ) 2degree(A) degree(a m ) degree(b + ) 1 C. Melchiorri (DEI) LAS - AnDes 22 / 98

23 Poles and zeros assignment The Diophantine equation The Diophantine equation - Example Given the three polynomials A(z) = z 4 +a 1 z 3 +a 2 z 2 +a 3 z +a 4 (n = 4) B(z) = b z 3 +b 1 z 2 +b 2 z +b 3 (m = 3) C(z) = c z 7 +c 1 z 6 +c 2 z 5 +c 3 z 4 +c 4 z 3 +c 5 z 2 +c 6 z +c 7 (p = 7) Note that the highest order coefficients of C could be null, giving p < 7; we can nevertheless frame the problem in the most useful dimension. Recalling that AX +BY = C, and that the condition degree(y) < degree(a) must hold, we have that Therefore: degree(y) = n 1 = 3, degree(x) = p n = 3 Y/X proper! Y(z) = y z 3 +y 1 z 2 +y 2 z +y 3, X(z) = x z 3 +x 1 z 2 +x 2 z +x 3 where the coefficients x i,y i, i =,...4 must be computed. C. Melchiorri (DEI) LAS - AnDes 23 / 98

24 Poles and zeros assignment The Diophantine equation The Diophantine equation - Example From AX +BY = C, we have p +1 = 8 equations in the p +1 = 8 unknown coefficients x i,y i, i =,...4: degree 7 x = c degree 6 a 1 x +x 1 +b y = c 1 degree 5 a 2 x +a 1 x 1 +x 2 +b 1 y +b y 1 = c 2 degree 4 a 3 x +a 2 x 1 +a 1 x 2 +x 3 +b 2 y +b 1 y 1 +b y 2 = c 3 degree 3 a 4 x +a 3 x 1 +a 2 x 2 +a 1 x 3 +b 3 y +b 2 y 1 +b 1 y 2 +b y 3 = c 4 degree 2 a 4 x 1 +a 3 x 2 +a 2 x 3 +b 3 y 1 +b 2 y 2 +b 1 y 3 = c 5 degree 1 a 4 x 2 +a 3 x 3 +b 3 y 2 +b 2 y 3 = c 6 degree a 4 x 3 +b 3 y 3 = c 7 1 a 1 1 b a 2 a 1 1 b 1 b a 3 a 2 a 1 1 b 2 b 1 b a 4 a 3 a 2 a 1 b 3 b 2 b 1 b a 4 a 3 a 2 b 3 b 2 b 1 a 4 a 3 b 3 b 2 a 4 b 3 with a unique solution if A and B are co-prime. x x 1 x 2 x 3 y y 1 y 2 y 3 = C. Melchiorri (DEI) LAS - AnDes 24 / 98 c c 1 c 2 c 3 c 4 c 5 c 6 c 7

25 Poles and zeros assignment Design procedure Poles and zeros assignment: Design procedure 1. Inputs: G p = B/A, A, and G m = B m /A m 2. Decompose B = B B + B m = B B m where B + is monic 3. Solve (z 1) q AR 1 +B S = A A m with degree(s) = degree(a)+q 1 degree(r 1)=degree(A )+degree(a m ) degree(a) q 4. Write the control law Ru = T v S y with R = B + R, T = B ma, R = (z 1) q R 1 C. Melchiorri (DEI) LAS - AnDes 25 / 98

26 Poles and zeros assignment Design procedure Poles and zeros assignment: Design procedure In real applications, the design choice G m = B m /A m is usually made by imposing only few important properties for the closed loop system (e.g. bandwidth, overshoot, dominant poles,...). Let us assume where G m (z) = B m(z) A m (z) = Q(1) B (1) B (z) z k Q(z) 1 B are the non minimum phase zeros of the process 2 we may choose (i) Q(z) = z 2 +p 1 z +p 2, imposing dominant poles with natural frequency ω n and damping coefficient δ, with p 1 = 2e δωnt cos(ω n T 1 δ 2 ) p 2 = e 2δωnT or (ii) Q(z) = z a, with a = e T/τ, to avoid overshoots. 3 z k is the (approximated) time delay and the neglected dynamics of the open loop transfer function G p (z) 4 the two values Q(1) and B (1) make the static gain of G m equal to 1. C. Melchiorri (DEI) LAS - AnDes 26 / 98

27 Poles and zeros assignment Design procedure Poles and zeros assignment: Example Example: G p (s) = 1 s(s +1) [ 1 e st G p (z) = Z s ] 1 = s(s +1) K(z b) (z 1)(z a) where: a = e T, K = a+t 1, b = 1 T(1 a) K The desired overall transfer function is G m (z) = z(1+p 1 +p 2 ) z 2 +p 1 z +p 2 G p (z) has a zero in z = b, not present in G m (z), therefore Note that b <. B = B + B, B + = z b, B = K C. Melchiorri (DEI) LAS - AnDes 27 / 98

28 Poles and zeros assignment Design procedure Poles and zeros assignment: Example The following conditions must hold: - B m = B m K = z(1+p 1 +p 2 ) K - degree(a ), and we choose A = 1 - degree(r ) = degree(a )+degree(a m ) degree(a) = - degree(s) = degree(a) 1 = 1 Therefore The design equation is from which R = r, S = (s z +s 1 ) (z 1)(z a)r +K (s z +s 1 ) = z 2 +p 1 z +p 2 r = 1, s = 1+a+p 1, s 1 = p 2 a K K moreover T(z) = A B m = z(1+p 1 +p 2 ) = t z K C. Melchiorri (DEI) LAS - AnDes 28 / 98

29 Poles and zeros assignment Design procedure Poles and zeros assignment: Example The control law Ru = Tv Sy is: u(k) = bu(k 1)+t v(k) s y(k) s 1 y(k 1) 1.2 y(t) v(t) 3 u(k) Output y(t) and control variable u(k) for δ =.6, ω n = 1.2 and T =.2 Note the ringing effect on u(k). -3 (secondi) 1 C. Melchiorri (DEI) LAS - AnDes 29 / 98

30 Poles and zeros assignment Design procedure Poles and zeros assignment: Example 1.2 y(t) v(t) 3 u(k) Output y(t) and control variable u(k) for δ =.6, ω n = 1.2 and T =.8 Note the ringing effect on u(k). -3 (secondi) 1 C. Melchiorri (DEI) LAS - AnDes 3 / 98

31 Poles and zeros assignment Design procedure Poles and zeros assignment: Example The ringing effect is due to the zero cancelation (the zero z = b is negative). In order to eliminate this effect, G m (z) is modified as follows G m (z) = 1+p 1 +p 2 1 b z b z 2 +p 1 z +p 2 from which: B + = 1, B = K(z b) Since B m = 1+p 1 +p 2 K(1 b) degree(a ) 2degree(A) degree(a m ) degree(b + ) 1 = 1 we choose A (z) = z. Moreover: degree(r) = degree(a m )+degree(a ) degree(a m ) = 1 degree(s) = degree(a) 1 = 1 C. Melchiorri (DEI) LAS - AnDes 31 / 98

32 Poles and zeros assignment Design procedure Poles and zeros assignment: Example The design equation is (z 1)(z a)(z +r 1 )+K(z b)(s z +s 1 ) = z 3 +p 1 z 2 +p 2 z from which r 1 = b+ b(b2 +p 1 b +p 2 ) (b 1)(b a) K(1 b)(s +s 1 ) = 1+p 1 +p 2 We get K(a b)(s a+s 1 ) = a 3 +p 1 a 2 +p 2 a s = α 1 α 2 1 a α 1 = 1+p 1 +p 2 K(1 b) s 1 = α 2 α 1 a 1 a α 2 = a3 +p 1 a 2 +p 2 a K(a b) Since: T(z) = A B m = z1+p 1 +p 2 = t z, the resulting control law is: k(1 b) u(k) = r 1 u(k 1)+t v(k) s y(k) s 1 y(k 1) C. Melchiorri (DEI) LAS - AnDes 32 / 98

33 Poles and zeros assignment Design procedure Poles and zeros assignment: Example With δ =.6, ω n = 1.2 and T =.2 we get 1.2 y(t) v(t) 1.5 u(k) -.5 (secondi) 1 C. Melchiorri (DEI) LAS - AnDes 33 / 98

34 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Dealing with noise d 1 d 2 v T u B x y R A controller S R x = = T B R A 1+ S B R A TB RA+BS v + B v + A 1+ S R B A S B d 1 R A 1+ S R RB RA+BS d 1 B A d 2 SB RA+BS d 2 C. Melchiorri (DEI) LAS - AnDes 34 / 98

35 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Dealing with noise By assigning: H fb = S R feedback gain we obtain H a = B A S R loop gain x = B m A m v + H a 1+H a 1 H fb d 1 H a 1+H a d 2 By substituting (recall that AR +BS = B + A A m, B = B + B ) we have: x = A B m A A m v + R B B + A A m d 1 S B B + A A m d 2 = B m A m v + RB A A m d 1 SB A A m d 2 A appears only in the terms related to d 1 and d 2 (not to v). C. Melchiorri (DEI) LAS - AnDes 35 / 98

36 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Example Effect of A on the rejection of external disturbances. Consider d 2 =, and consider the transfer function and G p (z) = B(z) A(z) =.1 z 1 G m (z) = B m(z) A m (z) =.2 z.8 If A = 1, it is possible to show that the control equation u(k) = 2[v(k) y(k)] = 2e(k) complies with the given design constraint. In this case, it results (d 2 = ) x =.2 z.8 v +.1 z.8 d 1 = G m (z)v +G d (z)d 1 Since G d (1) =.5, the variable x is heavily affected by a constant disturbance d 1. C. Melchiorri (DEI) LAS - AnDes 36 / 98

37 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Example Bode diagram of G d (e jωt ) when A = 1 Gd(e^jwT) (db) wt In order to decrease the influence of d 1 on x, assign A (z) = z a, a 1 Therefore, the design equation (AR +BS = A A m ) results: (z 1)(z +r 1 )+.1(s z +s 1 ) = (z a)(z.8) from which (second order polynomial 2 equations) 1+r 1 +.1s = a.8, r 1 +.1s 1 =.8a C. Melchiorri (DEI) LAS - AnDes 37 / 98

38 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Example Two equations in three unknowns: there is a degree of freedom, that can be used to assign R(1) = (that is an integral action). We obtain: r 1 = 1 s = 12 1a s 1 = 8a 1 and therefore the closed loop system becomes x =.2 z.8 v +.1(z 1) (z a)(z.8) d 1 a=1 Gd(e^jwT) (db) -1-2 a=.98 a=.9 a=.6 a= wt C. Melchiorri (DEI) LAS - AnDes 38 / 98

39 Poles and zeros assignment Dealing with noise Poles and zeros assignment: Example Process output for a = [:.1:1] 1 y(t) y(t) y(t) time (s) time (s) Output of the process when: (above) a = 1, and then G d (1) = 1 (below) a =, and then G d (1) = Reference: unit step Disturbance: unit step at t = 5 s Output of the process for a [,1] C. Melchiorri (DEI) LAS - AnDes 39 / 98

40 Poles and zeros assignment Control of an electromechanical system Poles and zeros assignment: electromechanical system I C Motor ω 1 k ω 2 ω 1 ω 1 1 J 1 s J 1 d J 2 ω 2 k s d 1 J 2 s ω 2 C C i C e C 2 = With: J 1 = 1/9, J 2 = 1, k = 1, d =.1 the transfer function ω 2 (s)/c(s) results: ω 2 (s) C(s) = Gp(s) =.9(s +1) s[(s +.5) ] C. Melchiorri (DEI) LAS - AnDes 4 / 98

41 Poles and zeros assignment Control of an electromechanical system Poles and zeros assignment: electromechanical system The conjugated pair of poles is characterised by δ =.5 and ω n = 1 rad/s Specifications: the closed loop system must present a couple of dominant poles with natural frequency ω m =.5 rad/s and damping coefficient δ m =.7 Assume: T =.5s Let us consider an anti-aliasing filter (ω f = 2 rad/s) ω 2 f G f (s) = s ω f s +ωf 2 The model of the overall system (sample & hold, anti-aliasing filter and plant) results [ ] 1 e st G p (z) = Z G f (s)g p (s) = B(z) s A(z) =.142(z.233)(z ) (z 2.755z )(z 1) (z )(z ) (z z ) C. Melchiorri (DEI) LAS - AnDes 41 / 98

42 Poles and zeros assignment Control of an electromechanical system Poles and zeros assignment: electromechanical system Since the natural frequency ω n = 1 rad/s is close to the desired closed-loop frequency ω m =.5 rad/s, it is advisable to consider in the characteristic polynomial of the system a damping effect introduced e.g. by a second order polynomial A n. For the sake of simplicity, this effect can be obtained directly by the anti-aliasing filter. With B + = 1, the design equation is AR +BS = A m A n A From the Diophantine equations, it follows that A n must be a divider of S A m is chosen of order 5, with other three poles in z = A has degree 2, and is chosen as z 2 C. Melchiorri (DEI) LAS - AnDes 42 / 98

43 Poles and zeros assignment Control of an electromechanical system Poles and zeros assignment: electromechanical system Summarizing: A = A n (z 1)(z z ) = A n A 1 R = z 4 +r 1 z 3 +r 2 z 2 +r 3 z +r 4 B =.142(z.233)(z )(z )(z ) S = A n (s z 2 +s 1 z +s 2 ) = A n S 1 A m = (z z +.747)z 3 = A m z 3 A n = (z 2.755z ) A = z 2 The design equations become A 1 R +BS 1 = A m z 5, T = A m(1) B(1) A na The solution is R = z z z 3 +z 4 S = z z z z 4 T = 2.429z z z 4 C. Melchiorri (DEI) LAS - AnDes 43 / 98

44 Poles and zeros assignment Control of an electromechanical system Poles and zeros assignment: electromechanical system With a step input and impulsive disturbance d 1 applied at t = 25 s one obtains: 2 y(t) v(t) 1 u(t) -1 (secondi) 5 C. Melchiorri (DEI) LAS - AnDes 44 / 98

45 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method Design according to the deadbeat method C. Melchiorri (DEI) LAS - AnDes 45 / 98

46 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method In this case, the controller has a single degree of freedom, that is U(z) E(z) = S(z) R(z) = D(z) v(t) e(t) e(k) u(k) u(t) y(t) D(z) H (s) G p (s) T The deadbeat design specifies some desired properties of the output signal if the input reference is a classical function (as e.g. a step, a ramp, a parabola,...). Typical deadbeat specifications, in case of step references, are a) the output must reach its final value in the minimum possible time b) the steady state error must be zero c) no oscillations must be present between samples C. Melchiorri (DEI) LAS - AnDes 46 / 98

47 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method To satisfy the deadbeat specifications we impose that is: G m (z) = a z N +a 1 z N 1 + +a N z N G m (z) = a +a 1 z 1 + +a N z N = Y(z) V(z) with N n, n degree of the denominator of G p (z) From one obtains D(z)G p (z) 1+D(z)G p (z) = G m(z) D(z) = G m (z) G p (z)[1 G m (z)] C. Melchiorri (DEI) LAS - AnDes 47 / 98

48 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method Note that with the choice G m (z) = a +a 1 z 1 + +a N z N = Y(z) V(z) if the reference signal is a step (i.e. V(z) = 1/(1 z 1 )) we have Y(z) = ( a +a 1 z 1 + +a N z N) 1 (1 z 1 ) that is Y(z)(1 z 1 ) = ( a +a 1 z 1 + +a N z N) 1 y(k) y(k 1) = a k y(k) y(k 1) = k =,...,N k > N C. Melchiorri (DEI) LAS - AnDes 48 / 98

49 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method From y(k) = y(k 1)+a k we have: y() = a y(1) = y()+a y(n) = y(n 1)+a N y(n + 1) = y(n). As a consequence: y(k), y(t) y(k) =.2 +.2z 1 +.2z 3 +.2z 4 +.2z 5 y(k) = k i= ai, k N y(k) = N i= ai, k > N time C. Melchiorri (DEI) LAS - AnDes 49 / 98

50 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method There are some conditions to be satisfied: Causality conditions: 1. D(z) = S(z)/R(z) with positive relative degree (degree(s) < degree(r)) 2. If G p(z) has a factor z k, G m(z) must have a factor z h with h k Stability conditions: From D(z) = G m(z) G p(z)[1 G m(z)] 1. All unstable poles of G p(z) must be zeros of [1 G m(z)] 2. All unstable zeros of G p(z) must also be zeros of G m(z) We refer to set-point signals described by V(z) = P(z) (1 z 1 ) q+1 - if P(z) = 1, q = we have the unitary step - if P(z) = Tz 1, q = 1 we have the unitary ramp - if P(z) = 1 2 T2 z 1 (1+z 1 ), q = 2 we have the parabola v(t) = 1 2 t2 C. Melchiorri (DEI) LAS - AnDes 5 / 98

51 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method Since E(z) = V(z) Y(z) = V(z)[1 G m (z)] = P(z)[1 G m(z)] (1 z 1 ) q+1 the error goes to zero in finite time and remains null if 1 G m (z) = (1 z 1 ) q+1 N(z) where N(z) is a proper polynomial to be assigned. As a matter of fact, in this case we have E(z) = P(z)N(z) = e +e 1 z e h z h Therefore E(z) is given by a finite number of terms in z 1, and e(k) goes to zero in a finite number (h+1) of sampling periods. Hence the controller is given by D(z) = G m (z) G p (z)(1 z 1 ) q+1 N(z) C. Melchiorri (DEI) LAS - AnDes 51 / 98

52 Simplified techniques for analytical design Deadbeat design Design according to the deadbeat method If G p (s) is stable, in order to avoid oscillations between samples ( ripple phenomenon), we ask for t nt y(t) = costant for step input ẏ(t) = costant for ramp input ÿ(t) = costant for parabola input These requirements must be translated in conditions on the control input. For example, in case of step input, the control action u(t) must be constant in steady state (null if G p has an integral action). Comments: - The design depends on the reference signal (if the reference signal is not the expected one, the overall performance may be quite different) - Possible ringing effect on the control input, in particular if T is small C. Melchiorri (DEI) LAS - AnDes 52 / 98

53 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 v(t) e(t) e(k) u(k) u(t) y(t) D(z) H (s) G p (s) T 1 G p (s) = s(s +1) Design the controller D(z) so that the closed-loop system has a deadbeat step response. We choose T =.8 s. Therefore [ ] 1 e st 1 K(z b) G p (z) = Z = s s(s +1) (z 1)(z a) = K(1 bz 1 )z 1 (1 z 1 )(1 az 1 ) =.2493( z 1 )z 1 (1 z 1 )(1.4493z 1 ) C. Melchiorri (DEI) LAS - AnDes 53 / 98

54 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 Since G p (z) has a delay z 1 and n = 2, for G m (z) we choose a =, N = 2 G m (z) = a 1 z 1 +a 2 z 2 Since the input is a step, q = and therefore: 1 G m (z) = (1 z 1 )N(z) Note that with this choice we obtain also the cancellation of the pole of G p (z) in z = 1. Also, note that N(z) must be a polynomial with degree equal to 1. To avoid ripple we impose y(t) = const for t 2T, that in turns imply u(t) = const for t 2T, i.e. U(z) = b +b 1 z 1 +b c (z 2 +z ) where b c = since G p (s) has an integral action (the output of the process is constant with a null input). C. Melchiorri (DEI) LAS - AnDes 54 / 98

55 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 Therefore Moreover U(z) = b +b 1 z 1 U(z) = Y(z) Y(z) V(z) = G p (z) V(z) G p (z) = G m(z) V(z) G p (z) 1 (1 z 1 )(1.4493z 1 ) = G m (z) (1 z 1 ).2493( z 1 )z 1 (1.4493z 1 ) = G m (z).2493( z 1 )z 1 = G m(z) 4.1(1.4493z 1 ) ( z 1 )z 1 By equating the two previous expressions of U(z): U(z) = b +b 1 z 1 = G m (z) 4.1(1.4493z 1 ) ( z 1 )z 1 G m (z) = ( z 1 )z 1 G 1 U(z) = 4.1(1.4493z 1 ) G 1 where G 1 = cost C. Melchiorri (DEI) LAS - AnDes 55 / 98

56 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 From we obtain 1 G m (z) = 1 a 1 z 1 a 2 z 2 = (1 z 1 )N(z) N(z) = 1+(1 a 1 )z 1 1 a 1 a 2 = By equating the above relations (G m(z) = ( z 1 )z 1 G 1 = a 1z 1 +a 2z 2 ), one obtains G 1 = a 1, a a 1 = Finally: a 1 =.566, a 2 =.434 G m (z) =.566z z 2 N(z) = z 1 D(z) = G m (z) G p (z)(1 z 1 )N(z) = z z 1 C. Melchiorri (DEI) LAS - AnDes 56 / 98

57 Simplified techniques for analytical design Deadbeat design Deadbeat: example y(t) y(k), y(t) u(k) time (s) time C. Melchiorri (DEI) LAS - AnDes 57 / 98

58 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 In case the plant has an unmodelled dynamics, i.e., the step response is 1.2 G p (s) = 1 s(s +1)(s +1) y(t) v(t) 2.27 u(t) -1.2 (secondi) 8 C. Melchiorri (DEI) LAS - AnDes 58 / 98

59 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 The response to a ramp for the nominal system is 8 y(t) v(t) u(t) (secondi) 8 Note a steady state error corresponding to a k v =.872 In this case, let assume that a specification on the velocity error constant is assigned, i.e. k v = k v (additional constraint). C. Melchiorri (DEI) LAS - AnDes 59 / 98

60 Simplified techniques for analytical design Deadbeat design Deadbeat: example 1 We need additional degrees of freedom in G m (z), so we assign N 3. With N = 3 G m (z) = a 1 z 1 +a 2 z 2 +a 3 z 3 Moreover [ 1 z 1 k v = lim z 1 T ] [ 1 z 1 D(z)G p (z) = lim z 1 T Since we want to assign G m (1) = 1, we have N(1) = 1 T k v We can obtain no ripple on the output for t 3T by imposing U(z) = b +b 1 z 1 +b 2 z 2 ] G m (z) (1 z 1 = 1 G m (1) )N(z) T N(1) = k v The design procedure is the same as before, by considering that now it is better to assume G 1 as a first order polynomial in z 1, and not as a constant. C. Melchiorri (DEI) LAS - AnDes 6 / 98

61 Simplified techniques for analytical design Deadbeat design Deadbeat: example 2 Given G p (s) = e 5s 1s +1 Design D(z) so that the closed loop system has a deadbeat response to a step input. [ With T = 5 s 1 e st e 5s ] G p (z) = Z s 1s +1 [ = z 1 (1 z 1 )Z.3935z 2 = 1.665z 1 Since G p (z) has the time delay z 2, we assume G m (z) = a 2 z 2 1 s(1s +1) that also satisfies N n. It is not necessary to impose pole/zero cancelation conditions. C. Melchiorri (DEI) LAS - AnDes 61 / 98 ]

62 Simplified techniques for analytical design Deadbeat design Deadbeat: example 2 In order to avoid the ripple, we impose the condition U(z) = b +b 1 z 1 +b c (z 2 +z ) where b c = cost since G p (s) does not present an integral action. We have: U(z) = Y(z) G p (z) = Y(z) V(z) V(z) G p (z) = G m(z) V(z) G p (z) Then a 2 = 1 and N(z) = 1+z z 1 = G m (z) 1 z z 2 = G m (z) 2.541(1.665z 1 ) (1 z 1 )z 2 1 G m (z) = 1 a 2 z 2 = (1 z 1 )N(z) C. Melchiorri (DEI) LAS - AnDes 62 / 98

63 Simplified techniques for analytical design Deadbeat design Deadbeat: example 2 The controller results D(z) = 1.2 G m (z) G p (z)(1 z 1 )N(z) = (1.665z 1 ) (1 z 1 )(1+z 1 ) y(t) v(t) u(t) (secondi) 5 C. Melchiorri (DEI) LAS - AnDes 63 / 98

64 Simplified techniques for analytical design Deadbeat design Deadbeat: example 2 If the real process has a time delay different from the considered one, e.g. the following result is obtained 1.2 G p (s) = e 4s 1s +1 y(t) v(t) u(t) (secondi) 5 C. Melchiorri (DEI) LAS - AnDes 64 / 98

65 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design v(t) e(t) e(k) u(k) u(t) y(t) D(z) H (s) G p (s) T A simplified, although very common, design procedure can be adopted. Let us assume that 1 we consider step inputs only 2 G p (z) is stable and minimum phase (no zeros or poles outside the unit circle) it is therefore possible to cancel the system dynamics 3 a simplified specification is G m (z) = z k, with k larger or equal to the intrinsic delay of G p (z) (i.e. the difference n m between the order of the denominator and numerator) Under these assumptions, the controller D(z) has a very simple expression: D(z) = 1 G p (z) z k 1 z k C. Melchiorri (DEI) LAS - AnDes 65 / 98

66 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example Let us consider 1 G p (s) = (.5s +1)(s +1) 2 (2s +1) Two simplified models can be considered: G 1 (s) = e 1.46s 3.34s +1 1 G 2 (s) = e.78s 4s s +1 G(s) G1(s) 1 G(s) G2(s) (secondi) 2 C. Melchiorri (DEI) LAS - AnDes 66 / 98

67 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example Assuming a zero-order hold, T = 5s, and using the modified 1 Z-transform (with m = =.78) we have [ 1 e st e 1.46s ] G p1 (z) T=5 = Z s 3.34s +1 [ ] = (1 z 1 1 )Z m s(3.34s +1) = z 1 ( z 1 ) z 1 =.6535(z ) z(z.2238) and for the second model (still with T = 5s) G p2 (z) =.6634(z +.434)(z ) z[(z.4877) ] 1 It is an extension of the standard Z-transform, to incorporate delays that are not multiples of the sampling time. C. Melchiorri (DEI) LAS - AnDes 67 / 98

68 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example Discretizing G 1 (s) with T = 1s (m = 1.46 =.54) we have [ G p1 (z) T=1 = z 1 (1 z 1 e.46s ] )Z s(3.34s +1) = z 2 ( z 1 ) z 1 =.1493(z ) z 2 (z.7413) and (G 2 (s) with T = 1s) G p2 (z) =.5664(z +.347)(z +2.26) z[(z.6225) ] C. Melchiorri (DEI) LAS - AnDes 68 / 98

69 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example Comparison of the step response of G p (s), G p1 (z) and G p2 (z) 1 G1(s) HG1, T=5 HG1, T=1 1 G2(s) HG2, T=5 HG2, T=1 (secondi) 2 C. Melchiorri (DEI) LAS - AnDes 69 / 98

70 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example Choosing G p1 (z) with T = 5s, one obtains the controller: D(z) = z 1 ( z 1 )(1 z 1 ) = U(z) E(z) that, applied to the real system G p (s), gives the following results 1.5 y(t) v(t) 2 u(t) The response is different from the expected one: the model considered for the design is an approximation of the true dynamics! (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 7 / 98

71 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example By choosing G p1 (z) with T = 1s, there is a time-delay of 2 samples (z 2 ) and the minimum requirement is Y(z) V(z) = z 2 D(z) = 1 G p (z) z 2 1 z 2 = z 1 ( z 1 )(1 z 2 ) 1.5 y(t) v(t) 1 u(t) Note the ringing effect! It is due to the pole in z = (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 71 / 98

72 Simplified techniques for analytical design Simplified deadbeat design Simplified deadbeat design: example In order to reduce the ringing effect, it is necessary to eliminate the critical pole in z = 1, compensating then the static gain. 1.5 y(t) v(t) 1 u(t) -1 (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 72 / 98

73 Simplified techniques for analytical design Simplified deadbeat design Deadbeat: Simplified deadbeat design: example Let us consider the second model G p2(z) with T = 1s, and G m(z) = z 1. We obtain 4 D p2(z) T=1 = 176.6z[(z.6255) ] (z 1)(z +.347)(z +2.27) y(t) v(t) u(t) (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 73 / 98

74 Simplified techniques for analytical design Simplified deadbeat design Deadbeat: Simplified deadbeat design: example Let us consider the second model G p2(z) with T = 5s, and G m(z) = z 1. We obtain 1.5 D p2(z) T=5 = 1.57z[(z.4877) ] (z 1)(z +.434)(z ) y(t) v(t) 2 u(t) (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 74 / 98

75 Simplified techniques for analytical design Dahlin design Dahlin Design according to the Dahlin approach C. Melchiorri (DEI) LAS - AnDes 75 / 98

76 Simplified techniques for analytical design Dahlin design Dahlin The Dahlin controller is designed with the specification that the behaviour of the closed loop system is the same as the step response of a first order system with delay: Y(s) = e θs 1 λs +1 s, that is, in the discrete time domain, Y(z) = Considering a step input V(z) = (1 e T/λ )z N 1 (1 z 1 )(1 e T/λ z 1 ) 1 1 z 1 from which we obtain the controller λ is a proper design parameter {N = floor(θ/t) } 2 Y(z) V(z) = (1 e T/λ )z N 1 = G 1 e T/λ z 1 m (z) D(z) = 1 G m (z) G p (z) 1 G m (z) = 1 (1 e T/λ )z N 1 G p (z) 1 e T/λ z 1 (1 e T/λ )z N 1 2 floor(x) rounds the elements of X to the nearest integers towards minus infinity. C. Melchiorri (DEI) LAS - AnDes 76 / 98

77 Simplified techniques for analytical design Dahlin design Dahlin: example Let us consider the transfer function of the previous example: G p (s) = 1 (.5s +1)(s +1) 2 (2s +1) If T = 1, λ = 2, we substitute in the previous expression of D(z) the function G p (z) = G p1 (z) T=1 : Therefore: D(z) λ=2 = G p1 (z) T=1 =.149(z +.733) z 2 (z.741).392z 2 (1.68z 1.392z 2 ) z 2 (1.741z 1 ) ( z 1 ) = 2.63 (1.741z 1 ) (1 z 1 )(1+.392z 1 )(1+.738z 1 ) C. Melchiorri (DEI) LAS - AnDes 77 / 98

78 Simplified techniques for analytical design Dahlin design Dahlin: example Comparison of the three cases λ = 1, λ = 2 e λ = y1(t) y2(t) y5(t) 3 u2(t) (secondi) 4 Note the ringing effect, mainly due to the pole in z =.738. C. Melchiorri (DEI) LAS - AnDes 78 / 98

79 Simplified techniques for analytical design Dahlin design Dahlin: example If the pole is eliminated, and the static gain of D(z) modified accordingly, z 1 z=1 = ( 2.62/1.738= 1.513), we have 1.2 D(z) = (1.741z 1 ) (1 z 1 )(1+.392z 1 ) y(t) 3 u(t) (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 79 / 98

80 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable Specifications on the control variable C. Melchiorri (DEI) LAS - AnDes 8 / 98

81 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable Let us assume to have a step reference V(z) = 1 1 z 1 It is desired that in general the input/output variables of the process have (in discrete time) the following behaviour Y(z) = y 1 z 1 +y 2 z y N z N +z N U(z) = u +u 1 z u N z N +u f (z N 1 + ) being u f is the reciprocal of the static gain of the process. For example: Y(z) = y 1 z 1 +z 2 +z 3 + U(z) = u +u 1 z 1 +u f z 2 +u f z 3 + in this case, in two sampling periods the steady state is reached. C. Melchiorri (DEI) LAS - AnDes 81 / 98

82 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable Typical profiles assigned by the specifications 1 y 1 u T 2T 3T 4T Y(z) = y 1z 1 +z 2 +z 3 + U(z) = u +u 1z 1 +u f z 2 +u f z 3 + u f u 1 T 2T 3T 4T C. Melchiorri (DEI) LAS - AnDes 82 / 98

83 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable Let s consider the previous expression for Y(z), U(z). Then Y(z)/V(z) results Y(z) V(z) = (1 z 1 )(y 1 z 1 +z 2 + ) = y }{{} 1 z 1 +(1 y 1 ) z 2 = P(z) }{{} p 1 p 2 while U(z)/V(z) is with U(z) V(z) p i = 1 i = (1 z 1 )(u +u 1 z 1 +u f z 2 + ) = u }{{} +(u 1 u ) z 1 +(u f u 1 ) z 2 = Q(z) }{{}}{{} q q 1 q i = u f i q 2 C. Melchiorri (DEI) LAS - AnDes 83 / 98

84 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable The discrete time transfer function G p (z) results Then, the controller is G p (z) = Y(z) U(z) = Y(z) V(z) V(z) U(z) = P(z) Q(z) D(z) = 1 G p (z) Y(z)/V(z) 1 Y(z)/V(z) = Q(z) P(z) P(z) 1 P(z) = Q(z) 1 P(z) C. Melchiorri (DEI) LAS - AnDes 84 / 98

85 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable: example Let us consider again the previous 4-th order system G p (s) = 1 (.5s +1)(s +1) 2 (2s +1) with the discrete-time model G p1 (z) T=1. After normalisation, i.e. imposing i p i = 1, i q i = u f, we have G p1 (z) = z 2 ( z 1 ) z 1 = z 2 ( z 1 ) z 1 = P(z) Q(z) The controller D(z) results D(z) = z 1 1 z 2 ( z 1 ) C. Melchiorri (DEI) LAS - AnDes 85 / 98

86 Simplified techniques for analytical design Specifications on the control variable Specifications on the control variable: example Simulation results 1.3 y(t) v(t) 3.86 u(t) (secondi) 4 C. Melchiorri (DEI) LAS - AnDes 86 / 98

87 Simplified techniques for analytical design Specifications on the control variable Design for disturbance compensation N(s) D(z) H(s) G p (s) Y(s) We have: therefore, the controller is Y(z) = NG(z) 1+D(z)G p (z) D(z) = NG(z) Y(z) G p (z) Y(z) The design procedure is the following: 1) a model of the disturbance is assigned, e.g. a step disturbance 2) the desired profile for the output variable Y(z) is assigned 3) the controller D(z) is computed C. Melchiorri (DEI) LAS - AnDes 87 / 98

88 Simplified techniques for analytical design Specifications on the control variable Design for disturbance compensation The time instant in which the disturbance is applied is not known. Therefore, it is convenient to assume the worst case. Assuming a process with time delay θ: - the worst case is when the disturbance is applied θ sec before the sampling instant n(t) y(t) T θ T 2T 2T+θ - if the disturbance is not synchronised with the sampling, we are not in the worst case n(t) T+2θ y(t) θ T T + θ 2T C. Melchiorri (DEI) LAS - AnDes 88 / 98

89 Simplified techniques for analytical design Specifications on the control variable Design for disturbance compensation: example For the sake of simplicity, assume θ = T G p (s) = e T s therefore G p (z) = (1 b)z 2 1 bz 1 [ ] e T s NG(z) = Z = (1+τ s)s 1+τ s b = e T/τ (1 b)z 2 (1 z 1 )(1 bz 1 ) Constraints on the output variable y() =, y(t) =, y(2t) = 1 b, y(3t) = 1 b 2 y(nt) = if n > 3 1 b 1 b 2 T 2T 3T 4T C. Melchiorri (DEI) LAS - AnDes 89 / 98

90 Simplified techniques for analytical design Specifications on the control variable Design for disturbance compensation: example We obtain and then the controller is D(z) = Y(z) = (1 b)z 2 +(1 b 2 )z 3 1+b +b2 1 b 1 b(1+b)z 1 1+b +b 2 (1 z 1 )(1+(1+b)z 1 ) Notice the unstable pole in in z = (1+b), which could generate the ringing effect. C. Melchiorri (DEI) LAS - AnDes 9 / 98

91 Appendix Note on the implementation of a digital controller Implementation of a digital controller Appendix: Note on the implementation of a digital controller Choice of the sampling period C. Melchiorri (DEI) LAS - AnDes 91 / 98

92 Appendix Note on the implementation of a digital controller Implementation of a digital controller v(t) e(t) e(k) u(k) u(t) y(t) 1 D(z) H (s) Gp(s) G p(s) = s(s +1) T T =.8 s [ 1 e st G p (z) = Z s ] 1 = s(s +1) =.2493( z 1 )z 1 (1 z 1 )(1.4493z 1 ) K(z b) (z 1)(z a) = K(1 bz 1 )z 1 (1 z 1 )(1 az 1 ) Deadbeat controller: D(z) = z z 1 C. Melchiorri (DEI) LAS - AnDes 92 / 98

93 Appendix Note on the implementation of a digital controller Implementation of a digital controller 1.2 y(t) v(t) 2.27 u(t) -1.2 (secondi) 8 C. Melchiorri (DEI) LAS - AnDes 93 / 98

94 Appendix Note on the implementation of a digital controller Implementation of a digital controller Deadbeat controller: Therefore D(z) = z z 1 = U(z) E(z) U(z)(1+.434z 1 ) = E(z)( z 1 ) or (z 1 is a time delay of a sample period) u(k)+.434u(k 1) = 2.27e(k) 1.2e(k 1) Finally, the control action should be implemented with the following difference equation u(k) =.434u(k 1)+2.27e(k) 1.2e(k 1) C. Melchiorri (DEI) LAS - AnDes 94 / 98

95 Appendix Note on the implementation of a digital controller Implementation of a digital controller global ek1, yk1, n, n1, d1... n = 2.27; n1 = 1.2; d1 =.434;... while true, end [yk, vk] = AcquireData(); [uk] = ComputeControl(yk, vk); [error] = OutputControl(uk); % wait interrut function [uk] = ComputeControl(yk, vk); end ek = vk - yk; uk = - d1 * uk1 + n * ek - n1 * ek1; ek1 = ek; uk1 = uk C. Melchiorri (DEI) LAS - AnDes 95 / 98

96 Appendix Choice of the sampling period Choice of the sampling period The choice of a proper sampling period T is fundamental for any digital control system. and is the tradeoff among several factors related on one side to the cost and on the other to the degradation of performance. cost degradation Performance (control quality) refer to: - disturbante rejection; - set-point tracking; - control energy; - delay and stability; - robustness wrt varying parameter; T The (computational) cost refer to - exploitation of the computational power; - AD/DA conversion speed; - computational speed; - numerical precision (data storage). C. Melchiorri (DEI) LAS - AnDes 96 / 98

97 Appendix Choice of the sampling period Choice of the sampling period 1) Loss of information: ω s > 2ω b where ω b is the closed-loop bandwidth (usually ω b > ω c, the bandwidth of the process). 2) Smoot dynamics and low time-delays: 6 < ω s ω b < 2 3) Compensation of disturbances: ω s > 2ω r where ω r is the highest disturbance frequency that should be compensated (to compensate for disturbances, these must be known, as the process). 4) Effects of anti-aliasing filters: the transfer function of the process to be considered in the control design becomes: G p (z) = Z[G p(s)g f (s)] where G f (jω) represents the filter, with a bandwidth given by a frequency ω p such that ω p /ω b = 2. Therefore ω s ω b 2 C. Melchiorri (DEI) LAS - AnDes 97 / 98

98 Appendix Choice of the sampling period Choice of the sampling period Other practical rules often used in practice are: a) T τ dom 1 where τ dom is the dominant time constant of the open-loop system. Note that this condition must be accurately verified, since the open loop bandwidth must be significantly different from the closed loop one. b) c) T θ 4 where θ is the process time-delay. As in the previous point, this condition must be verified also for the closed-loop system. T < T a 1, ω s > 1ω n where T a is the settling time and ω n the natural frequency of the open loop system, that is in this case characterised by a (dominant) pair of complex conjugated poles. C. Melchiorri (DEI) LAS - AnDes 98 / 98

Pole-Placement Design A Polynomial Approach

Pole-Placement Design A Polynomial Approach TU Berlin Discrete-Time Control Systems 1 Pole-Placement Design A Polynomial Approach Overview A Simple Design Problem The Diophantine Equation More Realistic Assumptions TU Berlin Discrete-Time Control

More information

Module 6: Deadbeat Response Design Lecture Note 1

Module 6: Deadbeat Response Design Lecture Note 1 Module 6: Deadbeat Response Design Lecture Note 1 1 Design of digital control systems with dead beat response So far we have discussed the design methods which are extensions of continuous time design

More information

DIGITAL CONTROLLER DESIGN

DIGITAL CONTROLLER DESIGN ECE4540/5540: Digital Control Systems 5 DIGITAL CONTROLLER DESIGN 5.: Direct digital design: Steady-state accuracy We have spent quite a bit of time discussing digital hybrid system analysis, and some

More information

CONTROL OF DIGITAL SYSTEMS

CONTROL OF DIGITAL SYSTEMS AUTOMATIC CONTROL AND SYSTEM THEORY CONTROL OF DIGITAL SYSTEMS Gianluca Palli Dipartimento di Ingegneria dell Energia Elettrica e dell Informazione (DEI) Università di Bologna Email: gianluca.palli@unibo.it

More information

Digital Control Systems

Digital Control Systems Digital Control Systems Lecture Summary #4 This summary discussed some graphical methods their use to determine the stability the stability margins of closed loop systems. A. Nyquist criterion Nyquist

More information

Pole placement control: state space and polynomial approaches Lecture 3

Pole placement control: state space and polynomial approaches Lecture 3 : state space and polynomial es Lecture 3 O. Sename 1 1 Gipsa-lab, CNRS-INPG, FRANCE Olivier.Sename@gipsa-lab.fr www.gipsa-lab.fr/ o.sename 10th January 2014 Outline The classical structure Towards 2

More information

Chapter 13 Digital Control

Chapter 13 Digital Control Chapter 13 Digital Control Chapter 12 was concerned with building models for systems acting under digital control. We next turn to the question of control itself. Topics to be covered include: why one

More information

AC&ST AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS. Claudio Melchiorri

AC&ST AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS. Claudio Melchiorri C. Melchiorri (DEI) Automatic Control & System Theory 1 AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS Claudio Melchiorri Dipartimento di Ingegneria dell Energia Elettrica e dell Informazione (DEI)

More information

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD 206 Spring Semester ELEC733 Digital Control System LECTURE 7: DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD For a unit ramp input Tz Ez ( ) 2 ( z ) D( z) G( z) Tz e( ) lim( z) z 2 ( z ) D( z)

More information

Control of Electromechanical Systems

Control of Electromechanical Systems Control of Electromechanical Systems November 3, 27 Exercise Consider the feedback control scheme of the motor speed ω in Fig., where the torque actuation includes a time constant τ A =. s and a disturbance

More information

Control Systems I Lecture 10: System Specifications

Control Systems I Lecture 10: System Specifications Control Systems I Lecture 10: System Specifications Readings: Guzzella, Chapter 10 Emilio Frazzoli Institute for Dynamic Systems and Control D-MAVT ETH Zürich November 24, 2017 E. Frazzoli (ETH) Lecture

More information

EE451/551: Digital Control. Chapter 3: Modeling of Digital Control Systems

EE451/551: Digital Control. Chapter 3: Modeling of Digital Control Systems EE451/551: Digital Control Chapter 3: Modeling of Digital Control Systems Common Digital Control Configurations AsnotedinCh1 commondigitalcontrolconfigurations As noted in Ch 1, common digital control

More information

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year Automatic Control 2 Loop shaping Prof. Alberto Bemporad University of Trento Academic year 21-211 Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 21-211 1 / 39 Feedback

More information

Time Response Analysis (Part II)

Time Response Analysis (Part II) Time Response Analysis (Part II). A critically damped, continuous-time, second order system, when sampled, will have (in Z domain) (a) A simple pole (b) Double pole on real axis (c) Double pole on imaginary

More information

INTRODUCTION TO DIGITAL CONTROL

INTRODUCTION TO DIGITAL CONTROL ECE4540/5540: Digital Control Systems INTRODUCTION TO DIGITAL CONTROL.: Introduction In ECE450/ECE550 Feedback Control Systems, welearnedhow to make an analog controller D(s) to control a linear-time-invariant

More information

Optimal Polynomial Control for Discrete-Time Systems

Optimal Polynomial Control for Discrete-Time Systems 1 Optimal Polynomial Control for Discrete-Time Systems Prof Guy Beale Electrical and Computer Engineering Department George Mason University Fairfax, Virginia Correspondence concerning this paper should

More information

AN INTRODUCTION TO THE CONTROL THEORY

AN INTRODUCTION TO THE CONTROL THEORY Open-Loop controller An Open-Loop (OL) controller is characterized by no direct connection between the output of the system and its input; therefore external disturbance, non-linear dynamics and parameter

More information

Classify a transfer function to see which order or ramp it can follow and with which expected error.

Classify a transfer function to see which order or ramp it can follow and with which expected error. Dr. J. Tani, Prof. Dr. E. Frazzoli 5-059-00 Control Systems I (Autumn 208) Exercise Set 0 Topic: Specifications for Feedback Systems Discussion: 30.. 208 Learning objectives: The student can grizzi@ethz.ch,

More information

EECE 460 : Control System Design

EECE 460 : Control System Design EECE 460 : Control System Design SISO Pole Placement Guy A. Dumont UBC EECE January 2011 Guy A. Dumont (UBC EECE) EECE 460: Pole Placement January 2011 1 / 29 Contents 1 Preview 2 Polynomial Pole Placement

More information

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control Chapter 2 Classical Control System Design Overview Ch. 2. 2. Classical control system design Introduction Introduction Steady-state Steady-state errors errors Type Type k k systems systems Integral Integral

More information

Dr Ian R. Manchester

Dr Ian R. Manchester Week Content Notes 1 Introduction 2 Frequency Domain Modelling 3 Transient Performance and the s-plane 4 Block Diagrams 5 Feedback System Characteristics Assign 1 Due 6 Root Locus 7 Root Locus 2 Assign

More information

Discrete-time Controllers

Discrete-time Controllers Schweizerische Gesellschaft für Automatik Association Suisse pour l Automatique Associazione Svizzera di Controllo Automatico Swiss Society for Automatic Control Advanced Control Discrete-time Controllers

More information

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31 Introduction Classical Control Robust Control u(t) y(t) G u(t) G + y(t) G : nominal model G = G + : plant uncertainty Uncertainty sources : Structured : parametric uncertainty, multimodel uncertainty Unstructured

More information

Chapter 15 - Solved Problems

Chapter 15 - Solved Problems Chapter 5 - Solved Problems Solved Problem 5.. Contributed by - Alvaro Liendo, Universidad Tecnica Federico Santa Maria, Consider a plant having a nominal model given by G o (s) = s + 2 The aim of the

More information

Systems Analysis and Control

Systems Analysis and Control Systems Analysis and Control Matthew M. Peet Illinois Institute of Technology Lecture : Different Types of Control Overview In this Lecture, you will learn: Limits of Proportional Feedback Performance

More information

Signal sampling techniques for data acquisition in process control Laan, Marten Derk van der

Signal sampling techniques for data acquisition in process control Laan, Marten Derk van der University of Groningen Signal sampling techniques for data acquisition in process control Laan, Marten Derk van der IMPORTANT NOTE: You are advised to consult the publisher's version (publisher's PDF)

More information

EE402 - Discrete Time Systems Spring Lecture 10

EE402 - Discrete Time Systems Spring Lecture 10 EE402 - Discrete Time Systems Spring 208 Lecturer: Asst. Prof. M. Mert Ankarali Lecture 0.. Root Locus For continuous time systems the root locus diagram illustrates the location of roots/poles of a closed

More information

Distributed Real-Time Control Systems

Distributed Real-Time Control Systems Distributed Real-Time Control Systems Chapter 9 Discrete PID Control 1 Computer Control 2 Approximation of Continuous Time Controllers Design Strategy: Design a continuous time controller C c (s) and then

More information

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory Bangladesh University of Engineering and Technology Electrical and Electronic Engineering Department EEE 402: Control System I Laboratory Experiment No. 4 a) Effect of input waveform, loop gain, and system

More information

Analysis of SISO Control Loops

Analysis of SISO Control Loops Chapter 5 Analysis of SISO Control Loops Topics to be covered For a given controller and plant connected in feedback we ask and answer the following questions: Is the loop stable? What are the sensitivities

More information

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation A. Hably 1 1 Gipsa-lab, Grenoble-INP ahmad.hably@grenoble-inp.fr Commande d un robot mobile (Gipsa-lab (DA)) ASI 1 / 25 Outline 1 2 (Gipsa-lab (DA)) ASI 2 / 25 of controllers Signals must be sampled and

More information

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015 FACULTY OF ENGINEERING AND SCIENCE SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015 Lecturer: Michael Ruderman Problem 1: Frequency-domain analysis and control design (15 pt) Given is a

More information

Lecture 13: Internal Model Principle and Repetitive Control

Lecture 13: Internal Model Principle and Repetitive Control ME 233, UC Berkeley, Spring 2014 Xu Chen Lecture 13: Internal Model Principle and Repetitive Control Big picture review of integral control in PID design example: 0 Es) C s) Ds) + + P s) Y s) where P s)

More information

EEE 184: Introduction to feedback systems

EEE 184: Introduction to feedback systems EEE 84: Introduction to feedback systems Summary 6 8 8 x 7 7 6 Level() 6 5 4 4 5 5 time(s) 4 6 8 Time (seconds) Fig.. Illustration of BIBO stability: stable system (the input is a unit step) Fig.. step)

More information

Linear State Feedback Controller Design

Linear State Feedback Controller Design Assignment For EE5101 - Linear Systems Sem I AY2010/2011 Linear State Feedback Controller Design Phang Swee King A0033585A Email: king@nus.edu.sg NGS/ECE Dept. Faculty of Engineering National University

More information

Notes for ECE-320. Winter by R. Throne

Notes for ECE-320. Winter by R. Throne Notes for ECE-3 Winter 4-5 by R. Throne Contents Table of Laplace Transforms 5 Laplace Transform Review 6. Poles and Zeros.................................... 6. Proper and Strictly Proper Transfer Functions...................

More information

Methods for analysis and control of. Lecture 6: Introduction to digital control

Methods for analysis and control of. Lecture 6: Introduction to digital control Methods for analysis and of Lecture 6: to digital O. Sename 1 1 Gipsa-lab, CNRS-INPG, FRANCE Olivier.Sename@gipsa-lab.inpg.fr www.lag.ensieg.inpg.fr/sename 6th May 2009 Outline Some interesting books:

More information

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0. 6. Sketch the z-domain root locus and find the critical gain for the following systems K (i) Gz () z 4. (ii) Gz K () ( z+ 9. )( z 9. ) (iii) Gz () Kz ( z. )( z ) (iv) Gz () Kz ( + 9. ) ( z. )( z 8. ) (i)

More information

Digital Control & Digital Filters. Lectures 13 & 14

Digital Control & Digital Filters. Lectures 13 & 14 Digital Controls & Digital Filters Lectures 13 & 14, Professor Department of Electrical and Computer Engineering Colorado State University Spring 2017 Systems with Actual Time Delays-Application 2 Case

More information

( ) ( = ) = ( ) ( ) ( )

( ) ( = ) = ( ) ( ) ( ) ( ) Vρ C st s T t 0 wc Ti s T s Q s (8) K T ( s) Q ( s) + Ti ( s) (0) τs+ τs+ V ρ K and τ wc w T (s)g (s)q (s) + G (s)t(s) i G and G are transfer functions and independent of the inputs, Q and T i. Note

More information

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) = 567 This is often referred to as Þnite settling time or deadbeat design because the dynamics will settle in a Þnite number of sample periods. This estimator always drives the error to zero in time 2T or

More information

Control System Design

Control System Design ELEC ENG 4CL4: Control System Design Notes for Lecture #11 Wednesday, January 28, 2004 Dr. Ian C. Bruce Room: CRL-229 Phone ext.: 26984 Email: ibruce@mail.ece.mcmaster.ca Relative Stability: Stability

More information

Control Systems. Root Locus & Pole Assignment. L. Lanari

Control Systems. Root Locus & Pole Assignment. L. Lanari Control Systems Root Locus & Pole Assignment L. Lanari Outline root-locus definition main rules for hand plotting root locus as a design tool other use of the root locus pole assignment Lanari: CS - Root

More information

Compensator Design to Improve Transient Performance Using Root Locus

Compensator Design to Improve Transient Performance Using Root Locus 1 Compensator Design to Improve Transient Performance Using Root Locus Prof. Guy Beale Electrical and Computer Engineering Department George Mason University Fairfax, Virginia Correspondence concerning

More information

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam! Prüfung Regelungstechnik I (Control Systems I) Prof. Dr. Lino Guzzella 3.. 24 Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam! Do not mark up this translation aid -

More information

Poles and Zeros in z-plane

Poles and Zeros in z-plane M58 Mixed Signal Processors page of 6 Poles and Zeros in z-plane z-plane Response of discrete-time system (i.e. digital filter at a particular frequency ω is determined by the distance between its poles

More information

MEM 355 Performance Enhancement of Dynamical Systems

MEM 355 Performance Enhancement of Dynamical Systems MEM 355 Performance Enhancement of Dynamical Systems Frequency Domain Design Intro Harry G. Kwatny Department of Mechanical Engineering & Mechanics Drexel University /5/27 Outline Closed Loop Transfer

More information

Chapter 7 - Solved Problems

Chapter 7 - Solved Problems Chapter 7 - Solved Problems Solved Problem 7.1. A continuous time system has transfer function G o (s) given by G o (s) = B o(s) A o (s) = 2 (s 1)(s + 2) = 2 s 2 + s 2 (1) Find a controller of minimal

More information

It is common to think and write in time domain. creating the mathematical description of the. Continuous systems- using Laplace or s-

It is common to think and write in time domain. creating the mathematical description of the. Continuous systems- using Laplace or s- It is common to think and write in time domain quantities, but this is not the best thing to do in creating the mathematical description of the system we are dealing with. Continuous systems- using Laplace

More information

Outline. Classical Control. Lecture 1

Outline. Classical Control. Lecture 1 Outline Outline Outline 1 Introduction 2 Prerequisites Block diagram for system modeling Modeling Mechanical Electrical Outline Introduction Background Basic Systems Models/Transfers functions 1 Introduction

More information

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE EEE 43 DIGITAL SIGNAL PROCESSING (DSP) 2 DIFFERENCE EQUATIONS AND THE Z- TRANSFORM FALL 22 Yrd. Doç. Dr. Didem Kivanc Tureli didemk@ieee.org didem.kivanc@okan.edu.tr

More information

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review Week Date Content Notes 1 6 Mar Introduction 2 13 Mar Frequency Domain Modelling 3 20 Mar Transient Performance and the s-plane 4 27 Mar Block Diagrams Assign 1 Due 5 3 Apr Feedback System Characteristics

More information

Need for transformation?

Need for transformation? Z-TRANSFORM In today s class Z-transform Unilateral Z-transform Bilateral Z-transform Region of Convergence Inverse Z-transform Power Series method Partial Fraction method Solution of difference equations

More information

Intro to Frequency Domain Design

Intro to Frequency Domain Design Intro to Frequency Domain Design MEM 355 Performance Enhancement of Dynamical Systems Harry G. Kwatny Department of Mechanical Engineering & Mechanics Drexel University Outline Closed Loop Transfer Functions

More information

Recursive, Infinite Impulse Response (IIR) Digital Filters:

Recursive, Infinite Impulse Response (IIR) Digital Filters: Recursive, Infinite Impulse Response (IIR) Digital Filters: Filters defined by Laplace Domain transfer functions (analog devices) can be easily converted to Z domain transfer functions (digital, sampled

More information

Problem Set 4 Solutions 1

Problem Set 4 Solutions 1 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6245: MULTIVARIABLE CONTROL SYSTEMS by A Megretski Problem Set 4 Solutions Problem 4T For the following transfer

More information

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Basic Feedback Analysis & Design

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Basic Feedback Analysis & Design AERO 422: Active Controls for Aerospace Vehicles Basic Feedback Analysis & Design Raktim Bhattacharya Laboratory For Uncertainty Quantification Aerospace Engineering, Texas A&M University Routh s Stability

More information

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response .. AERO 422: Active Controls for Aerospace Vehicles Dynamic Response Raktim Bhattacharya Laboratory For Uncertainty Quantification Aerospace Engineering, Texas A&M University. . Previous Class...........

More information

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT ETH Zürich November 2, 2018 J. Tani, E. Frazzoli (ETH) Lecture 7:

More information

26 Feedback Example: The Inverted Pendulum

26 Feedback Example: The Inverted Pendulum 6 Feedback Example: The Inverted Pendulum Solutions to Recommended Problems S6. Ld 0(t) (a) Ldz6(t) = g0(t) a(t) + Lx(t), Ld (t) dt - ga(t) = Lx(t) Taking the Laplace transform of both sides yields szlo(s)

More information

Step input, ramp input, parabolic input and impulse input signals. 2. What is the initial slope of a step response of a first order system?

Step input, ramp input, parabolic input and impulse input signals. 2. What is the initial slope of a step response of a first order system? IC6501 CONTROL SYSTEM UNIT-II TIME RESPONSE PART-A 1. What are the standard test signals employed for time domain studies?(or) List the standard test signals used in analysis of control systems? (April

More information

10/8/2015. Control Design. Pole-placement by state-space methods. Process to be controlled. State controller

10/8/2015. Control Design. Pole-placement by state-space methods. Process to be controlled. State controller Pole-placement by state-space methods Control Design To be considered in controller design * Compensate the effect of load disturbances * Reduce the effect of measurement noise * Setpoint following (target

More information

Discrete Systems. Step response and pole locations. Mark Cannon. Hilary Term Lecture

Discrete Systems. Step response and pole locations. Mark Cannon. Hilary Term Lecture Discrete Systems Mark Cannon Hilary Term 22 - Lecture 4 Step response and pole locations 4 - Review Definition of -transform: U() = Z{u k } = u k k k= Discrete transfer function: Y () U() = G() = Z{g k},

More information

ELEG 305: Digital Signal Processing

ELEG 305: Digital Signal Processing ELEG 305: Digital Signal Processing Lecture 4: Inverse z Transforms & z Domain Analysis Kenneth E. Barner Department of Electrical and Computer Engineering University of Delaware Fall 008 K. E. Barner

More information

Lecture 04: Discrete Frequency Domain Analysis (z-transform)

Lecture 04: Discrete Frequency Domain Analysis (z-transform) Lecture 04: Discrete Frequency Domain Analysis (z-transform) John Chiverton School of Information Technology Mae Fah Luang University 1st Semester 2009/ 2552 Outline Overview Lecture Contents Introduction

More information

Digital Signal Processing

Digital Signal Processing COMP ENG 4TL4: Digital Signal Processing Notes for Lecture #21 Friday, October 24, 2003 Types of causal FIR (generalized) linear-phase filters: Type I: Symmetric impulse response: with order M an even

More information

Theory of Linear Systems Exercises. Luigi Palopoli and Daniele Fontanelli

Theory of Linear Systems Exercises. Luigi Palopoli and Daniele Fontanelli Theory of Linear Systems Exercises Luigi Palopoli and Daniele Fontanelli Dipartimento di Ingegneria e Scienza dell Informazione Università di Trento Contents Chapter. Exercises on the Laplace Transform

More information

MAS107 Control Theory Exam Solutions 2008

MAS107 Control Theory Exam Solutions 2008 MAS07 CONTROL THEORY. HOVLAND: EXAM SOLUTION 2008 MAS07 Control Theory Exam Solutions 2008 Geir Hovland, Mechatronics Group, Grimstad, Norway June 30, 2008 C. Repeat question B, but plot the phase curve

More information

21.4. Engineering Applications of z-transforms. Introduction. Prerequisites. Learning Outcomes

21.4. Engineering Applications of z-transforms. Introduction. Prerequisites. Learning Outcomes Engineering Applications of z-transforms 21.4 Introduction In this Section we shall apply the basic theory of z-transforms to help us to obtain the response or output sequence for a discrete system. This

More information

H(s) = s. a 2. H eq (z) = z z. G(s) a 2. G(s) A B. s 2 s(s + a) 2 s(s a) G(s) 1 a 1 a. } = (z s 1)( z. e ) ) (z. (z 1)(z e at )(z e at )

H(s) = s. a 2. H eq (z) = z z. G(s) a 2. G(s) A B. s 2 s(s + a) 2 s(s a) G(s) 1 a 1 a. } = (z s 1)( z. e ) ) (z. (z 1)(z e at )(z e at ) .7 Quiz Solutions Problem : a H(s) = s a a) Calculate the zero order hold equivalent H eq (z). H eq (z) = z z G(s) Z{ } s G(s) a Z{ } = Z{ s s(s a ) } G(s) A B Z{ } = Z{ + } s s(s + a) s(s a) G(s) a a

More information

EE480.3 Digital Control Systems. Part 2. z-transform

EE480.3 Digital Control Systems. Part 2. z-transform EE480.3 Digital Control Systems Part 2. z-transform Kunio Takaya Electrical and Computer Engineering University of Saskatchewan January 14, 2008 ** Go to full-screen mode now by hitting CTRL-L 1 Contents

More information

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D.

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D. Radar Dish ME 304 CONTROL SYSTEMS Mechanical Engineering Department, Middle East Technical University Armature controlled dc motor Outside θ D output Inside θ r input r θ m Gearbox Control Transmitter

More information

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter? UNIT - III PART A. Mention the important features of the IIR filters? i) The physically realizable IIR filters does not have linear phase. ii) The IIR filter specification includes the desired characteristics

More information

FREQUENCY-RESPONSE DESIGN

FREQUENCY-RESPONSE DESIGN ECE45/55: Feedback Control Systems. 9 FREQUENCY-RESPONSE DESIGN 9.: PD and lead compensation networks The frequency-response methods we have seen so far largely tell us about stability and stability margins

More information

Systems Analysis and Control

Systems Analysis and Control Systems Analysis and Control Matthew M. Peet Illinois Institute of Technology Lecture 8: Response Characteristics Overview In this Lecture, you will learn: Characteristics of the Response Stability Real

More information

Systems Analysis and Control

Systems Analysis and Control Systems Analysis and Control Matthew M. Peet Arizona State University Lecture 8: Response Characteristics Overview In this Lecture, you will learn: Characteristics of the Response Stability Real Poles

More information

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich Control Systems I Lecture 6: Poles and Zeros Readings: Emilio Frazzoli Institute for Dynamic Systems and Control D-MAVT ETH Zürich October 27, 2017 E. Frazzoli (ETH) Lecture 6: Control Systems I 27/10/2017

More information

Introduction to Feedback Control

Introduction to Feedback Control Introduction to Feedback Control Control System Design Why Control? Open-Loop vs Closed-Loop (Feedback) Why Use Feedback Control? Closed-Loop Control System Structure Elements of a Feedback Control System

More information

Exam. 135 minutes + 15 minutes reading time

Exam. 135 minutes + 15 minutes reading time Exam January 23, 27 Control Systems I (5-59-L) Prof. Emilio Frazzoli Exam Exam Duration: 35 minutes + 5 minutes reading time Number of Problems: 45 Number of Points: 53 Permitted aids: Important: 4 pages

More information

D(s) G(s) A control system design definition

D(s) G(s) A control system design definition R E Compensation D(s) U Plant G(s) Y Figure 7. A control system design definition x x x 2 x 2 U 2 s s 7 2 Y Figure 7.2 A block diagram representing Eq. (7.) in control form z U 2 s z Y 4 z 2 s z 2 3 Figure

More information

Systems Analysis and Control

Systems Analysis and Control Systems Analysis and Control Matthew M. Peet Arizona State University Lecture 21: Stability Margins and Closing the Loop Overview In this Lecture, you will learn: Closing the Loop Effect on Bode Plot Effect

More information

GATE EE Topic wise Questions SIGNALS & SYSTEMS

GATE EE Topic wise Questions SIGNALS & SYSTEMS www.gatehelp.com GATE EE Topic wise Questions YEAR 010 ONE MARK Question. 1 For the system /( s + 1), the approximate time taken for a step response to reach 98% of the final value is (A) 1 s (B) s (C)

More information

Introduction to Root Locus. What is root locus?

Introduction to Root Locus. What is root locus? Introduction to Root Locus What is root locus? A graphical representation of the closed loop poles as a system parameter (Gain K) is varied Method of analysis and design for stability and transient response

More information

Control of Single-Input Single-Output Systems

Control of Single-Input Single-Output Systems Control of Single-Input Single-Output Systems Dimitrios Hristu-Varsakelis 1 and William S. Levine 2 1 Department of Applied Informatics, University of Macedonia, Thessaloniki, 546, Greece dcv@uom.gr 2

More information

Lecture: Sampling. Automatic Control 2. Sampling. Prof. Alberto Bemporad. University of Trento. Academic year

Lecture: Sampling. Automatic Control 2. Sampling. Prof. Alberto Bemporad. University of Trento. Academic year Automatic Control 2 Sampling Prof. Alberto Bemporad University of rento Academic year 2010-2011 Prof. Alberto Bemporad (University of rento) Automatic Control 2 Academic year 2010-2011 1 / 31 ime-discretization

More information

EEE 188: Digital Control Systems

EEE 188: Digital Control Systems EEE 88: Digital Control Systems Lecture summary # the controlled variable. Example: cruise control. In feedback control, sensors and measurements play an important role. In discrete time systems, the control

More information

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

# FIR. [ ] = b k. # [ ]x[ n  k] [ ] = h k. x[ n] = Ae j e j# ˆ n Complex exponential input. [ ]Ae j e j ˆ. ˆ )Ae j# e j ˆ. y n. y n. [ ] = h k M [ ] = b k x[ n " k] FIR k= M [ ]x[ n " k] convolution k= x[ n] = Ae j" e j ˆ n Complex exponential input [ ] = h k M % k= [ ]Ae j" e j ˆ % M = ' h[ k]e " j ˆ & k= k = H (" ˆ )Ae j e j ˆ ( )

More information

DIGITAL CONTROL OF POWER CONVERTERS. 3 Digital controller design

DIGITAL CONTROL OF POWER CONVERTERS. 3 Digital controller design DIGITAL CONTROL OF POWER CONVERTERS 3 Digital controller design Frequency response of discrete systems H(z) Properties: z e j T s 1 DC Gain z=1 H(1)=DC 2 Periodic nature j Ts z e jt e s cos( jt ) j sin(

More information

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design ECSE 4962 Control Systems Design A Brief Tutorial on Control Design Instructor: Professor John T. Wen TA: Ben Potsaid http://www.cat.rpi.edu/~wen/ecse4962s04/ Don t Wait Until The Last Minute! You got

More information

MEM 355 Performance Enhancement of Dynamical Systems

MEM 355 Performance Enhancement of Dynamical Systems MEM 355 Performance Enhancement of Dynamical Systems Frequency Domain Design Harry G. Kwatny Department of Mechanical Engineering & Mechanics Drexel University 5/8/25 Outline Closed Loop Transfer Functions

More information

Data Based Design of 3Term Controllers. Data Based Design of 3 Term Controllers p. 1/10

Data Based Design of 3Term Controllers. Data Based Design of 3 Term Controllers p. 1/10 Data Based Design of 3Term Controllers Data Based Design of 3 Term Controllers p. 1/10 Data Based Design of 3 Term Controllers p. 2/10 History Classical Control - single controller (PID, lead/lag) is designed

More information

Why do we need a model?

Why do we need a model? Why do we need a model? For simulation (study the system output for a given input) Ex. Thermal study of a space shuttle when it enters the atmosphere (étude thermique concernant la rentrée dans l atmosphère

More information

STABILITY ANALYSIS TECHNIQUES

STABILITY ANALYSIS TECHNIQUES ECE4540/5540: Digital Control Systems 4 1 STABILITY ANALYSIS TECHNIQUES 41: Bilinear transformation Three main aspects to control-system design: 1 Stability, 2 Steady-state response, 3 Transient response

More information

Singular Value Decomposition Analysis

Singular Value Decomposition Analysis Singular Value Decomposition Analysis Singular Value Decomposition Analysis Introduction Introduce a linear algebra tool: singular values of a matrix Motivation Why do we need singular values in MIMO control

More information

Stability of CL System

Stability of CL System Stability of CL System Consider an open loop stable system that becomes unstable with large gain: At the point of instability, K( j) G( j) = 1 0dB K( j) G( j) K( j) G( j) K( j) G( j) =± 180 o 180 o Closed

More information

STABILITY ANALYSIS. Asystemmaybe stable, neutrallyormarginallystable, or unstable. This can be illustrated using cones: Stable Neutral Unstable

STABILITY ANALYSIS. Asystemmaybe stable, neutrallyormarginallystable, or unstable. This can be illustrated using cones: Stable Neutral Unstable ECE4510/5510: Feedback Control Systems. 5 1 STABILITY ANALYSIS 5.1: Bounded-input bounded-output (BIBO) stability Asystemmaybe stable, neutrallyormarginallystable, or unstable. This can be illustrated

More information

Robust Fractional Control An overview of the research activity carried on at the University of Brescia

Robust Fractional Control An overview of the research activity carried on at the University of Brescia Università degli Studi di Brescia Dipartimento di Ingegneria dell Informazione Robust Fractional Control An overview of the research activity carried on at the University of Brescia Fabrizio Padula and

More information

Controls Problems for Qualifying Exam - Spring 2014

Controls Problems for Qualifying Exam - Spring 2014 Controls Problems for Qualifying Exam - Spring 2014 Problem 1 Consider the system block diagram given in Figure 1. Find the overall transfer function T(s) = C(s)/R(s). Note that this transfer function

More information

Digital Control: Summary # 7

Digital Control: Summary # 7 Digital Control: Summary # 7 Proportional, integral and derivative control where K i is controller parameter (gain). It defines the ratio of the control change to the control error. Note that e(k) 0 u(k)

More information

ROBUST DIGITAL CONTROL USING POLE PLACEMENT WITH SENSITIVITY FUNCTION SHAPING METHOD

ROBUST DIGITAL CONTROL USING POLE PLACEMENT WITH SENSITIVITY FUNCTION SHAPING METHOD INTERNATIONAL JOURNAL OF ROBUST AND NONLINEAR CONTROL, VOL. 8, 191 210 (1998) ROBUST DIGITAL CONTROL USING POLE PLACEMENT WITH SENSITIVITY FUNCTION SHAPING METHOD I.D. LANDAU* AND A. KARIMI Laboratoire

More information