70
Dr Ian R. Manchester

Dr Ian R. Manchester

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dr Ian R. Manchester

Dr Ian R. Manchester

Page 2: Dr Ian R. Manchester

Slide 2 Dr. Ian R. Manchester Amme 3500 : Introduction

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 2 Due 8 Bode Plots 9 Bode Plots 2 10 State Space Modeling Assign 3 Due 11 State Space Design Techniques 12 Advanced Control Topics 13 Review Assign 4 Due

Page 3: Dr Ian R. Manchester

Slide 3

•  Understand control design (PID, lead-lag) in terms of shaping frequency response

•  Introduce the use of stability margins and loop shaping to design controllers for more general systems

•  See some extensions to higher-order and nonlinear systems

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 4: Dr Ian R. Manchester

Slide 4 Dr Ian R. Manchester Amme 3500 : Bode Design

•  In week 7 we looked at modifying the transient and steady state response of a system using root locus design techniques –  Gain adjustment (speed, steady state error) –  Lag (PI) compensation (steady-state error) –  Lead (PD) compensation (speed, stability)

•  We will now examine methods for designing for a particular specification by examining the frequency response of a system

•  We still rely to some extent approximating CL behaviour as 2nd Order

Page 5: Dr Ian R. Manchester

Slide 5

•  Control system performance generally judged by time domain response to certain test signals (step, etc.) – Simple for < 3 OL poles or ~2nd order CL systems. – No unified methods for higher-order systems.

•  Freq response easy for higher order systems – Qualitatively related to time domain behaviour – More natural for studying sensitivity and noise

susceptibility

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 6: Dr Ian R. Manchester

Slide 6

•  Remember the root locus satisfies

•  So poles cross over imaginary axis (stability-instability transition) when the frequency response satisfies

•  or

Dr Ian R. Manchester Amme 3500 : Bode Design

!

1+K(s)G(s) = 0

!

K( j")G( j" ) =1, #K( j" )G( j") =180!

1+K( j" )G( j") = 0

Page 7: Dr Ian R. Manchester

Slide 7

•  Crossover frequency: •  Gain Margin:

•  Phase Margin:

•  Bandwidth (CL specification)

•  Less intuitive than RL, but easier to draw for high order systems.

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 8: Dr Ian R. Manchester

Slide 8 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The root locus demonstrated that we can often design controllers for a system via gain adjustment to meet a particular transient response

•  We can effect a similar approach using the frequency response by examining the relationship between phase margin and damping

Page 9: Dr Ian R. Manchester

Slide 9 Dr Ian R. Manchester Amme 3500 : Bode Design

20 dB

Page 10: Dr Ian R. Manchester

Slide 10 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Recall that the Phase Margin is closely related to the damping ratio of the system

•  For a unity feedback system with open-loop function

•  We found that the relationship between PM and damping ratio is given by

Page 11: Dr Ian R. Manchester

Slide 11 Dr Ian R. Manchester Amme 3500 : Bode Design

Page 12: Dr Ian R. Manchester

Slide 12 Dr Ian R. Manchester Amme 3500 : Bode Design

PhaseMargin

Page 13: Dr Ian R. Manchester

Slide 13 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Given a desired overshoot, we can convert this to a required damping ratio and hence PM

•  Examining the Bode plot we can find the frequency that gives the desired PM

Page 14: Dr Ian R. Manchester

Slide 14 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The design procedure therefore consists of – Draw the Bode Magnitude and phase plots – Determine the required phase margin from the

percent overshoot – Find the frequency on the Bode phase diagram that

yields the desired phase margin – Change the gain to force the magnitude curve to go

through 0dB

Page 15: Dr Ian R. Manchester

Slide 15 Dr Ian R. Manchester Amme 3500 : Bode Design

•  For the following position control system shown here, find the preamplifier gain K to yield a 9.5% overshoot in the transient response for a step input

Page 16: Dr Ian R. Manchester

Slide 16 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Draw the Bode plot •  For 9.5% overshoot, !=0.6

