• No results found

MECH466 L15 FreqResponse

N/A
N/A
Protected

Academic year: 2020

Share "MECH466 L15 FreqResponse"

Copied!
7
0
0

Loading.... (view fulltext now)

Full text

(1)

2008/09 MECH466 : Automatic Control 1

MECH466: Automatic Control

MECH466: Automatic Control

Dr. Ryozo Nagamune

Dr. Ryozo Nagamune

Department of Mechanical Engineering

Department of Mechanical Engineering

University of British Columbia

University of British Columbia Lecture 15

Lecture 15

Root locus: Design with

Root locus: Design with MatlabMatlab

Frequency response

Frequency response

2008/09 MECH466 : Automatic Control 2

Course roadmap

Course roadmap

Laplace transform Laplace transform Transfer function Transfer function

Models for systems Models for systems •

•electricalelectrical •

•mechanicalmechanical •

•electromechanicalelectromechanical

Linearization Linearization

Modeling

Modeling AnalysisAnalysis DesignDesign

Time response Time response •

•TransientTransient •

•Steady stateSteady state

Frequency response Frequency response •

•Bode plotBode plot

Stability Stability •

•RouthRouth--HurwitzHurwitz •

•NyquistNyquist

Design specs Design specs Root locus Root locus Frequency domain Frequency domain

PID & Lead PID & Lead--laglag

Design examples Design examples

Matlab

Matlabsimulations & laboratoriessimulations & laboratories

A design example (review)

A design example (review)

ƒ

ƒ Consider a systemConsider a system

ƒ

ƒ Analysis of CL system for Analysis of CL system for C(sC(s)=1)=1

ƒ

ƒ Damping ratio Damping ratio ζζ=0.5=0.5

ƒ

ƒ UndampedUndampednatural freq. natural freq. ωωnn=2 =2 rad/srad/s

ƒ

ƒ RampRamp--error constant error constant KvKv=2=2

ƒ

ƒ Performance specificationPerformance specification

ƒ

ƒ Damping ratio Damping ratio ζζ=0.5=0.5

ƒ

ƒ UndampedUndampednatural freq. natural freq. ωωnn=4 =4 rad/srad/s

ƒ

ƒ RampRamp--error constant error constant KvKv=50=50

G(s

G(s)) C(s

C(s))

Plant Plant Controller Controller Re Re Im Im Desired pole Desired pole

Lead & lag compensators (review)

Lead & lag compensators (review)

ƒ

ƒ Lead compensatorLead compensator

ƒ

ƒ Improve transient responseImprove transient response

ƒ

ƒ Improve stabilityImprove stability

ƒ

ƒ Lag compensatorLag compensator

ƒ

ƒ Reduce steady state errorReduce steady state error

ƒ

ƒ Lead-Lead-lag compensatorlag compensator

ƒ

(2)

2008/09 MECH466 : Automatic Control 5

SISO Design Tool in

SISO Design Tool in

Matlab

Matlab

ƒ

ƒ GraphicalGraphical--user user interface (GUI) that interface (GUI) that allows you to design allows you to design compensators. compensators. ƒ

ƒ Type Type ““sisotoolsisotool””in in Matlab

Matlabprompt.prompt.

ƒ

ƒ Select Select ““Root locusRoot locus”” from

from ViewÆViewÆDesign Design Plots configuration Plots configuration..

Root locus plot Root locus plot

2008/09 MECH466 : Automatic Control 6

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ Input the plantInput the plant

ƒ

ƒ Import the plant sysGImport the plant sysG from

from FileFileÆÆImportImport

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ You will see the root You will see the root locus plot for

locus plot for

ƒ

ƒ The default setting The default setting C(s

C(s)=1.)=1. ƒ

ƒ The corresponding The corresponding closed

closed--loop poles are loop poles are indicated by pink indicated by pink squares.

squares.

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ Add a pole & a zero Add a pole & a zero of a compensator, of a compensator, and adjust its gain: and adjust its gain:

ƒ

ƒ If necessary, move If necessary, move the pole and zero the pole and zero

ƒ

ƒ by clickby click--andand--drag, ordrag, or

ƒ

