Documente Academic
Documente Profesional
Documente Cultură
Winter 2011
EE 3CL4, L 1 2 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Outline
1 Why are you here? 2 What is a control system? 3 What tools will we use? 4 Administrative details 5 Parting shot
EE 3CL4, L 1 4 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 5 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 6 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 7 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 8 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 9 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 11 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 12 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
EE 3CL4, L 1 14 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
(Phys 1D03)
Basic electromagnetism (Phys 1E03, EE 2CJ4) Electric circuit analysis (EE 2CI5, EE 2CJ4, EE 2EI5) Step response of rst and second order systems
EE 3CL4, L 1 16 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Contact details
Tim Davidson
http://www.ece.mcmaster.ca/davidson/EE3CL4
A formal course outline appears on the web site.
EE 3CL4, L 1 17 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Class details
Lectures Tuesday, Thursday, Friday, 12:30pm, TSH/B128 Tentative topic schedule will appear on web site Tutorials (starting next week) T01: Tuesday, 8:30am, T13/125 T02: Monday, 11:30am, BSB/106 Labs (tentatively starting 24 January) Four labs One every other week, ITB/154 Signicant pre-lab work will be required
EE 3CL4, L 1 18 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Marking scheme
Laboratory reports: 20% Midterm test: 25%
Tentatively scheduled for week starting Monday 28 Feb (rst week after midterm break), 7:00pm 8:30pm
Final examination: 55% Students must personally complete all laboratories and
orally
Remarking requests will require documentation On tests & exams, expect to see problems that you
EE 3CL4, L 1 19 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Some suggestions
Be active in lectures Participate in tutorials Take advantage of the labs Do half of the assigned problems under examination
conditions
In exams, explain your methodology
EE 3CL4, L 1 21 / 21 Tim Davidson Why are you here? What is a control system? What tools will we use? Administrative details Parting shot
Parting shot
EE 3CL4, L 2 1 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Winter 2011
EE 3CL4, L 2 2 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Outline
2 Examples
3 Design process
EE 3CL4, L 2 4 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Mathematical model Must balance accuracy against insight generated This course: models will be linear Hence, tools available for insight: superposition, transfer function, Laplace
EE 3CL4, L 2 5 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 6 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 7 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 8 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Multivariable control
EE 3CL4, L 2 10 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 11 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 12 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 13 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Doritos
EE 3CL4, L 2 15 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 17 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 18 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
EE 3CL4, L 2 19 / 19 Tim Davidson What is control engineering Examples Design process Disk drive example
Winter 2011
Outline
2 Linearization
3 Laplace transforms
Most of the systems that we will deal with are dynamic Differential equations provide a powerful way to
Translational Spring
F (t ): resultant force in direction x Recall free body diagrams and action and reaction
Spring. k : spring constant, xr : relaxed length of spring
F (t ) = k [x2 (t ) x1 (t )] xr
Translational Damper
F (t ): resultant force in direction x
F (t ) = b
dx2 (t ) dx1 (t ) = b v2 (t ) v1 (t ) dt dt
Mass
F (t ): resultant force in direction x
Mass: M
F (t ) = M
d 2 xm (t ) dvm (t ) =M = Mam (t ) dt dt 2
Rotational spring
T (t ): resultant torque in direction
T (t ) = k [2 (t ) 1 (t )] r
Rotational damper
T (t ): resultant torque in direction
T (t ) = b
d 2 (t ) d 1 (t ) = b 2 (t ) 1 (t ) dt dt
Rotational inertia
T (t ): resultant torque in direction
Rotational inertia: J
T (t ) = J
d 2 m ( t ) d m ( t ) =J = J m (t ) 2 dt dt
(t ) F = M dv dt (t ) v (t ) = dy dt (t ) F (t ) = r (t ) b dy dt ky (t )
d 2 y (t ) dy (t ) +b + ky (t ) = r (t ) dt dt
Example, continued
d 2 y (t ) dy (t ) +b + ky (t ) = r (t ) dt dt
Example, continued
Stretch the spring a little and hold. Assume an under-damped system. What happens when we let it go?
Taylors series
Nature does not have many linear systems However, many systems behave approximately linearly
Pendulum example
Torque due to gravity: T = MgL sin Linearize around = 0. At that point, T = 0 Linearized model
T MgL
d sin d
=0
= MgL
Laplace transform
Once we have a linearized differential equation we can
F (s) =
0
f (t )est dt
What does
mean? limT
Does this limit exist? If |f (t )| < Met , then exists for all Re(s ) > .
can be tabulated
Winter 2011
Outline
1 Laplace transforms
Laplace transform
We will consider the one-sided Laplace transform, for
F (s) =
0
f (t )est dt
Key properties
df (t ) sF (s) f (0 ) dt F (s ) 1 f (x ) dx + s s
t 0
f (x ) dx
response
Mass-spring-damper system
d 2 y (t ) dy (t ) +b + ky (t ) = r (t ) dt dt
MSD system
M d 2 y (t ) dy (t ) +b + ky (t ) = r (t ) dt dt
Consider t 0 and take Laplace transform M s2 Y (s)sy (0 ) dy (t ) dt +b sY (s)y (0 ) +kY (s) = R (s)
t =0
t =0
Spring stretched to a point y0 , held, then let go at time t = 0 Hence, r (t ) = 0 and Hence, Y (s ) = s2 (s + b/M ) y0 + (b/M )s + k /M
dy (t ) dt t =0
=0
What can we learn about this response without having to invert Y (s)
Standard form
(s + b/M ) y0 + (b/M )s + k /M (s + 2n ) y 2 0 + 2n s + n
b 2 kM
Y (s ) =
s2
= where n =
s2
k /M and =
Poles: s1 , s2 = n n
2 1
> 1 (equiv. b > 2 kM ): distinct real roots, overdamped = 1 (equiv. b = 2 kM ): equal real roots, critically damped < 1 (equiv. b < 2 kM ): complex conj. roots, underdamped
Overdamped case
s1 , s2 = n n y (t ) = c1 es1 t + c2 es2 t y (0) = y0 = c1 + c2 = y0
(t ) dy dt t =0
2 1
= 0 = s1 c1 + s2 c2 = 0
What does this look like when strongly overdamped s2 is large and negative, s1 is small and negative Hence es2 t decays much faster than es1 t Also, c2 = c1 s1 /s2 . Hence, small Hence y (t ) c1 es1 t Looks like a rst order system!
s1 = s2 = n y (t ) = c1 en t + c2 ten t y (0) = y0 = c1 = y0
(t ) dy dt t =0
= 0 = c1 n + c2 = 0
Underdamped case
s1 , s2 = n j n 1 2 Therefore, |si | = n : poles lies on a circle Angle to negative real axis is cos1 ( ).
Underdamped case
Dene = n , d = n
1 2 . Response is:
y (t ) = c1 et cos(d t ) + c2 et sin(d t ) = Aet cos(d t + ) Homework: Relate A and to c1 and c2 . Homework: Write the initial conditions y (0) = y0 and
dy (t ) dt t =0
Numerical examples
Y (s) =
y0 , where n = 2 1
k /M , =
b 2 kM
Poles: s1 , s2 = n n
> 1: overdamped; < 1: underdamped Consider the case of M = 1, k = 1. Hence, n = 1, b = 3 0. Hence, = 1.5 0 Initial conds: y0 = 1,
dy (t ) dt t =0
=0
EE 3CL4, L 5 1 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Winter 2011
EE 3CL4, L 5 2 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Outline
1 Transfer function
2 Step response
EE 3CL4, L 5 4 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Transfer function
Denition: Laplace transform of output over Laplace transform of input when initial conditions are zero
EE 3CL4, L 5 5 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
t =0
EE 3CL4, L 5 7 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Step response
Recall that u (t ) 1 s Therefore, for transfer function G(s ), the step response
is: L 1
G(s) s
L 1
1 s(Ms2 + bs + k )
n = 1, = 1.5 0.
EE 3CL4, L 5 8 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 9 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 10 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 11 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 12 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 13 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 14 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 15 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 16 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 17 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 18 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 19 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 20 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 21 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
EE 3CL4, L 5 23 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
A DC motor
We will consider linearized model for each component Flux in the air gap: (t ) = Kf if (t ) (Magnetic cct, 2CJ4) Torque: Tm (t ) = K1 (t )ia (t ) = K1 Kf if (t )ia (t ). Is that linear? Only if one of if (t ) or ia (t ) is constant We will consider armature control: if (t ) constant
EE 3CL4, L 5 24 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
if (t ) will be constant (to set up magnetic eld), if (t ) = If Torque: Tm (t ) = K1 Kf If ia (t ) = Km ia (t ) Will control motor using armature voltage Va (t ) What is the transfer function from Va (s ) to angular
position (s)?
Origin?
EE 3CL4, L 5 25 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Tm (t ) = Km ia (t ) Tm (s ) = Km Ia (s ) KVL: Va (s ) = (Ra + sLa )Ia (s ) + Vb (s ) Vb (s ) is back-emf voltage, due to Faradays Law Vb (s ) = Kb (s ), where (s ) = s (s ) is rot. velocity Remember: transfer function implies zero init. conds
EE 3CL4, L 5 26 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Torque on load: TL (s ) = Tm (s ) Td (s ) Td (s ): disturbance. Often small, unknown (e.g., wind) Load torque to angle (Newton plus friction):
EE 3CL4, L 5 27 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
TL (s ) = Tm (s ) Td (s ) TL (s ) = Js 2 (s ) + bs (s ) = Js (s ) + b (s )
L (s ) Hence (s ) = T Js+b (s ) = (s )/s
EE 3CL4, L 5 28 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Block diagram
Vb (s ) = Kb (s ) TL (s ) = Tm (s ) Td (s ) TL (s ) = Js 2 (s ) + bs (s ) = Js (s ) + b (s )
L (s ) Hence (s ) = T Js+b (s ) = (s )/s
EE 3CL4, L 5 29 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Transfer function
G(s) =
Third order :(
EE 3CL4, L 5 30 / 30 Tim Davidson Transfer function Step response Transfer function of DC motor
Second-order approximation
G (s ) =
Often armature time constant, a = La /Ra , is negligible Hence (you MUST derive this yourself)
G(s)
Winter 2011
Outline
a block diagram
In this case, U (s ) = Gc (s )R (s ) and Y (s ) = G(s )U (s ) Hence, Y (s ) = G(s )Gc (s )R (s ) Consistent with the engineering procedure of breaking
things up into little bits, studying the little bits, and then put them together
Simple example
Ea (s ) = R (s ) B (s ) = R (s ) H (s )Y (s ) Y (s ) = G(s )U (s ) = G(s )Ga (s )Z (s ) Y (s ) = G(s )Ga (s )Gc (s )Ea (s ) Y (s ) = G(s )Ga (s )Gc (s ) R (s ) H (s )Y (s )
EE 3CL4, L 7 1 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Winter 2011
EE 3CL4, L 7 2 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Outline
EE 3CL4, L 7 4 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Last week
DC motor
if (t ) constant; motor controlled using va (t )
(s) Determined the transfer function V a (s )
EE 3CL4, L 7 5 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Transfer function
G (s ) =
EE 3CL4, L 7 7 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Uses a permanent magnet DC motor Can be modelled using arm. contr. model with Kb = 0 Hence, motor transfer function:
G (s ) =
EE 3CL4, L 7 8 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Typical values
G (s ) = (s) Km = Va (s) s(Ra + sLa )(Js + b)
G(s) =
EE 3CL4, L 7 9 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Time constants
Initial model
G(s) =
Motor time constant = 1/20 = 50ms Armature time constant = 1/1000 = 1ms Hence
G(s)
5 s(s + 20)
EE 3CL4, L 7 11 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
EE 3CL4, L 7 12 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Y (s ) =
s2
What is the response for R (s ) = 0.1/s ? Does it meet our design criteria?
EE 3CL4, L 7 13 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Step response
Response to r (t ) = 0.1u (t )
EE 3CL4, L 7 15 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
EE 3CL4, L 7 16 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Error signal E (s) = R (s) Y (s) For the case where H (s) = 1 (derive this for yourself): E (s) = 1 R (s) 1 + Gc (s)G(s) G(s) Td (s) 1 + Gc (s)G(s) Gc (s)G(s) + N (s ) 1 + Gc (s)G(s)
EE 3CL4, L 7 17 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Loop gain
Again, set H (s) = 1 Dene loop gain: L(s) = Gc (s)G(s) E (s ) = 1 G(s) L(s) R (s) Td (s ) + N (s) 1 + L(s) 1 + L(s) 1 + L(s)
EE 3CL4, L 7 18 / 18 Tim Davidson Transfer function of armature controlled DC motor Application to disk drive read system Our rst control system design Characteristics of feedback
Sensitivities
E (s) = S (s)R (s) S (s)G(s)Td (s) + C (s)N (s) Note that S (s) + C (s) = 1. Trading S (s) against C (s): a key to the art of control design
Winter 2011
Outline
For the whole of this lecture we will consider unity feedback: H (s) = 1
Under standing assumption of H (s) = 1, what is Y (s)? Y (s ) = Gc (s)G(s) R (s ) 1 + G c (s )G (s ) G(s) + Td (s) 1 + Gc (s)G(s) Gc (s)G(s) N (s ) 1 + Gc (s)G(s)
Dene the error signal: E (s) = R (s) Y (s) For H (s) = 1, what is E (s)? E (s ) = 1 R (s ) 1 + Gc (s)G(s) G (s ) Td (s) 1 + Gc (s)G(s) + Gc (s)G(s) N (s) 1 + Gc (s)G(s)
Loop gain
Dene loop gain: L(s) = Gc (s)G(s) 1 G(s) L(s) R (s) Td (s ) + N (s) 1 + L(s) 1 + L(s) 1 + L(s)
E (s ) =
What do we want?
E (s ) =
What do we want? Good tracking: E (s ) does depend only weakly on R (s ) = L(s) large where R (s) large
Good disturbance rejection:
Sensitivities
E (s) = S (s)R (s) S (s)G(s)Td (s) + C (s)N (s) Note that S (s) + C (s) = 1. Trading S (s) against C (s), with stability is the essence of the art of control design
Model sensitivities
S (s) =
1 1+Gc (s)G(s) ,
as earlier
EE 3CL4, L 9 1 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Tim Davidson
McMaster University
Winter 2011
EE 3CL4, L 9 2 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Outline
2 Price of feedback
EE 3CL4, L 9 4 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
reduced sensitivity to disturbances reduced sensitivity to model variation can also manipulate the transient response,
EE 3CL4, L 9 5 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Steady-state error
Recall standing assumption of H (s) = 1 Consider R (s) only; set Td (s) and N (s) to zero E (s) = R (s) Y (s) = 1 R (s ) 1 + Gc (s)G(s)
So what is the steady state error? If E (s) = 1+Gc (1 s)G(s) R (s ) has no poles in the close right half plane, except, perhaps for a simple pole at the origin,
t
EE 3CL4, L 9 6 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
1 1 1 + Gc (s)G(s) s
1 1 + Gc (s)G(s) 1 Hence, steady-state error is 1 + Gc (0)G(0) How to make this small? Large loop gain at DC
lims0 sE (s ) = lims0
EE 3CL4, L 9 7 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Consider r (t ) = tu (t ). = R (s ) = 1/s 2 .
1 1 E (s ) = 1+G ( c s )G(s ) s 2 1 1 lims0 sE (s ) = lims0 1+G ( c s )G(s ) s How to make this nite? n(s) c (s ) Let Gc (s ) = n dc (s) , G(s ) = d (s) dc (s)d (s) 1 sE (s ) = d (s)d (s)+nc (s)n(s) s c For nite SS error, dc (s )d (s ) must contain a factor s
integration
EE 3CL4, L 9 9 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Price of feedback
more components than open loop less gain than open loop
Gc (s)G(s) 1+Gc (s)G(s)
instead of Gc (s)G(s)
EE 3CL4, L 9 11 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Y (s) =
Lets consider step and step disturbance responses for two values of K , 100 and 20.
EE 3CL4, L 9 12 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
EE 3CL4, L 9 13 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
EE 3CL4, L 9 14 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
EE 3CL4, L 9 16 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
Y (s ) =
s3
1020s2
EE 3CL4, L 9 17 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
EE 3CL4, L 9 18 / 18 Tim Davidson More advantages of feedback Price of feedback Example: English Channel boring machines Example: Disk drive read system
To reduce this response need larger Ka but larger Ka will result in more oscilliatory response
EE 3CL4, L 10 1 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Tim Davidson
McMaster University
Winter 2011
EE 3CL4, L 10 2 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Outline
EE 3CL4, L 10 4 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Stability (next week) Steady-state response to chosen inputs Transient response to chosen inputs Compromises: the art of design
EE 3CL4, L 10 5 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
EE 3CL4, L 10 7 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
A second-order system
Now examine, in detail, a particular class of second order systems
Y (s ) =
2 n G(s) R (s ) R (s ) = 2 2 1 + G (s ) s + 2n s + n
EE 3CL4, L 10 8 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Step response
What is the step response? Set R (s) = 1/s; take inverse Laplace transform of Y (s) Y (s) =
2 n 2 s s2 +2n s+n
1 2 and = cos1 .
G(s) 1+G(s)
EE 3CL4, L 10 9 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
EE 3CL4, L 10 10 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
EE 3CL4, L 10 11 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
EE 3CL4, L 10 12 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
y (t ) = 1
1 n t e sin(n t + )
Peak time: rst time dy (t )/dt = 0 Can show that this corresponds to n Tp = Hence, Tp =
1 2
EE 3CL4, L 10 13 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Percentage overshoot
Let fv denote the nal value of the step response. Percentage overshoot dened as: P.O. = 100 Mpt fv fv
1 2
EE 3CL4, L 10 14 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
EE 3CL4, L 10 15 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
In general this is not zero. However, for our second-order system, y (t ) = 1 1 n t e sin(n t + )
Hence ess = 0
EE 3CL4, L 10 16 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Settling time
y (t ) = 1
1 n t e sin(n t + )
How long does it take to get within x % of nal value? Approx. when en t < x /100 When x = 2, that corresponds to n Ts 4;
EE 3CL4, L 10 17 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
y (t ) = 1
1 n t e sin(n t + )
How long to get to the target (for rst time)? Tr , the smallest t such that y (t ) = 1
EE 3CL4, L 10 18 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
What is Tr in over-damped case? Hence, typically use Tr 1 , the 10%90% rise time
EE 3CL4, L 10 19 / 19 Tim Davidson Performance of feedback control systems Performance of second-order systems
Difcult to get an accurate formula Linear approx. for 0.3 0.8 (under-damped),
EE 3CL4, L 11 1 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Tim Davidson
McMaster University
Winter 2011
EE 3CL4, L 11 2 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Outline
(review)
2 A taste of pole-placement design
EE 3CL4, L 11 4 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Class of systems
We considered the step response of an (under-damped) second order system
2 n R (s ) 2 s2 + 2n s + n
EE 3CL4, L 11 5 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
2 n T (s) = 2 2 s + 2n s + n
Poles of T (s)
EE 3CL4, L 11 6 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Step response
Y (s ) = T (s )
2 1 1 n = 2 2 s s + 2n s + n s
= y (t ) = 1 where =
1 n t e sin(n t + )
1 2 and = cos1 .
EE 3CL4, L 11 7 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
4 n
EE 3CL4, L 11 9 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Design problem
T (s ) =
EE 3CL4, L 11 10 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Pole positions
Ts
4 n
P.O. = 100 e
1 2
EE 3CL4, L 11 11 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Pole positions
n 1 s1 , s2 = n j n where = cos1 ( ). 1/ 2 1 2 = n cos() j n sin()
EE 3CL4, L 11 12 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
EE 3CL4, L 11 13 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Caveat
with T (s) =
2 n 2 s2 + 2n s + n
EE 3CL4, L 11 15 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Step response: Y (s ) = T (s ) 1 s Consider case with DC gain = 1; no repeated poles Partial fraction expansion
Y (s) =
1 + s
Ai + s + i
s2
Bk s + Ck 2 + 2) + 2k s + (k k
Step response
y (t ) = 1 +
i
Ai ei t +
k
Dk ek t sin(k t + k )
EE 3CL4, L 11 16 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
EE 3CL4, L 11 18 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
With H (s) = 1, E (s) = R (s) Y (s), L(s) = Gc (s)G(s), E (s) = G (s ) L(s) 1 R (s ) Td (s) + N (s) 1 + L(s) 1 + L(s) 1 + L(s)
Stability Good tracking in the steady state Good tracking in the transient Good disturbance rejection (good regulation) Good noise suppression Robustness to model mismatch
EE 3CL4, L 11 19 / 19 Tim Davidson Step response of a class of second-order systems (review) A taste of poleplacement design Transient performance, poles and zeros Summary and plan
Tim Davidson
McMaster University
Winter 2011
Outline
1 Steady-state error
Steady-state error
1 R (s ) 1 + Gc (s)G(s)
If the the conditions are satised, the nal value theorem gives steady-state tracking error: ess = lim e(t ) = lim s
t s 0
1 R (s) 1 + Gc (s)G(s)
One of the fundamental reasons for using feedback, despite the cost of the extra components, is to reduce this error. We will examine this error for the step, ramp and parabolic inputs
Step input
ess = lim e(t ) = lim s
t s 0
1 R (s) 1 + Gc (s)G(s)
Step input: R (s ) = A s sA/s ess = lims0 1+G (s)G(s) = 1+lim A c s0 Gc (s )G(s ) Now lets examine Gc (s )G(s ). Factorize num., den.
K sN
M i =1 (s + zi ) Q k =1 (s + pk )
ess =
A 1 + Gc (0)G(0)
System types
Kp = lim Gc (s)G(s) =
s 0
M i =1 (zi ) Q k =1 (pk )
Ramp input
The ramp input, which represents a step change in
velocity is r (t ) = At .
A Therefore R (s ) = s 2 Assuming conditions of nal value theorem are
satised, ess = lim A s(A/s2 ) = lim s0 s + sGc (s )G(s ) s0 1 + Gc (s )G(s ) A = lim s0 sGc (s )G(s )
Q K M i =1 (s +zi ) Q sN Q k =1 (s +pk )
For type-0 systems, Gc (s)G(s) has no poles at origin. Hence, ess For type-1 systems, Gc (s)G(s) has one pole at the origin. Q K i zi A Q Hence, ess = K , where K = v pk v
k
Note Kv can be computed from non-zero poles and zeros Suggests formal denition of velocity error constant Kv = lim sGc (s)G(s)
s0
Parabolic input
acceleration is r (t ) = At 2 /2.
A Therefore R (s ) = s 3 Assuming conditions of nal value theorem are
For type-0 and type-1 systems, Gc (s)G(s) has at most one pole at origin. Hence, ess For type-2 systems, Gc (s)G(s) has two poles at the origin. Q K i zi A Q Hence, ess = K , where K = a pk a
k
Again, Ka can be computed from non-zero poles and zeros Suggests formal denition of acceleration error constant Ka = lim s2 Gc (s)G(s)
s0
ess = where Kp = K1 K .
A 1 + Kp
ess =
A , Kv
Typical response
to a sawtooth input
Winter 2011
Outline
1 Stability
Stability
A systems is said to be stable if all bounded inputs r (t ) give rise to bounded outputs y (t ) Counterexamples
Albert Collins, Jeff Beck (Yardbirds),
Pete Townshend (The Who), Jimi Hendrix, Tom Morello (Rage Against the Machine), Kurt Cobain (Nirvana)
Tacoma Narrows
y (t ) =
g ( )r (t ) d
|y (t )| =
g ( )r (t ) d g ( )r (t ) d
g ( ) d
g ( ) d is nite
g ( ) d to be nite
Can we determine this from G(s)? We can write a general rational transfer function in the form G (s ) = K sN
k (s i (s + zi ) 2 m (s + 2m s 2 + 2 )) + ( m m
+ k )
Ak ek t +
m
Bm em t sin(m t + m )
Stability requires |g (t )| dt to be bounded; that requires k > 0, m > 0 In fact, system is stable iff poles have negative real parts
Marginal stability
Consider G(s ) = 1/s , simple pole at origin y (t ) = r (t ) dt if r (t ) = cos (t ), which is bounded, then y (t ) = sin(t ). Bounded If r (t ) = u (t ), which is bounded, then y (t ) = t . Not bounded Consider G(s ) = 1/(s 2 + 1), simple poles at s = j 1 Unit step response: u (t ) cos(t ). Bounded What if r (t ) is a sinusoid of frequency 1/(2 ) rad/sec? Not bounded
If G(s) has a pole with positive real part, or a repeated pole on j -axis output is always unbounded
Routh-Hurwitz condition
We have seen how to determine stability from the poles. Much easier than having to determine impulse response Can we determine stability without having to determine the poles? Yes! Routh-Hurwitz condition
Routh-Hurwitz condition
Let G(s) =
p (s ) q (s) ,
where
q (s) = an sn + an1 sn1 + . . . a1 s + a0 = an (s r1 )(s r2 ) . . . (s rn ) where ri are the roots of q (s) = 0. By multiplying out, q (s) = 0 can be written as q (s) = an sn an (r1 + r2 + + rn )sn1 + an (r1 r2 + r2 r3 + . . . )sn2 an (r1 r2 r3 + r1 r2 r4 + . . . )sn3 + + (1)n an (r1 r2 r3 . . . rn ) = 0 If all ri are real and in left half plane, what is sign of coeffs of sk ? the same!
Routh-Hurwitz condition
That observation leads to a necessary condition. Hence, not that useful for design A more sophisticated analysis leads to the Routh-Hurwitz condition, which is necessary and sufcient Hence, can be quite useful for design
Stability
Condition in terms of poles Condition in terms of denominator coefcients
Construct a table of the form sn sn1 sn2 sn3 . . . s0 where bn1 = b n 3 = 1 an1 an1 an2 an an3 1 = a n 1 a n 1 an an1 a n 4 a n 5 cn1 = an a n 1 1 bn1 an2 an3 an1 bn1 an3 bn3 an an1 bn1 cn1 . . . hn1 an2 an3 bn3 cn3 . . . an4 an5 bn5 cn5 . . . ... ... ... ... ...
Stability
Condition in terms of poles Condition in terms of denominator coefcients
Winter 2011
Outline
Stability
Let G(s) =
p (s ) q (s) ,
where
q (s) = an sn + an1 sn1 + . . . a1 s + a0 System is stable iff all poles of G(s) have negative real parts Recall, poles are solutions to q (s) = 0 Can we nd a necessary and sufcient condition that depends only on ak so that we dont have to solve q (s) = 0?
Routh-Hurwitz condition
1
Consider, with an > 0 an sn + an1 sn1 + an2 sn2 + . . . a1 s + a0 = 0 Construct a table of the form Row n Row n 1 Row n 2 Row n 3 . . . Row 0 an an1 bn1 cn1 . . . hn1 an2 an3 bn3 cn3 . . . an4 an5 bn5 cn5 . . . ... ... ... ... ...
Count the sign changes in the rst column That is the number of roots in the right half plane
Stability (poles in LHP) iff ak > 0 and all terms in rst col. > 0
Constructing RH table
Interlude
Determinant of a 2 2 matrix: a b c d = ad cb
Constructing RH table
Step 2.2: Construct 3rd row using determinants of 2 2 matrices constructed from rows above
Row n Row n 1 Row n 2 an an1 bn1 1 a n 1 an2 an3 an4 an5 ... ...
bn1 =
an a n 1
an2 an3
Constructing RH table
Step 2.2, cont: Construct 3rd row using determinants of 2 2 matrices constructed from rows above
Row n Row n 1 Row n 2 an an1 bn1 1 a n 1 an2 an3 bn3 an4 an5 ... ... ...
bn3 =
an a n 1
an4 an5
Constructing RH table
Step 2.3: Construct 4th row using determinants of 2 2 matrices constructed from rows above
Row n Row n 1 Row n 2 Row n 3 an an1 bn1 cn1 1 bn1 an2 an3 bn3 ... an4 an5 ... ... ...
cn1 =
a n 1 b n 1
an3 bn3
Step 2.4: Continue in this pattern. Caveat: If all elements of rst column are non-zero Will come back to that. Lets see some examples, rst
q (s) = a2 s2 + a1 s + a0
a2 a1 b1 a0 0
a0 0
= a0
Therefore, second order system is stable iff all three denominator coefcients have the same sign
a3 a2 b1 c1
a1 a0 0 0
b1 =
1 a2
a3 a2
a1 a0
c1 =
1 b1
a2 b1
a0 0
= a0
Therefore, if a3 > 0, necessary and sufcient condition for third-order system to be stable is that a2 > 0, b1 > 0 and a0 > 0. b1 > 0 is equiv. to a2 a1 > a0 a3 , and this implies a1 > 0.
can proceed by replacing the zero by a small positive number , and then taking the limit as 0 after the table has been constructed.
When a whole row is zero, we need to be a bit more
12
G1 (s) =
5000 s + 1000
Gs (s) =
1 s(s + 20)
Closed loop
T (s ) =
For stability we require b1 > 0 and Ka > 0 For example, Ka = 100 and K1 = 0.05. That pair gives a 2% settling time of 260ms
Winter 2011
Outline
Determine the characteristic polynomial (denominator of transfer function), with an > 0 q (s) = an sn + an1 sn1 + an2 sn2 + . . . a1 s + a0
Construct the Routh Table Row n Row n 1 Row n 2 Row n 3 . . . Row 0 an an1 bn1 cn1 . . . hn1 an2 an3 bn3 cn3 . . . an4 an5 bn5 cn5 . . . ... ... ... ... ...
System is stable iff ak > 0 and all terms in rst col. > 0
Construction procedure
Row k + 2 Row k + 1 Row k To compute r3 , multiply
1 1 rst element of previous row = q1 by determinant of 2 2 matrix formed in the following way: The rst column contains the rst elements of the two rows above the element to be calculated The second column contains the elements of the two rows above that lie one column to the right of the element to be calculated
p1 q1 r1
a3 q3 r3
p5 q5 r5
Therefore
r3 =
1 q1
p1 p5 q1 q5
1 p1 q5 q1 p5 q1
once the table has been constructed, take the limit as 0. (See previous lecture)
Zero row
It is possible that the Routh Hurwitz procedure can
opposite roots on the real axis, or a pair of complex conjugate roots on the imaginary axis. The latter is more common, and more useful in design
So how can we deal with this? Routh Hurwitz procedure provides an auxiliary polynomial that contains the roots of interest as factors The coefcients of this polynomial appear in the row above the zero row We replace the zero row by the coefcients of the derivative of the auxiliary polynomial
1 2 0
24 48 0
25 50
(s) = 2s4 + 48s2 50 Auxiliary polynomial: q This is actually a factor of q (s). (s) are s2 = 1, 25 Using quadratic formula, roots of q (s) are s = 1, j 5 Hence roots of q
(s) 3 dq ds = 8s + 96s .
1 2 8 24 112.7 50
24 48 96 50 0
25 50
Indicates one root in right half plane. (s) is a factor of q (s). Recall q (s) Indeed, by polyn division q (s) = (s + 2)q (s) are 1 and j 5. We have seen that roots of q
Hence q (s ) does indeed have one root with a positive
real part.
Select K and a so that the closed-loop is stable, and the steady-state error due to a ramp is at most 24% of the magnitude of the command
c3 =
b3 (K + 10) 8Ka b3
Stability region
These constraints can be rewritten as K < 126 Ka > 0 (K + 10)(126 K ) 64Ka > 0 For positive K ,
)(126K ) last constraint becomes a < (K +10 64K Region of stable parameters
Therefore, ess = 10A/(Ka) To obtain ess < 0.24A, we need Ka > 10/0.24 41.67, Any (K , a) pair in stable region with Ka > 41.67 will
For positive K , stability region is below the blue solid curve desired steady-state error region is above the red dashed curve and below the blue solid curve Design example: (70,0.6)
Ramp response
Ramp response for case of K = 70 and a = 0.6
Winter 2011
Outline
Simple example
KG(s) 1+KG(s)
Simple example
Another example
KG(s) 1+KG(s)
a2 4K )/2
Another example
In the previous examples we exploited the simple factorization of second order polynomials To be truly useful, we need a more general procedure
KG(s) 1+KG(s)
p (s ) q (s )
Closed loop poles are solutions to q (s) = 0 These are also solutions to 1 + KG(s) = 0 In polar form, |KG(s)|KG(s) = 1 + j 0 = 1(180 + k 360 ) Therefore, for s0 to be a closed-loop pole, we must have |KG(s0 )| = 1 where k is any integer We will also keep in mind that R (s) and Y (s) correspond to real signals. Hence, closed-loop poles are either real or occur in complex-conjugate pairs and KG(s0 ) = (180 + k 360 )
Write G(s) =
Q KG M (s+zi ) Qn i = 1 , ( s j =1 +pj )
open loop zeros are zi s; open loop poles are pi s For s0 to be a closed-loop pole |KKG |
M n n j =1 |s0 M i =1 |s0
+ zi | =1 + pj |
K + K G +
i =1
(s0 + zi )
j =1
Vector difference
Let u and v be complex numbers. Can you describe v u in geometric terms? Use the fact that v = u + (v u ). That means that v u is the vector from u to v
v u = ej . That is,
|v u | is the length of the vector from u to v . (v u ) is the angle of the vector from u to v
Geometric interpretation
Magnitude criterion: |KKG |
n j =1 M i =1
|s0 + zi | =1 |s0 + pj |
|KKG |
M i =1 distances n j =1 distances
Phase criterion:
M n
K + KG +
i =1 M
(s0 + zi )
j =1
K + KG +
i =1 n
angles from zeros of G(s) to s0 angles from poles of G(s) to s0 = 180 + k 360
j =1
Formal Procedure
We will rst consider the case of K going from 0 to +
Step 1
Write the characteristic equation as 1 + F (s ) = 0 Rearrange so that the parameter of interest is
contained in the multiplier K in an exprn of the form 1 + KP (s) = 0, where the numerator and denominator of P (s) are monic polynomials (the coefcient of the highest power of s is 1).
i =1 (s +zi ) Factorize P (s ) into poles and zeros, P (s ) = Qn (s+p ) j =1 j
QM
+ pj ) + K
M i =1 (s
+ zi ) = 0
Where does the locus start? Where are poles for K = 0? They are the poles of P (s ). Mark each with an
Step 1
n M
(s + pj ) + K
j =1 i =1
(s + zi ) = 0
Where do the poles end up? Where are poles for K ? Rewrite as (1/K )
n j =1 (s
+ pj ) +
M i =1 (s
+ zi ) = 0
The zeros of P (s ). Mark each with a Since M n there will often be zeros at , too
Summary: Root locus starts at poles of P (s) and ends at zeros of P (s) Note: Often P (s) = Gc (s)G(s) and K is an amplier gain. In that case, root locus (of the closed loop) starts at the open loop poles and ends at the open loop zeros.
Step 2
Phase condition:
M n
K +
i =1
(s0 + zi )
j =1
Recall that for K > 0, K = 0. What does this tell us when s0 is on the real axis?
Step 2, cont.
Phase condition for K > 0:
M i =1
(s0 + zi )
n j =1
For s0,1 , all angles from poles to s0,1 are zero For s0,2 , right pole generates an angle of 180 , others zero For s0,3 , For s0,4 ,
n j =1 n j =1
Something similar for zeros. Therefore: sections of real axis on the locus must lie to left of odd number of (real-valued) poles and (real-valued) zeros of P (s)
Example
P (s ) =
2(s+2) s(s+4)
Step 1: Poles s = 0, 4; Zeros s = 2 Step 2: Determine segments on real axis In this case, this is enough to generate the complete root locus
Winter 2011
Outline
Principles
Step 1
Write the denominator of the closed-loop transfer
Step 2
Step 3
P (s ) =
QM i =1 (s +zi ) Qn j =1 (s +pj )
(1/K )
j =1
(s + pj ) +
i =1
(s + zi ) = 0
the equation
+... How many zeros at innity? Recall that P (s ) = s sn +...
M
How do the loci approach the zeros at innity? Along equi-angular rays that intersect somewhere on
Step 3, Angles
Consider a point s0 on the root locus far from the poles of P (s) and the nite zeros of P (s) Phase condition (for positive K ):
M i =1
(s0 + zi )
n j =1
Since the point s0 is far away from all zi and pj , all angles are approximately the same, say
Hence, phase cond. is approx: (M n) = 180 + k 360 Re-arranging, and using multiples of 360 , =
2k +1 nM 180
for k = 0, 1, . . . , (n M 1)
Step 3, Centroid
From where do these rays eminate?
i =1 (s +zi ) Recall P (s ) = Qn (s+p ) j =1 j
QM
A =
M i =1 (zi )
nM
Example
Example
Partial root locus after Step 2
Example
Step 3: Asymptotes:
Angles: n M = 4 1 = 3.
Hence, angles are 60, 180, 300 Note that we already knew 180!
Centroid: A = 3
Example
Hence the complete root locus
Step 4
Find values of K for which closed-loop poles lie on
imaginary axis.
Also nd the positions of these closed-loop poles How can we do this? Routh-Hurwitz table (as in tutorial) Gains of interest correspond to zero rows,
but remember not all zero rows correspond to closed-loop poles on j -axis
Find the closed-loop pole positions by factorizing the
EE 3CL4, L 18 1/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
Winter 2011
EE 3CL4, L 18 2/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
Outline
EE 3CL4, L 18 4/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
Procedure
EE 3CL4, L 18 5/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
Steps 1 to 4
1
i i =1 1 + KP (s), with P (s) = Qn j =1 (s +pj ) Put an at the pj s; put a at the zi s Loci start at the s and end at the s or at innity
(s+z )
Parts of loci on real axis: to the left of an odd number of (real-valued) poles and (real-valued) zeros of P (s) n M asymptotes as K gets large: Angles = Centroid: A = 2k + 1 180 nM for k = 0, 1, . . . , (n M 1)
n j =1 (pj ) M i =1 (zi )
nM
Roots on j -axis and corresponding K s from zero rows and auxiliary polynomial of Routh-Hurwitz procedure
EE 3CL4, L 18 6/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
For this loop, P (s ) in root locus procedure is G(s ) What can we do if the root locus is not to our liking. Can we use the insight that we have developed to Q
(s+zi ) design a compensator Gc (s) = Q( j ) that we insert s+p between the amplier and G(s) so that the root locus with P (s) = Gc (s)G(s) is more to our liking?
Note that in the compensated system the zeros of P (s ) are the zi s from G(s ) i s from Gc (s) and the z the zeros of P (s ) are the pj s from G(s ) j s from Gc (s) and the p Lets attempt this for a VTOL aircraft
EE 3CL4, L 18 8/8 Tim Davidson Sketching the root locus Compensator design for VTOL aircraft
vertical control system for a VTOL aircraft, such as the Harrier jump jet
The transfer function of the process/plant can be
approximated by G(s) =
1 s(s1)
Do you notice anything interesting about this model? Tasks: Sketch the root locus of a proportional controller Highlight some features of that root locus If the proportional root locus is not satisfactory, use insight from the root locus sketching procedure to choose a compensator so that the closed-loop has a satisfactory root locus
Example
Winter 2011
Outline
Example
2 Example
General Procedure
Example
Steps 1 to 4
1
i i =1 1 + KP (s), with P (s) = Qn j =1 (s +pj ) Put an at the pj s; put a at the zi s Loci start at the s and end at the s or at innity
(s+z )
Example
Parts of loci on real axis: to the left of an odd number of (real-valued) poles and (real-valued) zeros of P (s) n M asymptotes as K gets large: Angles = Centroid: A = 2k + 1 180 nM for k = 0, 1, . . . , (n M 1)
n j =1 (pj ) M i =1 (zi )
nM
Roots on j -axis and corresponding K s from zero rows and auxiliary polynomial of Routh-Hurwitz procedure
Step 5
Since complex poles appear in conjugate pairs,
the root locus can leave the real axis only in even multiplicities; often just a pair
Due to phase criterion, angles of break away are evenly
Example
Step 5
Recall that the characteristic equation is 1 + KP (s ) = 0 Rewrite as K = p (s ), i.e., p (s ) = 1/P (s ) We want to nd the largest K such that there real
Example
Step 5, Example
(s+1) Root locus of 1 + KP (s ), with P (s ) = s(s+ 2)(s+3) . Outcome of Steps 1-3 of root locus sketching procedure
Example
Step 6
Determine angle of departure from (complex) poles
Example
In which direction does the locus leave p1 ? Use the fact that the phase condition must hold at any
Step 6, cont
Example
sum of angles from zeros to s1 sum of angles from other poles to s1 angle from (p1 ) to s1 = 180 + k 360
When s1 is close to p1 the angles from zeros and
angles from other poles are essentially the same as the angles to p1
Step 6, cont
Example
Step 6, cont
Example
Note that conjugate pole moves in a direction that preserves conjugate symmetry
Step 6, Summary
Using the phase condition,
angle of departure from pole at pj0 is j 0 = angles from zeros to (pj0 ) angles from other poles to (pj0 ) 180 + k 360
Example
Conjugate pairs move in complementary directions Angle of arrival at zeros is calculated in the same way
Step 7
Example
Join the segments that have been drawn with a smooth curve Curve should be as simple as possible Curve must respect conjugate symmetry of poles and
General Procedure
Example
Example
Sketch root locus of 1 + KP (s) = 0 for K 0, where P (s) = 1 s4 + 12s3 + 64s2 + 128s
Example
poles: 0, 4, 4 j 4; zeros: no nite zeros; n M = 4 0 = 4 asymptotes Segments of real axis: [4, 0] Angles of asymptotes: 45 , 135 , 225 , 315 Centroid: (4 4 4)/4 = 3
2 3
Example, cont
Partial sketch from Steps 13
Example
Example, cont
Example
Closed loop denom: s4 + 12s3 + 64s2 + 128s + K = 0 Routh table implies stability for K < 568.89. Poles on j axis at j 3.266 To nd breakaway point, p(s) = (s4 + 12s3 + 64s2 + 128s). Set deriv. to zero: 4s3 + 36s2 + 128s + 128 = 0 Breakaway point 1.577
Example, cont
Partial sketch from Steps 15
Example
Example, cont
Example
Angle of departure from 4 + j 4: Angle from pole at 4: 90 Angle from pole at 4 j 4: 90 Angle from pole at origin: 3 = 135 Hence angle of departure: 1 = 90 90 135 180 225
Example, cont
Partial sketch from Steps 16
Example
Example
EE 3CL4, L 20 1 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
Winter 2011
EE 3CL4, L 20 2 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
Outline
2 Parameter Design
EE 3CL4, L 20 4 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
General Procedure (K 0)
EE 3CL4, L 20 6 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
Parameter Design
In the examples so far, 1 + KP (s ) has been the
of the closed loop in the form 1 + P (s), where is the (non-negative) parameter to be designed
This is not always possible, but when it is possible it
EE 3CL4, L 20 7 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
loop is: s 3 + ( 3 + )s 2 + 3s + 6 = 0
Suppose we are interested in root locus for > 0 Rewrite as s 3 + 3s 2 + 3s + 6 + s 2 = 0. Hence,
1+
s2 =0 s3 + 3s2 + 3s + 6
P (s) =
s2 (s + 1)3
EE 3CL4, L 20 8 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
s3 + s2 + s + = 0.
The effect of varying from zero to innity for a given
starting point of the root locus for ; i.e., the roots for = 0
With = 0, the root locus for is the roots of
(s), where P (s ) = 1 + P
1 s2 (s+1)
EE 3CL4, L 20 9 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
Sketches
Locus for with = 0 1 i.e., roots of 1 + s2 (s +1) as : 0 + Locus for with = 1 i.e., roots of 1 + s3 +ss 2 + 1 as : 0 +
EE 3CL4, L 20 11 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
change from 0 to +
What if our parameter of interest goes from 0 to ? The underlying principles remain the same For s0 to be on the root locus, 1 + KP (s0 ) = 0. This implies Magnitude condition: |KP (s0 )| = 1 Phase condition KP (s0 ) = 180 + k 360 However, since K is now negative, its phase is 180 .
way as they were for the case of positive K , and they are quite familiar
EE 3CL4, L 20 12 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
EE 3CL4, L 20 13 / 13 Tim Davidson Sketching the Root Locus Parameter Design Negative Root Locus
Compensators
Lead compensators
Winter 2010
Outline
Compensators
Lead compensators
1 Bode Diagrams
2 Compensators
Lead compensators
Frequency response
Compensators
Lead compensators
Compensators
Lead compensators
G (s ) = K
+ zi ) j (s + pj )
i (s
|G(j )| = |K |
Phase:
Compensators
Lead compensators
+ zi )
+ pj )
2 2 k (s + 2k n,k s + n,k ) 2 2 r (s + 2d ,k nd ,r s + nd ,r )
Compensators
Lead compensators
Compensators
Lead compensators
Compensators
Compensators
Lead compensators
can be adjusted by varying a parameter What happens if we are unable to obtain that performance that we want by doing this?
Ask ourselves whether this is really the performance
that we want
Ask whether we can change the system,
plant
Cascade compensation
Compensators
Lead compensators
Usually, the plant is a physical process If commands and measurements are made electrically,
Gc (s) =
n j =1 (s
M i =1 (s
+ zi ) + pj )
poles and open loop zeros These will change the shape of the root locus
Compensator design
Compensators
Lead compensators
Where should we put new poles and zeros to achieve desired performance? That is the art of compensator design We will consider rst order compensators of the form Gc (s) = K (s + z ) (s + p)
with the pole p in the left half plane and the zero, z in the left half plane, too
For reasons that will soon become clear when |z | < |p |: phase lead network when |z | > |p |: phase lag network
Lead compensation
Compensators
Lead compensators
Gc (s) =
K (s + z ) (s + p )
with |z | < |p|. That is, zero closer to origin than pole
Lead compensation
Compensators
Lead compensators
Gc (s) =
If |p |
K (s + z ) (s + p )
|z | then pole can be neglected, Gc (s) K (s + z )/p If z close to origin, compared to plant dynamics, Gs (s) K ps What is this? Differentiator, Gdiff = KD s Note that Gdiff (j ) = KD j . Hence, Gdiff (j ) = +90 Hence the name phase lead
Frequency response
Compensators
Lead compensators
Gc (j ) = where
(Kz /p) 1 + j /z K (j + z ) K1 (1 + j ) = = (j + p) 1 + j /p 1 + j
= 1/p : time constant = p /z : ratio of magnitudes of pole and zero K1 = K /: For phase lead, > 1
Bode diagram
Gc (j ) = Magnitude
Low frequency gain: K1 Corner frequency in numerator at z = z = 1/( ) Corner frequency in denominator at p = p = 1/ z < p High frequency gain: K1
K1 (1 + j ) 1 + j
Compensators
Lead compensators
Phase
( ) = atan( ) atan( ) At low frequency: ( ) = 0 At high frequency: ( ) = 0 In between: positive, with peak at =
zp
Diagram
Compensators
Lead compensators
Compensators
Lead compensators
V2 (s) V1 (s)
EE 3CL4, L 23 1 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Winter 2010
EE 3CL4, L 23 2 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Outline
2 Lag Compensation
EE 3CL4, L 23 3 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Cascade compensation
If commands and measurements are made electrically, compensator is often an electric circuit We will consider rst order compensators of the form Gc (s) = K (s + z ) (s + p)
with the pole, p, and the zero, z , both in the left half plane when |z | < |p|: phase lead network when |z | > |p|: phase lag network
EE 3CL4, L 23 5 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Lead compensation
Gc (s) =
K (s + z ) (s + p )
with |z | < |p|. That is, zero closer to origin than pole
EE 3CL4, L 23 6 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Bode Diagram
EE 3CL4, L 23 7 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
V2 (s) V1 (s)
EE 3CL4, L 23 9 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Lag Compensators
Gc (s) =
1 + s 1 (s + z ) = 1 + s (s + p)
with z = 1/ , p = 1/( ) and = z /p > 1. Hence, pole closer to origin than zero
EE 3CL4, L 23 10 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Frequency response
Gc (j ) = Magnitude
Low frequency gain: 1 Corner frequency in denominator at p = p = 1/( ) Corner frequency in numerator at z = z = 1/ p < z High frequency gain: 1/
1 + j 1 + j
Phase
( ) = atan( ) atan( ) At low frequency: ( ) = 0 At high frequency: ( ) = 0 In between: negative, with max. lag at =
zp
EE 3CL4, L 23 11 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Bode Diagram
EE 3CL4, L 23 12 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
EE 3CL4, L 23 13 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
EE 3CL4, L 23 15 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Translate design specications into desired positions of dominant poles Sketch root locus of uncompensated system to see if desired positions can be achieved If not, choose the positions of the pole and zero of the compensator so that the desired positions lie on the root locus (angle criterion), if that is possible Evaluate the gain required to put the poles there (magnitude criterion) Evaluate the total system gain so that the steady-state error constants can be determined If the steady state error constants are not satisfactory, repeat
This procedure enables relatively straightforward design of systems with specications in terms of rise time, settling time, and overshoot; i.e., the transient response. For systems with steady-state error specications, Bode (and Nyquist) methods may be more straightforward (later)
EE 3CL4, L 23 16 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Consider a case with G(s) = s(s1 +2) . Design a lead compensator to achieve damping coefcient = 0.45 and velocity error constant Kv > 20 What to do?
Lets draw something. Plot poles of G(s ). Where should desired roots be? Note that the settling time is not specied. We are free
EE 3CL4, L 23 17 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
EE 3CL4, L 23 18 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
EE 3CL4, L 23 19 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
What to do now?
We tried hard, but did not achieve the design specs Lets go back and re-examine our choices Zero position of compensator was chosen via rule of
thumb
Can we do better? We need the gain required to put dominant poles in
the left
That requires moving the zero to the left By how much? Show that for n = 10, z = 4.5, p = 11.6 and Kv = 22.7
EE 3CL4, L 23 20 / 20 Tim Davidson Lead Compensation, a revision Lag Compensation Design of Lead, Lag and Lead-Lag Compensators using Root Locus
Lead Compensator example
Outcomes
Root locus approach to phase lead design was
reasonably successful in terms of putting dominant poles in desired positions; e.g., in terms of and n
However, root locus approach does not provide
increase the steady-state error constants, without moving the dominant poles too far
Winter 2010
Outline
Cascade compensation
with the pole, p, and the zero, z , both in the left half plane when |z | < |p|: phase lead network when |z | > |p|: phase lag network
Steady-state errors
Consider the uncompensated loop (i.e., Gc (s) = KP ). If closed loop stable, steady state error for input R (s): ess = lim e(t ) = lim s
t s 0
R (s ) 1 + KP G(s)
For a type 1 uncompensated process, ess for r (t ) = At is A/Kv ,unc , where the velocity constant is Kv ,unc = lim sKP G(s)
s 0
Q KG i (s+zi ) Q s j (s+pj ) .
Hence, Kv ,unc =
KP KG Q
Q pj
zi
Aside: What about ess for ramp of Type 0 and Type 2 processes
Steady-state errors
Now, for a Type 1 G(s), what about Kv of a compensated closed loop, for a compensator that does not have a zero at s = 0. Kv ,comp = lim sGc (s)G(s) =
s0
4 5
Obtain the root locus of uncompensated system From transient performance specs, locate suitable dominant pole positions on that locus Obtain the loop gain for these points, K = KP KG ; hence the (closed-loop) steady-state error constant Calculate the necessary increase. Hence = z /p Place pole and zero close to the origin (with respect to desired pole positions), with z = p. Typically, choose z and p so that their angles to desired poles differ by less than 1 . Set Kc = KP
What if there is nothing suitable at step 2? Perhaps do lead compensation rst, then lag compensation on lead compensated plant. i.e., design a lead-lag compensator
Example
Lets consider, again, the case with G(s) = s(s1 +2) . Design a lag compensator to achieve damping coefcient = 0.45 and velocity error constant Kv > 20 Note: we will get a different closed loop from our lead design. First step, obtain uncompensated root locus, and locate desired dominant pole locations
Example
Gain required to put closed loop poles in desired position = prod. distances from open loop poles That is, K = 2.242 = 5. Therefore KP = K /KG = 5 Velocity error const: Kv ,unc = lims0 sKP G(s) = K /2 = 2.5 The increase required is 20/2.5 = 8 That implies must choose p = z /8, where z is chosen to be close to the origin with respect to dominant closed-loop poles
Example
Example
Compensated open loop transfer function is now Gc (s)G(s) = 5(s + 0.1) s(s + 2)(s + 1/80)
Winter 2010
Outline
Mapping contours
Introduction
We have seen techniques that determine stability of a
system:
Routh-Hurwitz root locus
However, both of them require a model for the plant Today: frequency response techniques Although they work best with a model For an open-loop stable plant, they also work with measurements Key result: Nyquists stability criterion Design implications: Bode techniques based on gain
Characteristic equation
examine the characteristic equation: F (s) = 1 + L(s) = 0 where L(s) = Gc (s)G(s)H (s).
The key result involves mapping a closed contour of
Simple example
"F (s)-plane"
Area enclosed
contour?
We will be perfectly rigorous, but will go against
mathematical convention
Dene area enclosed to be that to the right when the
clockwise contour
the origin?
Cauchys Theorem
encircles the origin N = Z P times in the clockwise direction A sketch of the proof next week. First, some examples
Example 1
A mapping for F (s ) = s+s 1/2 s -plane contour encircles a zero and a pole Theorem suggests no clockwise encirclements of origin
of F (s)-plane
This is what we have!
Example 2
s -plane contour encircles 3 zeros and a pole Theorem suggests 2 clockwise encirclements of the
Example 3
s -plane contour encircles one pole Theorem suggests -1 clockwise encirclements of the
Nyquists criterion
Nyquist was concerned about testing for stability How might one use Cauchy Theorem to examine this? Perhaps choose F (s ) = 1 + L(s ), as this determines
stability
Which contour should we use?
Nyquists contour
Winter 2010
Outline
Conformal Mappings
For a linear system with transfer function F (s ) Consider a clockwise closed contour in s -plane Map each point s on the contour to F (s ) Plot real and imaginary parts of F (s ) Forms a contour in the F (s ) plane Region encircled: to the right as contour traversed
Cauchys Theorem
Informal Justication
z1 is 360 degrees
As contour is traversed, the nett contribution from other
angles is 0 degrees
Hence, as contour is traversed, F (s ) changes by 360
Informal Justication
the contour
For a closed contour, the change in F (s ) is
360Z 360P
Hence F (s ) encircles origin Z P times
Typically we are interested in stability of the closed loop In particular, the zeros of F (s ) = 1 + L(s ),
where L(s) is the open loop transfer function, are the closed loop poles
What should the contour be if we want to relate system
Nyquists contour
F (s )
The number of right half plane zeros of F (s ) is the
N + P , where N is the number of clockwise encirclements of the origin made by the image of Nyquists contour in the F (s) plane.
A little difcult to parse. Perhaps we can apply Cauchys Theorem in a more
sophisticated way.
function
Encirclement of the origin in F (s )-plane is the same as
For a stable open-loop transfer function L(s ), the closed-loop system is stable if and only if the image
of Nyquists Contour in the L(s)-plane does not encircle the point (1, 0).
number of counter-clockwise encirclements of the point (1, 0) made by the image of Nyquists Contour in the L(s)-plane is equal to the number of right half plane poles of L(s) Proof:
Based on the fact that the number of right half plane
zeros of F (s) is Z = N + P , where N is the number of clockwise encirclements of (1, 0) by the image of Nyquists Contour in the L(s)-plane, and P is the number of right half plane poles of L(s).
For the closed-loop to be stable, Z must be zero.
L(s) =
100 (s + 1)(s/10 + 1)
For 0 < , think about the Bode mag. & phase sketches Recall that L(j ) = L(j ) Remember to examine the r part of the curve Note: No encirclements of (1, 0) = closed loop is stable
Winter 2010
Outline
Nyquists Criterion
Consider a unity feedback system with an open loop transfer function L(s) = Gc (s)G(s)H (s),with no zs or ps on j -axis Let PL denote the number of poles of L(s) in RHP Consider the Nyquist Contour in the s-plane Let L denote image of Nyquist Contour under L(s) Let NL denote the number of clockwise encirclements that L makes of the point (1, 0) Nyquists Stability Criterion: Number of closed-loop poles in RHP = NL + PL This statement is equivalent to those in previous lecture, but often more convenient
Consider
L(s) =
Like in servomotor
K s( s + 1)
Problem with Nyquists Contour It goes through a pole! Cauchys Theorem does not apply Must modify Nyquist Contour to go around pole Then Nyquist Criterion can be applied
Up positive j -axis
1+ 2 2
ej (90
atan( ))
For small , L(j ) is large with phase 90 For large , L(j ) is small with phase 180 For = 1/ , L(j ) = K / 2 ej 135
For s = rej with large r , and from +90 to 90 , limr L(rej ) = K e j 2 r2 How many encirclements? None Implies that closed loop is stable for all positive K Consistent with what we know from root locus (Lab. 2)
L(s) =
PL = 1
K1 s(s 1)
+ 4
90 atan( )
For = 0+ , L(j ) is large with angle +90 . For , L(j ) is small with angle +180 Conjugate for < < 0 What about when s = ej for 90 90 ? L(s ) = K1 (180 )
Recall PL = 1 Number clockwise encirclements of (1, 0) is 1 Hence there are two closed loop poles in the RHP Consistent with root locus analysis (sketch)
stabilized by a PD controller
Can we see that in the Nyquist diagram? Plot the Nyquist diagram of Gc (s )G(s ), where
G(s) =
K1 s(s1)
and Gc (s) = 1 + K2 s
Recall that PL = 1 If K1 K2 > 1, there is one anti-clockwise encirc. of 1 In that case, number closed-loop poles in RHP is
1 + 1 = 0 and the closed loop is stable Again, consistent with root locus analysis (sketch)
Winter 2010
Outline
Relative Stability Gain margin and Phase margin Relationship to transient response
Nyquists Criterion
Consider a unity feedback system with an open loop transfer function L(s) = Gc (s)G(s)H (s), Let PL denote the number of poles of L(s) in (open) RHP Consider the (modied) Nyquist Contour in the s-plane (looping to the right of any poles or zeros on the j -axis) Let L denote image of (mod.) Nyquist Contour under L(s) Let NL denote the number of clockwise encirclements that L makes of the point (1, 0) Nyquists Stability Criterion: Number of closed-loop poles in (open) RHP = NL + PL
Open loop is stable, but has non-minimum phase (RHP) zero K 2 + 4 L(j ) = 180 atan(/2) 2 atan( ) 2 + 1 For small positive , L(j ) 2K 180 For large positive , L(j )
K
90
In between, phase decreases monotonically, 180 90 . magnitude decreases monotonically (Bode mag dia.) L(j ) =
2K 2 2 1+j (5 2 ) (1+ 2 )2
; When =
5, L(j ) = K /2
Number of open loop RHP poles: 0 Number of clockwise encirclements of 1: if K < 1/2: 0; if K > 1/2: 1 Hence closed loop is stable for K < 1/2; unstable for K > 1/2
Zooming in
Since L(s) is minimum phase (no RHP zeros), we can zoom in
For a given K , how much extra gain would result in instability? we will call this the gain margin how much extra phase lag would result in instability? we will call this the phase margin
Formal denitions
Gain margin:
where x is the frequency at which L(j ) reaches 180 amplifying the open-loop transfer function by this amount would result in a marginally stable closed loop
Phase margin:
1 |L(j x )| ,
180 + L(j c ), where c is the frequency at which |L(j )| equals 1 adding this much phase lag would result in a marginally stable closed loop
These margins can be read from the Bode diagram
Bode diagram
L(j ) =
1 j (1 + j )(1 + j /5)
1 2
4 4 + 1 2 2
Phase margin is an explicit function of damping ratio! Approximation: for < 0.7, 0.01pm , where pm is measured in degrees
Winter 2010
Outline
Relative Stability Gain margin and Phase margin Relationship to transient response Peak frequency response and bandwidth
Nyquists Criterion
Consider a unity feedback system with an open loop transfer function L(s) = Gc (s)G(s)H (s), Let PL denote the number of poles of L(s) in (open) RHP Consider the (modied) Nyquist Contour in the s-plane (looping to the right of any poles or zeros on the j -axis) Let L denote image of (mod.) Nyquist Contour under L(s) Let NL denote the number of clockwise encirclements that L makes of the point (1, 0) Nyquists Stability Criterion: Number of closed-loop poles in (open) RHP = NL + PL
Zooming
Since L(s) is minimum phase (no RHP zeros), we can zoom in
For a given K , how much extra gain would result in instability? we will call this the gain margin how much extra phase lag would result in instability? we will call this the phase margin
Formal denitions
Gain margin:
where x is the frequency at which L(j ) reaches 180 amplifying the open-loop transfer function by this amount would result in a marginally stable closed loop
Phase margin:
1 |L(j x )| ,
180 + L(j c ), where c is the frequency at which |L(j )| equals 1 adding this much phase lag would result in a marginally stable closed loop
These margins can be read from the Bode diagram
Bode diagram
L(j ) =
1 j (1 + j )(1 + j /5)
Equivalently,
2 c 2 n
4 4 + 1 2 2
Phase margin is an explicit function of damping ratio! Approximation: for < 0.7, 0.01pm , where pm is measured in degrees
Previous example
L(j ) =
Phase margin 43
1 j (1 + j )(1 + j /5)
the open loop transfer function, L(s) = Gc (s)G(s) (for the case where H (s) = 1).
However, the transient response of the closed loop is
M ( ) =
Gc (j )G(j ) u + jv = 1 + Gc (j )G(j ) 1 + u + jv
M -circles
From previous slide,
M=
u + jv 1 + u + jv
M2 u 1 M2
+ v2 =
M 1 M2
M -circles
corresponds to the peak magnitude of the closed loop The corresponding frequency is the peak frequency M -circle crossing points also provide points on the magnitude response of closed loop
Winter 2010
Outline
the frequency at which L(j ) reaches 180 the frequency at which |L(j )| equals 1
Phase margin, pm : 180 + L(j c ), where c is Damping ratio: pm = f ( ), Settling time related to the bandwidth of the loop
Bode diagram
L(j ) =
1 j (1 + j )(1 + j /5)
Gc (j )G(j ) = Gc (j ) + G(j )
Lead Compensators
(s+z ) Gc (s ) = Kcs +p , with |z | < |p |, alternatively,
c 1+s Gc (s ) = K 1+s , where p = 1/ and = p /z > 1 Bode diagram:
Lead Compensation
What will lead compensation, do? Phase is positive: might be able to increase phase
margin pm
Slope is positive: might be able to increase the
Lead Compensation
Gc (j ) = atan
(1) 1+( )2
zp
1 2
constants are obtained Insert the compensator to modify the transient properties:
Damping: through phase margin Response time: through bandwidth
appropriate To maximize impact of phase lead, want peak of phase near c of the compensated open loop
Design Guidelines
1
3 4 5
7 8 9
For uncompensated (i.e., proportionally controlled) closed loop, set gain Kp so that steady-state error constants of the closed loop meet specications Evaluate the phase margin, and the amount of phase lead required. Add a little safety margin to the amount of phase lead 1 From this, determine using sin(m ) = +1 Determine the frequency at which open-loop frequency response has magnitude 10 log10 () If we set m to be this frequency, then m will be the cut-off frequency of the compensated loop, and hence we will have maximum phase contribution to the compensated closed loop at the appropriate frequency Choose = 1/(m ) and hence p = m . Choose z = p/. Set Kc = Kp . Compensator: Gc (s) =
Kc (s+z ) s +p .
Example
Type 1 plant of order 2: G(s ) = s(s5 +2) Design goals: Steady-state error due to a ramp input less than 5% of velocity of ramp Phase margin at least 45 (implies a damping ratio) Steady state error requirement implies Kv = 20. For prop. controlled Type 1 plant: Kv = lims0 sKp G(s ).
Hence Kp = 8.
To nd phase margin of prop. controlled loop we need
40 j c (j c +2)
=1
Example
pm, prop = 18 . Hence, need 27 of phase lead Lets go for a little more, say 30 So, want peak phase of lead comp. to be 30
1 Solving +1 = sin(30 ) yields = 3 Since 10 log10 (3) = 4.8 dB we should choose m to be
where 20 log10
40 j m (j m +2)
= 4.8 dB
Kc = 3 8
(s+4.8) Gc (s ) = 24 s+14.4 (s+4.8) Gc (s )G(s ) = s(s24 +2)(s+14.4) , actual pm = 43.6 Goal can be achieved by using a larger target for
Bode Diagram
Winter 2010
Outline
Lag Compensators
the frequency at which L(j ) reaches 180 the frequency at which |L(j )| equals 1
Phase margin, pm : 180 + L(j c ), where c is Damping ratio: pm = f ( ), Settling time related to the bandwidth of the loop
Bode diagram
L(j ) =
1 j (1 + j )(1 + j /5)
Gc (j )G(j ) = Gc (j ) + G(j )
Lag Compensators
Gc (s ) = Gc (s ) = >1 We will consider case where Kc = Bode diagrams of lag compensators for two different s
Kc (s+z ) s+p , with |p | < |z |, alternatively, Kc 1+s 1+s , where z = 1/ and = z /p
phase lag is not really used. What is useful is the attenuation above = 1/ : gain is 20 log10 (), with little phase lag Can reduce cross-over frequency, c , without adding much phase lag Tends to reduce bandwidth
Qualitative example
Uncompensated system has small phase margin Phase lag of compensator does not play a large role Attenuation of compensator does:
c reduced by about a factor of a bit more than 3 Increased phase margin is due to the natural phase characteristic of the plant
Lag Compensation
constants are obtained Insert the compensator to modify the phase margin:
Do this by reducing the cross-over frequency Observe the impact on response time
Basic principle: Set attenuation to reduce c far enough so that uncompensated open loop has desired phase margin compensated open loop
Design Guidelines
1
For uncompensated (i.e., proportionally controlled) closed loop, set gain Kp so that steady-state error constants of the closed loop meet specications Obtain the Bode diagram, evaluate the phase margin. If that is insufcient. . . Determine c , the frequency at which the uncompensated open loop has a phase margin equal to the desired phase margin plus 5 . Now design a lag compensator so that the gain of the compensated open loop at this frequency is 0 dB
Place the zero of the compensator around c /10 to
ensure we get almost full attenuation by the compensator at c Choose so that 20 log10 () is the attenuation needed to reduce the gain of the uncompensated closed loop at c to 0 dB Place the pole at p = z /
Hence Kp = 8.
To nd phase margin of prop. controlled loop we need
40 j c (j c +2)
=1
Example
Since want phase margin to be 45 , we set c such that G(j c ) = 180 + 45 + 5 = 130 . = c 1.5 Required attenuation is 20 dB. Actual curves are around 2 dB lower than the straight line approximation shown Hence = 10. Zero set to be one decade below c ; Pole is z / = 0.015 z = 0.15
4(s+0.15) Compensated open loop: Gc (s )G(s ) = s(s+ 2)(s+0.015) Numerical evaluation: new c = 1.58 new phase margin = 46.8 By design, Kv remains 20
Step response