and PM must be 59.2o

•  Locate frequency with the required phase at 14.8 rad/s

•  The magnitude must be raised by 55.3dB to yield the cross over point at this frequency

•  This yields a K = 583.9

Page 17: Dr Ian R. Manchester

Slide 17 Dr Ian R. Manchester Amme 3500 : Bode Design

•  As we saw previously, not all specifications can be met via simple gain adjustment

•  We examined a number of compensators that can bring the root locus to a desired design point

•  A parallel design process exists in the frequency domain

Page 18: Dr Ian R. Manchester

Slide 18 Dr Ian R. Manchester Amme 3500 : Bode Design

•  In particular, we will look at the frequency characteristics for the –  PD Controller –  Lead Controller –  PI Controller –  Lag Controller

•  Understanding the frequency characteristics of these controllers allows us to select the appropriate version for a given design

Page 19: Dr Ian R. Manchester

Slide 19 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The ideal derivative compensator adds a pure differentiator, or zero, to the forward path of the control system

•  The root locus showed that this will tend to stabilize the system by drawing the roots towards the zero location

•  We saw that the pole and zero locations give rise to the break points in the Bode plot

Page 20: Dr Ian R. Manchester

Slide 20 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The Bode plot for a PD controller looks like this

•  The stabilizing effect is seen by the increase in phase at frequencies above the break frequency

•  However, the magnitude grows with increasing frequency and will tend to amplify high frequency noise

Page 21: Dr Ian R. Manchester

Slide 21 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Introducing a higher order pole yields the lead compensator

•  This is often rewritten as

where 1/" is the ratio between pole-zero break points •  The name Lead Compensation reflects the fact that

this compensator imparts a phase lead

Page 22: Dr Ian R. Manchester

Slide 22 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The Bode plot for a Lead compensator looks like this

•  The frequency of the phase increase can be designed to meet a particular phase margin requirement

•  The high frequency magnitude is now limited

Page 23: Dr Ian R. Manchester

Slide 23 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The lead compensator can be used to change the damping ratio of the system by manipulating the Phase Margin

•  The phase contribution consists of

•  The peak occurs at

with a phase shift and magnitude of

Page 24: Dr Ian R. Manchester

Slide 24 Dr Ian R. Manchester Amme 3500 : Bode Design

•  This compensator allows the designer to raise the phase of the system in the vicinity of the crossover frequency

Page 25: Dr Ian R. Manchester

Slide 25 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The design procedure consists of the following steps: 1.  Find the open-loop gain K to satisfy steady-state error or

bandwidth requirements 2.  Evaluate phase margin of the uncompensated system

using the value of gain chosen above 3.  Find the required phase lead to meet the damping

requirements 4.  Determine the value of " to yield the required increase in

phase!

Page 26: Dr Ian R. Manchester

Slide 26 Dr Ian R. Manchester Amme 3500 : Bode Design

5.  Determine the new crossover frequency

6.  Determine the value of T such that "max lies at the new crossover frequency

7.  Draw the compensated frequency response and check the resulting phase margin.

8.  Check that the bandwidth requirements have been met. 9.  Simulate to be sure that the system meets the

specifications (recall that the design criteria are based on a 2nd order system).

Page 27: Dr Ian R. Manchester

Slide 27 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Returning to the previous example, we will now design a lead compensator to yield a 20% overshoot and Kv=40, with a peak time of 0.1s

Page 28: Dr Ian R. Manchester

Slide 28 Dr Ian R. Manchester Amme 3500 : Bode Design

•  From the specifications, we can determine the following requirements –  For a 20% overshoot we find !=0.456 and hence a Phase

Margin of 48.1o –  For peak time of 0.1s with the given !, we can find the

required closed loop bandwidth to be 46.6rad/s

–  To meet the steady state error specification

Page 29: Dr Ian R. Manchester

Slide 29 Dr Ian R. Manchester Amme 3500 : Bode Design