ƒ DesignDesignÆÆEdit Edit Compensator

(3)

2008/09 MECH466 : Automatic Control 9

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ See the step responseSee the step response

ƒ

ƒ DesignÆDesignÆEdit CompensatorEdit Compensator……ÆÆAnalysis PlotsAnalysis Plots

2008/09 MECH466 : Automatic Control 10

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ Modify the pole/zero for “Modify the pole/zero for “goodgood””step responsestep response

SISO Design Tool (cont

SISO Design Tool (cont

d)

d)

ƒ

ƒ Add a pole & a zero of Add a pole & a zero of ƒ

ƒ If necessary, adjust controller parameters.If necessary, adjust controller parameters.

Announcement

Announcement

ƒ

ƒ See the updated schedule for Lab 4 See the updated schedule for Lab 4

MECH466_LabSchedule_0809 (Mar 5).pdf. MECH466_LabSchedule_0809 (Mar 5).pdf.

ƒ

ƒ If your group wants to perform Lab 4 on Tuesday If your group wants to perform Lab 4 on Tuesday March 24 (4

March 24 (4--6pm, or possibly 66pm, or possibly 6--8pm), please 8pm), please contact me ASAP.

(4)

2008/09 MECH466 : Automatic Control 13

Course roadmap

Course roadmap

Laplace transform Laplace transform

Transfer function Transfer function

Models for systems Models for systems •

•electricalelectrical •

•mechanicalmechanical •

•electromechanicalelectromechanical

Linearization Linearization

Modeling

Modeling AnalysisAnalysis DesignDesign

Time response Time response •

•TransientTransient •

•Steady stateSteady state

Frequency response Frequency response •

•Bode plotBode plot

Stability Stability •

•RouthRouth--HurwitzHurwitz •

•NyquistNyquist

Design specs Design specs

Root locus Root locus

Frequency domain Frequency domain

PID & Lead PID & Lead--laglag

Design examples Design examples

Matlab

Matlabsimulations & laboratoriessimulations & laboratories

2008/09 MECH466 : Automatic Control 14

What is frequency response?

What is frequency response?

ƒ

ƒ We would like to analyze a system property by We would like to analyze a system property by applying a

applying a test sinusoidal inputtest sinusoidal inputr(t) and r(t) and observing a response

observing a response y(ty(t).). ƒ

ƒ Steady state response ySteady state response yssss(t) (after transient dies (t) (after transient dies out) of a system to sinusoidal inputs is called out) of a system to sinusoidal inputs is called

frequency response frequency response..

System

System

A simple example

A simple example

ƒ

ƒ RC circuitRC circuit

ƒ

ƒ Input a sinusoidal voltage Input a sinusoidal voltage r(tr(t)) ƒ

ƒ What is the output voltage What is the output voltage y(ty(t)?)? R

R

C

C

r(t

r(t)) y(ty(t))

An example (cont

An example (cont

d)

d)

ƒ

ƒ TF (R=C=1)TF (R=C=1)

ƒ

ƒ r(t)=r(t)=sin(tsin(t))

0 5 10 15 20 25 30 35 40 45 50 -1

-0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

r y

At steady

(5)

2008/09 MECH466 : Automatic Control 17

An example (cont

An example (cont

d)

d)

ƒ

ƒ Derivation of Derivation of y(ty(t))

ƒ

ƒ Inverse LaplaceInverse Laplace

0 as t goes to infinity.

0 as t goes to infinity.

Partial fraction expansion

Partial fraction expansion

(Derivation for general

(Derivation for general G(sG(s) is given at the end of lecture slide.)) is given at the end of lecture slide.)

2008/09 MECH466 : Automatic Control 18

Response to sinusoidal input

Response to sinusoidal input

ƒ

ƒ How is the steady state output of a linear system How is the steady state output of a linear system when the input is sinusoidal?

when the input is sinusoidal?

ƒ

ƒ Steady stateSteady stateoutput output

ƒ

ƒ FrequencyFrequencyis same as the input frequencyis same as the input frequency

ƒ

ƒ AmplitudeAmplitudeis that of input (A) multiplied byis that of input (A) multiplied by

ƒ

ƒ PhasePhaseshifts shifts GainGain

