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 16
Lecture 16
Bode diagram
Bode diagram
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
2008/09 MECH466 : Automatic Control 3
Frequency response (review)
Frequency response (review)
Steady state output
Steady state 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
PhasePhaseshiftsshifts
Frequency response function
Frequency response function
(FRF):
(FRF):
G(jω
G(j
ω
)
)
Bode plot
Bode plot
: Graphical representation of
: Graphical representation of
G(jω
G(j
ω
)
)
Gain
Gain
G(s
G(s
)
)
y(t y(t)) Stable
Stable
2008/09 MECH466 : Automatic Control 4
Bode plot of
Bode plot of G(j
G(j
ω
ω
) (review)
) (review)
Bode plot consists of
Bode plot consists of
gain plot
gain plot
&
&
phase plot
phase plot
2008/09 MECH466 : Automatic Control 5
Sketching Bode plot
Sketching Bode plot
Basic functions
Basic functions
Constant gainConstant gain
Differentiator and integratorDifferentiator and integrator
Double integratorDouble integrator
First order system and its inverseFirst order system and its inverse
Second order systemSecond order system
Time delayTime delay
Product of basic functions
Product of basic functions
1.1. Sketch Bode plot of each factor, andSketch Bode plot of each factor, and
2.
2. Add the Bode plots graphically.Add the Bode plots graphically.
2008/09 MECH466 : Automatic Control 6
10-2 10-1 100 101 102 19
19.5 20 20.5 21
10-2 10-1 100 101 102 -1
-0.5 0 0.5 1
Bode plot of a constant gain
Bode plot of a constant gain
TF
TF
2008/09 MECH466 : Automatic Control 7
Sketching Bode plot
Sketching Bode plot
Basic functions
Basic functions
Constant gainConstant gain
Differentiator and integratorDifferentiator and integrator
Double integratorDouble integrator
First order system and its inverseFirst order system and its inverse
Second order systemSecond order system
Time delayTime delay
Product of basic functions
Product of basic functions
1.1. Sketch Bode plot of each factor, andSketch Bode plot of each factor, and
2.
2. Add the Bode plots graphically.Add the Bode plots graphically.
2008/09 MECH466 : Automatic Control 8
10-2 10-1 100 101 102 -40
-20 0 20 40
10-2 10-1 100 101 102 89
89.5 90 90.5 91
Bode plot of a differentiator
Bode plot of a differentiator
2008/09 MECH466 : Automatic Control 9
Bode plot of an integrator
Bode plot of an integrator
TF
TF
10-2 10-1 100 101 102 -40
-20 0 20 40
10-2 10-1 100 101 102 -91
-90.5 -90 -89.5 -89
Mirror image of
Mirror image of
the Bode plot of
the Bode plot of
G(s
G(s
)=s with
)=s with
respect to
respect to ω
ω
-
-
axis.
axis.
2008/09 MECH466 : Automatic Control 10 10-2 10-1 100 101 102
-100 -50 0 50 100
10-2 10-1 100 101 102 -181
-180.5 -180 -179.5 -179
Bode plot of a double integrator
Bode plot of a double integrator
TF
TF
2008/09 MECH466 : Automatic Control 11
Sketching Bode plot
Sketching Bode plot
Basic functions
Basic functions
Constant gainConstant gain
Differentiator and integratorDifferentiator and integrator
Double integratorDouble integrator
First order system and its inverseFirst order system and its inverse
Second order systemSecond order system
Time delayTime delay
Product of basic functions
Product of basic functions
1.1. Sketch Bode plot of each factor, andSketch Bode plot of each factor, and
2.
2. Add the Bode plots graphically.Add the Bode plots graphically.
2008/09 MECH466 : Automatic Control 12
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
2008/09 MECH466 : Automatic Control 13
Bode plot of an inverse system
Bode plot of an inverse system
TF
TF
10-2 10-1 100 101 102 0
10 20 30 40 50
10-2 10-1 100 101 102 0
20 40 60 80 100
Mirror image of
Mirror image of
the original Bode
the original Bode
plot with respect
plot with respect
to
to
ω
ω
-
-
axis.
axis.
2008/09 MECH466 : Automatic Control 14
Sketching Bode plot
Sketching Bode plot
Basic functions
Basic functions
Constant gainConstant gain
Differentiator and integratorDifferentiator and integrator
Double integratorDouble integrator
First order system and its inverseFirst order system and its inverse
Second order systemSecond order system
Time delayTime delay
Product of basic functions
Product of basic functions
1.1. Sketch Bode plot of each factor, andSketch Bode plot of each factor, and
2.
2. Add the Bode plots graphically.Add the Bode plots graphically.
2008/09 MECH466 : Automatic Control 15
Bode plot of a 2nd order system
Bode plot of a 2nd order system
10-1 100 101
-60 -40 -20 0 20
10-1 100 101
-200 -150 -100 -50 0
resonance resonance
Resonant freq. Resonant freq.
Peak gain Peak gain
2008/09 MECH466 : Automatic Control 16
1 0- 2
1 0- 1
1 00
1 01
1 02
-1 -0 . 5 0 0 . 5 1
1 0- 2
1 0- 1
1 00
1 01
1 02
-6 0 0 0 -4 0 0 0 -2 0 0 0 0
Bode plot of a time delay
Bode plot of a time delay
Huge phase lag!
Huge phase lag!
The phase lag causes instability of the closed The phase lag causes instability of the closed--loop loop
2008/09 MECH466 : Automatic Control 17
Sketching Bode plot
Sketching Bode plot
Basic functions
Basic functions
Constant gainConstant gain
Differentiator and integratorDifferentiator and integrator
Double integratorDouble integrator
First order system and its inverseFirst order system and its inverse
Second order systemSecond order system
Time delayTime delay
Product of basic functions
Product of basic functions
1.1. Sketch Bode plot of each factor, andSketch Bode plot of each factor, and
2.
2. Add the Bode plots graphically.Add the Bode plots graphically.
Main advantage of Bode plot! Main advantage of Bode plot!
2008/09 MECH466 : Automatic Control 18
An advantage of Bode plot
An advantage of Bode plot
Bode plot of a series connection G
Bode plot of a series connection G
11(s)G
(s)G
22(s) is
(s) is
the addition of each Bode plot of G
the addition of each Bode plot of G
11and G
and G
22.
.
GainGain
PhasePhase
We use this property to design
We use this property to design
C(s
C(s
) so that
) so that
G(s)C(s
G(s)C(s
) has a
) has a
“
“
desired
desired
”
”
shape of Bode plot.
shape of Bode plot.
2008/09 MECH466 : Automatic Control 19
Short proofs
Short proofs
Use polar representation
Use polar representation
Then,
Then,
Therefore,
Therefore,
2008/09 MECH466 : Automatic Control 20
Sketch the Bode plot of a transfer function
Sketch the Bode plot of a transfer function
1.
1.
Decompose
Decompose
G(s
G(s
) into a product form:
) into a product form:
2.
2.
Sketch a Bode plot for each component on the
Sketch a Bode plot for each component on the
same graph.
same graph.
3.
3.
Add them all on both gain and phase plots.
Add them all on both gain and phase plots.
Example 1
2008/09 MECH466 : Automatic Control 21
Example 1 (cont
Example 1 (cont’
’d)
d)
dB dB
deg deg
--2020
2008/09 MECH466 : Automatic Control 22
Example 2
Example 2
dB dB
deg deg
--2020
2008/09 MECH466 : Automatic Control 23
Example 3
Example 3
dB dB
deg deg
--2020
--4040
2008/09 MECH466 : Automatic Control 24
Example 4
Example 4
dB dB
deg deg
+20
+20
--2020
+45
+45 --4545
2008/09 MECH466 : Automatic Control 25
Example 5
Example 5
dB dB
deg deg
+20
+20
--4040
+45
+45 --4545
--9090
--2020
2008/09 MECH466 : Automatic Control 26
Remark
Remark
Use
Use
Matlab
Matlab
“
“
bode.m
bode.m
”
”
to obtain precise shape.
to obtain precise shape.
ALWAYS check the correctness of
ALWAYS check the correctness of
Low frequency gain (DC gain) Low frequency gain (DC gain)
High frequency gainHigh frequency gain
Example
Example
2008/09 MECH466 : Automatic Control 27
Summary and exercises
Summary and exercises
Sketches of Bode plot
Sketches of Bode plot
Basic functionsBasic functions
Products of basic functionsProducts of basic functions
Sketching Bode plot is just
Sketching Bode plot is just
…
…
.
.
to get a rough idea of the characteristic of a system.to get a rough idea of the characteristic of a system.
to interpret the result obtained from computer.to interpret the result obtained from computer.
to detect erroneous result from computer.to detect erroneous result from computer.
Exercises
Exercises
Read Section 10.2. Solve Problem 10.4.Read Section 10.2. Solve Problem 10.4.
Next,
Next,
Nyquist
Nyquist
stability criterion
stability criterion
2008/09 MECH466 : Automatic Control 28
Exercises
Exercises
2008/09 MECH466 : Automatic Control 29
Exercises
Exercises
Sketch the Bode plot of:
Sketch the Bode plot of:
Find a transfer function having the gain plot:
Find a transfer function having the gain plot:
0dB 0dB 20dB 20dB
2
2 2020
--4040
+20
+20
Ans.
Ans.
2008/09 MECH466 : Automatic Control 30
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 6
6pm, or possibly 6
-
-
8pm), please
8pm), please
contact me ASAP.