•  From the Bode plot, we evaluate the PM to be 34o for a gain of 1440

•  We can’t simply increase the gain without violating the other design constraints

•  We use a Lead Compensator to raise the PM

Page 30: Dr Ian R. Manchester

Slide 30 Dr Ian R. Manchester Amme 3500 : Bode Design

•  We require a phase margin of 48.1o •  The lead compensator will also increase the

phase margin frequency so we add a correction factor to compensate for the lower uncompensated system’s phase angle

•  The total phase contribution required is therefore

48.1o – (34o – 10o) = 24.1o

Page 31: Dr Ian R. Manchester

Slide 31 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Based on the phase requirement we find

•  The resulting magnitude is

•  Examining the Bode magnitude, we find that the frequency at which the magnitude is -3.77dB is #max=39rad/s

•  The break frequencies can be found at 25.3 and 60.2

Page 32: Dr Ian R. Manchester

Slide 32 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The compensator is

•  The resulting system Bode plot shows the impact of the phase lead

Page 33: Dr Ian R. Manchester

Slide 33 Dr Ian R. Manchester Amme 3500 : Bode Design

•  We need to verify the performance of the resulting design

•  The simulation appears to validate our second order assumption

Page 34: Dr Ian R. Manchester

Slide 34 Dr Ian R. Manchester Amme 3500 : Bode Design

•  We saw that the integral compensator takes on the form

•  This results in infinite gain at low frequencies which reduces steady-state error

•  A decrease in phase at frequencies lower than the break will also occur

Page 35: Dr Ian R. Manchester

Slide 35 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The Bode plot for a PI controller looks like this

•  The break frequency is usually located at a frequency substantially lower than the crossover frequency to minimize the effect on the phase margin

Page 36: Dr Ian R. Manchester

Slide 36 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Lag compensation approximates PI control

•  This is often rewritten as

where " is the ratio between zero-pole break points

•  The name Lag Compensation reflects the fact that this compensator imparts a phase lag

Page 37: Dr Ian R. Manchester

Slide 37 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The Bode plot for a Lag compensator looks like this

•  This compensator effectively raises the magnitude for low frequencies

•  The effect of the phase lag can be minimized by careful selection of the centre frequency

Page 38: Dr Ian R. Manchester

Slide 38 Dr Ian R. Manchester Amme 3500 : Bode Design

•  In this case we are trying to raise the gain at low frequencies without affecting the stability of the system

Page 39: Dr Ian R. Manchester

Slide 39 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Nise suggests setting the gain K for s.s. error, then designing a lag network to attain desired PM.

•  Franklin suggests setting the gain K for PM, then designing a lag network to raise the low freq. gain w/o affecting system stability.

System without lag compensation, Franklin et al. procedure

Page 40: Dr Ian R. Manchester

Slide 40 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The design procedure (Franklin et al.) consists of the following steps: 1.  Find the open-loop gain K to satisfy the phase margin

specification without compensation 2.  Draw the Bode plot and evaluate low frequency gain 3.  Determine " to meet the low-frequency gain error

requirement 4.  Choose the corner frequency #=1/T to be one octave to

one decade below the new crossover frequency 5.  Evaluate the second corner frequency #=1/"T 6.  Simulate to evaluate the design and iterate as required

Page 41: Dr Ian R. Manchester

Slide 41 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Returning again to the previous example, we will now design a lag compensator to yield a ten fold improvement in steady-state error over the gain-compensated system while keeping the overshoot at 9.5%

Page 42: Dr Ian R. Manchester

Slide 42 Dr Ian R. Manchester Amme 3500 : Bode Design

•  In the first example, we found the gain K=583.9 would yield our desired 9.5% overshoot with a PM of 59.2o at 14.8rad/s

•  For this system we find that

•  We therefore require a Kv of 162.2 to meet our specification •  We need to raise the low frequency magnitude by a factor of

10 (or 20dB) without affecting the PM

Page 43: Dr Ian R. Manchester