G(s

G(s))

y(t

y(t))

Frequency response function

Frequency response function

ƒ

ƒ For a stable system For a stable system G(sG(s), ), G(jG(jωω) () (ωωis positive) is is positive) is called

called frequency response function (FRF)frequency response function (FRF).. ƒ

ƒ FRF is a complex number, and thus, has an FRF is a complex number, and thus, has an amplitude

amplitudeand a phaseand a phase.. ƒ

ƒ First order exampleFirst order example

Re

Re

Im

Im

First order example revisited

First order example revisited

ƒ

ƒ FRFFRF

ƒ

ƒ Two graphs representing FRFTwo graphs representing FRF

ƒ

ƒ Bode diagram (Bode plot) (Today and next lecture)Bode diagram (Bode plot) (Today and next lecture)

ƒ

(6)

2008/09 MECH466 : Automatic Control 21

Bode diagram (Bode plot) of

Bode diagram (Bode plot) of

G(j

G(j

ω

ω

)

)

ƒ

ƒ Bode diagram consists of Bode diagram consists of gain plotgain plot& & phase plotphase plot

Log

Log--scalescale

2008/09 MECH466 : Automatic Control 22

Bode plot of a 1st order system

Bode plot of a 1st order system

ƒ

ƒ TF TF

10-2 10-1 100 101 102 -50

-40 -30 -20 -10 0

10-2 10-1 100 101 102 -100

-80 -60 -40 -20 0

Corner frequency Corner frequency

Exercises of sketching Bode plot

Exercises of sketching Bode plot

ƒ

ƒ First order systemFirst order system

Remarks on Bode diagram

Remarks on Bode diagram

ƒ

ƒ Bode diagram shows amplification and phase Bode diagram shows amplification and phase shift of a system output for sinusoidal inputs with shift of a system output for sinusoidal inputs with various frequencies.

various frequencies. ƒ

ƒ It is very useful and important in analysis and It is very useful and important in analysis and design of control systems.

design of control systems. ƒ

ƒ The shape of Bode plot contains information of The shape of Bode plot contains information of stability, time responses, and much more! stability, time responses, and much more! ƒ

ƒ It can also be used for system identification. It can also be used for system identification. (Given FRF experimental data, obtain a transfer (Given FRF experimental data, obtain a transfer function that matches the data.)

(7)

2008/09 MECH466 : Automatic Control 25

System identification

System identification

ƒ

ƒ Sweep frequencies of sinusoidal signals and Sweep frequencies of sinusoidal signals and obtain FRF data (i.e., gain and phase). obtain FRF data (i.e., gain and phase). ƒ

ƒ Select G(sSelect G(s) so that ) so that G(jG(jωω) fits the FRF data.) fits the FRF data. Agilent Technologies: FFT Dynamic Signal Analyzer

Agilent Technologies: FFT Dynamic Signal Analyzer

Unknown

Unknown

system

system

Generate sin signals Generate sin signals Sweep frequencies Sweep frequencies

Collect FRF data Collect FRF data Select

Select G(sG(s))

2008/09 MECH466 : Automatic Control 26

Summary and exercises

Summary and exercises

ƒ

ƒ Frequency response Frequency response

ƒ

ƒ Steady state response to a sinusoidal inputSteady state response to a sinusoidal input

ƒ

ƒ For a linear system, sinusoidal input generates For a linear system, sinusoidal input generates

sinusoidal output with

sinusoidal output with same frequencysame frequencybut but different different

amplitude and phase

amplitude and phase.. ƒ

ƒ Bode plot is a graphical representation of Bode plot is a graphical representation of frequency response function. (

frequency response function. (““bode.mbode.m””)) ƒ

ƒ ExercisesExercises

ƒ

ƒ Read Section 10.1.Read Section 10.1.

ƒ

ƒ Solve Problem 10.1.Solve Problem 10.1.

Another example of FRF

Another example of FRF

ƒ

ƒ Second order systemSecond order system

Re

Re

Im

Im

Derivation of frequency response

Derivation of frequency response

Term having denominator of

Term having denominator of G(sG(s))

0 as t goes to infinity.

References

Related documents