Professional Documents
Culture Documents
Topics covered:
Modeling.
g ODEs. Linearization.
Laplace transform. Transfer functions.
Block diagrams. Masons Rule.
Time response
p
specifications.
p
Effects of zeros and poles.
Stability via Routh-Hurwitz.
Feedback: Disturbance rejection, Sensitivity, Steady
Steady-state
state tracking.
PID controllers and Ziegler-Nichols tuning procedure.
Actuator saturation and integrator wind-up.
Root locus.
Frequency response--Bode and Nyquist diagrams.
Stability Margins.
Margins
Design of dynamic compensators.
Classical Control Prof. Eugenio Schuster Lehigh University
Classical Control
Text: Feedback Control of Dynamic Systems,
4th Edition,
Edition G.F.
G F Franklin,
Franklin J.D.
J D Powel and A.
A Emami
Emami-Naeini
Naeini
Prentice Hall 2002.
What is control?
For any analysis we need a mathematical MODEL of the system
Model Relation between gas pedal and speed:
10 mph change in speed per each degree rotation of gas pedal
Disturbance Slope of road:
5 mph change in speed per each degree change of slope
Block diagram for the cruise control plant:
Slope
(degrees)
0.5
Control
(degrees)
y = 10(u 0.5w)
10
Output speed
(mph)
What is control?
O
Open-loop
l
cruise
i control:
t l
r
u=
10
PLANT
0.5
1/10 u
10
Reference
(mph)
eol = r yol = 5w
r yol
w
eol [%] =
= 500
r
r
Classical Control Prof. Eugenio Schuster Lehigh University
yol
r
= 10( 0.5w)
10
= r 5w
r = 65, w = 0 eol = 0
r = 65, w = 1 eol = 5mph, eol = 7.69%
OK when:
h
1- Plant is known exactly
2- There is no disturbance
What is control?
Cl
Closed-loop
d l
cruise
i control:
t l
u = 20(r ycll )
PLANT
0.5
-
+
r
1/10 u
1
5
ecl = r ycl =
r+
w
201
201
r ycl
1
5 w
ecl [%] =
=
+
r
201 201 r
Classical Control Prof. Eugenio Schuster Lehigh University
10
ycl
200
5
=
r
w
201
201
1
% = 0.5%
201
1
5 5
r = 65, w = 1 ecl =
+
= 0.69%
201 201 65
r = 65, w = 0 ecl =
What is control?
Feedback control can help:
reference following (tracking)
disturbance rejection
changing dynamic behavior
LARGE gain is essential but there is a STABILITY limit
The
The issue of how to get the gain as large as possible to reduce
the errors due to disturbances and uncertainties without
making the system become unstable is what much of feedback
control design is all about
about
First step in this design process: DYNAMIC MODEL
Dynamic Models
MECHANICAL SYSTEMS:
F = ma
m&x& = u bx&
v = x&
a = v& = &x&
b
u
Vo
1m
v& + v = v
=
=Vo e st ,u =U o e st
m
m
Uo s + b m
Newtons law
velocity
acceleration
T
Transfer
f Function
F
ti
d
s
dt
Dynamic Models
F = I
MECHANICAL SYSTEMS:
Newtons law
= & = &&
I = ml 2
g
Tc
g
Tc
&
&
&
&
+ sin = 2 sin
+ = 2
l
ml
l
ml
angular acceleration
moment of inertia
Linearization
Dynamic Models
g
Tc
&
&
+ = 2
l
ml
Reduce to first order equations:
x1 =
x2 = &
0
x1
Tc
x , u 2 x& = g
mll
x2
l
General case:
x&1 = x2
g
Tc
x&2 = x1 + 2
l
ml
1
0
x + u
0
1
State Variable
Representation
x& = Fx + Gu
y = Hx + Ju
Dynamic Models
ELECTRICAL SYSTEMS:
Kirchoffs Current Law (KCL):
The algebraic
Th
l b i sum off currents entering
i
a node
d is
i zero at
every instant
Kirchoffs Voltage Law (KVL)
The algebraic sum of voltages around a loop is zero at
every instant
Resistors:
iR
+
vR
iC
+
vC
iL
+
vL
vR (t ) = RiR (t ) iR (t ) = GvR (t )
Capacitors:
t
1
dv (t )
iC (t ) = C C vC (t ) = iC ( ) d + vC (0)
dt
C0
Inductors:
t
di (t )
1
vL (t ) = L L iL (t ) = vL ( ) d + iL (0)
dt
L0
Classical Control Prof. Eugenio Schuster Lehigh University
10
Dynamic Models
ELECTRICAL SYSTEMS:
OP AMP:
vO = A(v p vn ), A
+
vp
v+
n
ip
+
in
RO
RI
-
+
-
A(vp-vvn)
iO
vO
+
v p = vn
i p = in = 0
11
Dynamic Models
ELECTRICAL SYSTEMS:
KCL:
R2
R1
v1
vO
1
1
dvO
=
vO
vI
dt
R2C
R1C
+
-
1 t
R2 = (OC) vO (t ) = vO (0 )
v I ( ) d
R1C 0
v1
vO
1
K =
RC
Inverting integrator
Classical Control Prof. Eugenio Schuster Lehigh University
12
Dynamic Models
ELECTRO-MECHANICAL
C O
C
C
S
SYSTEMS:
S
S DC
C Motor
torque
armature current
T = K t ia
e = K e&m
emf
shaft velocity
J m&&m = b&m + T
dia
va + Raia + L
+e=0
dt
Obtain the State Variable Representation
Classical Control Prof. Eugenio Schuster Lehigh University
13
Dynamic Models
HEAT-FLOW:
Heat Flow
Temperature Difference
1
q = (T1 T2 )
R
1
&
T= q
C
Thermal capacitance Thermal resistance
1 1 1
&
TI = + (To TI )
CI R1 R2
14
Dynamic Models
FLUID-FLOW:
Mass rate
Outlet
l mass fl
flow
1
&
&
(win wout )
m& = Ah h =
A
A: area of the tank
: density of fluid
h: height of water
Classical Control Prof. Eugenio Schuster Lehigh University
15
Linearization
Dynamic System:
x& = f ( x, u )
0 = f ( xo , uo )
Denote
Equilibrium
x = x xo , u = u uo
x& = f ( xo + x, uo + u )
Taylor Expansion
f
f
x& f ( xo , uo ) +
x +
u
u xo ,uo
x xo ,uo
f
f
F
,G
x xo ,uo
u xo ,uo
Classical Control Prof. Eugenio Schuster Lehigh University
x& Fx + Gu
16
Linearization
x& Fx + Gu
F
f
x xo ,uo
f1
f1
f1
f1
x L x
u L u
n
m
f
1
= M
,G
= M
M
M
u xo ,uo
f n L f n
f n L f n
u1
xn x ,u
um x ,u
x1
o o
o o
k & g
&
&
+ + sin = 0
m
l
0
1
k x
x& = g
l cos x1 m x
o
Classical Control Prof. Eugenio Schuster Lehigh University
17
Laplace Transform
Function f(t) of time
Piecewise continuous and exponential order
F ( s ) = f (t )e
st
f (t ) < Kebt
+
dt
0-
j
1
F ( s )e st ds
L 1[F (s )] = f (t ) =
2j j
If f(t)
f( ) is
i volts
l (amps)
(
) then
h F(s)
F( ) is
i volt-seconds
l
d (amp-seconds)
(
d)
Classical Control Prof. Eugenio Schuster Lehigh University
18
f t<0
0, for
u (t ) =
1, for t 0
F ( s ) = u (t )e
st
dt = e
st
dt =
st
( + j )t
+ j
1
= if > 0
s
Exponential function
After Oliver Exponential (1176 BC- 1066 BC)
( s + )t
e
t st
( s + )t
F (s) = e
dt = e
dt =
s +
1
=
if >
s +
F ( s ) = (t )e st dt = 1 for all s
0
19
Waveform
impulse
(t )
step
u (t )
ramp
tu (t )
exponential
e t u (t
(t )
damped ramp
te
u (t )
sine
sin ( t ) u (t )
cosine
cos( t )u (t )
damped sine
e t sin ( t )u (t )
damped cosine
e t cos( t )u (t )
Transform
1
1
s
1
s2
1
s +
1
( s + ) 2
s2 + 2
s
s2 + 2
( s + ) 2 + 2
s +
( s + ) 2 + 2
20
t
F (s )
L f ( )d =
s
0
df (t )
L
= sF ( s ) f (0)
dt
d 2 f (t )
= s 2 F ( s ) sf (0) f (0)
L
dt 2
d m f (t ) m
m 1
m2
( m)
L
L
=
s
F
(
s
)
s
f
(
0
s
f
(
0
f
(0 )
m
dt
21
L{e t f (t )} = F ( s + )
t-domain translation: L{ f (t a )u (t a )} = e
as
F ( s ) for a > 0
lim f (t ) = lim sF ( s )
t 0 +
lim f (t ) = lim sF ( s )
s 0
22
Time Scaling:
Multiplication by time:
Convolution:
Time product:
L{ f ( ) g (t )d } = F ( s )G ( s )
0
1 + j
L{ f (t ) g (t )} =
F ( s )G ( s )d
2j
23
Laplace Transform
Exercise: Find the Laplace transform of the following waveform
F (s) =
4(s + 2 )
s (s 2 + 4 )
f (t ) = e u (t ) + 5 sin (4 x )dx
4t
40 t
d
5
te
f (t ) = 5e 40t u (t ) +
u (t )
dt
s 3 + 36 s + 80
F (s) =
s(s + 4 )(s 2 + 16 )
10 s + 200
F (s) =
(s + 40)2
E
Exercise:
i
Find the Laplace transform of the following waveform
f (t ) = Au (t ) 2 Au (t T ) + Au (t 2T )
F (s) =
A(1 e
s
Ts 2
24
Tim
me domaain (t dom
main)
Laplace transforms
Linear
system
Differential
equation
Laplace
transform L
Classical
q
techniques
Response
p
signal
Response
p
transform
25
Initial Conditions:
Recall
n 1
s Y ( s) y
n
j =0
y ( n 1) (0 ),K, y (0 ), u ( m 1) (0 ),K, u (0 )
k 1
d k f (t ) k
( k 1 j )
j
L
=
s
F
(
s
)
f
(
0
)
s
k
dt
j =0
( n 1 j )
i 1
m
i 1
i
i
j
( i 1 j )
(0) s + ai s Y ( s ) y
(0)s = bi s U ( s ) u ( i 1 j ) (0)s j
i =0
j =0
j =0
i =0
n 1
bm s m + bm 1s m 1 + L + b1s + b0
Y ( s) = n
U (s) +
s + an 1s n 1 + L + a1s + a0
n 1
i 1
i =0
j =0
ai y
( i 1 j )
s + an 1s
n
i 1
i =0
j =0
(0)s bi u (i 1 j ) (0)s j
j
n 1
+ L + a1s + a0
26
Laplace Transform
Exercise: Find the Laplace transform V(s)
dv(t )
+ 6v(t ) = 4u (t )
dt
v(0) = 3
4
3
V (s) =
s (s + 6 ) s + 6
d 2v(t )
dv(t )
2t
4
3
v
(
t
)
5
e
+
+
=
dt
dt 2
v(0) = 2, v' (0) = 2
5
2
V (s) =
(s + 1)(s + 2)(s + 3) s + 1
27
Transfer Functions
y ( n ) + an 1 y ( n 1) + L + a0 y = bm 1u ( m 1) + L + b0u
(s
Output
Input
bm 1s m 1 + L + b1s + b0
B( s)
Y (s) = n
U (s) =
U (s)
n 1
s + an 1s + L + a1s + a0
A( s )
Y (s)
bm 1s m 1 + L + b1s + b0
H (s) =
= n
U ( s ) s + an 1s n 1 + L + a1s + a0
( s z1 )( s z2 )L( s zm )
=K
( s p1 )( s p2 )L( s pn )
Classical Control Prof. Eugenio Schuster Lehigh University
28
Rational Functions
We shall mostly be dealing with LTs which are rational
functions ratios of polynomials in s
bm s m + bm 1s m 1 + L + b1s + b0
F (s) =
an s n + an 1s n 1 + L + a1s + a0
( s z1 )( s z2 )L( s zm )
=K
( s p1 )( s p2 )L( s pn )
29
(s pi )F ( s) = k1 ( s pi ) + k2 ( s pi ) + L + ki + L + kn ( s pi )
( s p1 )
( s p2 )
( s pn )
ki = lim ( s pi ) F ( s )
s pi
30
r
j
(r j )! s p ds
i
Example:
2
1
3
2 s 2 + 5s
=
+
3
2
s + 1 (s + 1)
(s + 1)
(s + 1)3
(s +1)3(2s2 + 5s) =
lim
3
3
s3
+
(s 1)
d (s +1)3(2s2 +5s) =
lim
1
3
ds
s 1
(s +1)
(s +1)3
+ 5s 1 2
2
s
1
3 t
1
2
(
)
=
L
L
+
=
e
2
+
t
3
t
u (t )
3
2
3
(s + 1)
s + 1 (s + 1) (s + 1)
Classical Control Prof. Eugenio Schuster Lehigh University
31
s a
( s j )( s + j ) = s 2 2s + 2 + 2
)]
32
bm sm + bm1sm1 + L + b1s + b0
an sn + an1sn1 + L + a1s + a0
(s z1 )(s z2 )L(s
) (s zm )
=K
(s p1 )(s p2 )L(s pn )
=
(s p1 ) (s p2 )
31
( p3 )
(s
32
(s p3 )
33
(s p3 )
+ ...+
(s pq )
Now appeal
pp to linearityy to invert via the table
Surprise!
Nastiness: computing the partial fraction expansion is best
d
done
bby calculating
l l i the
h residues
id
Classical Control Prof. Eugenio Schuster Lehigh University
33
Example 9-12
Find the inverse LT of
20( s + 3)
F ( s) =
( s + 1)( s 2 + 2s + 5)
k1
k2
k 2*
F (s) =
+
+
s +1 s +1 j2 s +1+ j2
20( s + 3)
k = lim ( s + 1) F ( s ) =
= 10
1 s 1
2
s + 2 s + 5 s = 1
20( s + 3)
k =
lim
(s + 1 2 j ) F (s) =
2 s 1 + 2 j
( s + 1)( s + 1 + 2 j )
s = 1 + 2 j
5
j
= 5 5 j = 5 2e 4
5
5
( 1+ j 2)t + j
( 1 j 2)t j
4 u (t )
4 + 5 2e
f (t ) = 10e t + 5 2e
= 10e t + 10 2e t cos(2t + ) u (t )
4
34
s 3 + 6s 2 + 12 s + 8
F ( s) =
s 2 + 4s + 3
s+2
F (s) = s + 2 + 2
s + 4s + 3
0.5 0.5
= s+2+
+
s +1 s + 3
Invert as normal
d (t )
f (t ) =
+ 2 (t ) + 0.5e t + 0.5e 3t u (t )
dt
35
Block Diagrams
Series:
G2
G1
G = G1G2
G1
Parallel:
G2
+
+
G = G1 + G2
36
Block Diagrams
Negative Feedback:
R (s )
E (s )
-
B (s )
C (s )
Reference input
E = RB
C = GE
Error signal
B = HC
Feedback signal
Output
C
G
C = GR GHC (1 + GH )C = GR =
R (1 + GH )
E
1
E = R HGE (1 + GH ) E = R =
R (1 + GH )
Rule: Transfer Function=Forward Gain/(1+Loop Gain)
Classical Control Prof. Eugenio Schuster Lehigh University
37
Block Diagrams
Positive Feedback:
R (s )
E (s )
+
B (s )
C (s )
Reference input
E = R+B
C = GE
Error signal
B = HC
Feedback signal
Output
C
G
C = GR + GHC (1 GH )C = GR =
R (1 GH )
E
1
E = R + HGE (1 GH ) E = R =
R (1 GH )
Rule: Transfer Function=Forward Gain/(1-Loop Gain)
Classical Control Prof. Eugenio Schuster Lehigh University
38
Block Diagrams
Moving through a branching point:
R (s )
C (s )
R (s )
B (s
( )
1/ G
B (s
( )
C (s )
+
+
C (s )
B (s )
R (s )
C (s )
+
+
G
B (s )
39
Block Diagrams
Example:
H1
R (s )
G1
+
-
G2
G3
C (s )
H2
R (s )
G1G2G3
1 + H1G2G3 + H 2G1G2
C (s )
40
Masons Rule
H4
H6
U (s )
+
+
H1
H2
H3
+
+
+
+
Y (s )
H7
H5
Signal Flow Graph
H4
nodes
branches
b
a c es
H6
U (s )
H1
H5
Classical Control Prof. Eugenio Schuster Lehigh University
H2
H3
Y ((s )
H7
41
Masons Rule
Path:
P
th a sequence off connected
t db
branches
h in
i th
the direction
di
ti
off the
th
signal flow without repetition
Loop: a closed path that returns to its starting node
Forward path: connects input and output
Y (s) 1
G (s) =
= Gi i
U (s) i
Gi = gain of the ith forward path
= the system determinan t
= 1- (all loop gains)
42
Masons Rule
H4
H6
U (s )
H1
H5
H2
H3
Y (s )
H7
Y ( s)
H1 H 2 H 3 + H 4 H 4 H 2 H 6
=
U ( s ) 1 H1 H 5 H 2 H 6 H 3 H 7 H 4 H 7 H 6 H 5 + H1 H 5 H 3 H 7
43
Impulse Response
Diracs delta:
0 u( ) (t )d = u(t )
h(t )
System Response:
u (t )
y (t )
y (t ) = u ( )h(t )d
0
44
Impulse Response
t-domain:
u (t )
y (t )
Impulse response
y (t ) = u ( )h(t )d
u (t ) = (t ) y (t ) = h(t )
Convolution:
L{ u ( )h(t )d } = H ( s )U ( s )
0
s-domain: U (s )
Y (s )
Impulse response
Y ( s ) = H ( s )U ( s )
u (t ) = (t ) U ( s ) = 1 Y ( s ) = H ( s )
45
1
H ( s) =
h(t ) = e t
s +
>0
<0
Impulse
Response
Stable
Unstable
Time Constant
46
H (s) =
s +
1
h(t ) = e t
Impulse
Response
Time Constant
1
Y (s) =
y (t ) = 1 e t
s + s
Step
Response
47
n2
Complex poles: H ( s ) = 2
s + 2 n s + n2
IImpulse
l
Response
n2
=
(s + n )2 + n2 (1 2 )
n :
:
H (s) =
n2
(s + + jd )(s + jd )
n2
=
(s + )2 + d2
= n , d = n 1 2
Classical Control Prof. Eugenio Schuster Lehigh University
48
n2
n
t
H (s) =
h
(
t
)
=
e
sin (d t )
2
2
2
2
(s + n ) + n (1 )
1
Impulse
Response
>0
<0
Stable
Unstable
49
n2
n
t
H (s) =
h
(
t
)
=
e
sin (d t )
2
2
2
2
(s + n ) + n (1 )
1
Impulse
Response
50
n2
1
t
(
)
(
)
+
Y (s) =
y
(
t
)
1
e
cos
t
sin
t
d
d
(s + n )2 + n2 (1 2 ) s
d
Step
Response
51
n2
H (s) = 2
s + 2 n s + n2
n2
=
2
(s + n ) + n2 (1 2 )
CASES:
= 0 : s 2 + n2
Undamped
p
< 1 : (s + n )2 + n2 (1 2 )
= 1 : (s + n )
Underdamped
[ (
) ][ (
) ]
> 1 : s + + 2 1 n s + 2 1 n
Classical Control Prof. Eugenio Schuster Lehigh University
Critically damped
Overdamped
52
53
54
tp =
n 1
Mp =e
tr
1.8
ts =
4.6
1 2
n
55
tr , t p , M p , t s
These specifications
p
give the p
g
position of the p
poles
n , , d
Example: Find the pole positions that guarantee
56
57
Stability
Y ( s ) bm s m + bm 1s m 1 + L + b1s + b0
= n
R( s)
s + an 1s n 1 + L + a1s + a0
Y (s)
( s z1 )( s z2 )L( s zm )
=K
R( s)
( s p1 )( s p2 )L( s pn )
Y (s)
k1
k2
kn
=
+
+L+
R ( s ) ( s p1 ) ( s p2 )
( s pn )
Impulse response:
R( s) = 1 Y ( s) =
k1
k2
kn
+
+L+
( s p1 ) ( s p2 )
( s pn )
58
Stability
y (t ) = k1e p1t + k2e p2t + L + kn e pnt
We want:
e pit t
0
i = 1K n
Re{p
{ pi } < 0
Characteristic polynomial:
a ( s ) = s n + an 1s n 1 + L + a1s + a0
Characteristic equation:
a( s) = 0
59
Stability
Necessary condition for asymptotical stability (a.s.):
ai > 0
s2 + s 2 = 0
( s + 2)( s 1) = 0
60
Rouths Criterion
Necessary and sufficient condition
Do not have to find the roots pi!
Rouths Array:
sn
s n 1
a1
a2
a3
s n2
s n 3
a4 L
a5 L
b1
c1
b2
c2
b3
c3
s n4
d1
d2
M
s0
an
an
Depends on whether
n is even or odd
a1a2 a3
aa a
aa a
, b2 = 1 4 5 , b3 = 1 6 7
a1
a1
a1
ba ab
ba ab
c1 = 1 3 1 2 , c2 = 1 5 1 3 ,
L
b1
b1
c b bc
cb bc
d1 = 1 2 1 2 , d 2 = 1 3 1 3 ,
L
c1
c1
M
M
b1 =
61
Rouths Criterion
How to remember this?
Rouths Array:
sn
s n 1
s n2
s n3
M
m12
m13 L
m1, j = a2 j 2 ,
m21 m22
m31 m32
m41 m42
m23 L
m33 L
m43 L
m2, j = a2 j 1 ,
m11
mi , j =
mi 2,1 mi 2, j +1
mi 1,1 mi 1, j +1
mi 1,1
, i 3
62
Rouths Criterion
The criterion:
The system is asymptotically stable
if and only if all the elements in the first
column of the Rouths array are positive
The number of roots with positive real
parts is equal to the number of sign
changes in the first column of the Routh
array
63
s 2 + a1s + a2 = 0
Example 2:
s 3 + a1s 2 + a2 s + a3 = 0
Example 3: s 6 + 4 s 5 + 3s 4 + 2 s 3 + s 2 + 4 s + 4 = 0
Example 4:
s 3 + 5 s 2 + ( k 6) s + k = 0
64
+
-
s +1
s(s 1)(s + 6 )
Y (s )
65
Rouths Criterion
Special Case I: Zero in the first column
We replace the zero with a small positive constant
>0 and proceed as before. We then apply the
stability criterion by taking the limit as 0
Example:
s 4 + 2 s 3 + 4 s 2 + 8s + 10 = 0
66
Rouths Criterion
Special Case II: Entire row is zero
This indicates that there are complex conjugate pairs.
If the ith row is zero, we form an auxiliary equation
from the previous nonzero row:
a1 ( s ) = 1s i +1 + 2 s i 1 + 3 s i 3 + L
Where i are the coefficients of the (i+1)th
) row in the
array. We then replace the ith row by the coefficients
of the derivative of the auxiliary polynomial.
Example:
s 5 + 2 s 4 + 4 s 3 + 8s 2 + 10 s + 20 = 0
67
Properties of feedback
Disturbance Rejection:
Open loop
w
Ko
y = K o Ar + w
Closed loop
+
-
Kc
w
+
y
Kc A
1
y=
r+
w
1 + Kc A 1 + Kc A
68
Properties of feedback
Disturbance Rejection:
Ch
Choose
control
t l s.t.
t for
f w=0,y
0 r
Open loop:
1
Ko = y = r + w
A
1
y r + 0w = r
A
69
Properties of feedback
Sensitivity to Gain Plant Changes
Open loop
w
Ko
y
To = = AK o
r o
Closed loop
+
-
Kc
w
+
y
AK c
y
Tc = =
r c 1 + AK c
70
Properties of feedback
Sensitivity to Gain Plant Changes
Let the plant gain be A + A
Open loop:
Closed loop:
To
To
Tc
A
A
A To
1
=
<<
=
Tc
A 1 + AK c
A To
dT / T A dT
S =
=
dA / A T dA
1
Tc
SA =
, S ATo = 1
1 + AK c
T
A
71
PID Controller
PID: Proportional Integral Derivative
P Controller:
Y (s)
C ( s )G ( s ) R (s )
=
,
R ( s ) 1 + C ( s )G ( s )
E (s)
1
=
.
R ( s ) 1 + C ( s )G ( s )
E (s )
C (s) = K p
U (s )
G (s )
Y (s )
Step Reference:
u (t ) = K p e(t ),
U (s) = K p E (s)
1
1
1
1
R ( s ) = ess = lim sE ( s ) = lim s
=
s 0
s 0 1 + K G ( s ) s
s
1 + K pG (0)
p
ess = 0 K pG (0)
True when:
72
PID Controller
P Controller: Example (lecture06_a.m)
R (s )
E (s )
Kp
U (s )
A
s2 + s + 1
Y (s )
K pG ( s)
KpA
Y ( s)
=
= 2
R ( s ) 1 + K pG ( s ) s + s + (1 + K p A)
n2 = 1 + K p A
2
n =1
1
=
=
K
0
p
2n 2 1 + K p A
73
PID Controller
PI Controller:
R (s )
Y (s)
C ( s )G ( s )
=
,
R ( s ) 1 + C ( s )G ( s )
E (s)
1
=
.
R ( s ) 1 + C ( s )G ( s )
E (s )
C (s) = K p +
Step Reference:
U (s )
KI
s
u (t ) = K p e(t ) + K I e( )d ,
1
R ( s ) = ess = lim
li sE
E ( s ) = lim
li s
s 0
s 0
s
1
K
1+ K p + I
s
G ( s )
Y (s )
G (s )
KI
U (s) = K p +
s
1
= lim
li
s s 0
1
K
1+ K p + I
s
E (s)
=0
G ( s )
74
PID Controller
PI Controller: Example (lecture06_b.m)
R (s )
E (s )
+
-
Kp +
U (s )
KI
s
A
s2 + s + 1
Y (s )
KI
G ( s )
Kp +
(
K p s + K I )A
Y (s)
s
=
= 3 2
KI
R( s)
s + s + (1 + K p A) s + K I A
1+ K p +
(
)
G
s
s 3 + s 2 + (1 + K p A) s + K I A = 0
Analysis by Rouths Criterion
Classical Control Prof. Eugenio Schuster Lehigh University
75
PID Controller
PI Controller: Example (lecture06_b.m)
s 3 + s 2 + (1 + K p A) s + K I A = 0
Necessary Conditions:
1 + K p A > 0, K I A > 0
Rouths Conditions:
s3
1
1+ K p A
2
s
1
KI A
s1 1 + K p A K I A
s0
KI A
1+ K p A KI A > 0
1
KI < KP +
A
76
PID Controller
PD Controller:
R (s )
Y (s)
C ( s )G ( s )
=
,
R ( s ) 1 + C ( s )G ( s )
E (s)
1
=
.
R ( s ) 1 + C ( s )G ( s )
Step Reference:
E (s )
C (s) = K p + K D s
U (s )
G (s )
Y (s )
de(t )
u (t ) = K p e(t ) + K D
,
dt
U ( s ) = (K p + K D s )E ( s )
1
1
1
1
=
R ( s ) = ess = lim sE ( s ) = lim s
s 0
s 0 1 + (K + K s )G ( s ) s
s
1 + K p G ( 0)
p
D
ess = 0 K pG (0)
True when:
Proportional
P
ti
l gain
i iis hi
high
h
Plant has a pole at the origin
77
PID Controller
PD Controller: Example (lecture06_c.m)
R (s )
E (s ) C ( s ) = K + K s U (s )
p
D
+
-
A
s2 + s + 1
Y (s )
(
K p + K D s )G ( s )
A(K p + K D s )
Y (s)
=
= 2
R ( s ) 1 + (K p + K D s )G ( s ) s + (1 + K D A)s + (1 + K p A)
n2 = 1 + K p A
2
n = 1+ KD A
1+ KD A
1+ KD A
=
=
2n
2 1+ K p A
78
PID Controller
PD Controller:
R (s )
Y (s)
C ( s )G ( s )
=
,
R ( s ) 1 + C ( s )G ( s )
E (s)
1
=
.
R ( s ) 1 + C ( s )G ( s )
E (s )
C (s) = K p + K D s
U (s )
G (s )
Y (s )
de(t )
u (t ) = K p e(t ) + K D
,
dt
U ( s ) = (K p + K D s )E ( s )
KDs
is implemented as
KDs
Ds +1
79
PID Controller
PID: Proportional Integral Derivative
R (s )
E (s
( )
+
-
U (s
1
( )
K p 1 +
+ TD s
TI s
G (s )
Y (s )
Kp
1
de(t )
u (t ) = K p e(t ) + e( ) d + TD
, K D = K pTD
KI =
TI 0
d
dt
TI
U (s)
1
= K p 1 +
+ TD s
E (s)
TI s
80
Y (s) K
Ke td s
=
U ( s ) s + 1
81
P:
Kp =
td
t
PD :
K p = 0.9 , TI = d
td
0 .3
82
E (s )
Ku
U (s )
G (s )
Y (s )
83
K p = 0 .5 K u
Pu
PD :
K p = 0.45 K u , TI =
1. 2
Pu
Pu
PID : K p = 0.6 K u , TI = , TD =
2
8
K u = 2 , Pu = 4td
td
Classical Control Prof. Eugenio Schuster Lehigh University
84
u
(Input of the plant)
uc
(Output of the controller)
85
E (s )
+
-
Kp +
KI
s
U c (s )
U (s )
G (s )
Y (s )
Whatt happens?
Wh
h
?
- large step input in r
- large e
- large uc u saturates
- eventually e becomes small
- uc still large because the integrator is charged
- u still at maximum
- y overshoots
h t ffor a long
l
time
ti
Classical Control Prof. Eugenio Schuster Lehigh University
86
Plant
a without
ou Anti-Windup:
dup
87
For large Ka, this is a system with very low gain and
very fast decay rate, i.e., the integration is turned off.
Classical Control Prof. Eugenio Schuster Lehigh University
88
E (s )
C (s )
U (s )
G (s )
Y (s )
E (s )
1
=
R ( s ) 1 + C ( s )G ( s )
Test Inputs:
tk
r (t ) = 1(t )
k!
1
R ( s ) = k +1
s
E (s
( )
C (s )
GoU((s
(s ))
sn
G (s )
Y (s )
Go ( s )
1
1
C ( s )G ( s ) = n , E ( s ) =
R ( s ), R ( s ) = k +1
Go ( s )
s
s
1+ n
s
Steady State Error:
Finall Value
Fin
V l e
Theorem
1
sn
s nk
1
1
ess = lim e(t ) = lim sE ( s ) = lim s
= lim
= lim
t
s 0
s 0
Go ( s ) s k +1 s 0 s n + Go ( s ) s k s 0 s n + Go (0)
1+ n
s
Classical Control Prof. Eugenio Schuster Lehigh University
90
Go ( s )
sn
E (s )
Type
yp n
System
Y (s )
s nk
ess = lim n
s 0 s + G ( 0)
o
Step (k=0)
Ramp (k=1)
1
1
1
=
=
1 + Go (0) 1 + lim C ( s )G ( s ) 1 + K p
s 0
1
1
1
=
=
0
Go (0) lim sC ( s )G ( s ) K v
s 0
Type 2
Parabola (k=2)
1
1
1
=
=
Go (0) lim s 2C ( s )G ( s ) K a
s 0
91
n=0
Position Constant
K v = lim sC ( s )G ( s )
n =1
Velocity Constant
s 0
s 0
K a = lim s 2C ( s )G ( s ) n = 2
Acceleration Constant
s 0
92
tk
w(t ) = 1(t )
k!
1
W (s ) W ( s ) = k +1
s
E (s )
Set rr=0
0.
Want Y(s)/W(s)=0.
C (s )
U (s )
G (s )
Y (s )
Y (s)
G (s)
=
= T ( s ) = s nTo ( s )
W ( s ) 1 + C ( s )G ( s )
Steady State Error:
e=r-y=-y
Final Value
Theorem
s 0
s 0
1
s k +1
sn
= lim To ( s ) k
s 0
s
93
E (s )
C (s )
W (s )
+
U (s )
Y (s )
G (s )
Step (k=0)
Ramp (k=1)
Parabola (k=2)
Type 0
Type 1
Type 2
*
0 <*<
94
E (s )
+
-
K
Kp + I
s
U (s )
+
A
s (s + 1)
Y (s )
type 1 to w
KI 0
K P 0, K I = 0 type 0 to w
95
Root Locus
Plant
Controller
R (s ) +
E (s )
C (s )
U (s )
G (s )
Y (s )
H (s
( )
Sensor
C ( s ) = KD ( s )
Y (s)
C ( s )G ( s )
C ( s )G ( s )
=
=
R ( s ) 1 + C ( s )G ( s ) H ( s ) 1 + KL ( s )
96
Root Locus
Characteristic Equation:
1 + KL( s ) = 0
The roots (zeros) of the characteristic equation are the
closed-loop poles of the feedback system!!!
The closed-loop poles are a function of the gain K
Writing the loop gain as
b( s ) s m + b1s m 1 + L + bm 1s + bm
L( s ) =
= n
a ( s ) s + a1s n 1 + L + an 1s + an
The closed loop poles are given indistinctly by the solution of:
1 + KL ( s ) = 0,
1+ K
b( s )
= 0,
a(s)
a ( s ) + Kb( s ) = 0,
L( s ) =
1
K
97
Root Locus
RL = zeros{1 + KL( s )} = roots{den( L) + Knum( L)}
when K varies from 0 to (positive Root Locus) or
from 0 to - (negative Root Locus)
Magnitude condition
1
L( s ) =
K > 0 : L( s ) =
K
K
L( s ) = 180o Phase condition
1
1
L
(
s
)
=
K < 0 : L( s ) =
K
K
L( s ) = 0o
Magnitude condition
Phase condition
98
R (s )
E (s )
U (s )
1
(s + 10)(s + 1)
Y (s )
Y (s)
K
= 2
R ( s ) s + 11s + (10 + K )
Closed-loop
Closed
loop poles:
1 + L( s ) = 0 s 2 + 11s + (10 + K ) = 0
K=0
s = 1,10
81 4 K
s = 5.5
2
s = 5.5
s = 5.5
s = 5.5 i
81 4 K
2
4 K 81
2
814K>0
814K=0
814K<0
99
100
R (s )
E (s )
+
-
U (s )
s +1
s (s + 5)(s 2 + 4 s + 8)
Y (s )
s +1
s (s + 5)(s 2 + 4 s + 8)
s +1
=
s (s + 5)(s + 2 + 2i )(s + 2 2i )
L( s ) =
so = 1+ 3i
belongs to the locus?
101
45o
36.87
90o
108.43o
78.70o
102
so = 1+ 3i
103
Root Locus
RL = zeros{1 + KL( s )} = roots{den( L) + Knum( L)}
when K varies from 0 to (positive Root Locus) or
from 0 to - (negative Root Locus)
1 + KL( s ) = 0 L( s ) =
1
a ( s ) + Kb( s ) = 0
K
Basic Properties:
Number of branches = number of open-loop poles
RL begins at open-loop poles
K = 0 a(s) = 0
RL ends at open-loop
open loop zeros
e os or
o asymptotes
as mptotes
b( s ) = 0
K = L( s ) = 0
s (n m > 0)
RL symmetrical about Re-axis
Classical Control Prof. Eugenio Schuster Lehigh University
104
Root Locus
Rule 1: The n branches of the locus start at the poles of L(s)
and m of these branches end on the zeros of L(s).
n: order of the denominator of L(s)
m: order of the numerator of L(s)
Rule 2: The locus is on the real axis to the left of and odd
number of poles and zeros.
In other words, an interval on the real axis belongs to the
root locus if the total number of poles and zeros to the right
is odd.
This rule comes from the phase condition!!!
105
Root Locus
Rule 3: As K, m of the closed-loop poles approach the
open-loop zeros, and n-m of them approach n-m asymptotes
with angles
l = (2l + 1)
nm
l = 0,1,K, n m 1
and centered at
b1 a1 poles zeros
=
=
,
nm
nm
l = 0,1,K, n m 1
106
Root Locus
Rule 4: The locus crosses the j axis (looses stability) where
the Routh criterion shows a transition from roots in the left
half-plane to roots in the right-half plane.
Example:
G (s) =
s+5
s ( s 2 + 4 s + 5)
K = 20, s = j 5
107
Root Locus
Example:
G (s) =
s +1
s 4 + 3s 3 + 7 s 2 + 6 s + 4
108
Root Locus
Design dangers revealed by the Root Locus:
High relative degree: For n-m
n m3 we have closed loop
instability due to asymptotes.
s +1
G ( s) = 4
s + 3s 3 + 7 s 2 + 6 s + 4
Nonminimum phase zeros: They attract closed loop poles
into the RHP
G ( s) =
s 1
s2 + s + 1
109
Root Locus
Vietes formula:
When the relative degree n-m
n m2,
2 the sum of the closed loop
poles is constant
110
( s z1 )( s z2 )L( s zm )
G (s) = K
( s p1 )( s p2 )L( s pn )
Th factors
The
f t
K, (s-z
( j) and
d (s-p
( k) are complex
l
numbers:
b
z
z i j
j
(s z j ) = r e ,
p
p i k
k
( s pk ) = r e
K = Ke
G(s) = K e
i K
j = 1K m
k = 1L p
i K
z i1z z i2z
1
2
p
p
p i1 p i2
1
2
z imz
m
p inp
n
r e r e Lr e
r e r e
Lr e
111
i K
= K e i
z i1z z i2z
1
2
p
p
p i1 p i2
1
2
r e r e Lr e
r e r e
K
z imz
m
p inp
n
r r Lr e (
z
1
p
1
z
2
p
2
Lr e
z i 1z +2z +L+mz
m
p
p
p
p i 1 +2 +L+n
n
r r Lr e (
G ( s ) = K + (1z + 2z + L + mz ) (1p + 2p + L + np )
Classical Control Prof. Eugenio Schuster Lehigh University
112
Example:
s = so = 7 + 5i
r3p
3p
r1z
r1z
G(s) = p p p
r1 r2 r3
r2p r1p
1z 2p
1p
G ( s ) = 1z (1p + 2p + 3p )
113
( s z1 )( s z2 )L( s zm )
r1z r2z L rmz i [ K p + (1z +2z +L+mz )(1p +2p +L+np )]
= Kp p p
e
L( s ) = K p
p
( s p1 )( s p2 )L( s pn )
r1 r2 L rn
r1z r2z L rmz
1
L
(
s
)
K
=
=
p
1
r1p r2p L rnp K
K > 0 : L( s ) =
K
K
L( s ) = p + (1z + 2z + L + mz ) (1p + 2p + L + np ) = 180o
r1z r2z L rmz
1
L
s
K
(
)
=
=
p
p p
p
1
r
r
L
r
K
K < 0 : L( s ) =
1 2
n
K
K
L( s ) = p + (1z + 2z + L + mz ) (1p + 2p + L + np ) = 0o
Classical Control Prof. Eugenio Schuster Lehigh University
114
Root Locus
Selecting K for desired closed loop poles on Root Locus:
If so belongs to the root locus,
locus it must satisfies the
characteristic equation for some value of K
1
L( so ) =
K
Then we can obtain K as
1
K =
L( so )
1
K=
L( so )
Classical Control Prof. Eugenio Schuster Lehigh University
115
Root Locus
Example:
L( s ) = G ( s ) =
so = 3 + i 4 K =
(s + 1)(s + 5)
1
= so + 1 so + 5 = 3 + i 4 + 1 3 + i 4 + 5
L( so )
=
( 2)2 + 42 (2)2 + 42 = 20
Using MATLAB:
sys=tf(1,poly([-1 -5]))
so=-3+4i
[K,POLES]=rlocfind(sys,so)
Classical Control Prof. Eugenio Schuster Lehigh University
116
Root Locus
Example:
L( s ) = G ( s ) =
(s + 1)(s + 5)
so = 3 + i 4
so = 7 + i5
K=
1
= 42.06
L( so )
so = 7 + i5
117
L( s ) = G ( s ) =
(s + 1)(s + 5)
(s + 1)(s + 5)
L( s ) = D( s )G ( s ) = (s + 10 )
(s + 1)(s + 5)
118
s+z
,
D( s) =
s+ p
p>z
Phase lead
COMPENSATOR
L( s ) = D( s )G ( s ) =
1
s+z
,
s + p (s + 1)(s + 5)
p>z
119
Example:
s+z
1
,
s + p (s + 1)(s + 5)
p<z
Phase lead
COMPENSATOR
21.04
111.80o 140.19o
1z ?
L( s ) =
Kp
120
L( s ) = D( s )G ( s ) =
s + 6.735
1
s + 20 (s + 1)(s + 5)
Phase lead
COMPENSATOR
so = 7 + i5
K = 117
121
122
Example:
s + 6.735
1
s + 20 (s + 1)(s + 5)
s + 6.735
1
= 6.735 10 2
s 0 s + 20 (s + 1)(s + 5)
s 0
L( s ) = D( s )G ( s ) =
We choose:
1
s + z s + 6.735
,
s + p s + 20 (s + 1)(s + 5)
p<z
Phase lag
Ph
l
COMPENSATOR
z
1
=
103 = 148.48
p 6.735
123
L( s ) = D( s )G ( s ) =
s + 0.14848 s + 6.735
1
s + 0.001 s + 20 (s + 1)(s + 5)
so = 6.94 + i5.03
K = 18.31
124
125
D( s) =
s+z
,
s+ p
z< p
D( s) =
s+z
,
s+ p
z> p
126
Frequency Response
We now know how to analyze and design systems via s-domain
methods which yield dynamical information
The responses are described bby the eexponential
ponential modes
The modes are determined by the poles of the response Laplace
Transform
127
Y ( s ) = G ( s )U ( s ) = K
( s z1 )( s z2 )L( s zm ) A
( s p1 )( s p2 )L( s pn ) (s 2 + 2 )
128
Transform
U ( s ) = A cos
+
A
sin
s2 + 2
s2 + 2
Response
R
Transform
T
f
k
k*
k1
k2
kN
Y ( s ) = G ( s )U ( s ) =
+
+
+
+L+
s j s + j s p1 s p2
s pN
Response Signal
forced response
natural response
jt + k *e jt + k e p1t + k e p2t + L + k e p N t
y (t ) = ke
1 4442442444N443
1442443 1
forced response
natural response
ySS (t ) = ke jt + k *e jt
Classical Control Prof. Eugenio Schuster Lehigh University
0
129
u(t ) = Acos(t + )
Residue calculation
k = lim
li [(s j )Y (s)] = li
lim [(s j )G(s)U (s)]
s j
s j
j cos sin
s cos sin
=
(
)
= lim G( s)(s j ) A
G
j
s j
(s j )(s + j )
2 j
1
1
= AG( j ) e j = A G( j ) e j ( +G ( j ))
2
2
Signal
g calculation
k
k*
+
yss (t ) = L
s j s + j
= k e jK e jt + k e jK e jt
1
= 2 k cos(t + K )
yss (t ) = A G( j ) cos(t + + G( j ))
Classical Control Prof. Eugenio Schuster Lehigh University
130
u (t ) = A cos(t + )
yss = G ( j ) A cos(t + + G ( j ))
131
Frequency Response
Find the steady state output for v1(t)=Acos(t+)
+
sL
+
V1(s) _
V2(s)
C
Compute
t the
th s-domain
d
i transfer
t
f function
f ti T(s)
T( )
R
T
s
(
)
=
Voltage divider
sL + R
Compute the frequency response
T ( j ) =
R 2 + (L) 2
L
T ( j ) = tan 1
R
AR
R 2 + (L) 2
132
Bode Diagrams
Log-log plot of mag(T), log-linear plot of arg(T) versus
Bode Diagram
Magn
nitude(dB)(dB))
Magnitude
M
-5
5
-10
-15
-20
-25
Phase
ese(deg)
Phas
(deg)
-45
-90
4
10
10
10
Frequency (rad/sec)
133
Frequency Response
u (t ) = A cos(t + )
G (s )
yss = G ( j ) A cos(t + + G ( j ))
Stable Transfer Function
134
Frequency Response
Find the steady state output for v1(t)=Acos(t+)
+
sL
+
V1(s) _
V2(s)
C
Compute
t the
th s-domain
d
i transfer
t
f function
f ti T(s)
T( )
R
T
s
(
)
=
Voltage divider
sL + R
Compute the frequency response
T ( j ) =
R 2 + (L) 2
L
T ( j ) = tan 1
R
AR
R 2 + (L) 2
135
Magn
nitude (dB))
Magnitude (dB)
M
-5
5
-10
-15
-20
-25
Phase
ese(deg)
Phas
(deg)
-45
-90
4
10
10
Frequency (rad/sec)
10
[ ] = rad / sec, = 2f , [ f ] = Hz
136
Bode Diagrams
( s z1 )( s z2 )L( s zm )
G (s) = K
( s p1 )( s p2 )L( s pn )
r1z r2z L rmz i [ K + (1z +2z +L+mz )(1p +2p +L+np )]
G (s) = K p p
e
p
r1 r2 L rn
The magnitude and phase of G(s) when s=j is given by:
Nonlinear in the magnitudes
G ( j ) = K + (1z + 2z + L + mz ) (1p + 2p + L + np )
Linear in the phases
Classical Control Prof. Eugenio Schuster Lehigh University
137
Bode Diagrams
Why do we express G ( j ) in decibels?
G ( j ) dB = 20 log G ( j )
20 log G ( s ) = 20 log K + (20 log r1z + 20 log rmz + L + 20 log rmz ) (20 log r1p + 20 log r2p + L + 20 log rnp )
G ( s ) dB = K dB + r1z
dB
+ r2z
dB
+ L + rmz
dB
) (r
1 dB
+ r2p
G ( s ) = K + (1z + 2z + L + mz ) (1p + 2p + L + np )
dB
+ L + rnp
dB
138
Bode Diagrams
Why do we use a logarithmic scale? Let
Lets
s have a look at our example:
R
R
T ( j ) =
=
T (s) =
2
2
sL
L+R
R + (L)
Expressing the magnitude in dB:
T ( j ) dB
1
L
1+
L 2
= 20 log1 20 log 1 +
= 10 log 1 +
R
R
L
Asymptotic behavior:
0 : T ( j ) dB 0
: T ( j ) dB 20 log
R
(
)
=
20
log
/
20
log
=
R
L
R/L
L dB
20 log
139
Bode Diagrams
Decade: Any frequency range whose end points have a 10:1 ratio
A cutoff frequency occurs when the gain is reduced from its
maximum
i
passband
b d value
l
b
by a ffactor
t
1/ 2 :
20 log
T MAX = 20 log T MAX 20 log 2 20 log T MAX 3dB
2
= 0
T ( j ) =
2
= R / L
L
1+
T ( j ) = 1
T ( j ) = 1 / 2
140
1-
G ( j ) = K o
2-
G ( j ) = ( j )
3
3-
G ( j ) = ( j + 1)
4-
j
j
+ 2
G ( j ) =
+ 1
n
n
141
G ( j) dB
= 20 log K o
d
0
G ( j ) =
G (s ) = 10
if K o > 0
if K o < 0
200
40
180
35
160
30
25
Phasse (deg)
Magnitude (dB)
140
20
15
120
100
80
60
10
40
5
0 -1
10
20
10
10
10
Frequency (rad/sec)
0 -1
10
10
10
Frequency (rad/sec)
10
142
G ( j) dB = m 20 log
G ( j ) = m
1
m = 1, G (s ) =
s
20
Pha
ase (deg)
Magn
nitude (dB)
-20
-10
-20
-30
-40 -1
10
dB
m 20
dec
10
2
0
G (1) dB = 0
10
-40
-60
-80
-100
10
10
Frequency (rad/sec)
-120 -1
10
10
10
10
Frequency (rad/sec)
143
G ( j) dB = n 10 log( 2 2 + 1)
G ( j ) = n tan 1 ( )
Asymptotic behavior:
o
G ( j )
0
<<1 /
0
G ( j ) dB
<<1 /
G ( j ) dB
n
>>1 /
+ n 20 log
dB
o
G ( j )
90
>>1 /
144
10
5
Magnitude (d
dB)
0
-5
G (s ) =
dB
n 20
dec
n 3dB
-10
10
1
s
+1
10
-15
-20
G ( j 0) dB = 0dB
-25
G ( j1 / ) dB = n 3dB
-30
-35
-40 -1
10
10
10
10
10
G () dB = sgn(n)dB
Frequency
q
y ((rad/sec))
145
10
0
G (s ) =
-10
Phase (deg))
P
-20
-30
1
s
+1
10
-40
-50
-60
n 45o
G ( j 0) = 0o
-70
-80
G ( j1 / ) = n 45o
-90
-100 -1
10
10
10
10
10
G ( j) = n 90o
Frequency (rad/sec)
146
2
2 2
G( j ) dB = q 10 log 1 2 + 2
n n
1 2 / n
G( j ) = q tan
2
2
1 / n
Asymptotic behavior:
G ( j ) dB
0
<<
o
G ( j )
0
<<
G ( j ) dB
2q n dB + q 40 logg
>>
o
G ( j )
180
>>
147
20
q 2
dB
dB
q 40
dec
-20
Magnitude ((dB)
1
G (s ) = 2
s + 0.1s + 1
-40
40
-60
G ( j 0) dB = 0dB
-80
G ( jn ) dB = q (3dB +
-100
dB
G ( j) dB = sgn((q )dB
-120 -1
10
10
MAX
10
Frequency (rad/sec)
10
G ( j ) dB = G ( jr ) dB = q 2 1 2
Classical Control Prof. Eugenio Schuster Lehigh University
10
dB
= r =
n
1 2
148
20
0
1
G (s ) = 2
s + 0.1s + 1
-20
Phase (deg))
P
-40
-60
60
-80
-100
-120
G ( j 0) = 0o
q 90o
G ( j1 / ) = q 90o
G ( j) = q 180o
-140
-160
-180
-200 -2
10
-1
10
10
10
10
Frequency (rad/sec)
149
Frequency Response
Example:
2000(s + 0.5)
G (s ) =
s ( s + 10)( s + 50)
150
Example:
p
1
G (s ) =
s2
151
K
T ( j ) =
j +
2 + 2
( ) = K tan
t 1 ( / )
0
K =
o
180
K >0
K <0
152
2 + 2
( ) = K tan 1 ( / )
T ( 0) =
, T ( ) = 0
K T ( 0)
T ( j ) =
=
=
c =
2
2
2
2
+
K
T ( j )
<<
T ( j )
>>
Cutoff frequency
= c =
Cutoff frequency
B = c
Classical Control Prof. Eugenio Schuster Lehigh University
Bandwith
153
2 + 2
( ) = K tan 1 ( / )
( 0) =
K
K
( ) = K tan 1 (1) = K 45o
( )
K
<<
o
( )
90
>>
154
Kj
T ( j ) =
j +
2 + 2
( ) = K + 90o tan
t 1 ( / )
0
K =
o
180
K >0
K <0
155
2 + 2
( ) = K + 90o tan 1 ( / )
T (0) = 0, T () = K
K T ( )
=
=
c =
T ( j ) =
2
2
2
2
+
T ( j )
K /
<<
T ( j )
K
>>
Cutoff frequency
= K = c = Cutoff frequency
B=
Classical Control Prof. Eugenio Schuster Lehigh University
Bandwith
156
2 + 2
( ) = K + 90o tan 1 ( / )
(0) = K + 90o
( ) = K + 90o tan 1 (1) = K + 45o
o
( )
K
+
90
<<
o
1
( )
K
+
90
tan
( )
>>
= K
157
T ( s ) = T1 ( s ) T2 ( s ) = 1
s + 1 s + 2
K1 j K 2
T ( j ) =
j + 1 j + 2
T ( j )
<< <<
1
T ( j ) <<
<<
1
T ( j ) <<
<<
1
K1 K 2
1 2
K1 K 2
2
K1 K 2
K1
K
2
T ( j ) =
2 + 2 2 + 2
1
2
K1 K 2
1 2
K1 K 2
K1 K 2
K1 K 2
= cH = 1
= cL = 2
B = cL cH = 2 2 Passband
158
K
2
+
T ( j ) =
2 + 2 2 + 2
1
2
K2
T ( j )
<< <<
2
T ( j ) <<
K1
<<
2
K2
2
T ( j )
<
2
T ( j )
<
1
K2
K1
K2
K1
= K1
1 K 2
B = 1 2
K1
= 1 2
Bandstop
159
T (s) =
o :
:
Ks
s 2 + 2o s + o2
T ( j ) =
Kj
2 + 2o j + o2
N t
Natural
lF
Frequency
Damping Ratio
160
T ( j )
=
<<
o
=
T ( j )
>>
o
T ( j ) =
o2
K
2
o
= o
K / o
K / o
T
(
j
)
=
=o
MAX
2
o
2 + j
o
161
T ( j ) MAX =
=o
2
o
2 + j
o
T ( j ) o = 2
o
K / o
T ( j ) MAX
K / o
2
=
T ( j ) =
=
2 + j 2
2
2
The roots of
(
= (+ +
C1 = o + 1 + 2
C 2
1+ 2
)
)
o2 = C1C 2
B = C 2 C1 = 2
Center Frequency
Bandwith
162
T (s) =
o :
:
K
s + 2o s +
2
2
o
T ( j ) =
2 + 2o j + o2
N t
Natural
lF
Frequency
Damping Ratio
163
K
s 2 + 2o s + o2
T ( j )
<<
o
=
T ( j )
>>
o
T ( j ) =
= T ( 0)
2
o
2 + 2o j + o2
2
o
= o
2
K / o T ( 0)
T ( jo ) =
=
2
2
T ( j ) MAX =
T ( 0)
2 1 2
= MAX = o 1 2
164
Ks 2
K
K 2
T (s) = 2
T ( j ) =
2
s + 2o s + o
2 + 2o j + o2
o :
:
N t
Natural
lF
Frequency
Damping Ratio
165
T ( j )
<<
o
K 2
K 2
2
o
T ( j )
= K = T ()
>>
2
o
= K = o
K T ( )
T ( j o ) =
=
2
2
T ( j ) MAX =
T ( )
2 1
= MAX
o
=
1 2
166
Frequency Response
u (t ) = A cos(t + )
G (s )
yss = G ( j ) A cos(t + + G ( j ))
Stable Transfer Function
G ( j ) = G ( j ) e jG ( j )
BODE plots
G ( j ) = Re{G ( j )} + j Im{G ( j )}
NYQUIST plots
167
Frequency Response
G ( j ) = Re{G ( j )} + j Im{G ( j )} = G ( j ) e jG ( j )
How are the Bode and Nyquist plots related?
They are two way to represent the same information
j Im{G ( j )}
G ( j )
G ( j )
Re{G ( j )}
168
Frequency Response
Find the steady state output for v1(t)=Acos(t+)
+
sL
+
V1(s) _
V2(s)
C
Compute
t the
th s-domain
d
i transfer
t
f function
f ti T(s)
T( )
R
(
)
=
T
s
Voltage divider
sL + R
Compute the frequency response
T ( j ) =
R 2 + (L) 2
L
T ( j ) = tan 1
R
AR
R 2 + (L) 2
169
Magn
nitude(dB)(dB))
Magnitude
M
10
G ( s) =
s + 10
R / L = 10
-5
5
-10
-15
-20
-25
Phase
ese(deg)
Phas
(deg)
-45
-90
4
10
10
Frequency (rad/sec)
10
[ ] = rad / sec, = 2f , [ f ] = Hz
170
T ( j ) =
,
2
R 2 + (L)
R2
Re{T ( j )} = 2
,
R + 2 L2
L
T ( j ) = tan
t 1
Im{T ( j )} =
RL
R 2 + 2 L2
1- 0 : T ( j ) 1,
1
T ( j ) 0
T ( j ) = 1
2- : T ( j ) 0,
T ( j ) 90o
T ( j )
j
3-
Re{T ( j )} = 0 =
4-
Im{T ( j )} = 0 = 0, =
R
0
L
171
10
G ( s) =
s + 10
R / L = 10
172
Nyquist Diagrams
General procedure for sketching Nyquist Diagrams:
Find G(j0)
Find G(j)
Find
Fi d * such
h that
h Re{
R {G(j*)}=0;
} 0 Im{
I {G(j*)} is
i the
h
intersection with the imaginary axis.
Find *
* such that Im{G(j*)
G(j *)}=0;
} 0; Re{G(j*)
G(j *)} is the
intersection with the real axis.
Connect the points
173
Example:
G ( j ) =
j ( j + 1)
( j )(1 j )2 = 2 + j ( 2 1)
2
2
2
j ( j + 1) ( j )(1 j )
( 2 + 1)
1
1- 0 : G ( j ) = 2 j
1
1
2- : G ( j ) j 3 0
3-
Re{G ( j )} = 0 =
4-
Im{G ( j )} = 0 = 1, =
Re{G ( j1)} =
1
2
174
1
G(s) =
2
(
)
s s +1
175
dB
dec
60
dB
dec
90o
180o
270o = 90o
176
G (s )
Y (s )
177
G (s) =
1
s 4 + 5 s 3 + 3 s 2 + 3s + 1
178
G (s )
Y (s
( )
K
When is this transfer function Stable?
NYQUIST: The closed loop is asymptotically stable if the
number of counterclockwise encirclements of the point
( 1/K+j0) that the Nyquist curve of G(j)
(-1/K+
G(j ) is equal to the
number of poles of G(s) with positive real parts (unstable
poles)
179
Neutral Stability
U (s )
1
G (s) =
2
s(s + 1)
KG (s )
Y (s )
KG ( s ) = 1, G ( s ) = 180o
At points of neutral stability
RL condition hold for s=j
KG ( j ) = 1, G ( j ) = 180o
Stability: At G ( j ) = 180o
KG ( j ) < 1 If K leads to instability
KG ( j ) > 1 If K leads to instability
Classical Control Prof. Eugenio Schuster Lehigh University
180
Stability Margins
The GAIN MARGIN (GM) is the factor by which the gain
can be raised before instability results.
GM < 1( GM
dB
< 0)
UNSTABLE SYSTEM
GM is equal to 1 / KG ( j ) KG ( j ) dB
where G ( j ) = 180o .
at the frequency
PM < 0
UNSTABLE SYSTEM
181
Stability Margins
G(s) =
1
2
s (s + 1)
1/GM
PM
182
Stability Margins
GM
1
G(s) =
2
s(s + 1)
PM
183
184
dM
G ( jo ) =
W (u )du
du
M = ln G ( j )
u = ln( / o )
W (u ) = ln (coth u / 2 )
185
c BW 2c
186
187
PM
100
188
<1
1 sin MAX
=
1 + sin MAX
1 1
1
log MAX = log + log
T
2 T
189
190
>1
191
192