Slide 43 Dr Ian R. Manchester Amme 3500 : Bode Design

•  First we draw the Bode plot with K=583.9

•  Set the zero at one decade, 1.48rad/s, lower than the PM frequency

•  The pole will be at 1/" relative to this so

Page 44: Dr Ian R. Manchester

Slide 44 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The resulting system has a low frequency gain Kv of 162.2 as per the requirement

•  The overshoot is slightly higher than the desired

•  Iteration of the zero and pole locations will yield a lower overshoot if required

Page 45: Dr Ian R. Manchester

Slide 45 Dr Ian R. Manchester Amme 3500 : Bode Design

•  As with the Root Locus designs we considered previously, we often require both lead and lag components to effect a particular design

•  This provides simultaneous improvement in transient and steady-state responses

•  In this case we are trading off three primary design parameters –  Crossover frequency #c which determines bandwidth, rise time

and settling time –  Phase margin which determines the damping coefficient and

hence overshoot –  Low frequency gain which determines steady state error

characteristics

Page 46: Dr Ian R. Manchester

Slide 46

•  Recall the Sensitivity Function

•  The Complementary Sensitivity Function

•  “Complementary” because S(s)+T(s)=1 for all s •  The system response to reference R, disturbance D

and measurement noise N is

Dr Ian R. Manchester

!

T(s) =G(s)K(s)1+G(s)K(s)

!

S(s) =1

1+G(s)K(s)

!

Y (s) = T(s)R(s) + S(s)D(s) +T(s)N(s)

Page 47: Dr Ian R. Manchester

Slide 47 Dr Ian R. Manchester Amme 3500 : Bode Design

Rate of gain roll-off is related to phase phase margin: each 20dB/decade corresponds to about 90 degrees of phase lag

Page 48: Dr Ian R. Manchester

Slide 48

•  Also known as the “waterbed effect”. •  Recall

•  For any system with any controller

Where pi are open-loop unstable pole locations Dr Ian R. Manchester Amme 3500 : Bode Design

!

S =1

1+KG

!

logS( j")0

#

$ d" = % Re(pi)i&

Page 49: Dr Ian R. Manchester

Slide 49 Dr Ian R. Manchester Amme 3500 : Bode Design

From Gunter Stein’s article “Respect the Unstable”

Page 50: Dr Ian R. Manchester

Slide 50

•  We examined several ways to assess CL stability from the OL transfer function. –  Root Locus (rules for plotting CL poles as a function of OL

gain) –  Bode plots (GM and PM gave an indication of how much

the gain or phase could change before instability)

•  For some systems, GM and PM may be ambiguous or give contradictory stability information.

Dr. Michael Jakuba Amme 3500 : Nyquist

Page 51: Dr Ian R. Manchester

Slide 51

•  An OL unstable system:

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 52: Dr Ian R. Manchester

Slide 52

•  A conditionally stable system:

Dr Ian R. Manchester Amme 3500 : Bode Design

GM = 14 dB

PM = -36.9 deg

Page 53: Dr Ian R. Manchester

Slide 53

•  A complicated system:

Dr Ian R. Manchester Amme 3500 : Bode Design

0.7 rad/s 8.5 rad/s 9.8 rad/s

Page 54: Dr Ian R. Manchester

Slide 54 Dr Ian R. Manchester Amme 3500 : Bode Design

•  To generate the Nyquist plot we will need a concept called contour mapping

•  Given a series points on a contour A in the s-plane, the function F(s) will map these points to another contour B * N.S. Nise (2004) “Control Systems Engineering” Wiley & Sons

Page 55: Dr Ian R. Manchester

Slide 55

•  Consider a complex-valued function of a complex variable, e.g. G(s)

Dr Ian R. Manchester Amme 3500 : Bode Design

.

.

. .

Page 56: Dr Ian R. Manchester

Slide 56 Dr Ian R. Manchester Amme 3500 : Bode Design

•  We extend the contour to enclose the entire RHP

•  Applying the contour mapping techniques we can determine if any closed loop poles exist in the RHP by examining the encirclements of the origin for 1+KG(s)H(s)

Im(s)

Re(s)

Contour at infinity

Page 57: Dr Ian R. Manchester

Slide 57 Dr Ian R. Manchester Amme 3500 : Bode Design

•  We can simplify this a bit by noticing that 1+KG(s)H(s) is just KG(s)H(s) shifted to the right by 1.

•  Find the contour for KG(s)H(s)

•  Count encirclements of -1.

Im(s)

Re(s)

Contour at infinity

Page 58: Dr Ian R. Manchester

Slide 58

•  The poles of the CL transfer function are given by the zeros of the characteristic equation. –  Let Z denote the number of zeros in the RHP of 1+KG(s)H

(s) •  The number of encirclements of -1 depends on both

the RHP zeros and poles of KG(s)H(s). –  Let P denote the number of OL unstable poles

•  If N = ( # ccw - # cw ), then Z = P – N. •  For stability Z = 0.

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 59: Dr Ian R. Manchester

Slide 59 Dr Ian R. Manchester Amme 3500 : Bode Design

Im(s)

Re(s) x x x .

.

.

.

Page 60: Dr Ian R. Manchester

Slide 60

•  A typical system:

Dr Ian R. Manchester Amme 3500 : Bode Design

Im(s)

Re(s) x x x .A

.B

.C

. . D

E

.

.

. . B’, C’

A’

D’

E’ .

. F F’

N = 0 P = 0 Z = 0

Page 61: Dr Ian R. Manchester

Slide 61

•  An OL unstable system:

Dr Ian R. Manchester Amme 3500 : Bode Design

Im(s)

Re(s) o x x .A

.B

.C

. . D

E

. F

.

.

.

. B’,C’

A’

D’

E’ F’ .

Page 62: Dr Ian R. Manchester

Slide 62

•  F/A-18 on landing approach, 140 knots.

Dr Ian R. Manchester Amme 3500 : Root Locus Design

!

G(s) ="(s)#e (s)

= 0.072 (s+ 23)(s2 + 0.05s+ 0.04)(s $ 0.7)(s+1.7)(s2 + 0.08s+ 0.04)

Page 63: Dr Ian R. Manchester

Slide 63 Dr Ian R. Manchester Amme 3500 : Bode Design

•  The gain and phase margins can also be read from the Nyquist plot

* N.S. Nise (2004) “Control Systems Engineering” Wiley & Sons

Page 64: Dr Ian R. Manchester

Slide 64

•  Time delay is common in controlled systems (e.g. computation or communication delay, transport of waves, fluid flow along pipes…)

•  Although it is linear and time-invariant, it cannot be represented by a rational transfer function. Why not? What is its transfer function?

Dr Ian R. Manchester Amme 3500 : Bode Design

Page 65: Dr Ian R. Manchester

Slide 65

•  Transfer function for a time delay of # is:

•  So the frequency response is

Dr Ian R. Manchester Amme 3500 : Bode Design

!

G" (s) = e#"s

!

G" ( j# ) = e$"j#

Page 66: Dr Ian R. Manchester

Slide 66 Dr Ian R. Manchester Amme 3500 : Bode Design

!

G" ( j# ) = e$"j#

Page 67: Dr Ian R. Manchester

Slide 67 Dr Ian R. Manchester Amme 3500 : Bode Design

Page 68: Dr Ian R. Manchester

Slide 68 Dr Ian R. Manchester Amme 3500 : Bode Design

Slope = $!

Slope = %!

Page 69: Dr Ian R. Manchester

Slide 69 Dr Ian R. Manchester Amme 3500 : Bode Design

Page 70: Dr Ian R. Manchester

Slide 70 Dr Ian R. Manchester Amme 3500 : Bode Design

•  Nise – Chapter 11

•  Franklin & Powell – Chapter 6

•  Åström and Murray (free online) – Chapter 9, 10, 11