Automatic Control 7 (Time Domain Analysis)
Automatic Control 7 (Time Domain Analysis)
-Lecture Note 7-
Time Domain Analysis of
Control Systems
-1-
Automatic Control Systems
Introduction
-2-
Automatic Control Systems
Introduction
Time response
Transient response : temporary time response before entering
the steady state
Steady state response : time response following after the
transient response
-3-
Automatic Control Systems
Typical Test Signals
Step-Input
ìR t ³ 0
r (t ) = í or r (t ) = Rus (t )
î0 t < 0
Ramp-Input
r (t ) = Rtus (t )
Parabolic-Input
Rt 2
r (t ) = us (t )
2
-4-
Automatic Control Systems
Typical Test Signals
-5-
Automatic Control Systems
Unit Step Response
Transfer function : G(s)
Y ( s) = G ( s) R( s)
y (t ) = L-1{Y ( s )}= L-1{G ( s ) R ( s )}
G (s) ü
Unit-step response : ys (t ) = L-1 ìí ý
î s þ
ì G (s) ü d
yimpulse (t ) = L-1 {G ( s )} = L-1 í s ý = ys (t )
î s þ dt
-1 ì G ( s ) ü -1 ì 1 G ( s ) ü
t
yramp (t ) = L í 2 ý = L í ý = ò0 ys (t )dt
î s þ îs s þ
-6-
Automatic Control Systems
Unit Step Response
Ex.) >>step(num,den)
>>impulse(num,den)
-7-
Automatic Control Systems
Unit Step Response
Sol) 4
G (s) = 3
s + 2 s 2 + 3s + 4
1) Impulse response
>> num=4;
>> den=[1 2 3 4];
>> impulse(num, den);
-8-
Automatic Control Systems
Unit Step Response
3) Ramp response
>> den=[1 2 3 4 0]; // G(s) : 4th order system
>> step(num, den);
-9-
<Fig> impulse response
Automatic Control Systems
Unit Step Response
- 13 -
Automatic Control Systems
Unit Step Response
Rise time ( tr) : time required for the output to rise from
10% to 90% of steady state value
- 14 -
Automatic Control Systems
Unit Step Response
Settling time (ts ) : the first time when the output variation
gets in and stay there within ±2(or ±5)% of reference
value. In general, it equals 4(or 3) times of rise time.
H(s)
- 17 -
Automatic Control Systems
Steady-State Errors
The steady-state error is defined as
- 18 -
Automatic Control Systems
Steady-State Errors
In this case,
e(t ) = r (t ) - y (t )
E ( s) = R( s) - Y ( s)
G (s)
= R( s) - R( s)
1 + G (s)
=
[1 + G ( s ) ]- G ( s )
R( s) =
1
R( s)
1+ G ( s) 1+ G ( s)
sR ( s )
lim e(t ) = ess = lim sE ( s ) = lim
∴ t ®¥ s ®0 s ®0 1 + G ( s )
- 19 -
Automatic Control Systems
Steady-State Errors
sR ( s )
= lim
s ®0 1 + G ( s )
【Example】
K (1 + 0.5s )
G (s) = 2
: Type 1
s (1 + s )(1 + 2 s )(1 + s + s )
K (1 + 2 s )
G (s) = 3
: Type 3
s
- 21 -
Automatic Control Systems
Steady-State Errors
- ess of Systems with a Step Input
□ ess of Systems with a Step Input
With r(t) = Rus(t) → R(s) = R/s
R
s( )
sR ( s ) s = lim R R
ess = lim = lim =
s ®0 1 + G ( s ) s ®0 1 + G ( s ) s ®0 1 + G ( s ) 1 + lim G ( s )
s ®0
R
If N = 0 (type 0 system), ess = ← Constant
1+ K p
If N ≥ 1, since Kp = ∞, ess = 0
- 22 -
Automatic Control Systems
Steady-State Errors
- ess of Systems with a Step Input
- 23 -
Automatic Control Systems
Steady-State Errors
- ess of Systems with a Ramp Input
□ ess of Systems with a Ramp Input
- 25 -
Automatic Control Systems
Steady-State Errors
- ess of Systems with a Parabolic Input
□ ess of Systems with a Parabolic Input
Rt 2
With r (t ) = us (t ) ® R ( s ) = R / s 3
2
R
s( 3 )
sR ( s ) s R
ess = lim = lim =
s ®0 1 + G ( s ) s ®0 1 + G ( s ) lim s 2G ( s )
s ®0
- 26 -
Automatic Control Systems
Steady-State Errors
- ess of Systems with a Parabolic Input
- 27 -
Automatic Control Systems
Steady-State Errors
Summary of the Steady-State Errors Due to Step, Ramp and
Parabolic Function Inputs for Unity Feedback Systems
【Example】
K ( s + 3.15)
G (s) = , H ( s ) = 1 : Type 1 system
s ( s + 1.5)( s + 0.5)
Step input : R
K p = ¥, ess = =0
1+ K p
R R
Ramp input : K v = 4.2 K , ess = =
K v 4.2 K
R
Parabolic input : K a = 0, ess = =¥
Ka
⇒ All of these results are valid only if K stays within stable range
⇒ 0 < K < 1.3043 (by Routh-Hurwitz Condition)
- 29 -
Automatic Control Systems
Steady-State Errors
【Example】
K
G (s) = 2
, H ( s ) = 1 : Type 2 system
s ( s + 12)
- 30 -
Automatic Control Systems
Steady-State Errors
【Example】
5( s + 1)
G (s) = 2 , H ( s ) = 1 : Type 2 system
s ( s + 12)( s + 5)
Step input : R
K p = ¥, ess = =0
1+ K p
Ramp input : R
K v = ¥, ess = =0
Kv
Parabolic input : K a = 1 , ess = R = 12 R
12 Ka
- 31 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
□ Relationship between ess and the Closed-Loop TF
1
e(t ) = r (t ) - y (t )
KH
or in the transfer domain,
1 1 Y (s) 1
E (s) = R( s) - Y ( s) = [1 - K H ] R( s) = [1 - K H M ( s )] R ( s )
KH KH R( s) KH
⇒ Assume that all the poles of M(s) are in the left-half s-plane
(that is, stable)
⇒ The steady-state error is
1
ess = lim sE ( s ) = lim [1 - K H M ( s )]sR ( s )
s ®0 s ®0 KH
1 s n + L + (a1 - b1 K H ) s + (a0 - b0 K H )
= lim sR ( s )
K H s ®0 s + an -1s + L + a1s + a0
n n -1
- 34 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
We consider the three basic types of inputs for r(t)
1 s n
+ L + (a1 - b1 K H ) s + (a0 - b0 K H )
ess = lim R
K H s ®0 s ( s + an -1s + L + a1s + a0 )
n n -1
ess = 0 if a0 - b0 K H = 0 and a1 - b1 K H = 0
a1 - b1 K H
ess = R = constant if a0 - b0 K H = 0 and a1 - b1 K H ¹ 0
a0 K H
ess = ¥ if a0 - b0 K H ¹ 0
- 36 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
3. Parabolic Input. R(s) = R/s3
- 37 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
【Example】
5( s + 1)
Assume G (s) = 2
and H ( s ) = 1, then K H = H (0) = 1
s ( s + 12)( s + 5)
G (s) 5( s + 1)
Þ M (s) = = 4
1 + G ( s ) s + 17 s 3 + 60 s 2 + 5s + 5
Þ M ( s ) is stable
a0 - b0 K H
Step input: ess = =0
a0 K H
a1 - b1 K H 5 - 1
Ramp input: ess = = = 0.8
a0 K H 5
- 41 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
【Example】
1 10( s + 1)
G (s) = 2 and H ( s ) = , then K H = H (0) = 2
s ( s + 12) s+5
Y (s) G (s) s+5
Þ M (s) = = = 4
R ( s ) 1 + G ( s ) H ( s ) s + 17 s 3 + 60 s 2 + 10 s + 10
Þ M ( s ) is stable
Þ a0 = 10, a1 = 10, a2 = 60, b0 = 5, b1 = 1, b2 = 0
a0 - b0 K H 10 - 5 ´ 2
Step input : ess = = =0
a0 K H 10 ´ 2
a1 - b1 K H 10 - 1´ 2
Ramp input : ess = = = 0.4
a0 K H 10 ´ 2
Parabolic input : ess = ∞ since a1 – b1KH ≠ 0
- 42 -
Automatic Control Systems
Steady-State Errors
- Relationship between ess and the Closed-Loop TF
(Remark)
For a unit-step input (r(t) = us(t)) :
y (t ) = 0.5u s (t ) + transient terms
1
Þ e(t ) = r (t ) - y (t ) = - transient terms
KH
Þ ess = 0
- 44 -
Automatic Control Systems
Steady-State Errors
- ess of Nonunity Feedback Systems: H(s) has Nth-Order Zero at s=0
where H (s)
K H = lim
s ®0 sN
- 45 -
Automatic Control Systems
Steady-State Errors
- ess of Nonunity Feedback Systems: H(s) has Nth-Order Zero at s=0
Consider only the results for N = 1
⇒ In this case, the transfer function of M(s) will have a pole
at s = 0, or a0 = 0
1 é s n -1 + L + (a2 - b1 K H ) s + (a1 - b0 K H ) ù
ess = lim ê ú sR ( s )
KH s ® 0
ë s + an -1s + L + a1s
n n -1
û
⇒ For a step input of magnitude R
1 é s n -1 + L + (a2 - b1 K H ) s + (a1 - b0 K H ) ù
ess = lim ê ú R
KH s ® 0
ë s + an -1s + L + a1s
n n -1
û
⇒ The steady-state error is
ess = 0 if a2 - b1 K H = 0 and a1 - b0 K H = 0
a2 - b1 K H
ess = R = constant if a1 - b0 K H = 0 and a2 - b1 K H ¹ 0
a1 K H
ess = ¥ if a1 - b0 K H ¹ 0
- 46 -
Automatic Control Systems
Steady-State Errors
- ess of Nonunity Feedback Systems: H(s) has Nth-Order Zero at s=0
Remark 1)
Y ( s ) bm s m + bm -1s m -1 + L + b1s + b0
M (s) = = n
R( s) s + an -1s n -1 + L + a1s + a0
If a0 ¹ 0, the problem does not make sense.
(That is, the output shows the usual step response.)
Y ( s ) bm s m + bm -1s m -1 + L + b1s + b0
Remark 2) For M ( s ) = =
R( s) s n + an -1s n -1 + L + a1s
æ 1 ö
ess = lim sE ( s ) = lim s ç R( s) - Y ( s) ÷
s ®0 s ®0 K
è H s ø
1 1 æ1 ö
= lim ( R ( s ) - sK H Y ( s ) ) = lim ç - K H M ( s ) ÷ sR ( s )
K H s ®0 K H s ®0 è s ø
1 é s n -1 + L + (a2 - b1 K H ) s + (a1 - b0 K H ) ù
= lim ê ú sR ( s )
KH s ® 0
ë s + an -1s + L + a1s
n n -1
û
- 47 -
Automatic Control Systems
Steady-State Errors
- ess of Nonunity Feedback Systems: H(s) has Nth-Order Zero at s=0
【Example】
1 10 s H (s)
G (s) =2
and H ( s ) = , then K H = lim =2
s ( s + 12) s+5 s ® 0 s
Y (s) G (s) s+5
Þ M (s) = = = 4
R ( s ) 1 + G ( s ) H ( s ) s + 17 s 3 + 60 s 2 + 10 s
(Remark)
For a unit-step input (r(t) = us(t)) :
- 49 -
Automatic Control Systems
Simple Definition of ess
□ Simple Definition of ess for Nonunity Feedback
Systems
E ( s) = R( s) - Y ( s)
G (s)
= R( s) - R( s)
1 + G (s) H (s)
G (s)
Let M (s) =
1 + G (s) H (s)
then E ( s ) = R ( s ) - M ( s ) R ( s ) = [1 - M ( s )]R ( s )
- 50 -
Automatic Control Systems
Simple Definition of ess
【Example】 1 2.1
G (s) = , H (s) =
s ( s + 1) s+2
r + u y
G(s)
-
H(s)
- 53 -
Automatic Control Systems
Time Response of 1st Order System
Standard 1st order system
Gp A
G (s) = or G ( s ) =
Tc s + 1 s + 1/ t
Gp : DC gain (= At )
<Note> Time Constant : the time when the output reaches 63.2% of
the steady-state value
b
i ) x& (t ) = - ax(t ) + u (t ) ii ) u ® ® y
s+a
y (t ) = bx(t )
- 54 -
Automatic Control Systems
Time Response of 1st Order System
if u (t ) = us (t ) = 1
b æ b ö
Þ y (t ) = (1 - e - at ), t ³ 0 ç Þ y ss = ÷
a è a ø
1
Þ 0.632 = 1 - e - at Þ t =
a
Unit step response
-1
y (t ) = L {Y ( s )} = G p 1 - e ( - t / Tc
), t ³ 0
Time domain performance criteria
- rising time : t r » 2.2Tc - delay time : td » Tc
- overshoot : M p = 0 - settling time : t s » 4Tc
- 55 -
- steady state error : ess (= Es ) = 1 - G p
Automatic Control Systems
Time Response of 1st Order System
- 56 -
Automatic Control Systems
Time Response of 1st Order System
>>num = [1];
>>den = [1 1];
>>t=[0:0.1:5];
>>step(num,den,t);
- 58 -
Automatic Control Systems
Transient Response of 2nd Order System
□ Transient Response of Standard 2nd Order System
r + e y
G(s)
-
2
Y (s) wn
G (s) = =
E ( s ) s ( s + 2zw n )
2
Y (s) wn
Þ = 2
R ( s ) s + 2zw n s + wn 2
- 59 -
Automatic Control Systems
Transient Response of 2nd Order System
- z : damping ratio
z ³ 1 : over damped
0 < z < 1 : under damped
z = 1 : critically damped
- 60 -
Automatic Control Systems
Transient Response of 2nd Order System
wn 2 1 s + 2zwn
Y (s) = 2 2
= - 2 2
s ( s + 2zwn s + wn ) s s + 2zwn s + wn
1 s + 2zwn 1 ( s + zwn ) + zwn
= - = -
s ( s + zwn ) 2 + wn 2 - z 2wn 2 s ( s + zwn ) 2 + (wn 1 - z 2 ) 2
- 61 -
Automatic Control Systems
Transient Response of 2nd Order System
-zwn t z
⇒ y (t ) = 1 - e 2
cos(wn 1 - z t ) - e -zwnt sin(wn 1 - z 2 t )
1- z 2
æ
-zwn t 2 z 2
ö
= 1- e ç cos(wn 1 - z t ) + sin(wn 1 - z t ) ÷
ç 1- z 2 ÷
è ø
e -zwnt æ 1 - z 2 ö
= 1- sin ç wn 1 - z 2 t + tan -1 ÷
1- z 2 ç z ÷
è ø
e -zwnt
= 1- sin(wn 1 - z 2 t + cos -1 z ), t ³ 0
1- z 2
æ 1 ö
Þ ç Time constant : t = ÷
è Vwn ø
- 62 -
Automatic Control Systems
Transient Response of 2nd Order System
a
;use the summing rule a cos w t + b sin w t = a 2 + b 2 sin æç w t + tan -1 ö÷
è bø
b
= a 2 + b 2 cosæç w t - tan -1 ö÷
è aø
- 63 -
Automatic Control Systems
Response of 2nd Order System
z = cos q
- 69 -
Automatic Control Systems
Response of 2nd Order System
- 70 -
Automatic Control Systems
Response of 2nd Order System
- 71 -
Automatic Control Systems
Response of 2nd Order System
- 72 -
Automatic Control Systems
Response of 2nd Order System
- 73 -
Automatic Control Systems
Response of 2nd Order System
- 74 -
Automatic Control Systems
Response of 2nd Order System
Poles and impulse response (without finite zero)
imaginary
real
□ Maximum Overshoot
- 76 -
Automatic Control Systems
Response of 2nd Order System
e -zwnt
y (t ) = 1 - sin(wn 1 - z 2 t + q ), t ³ 0 (1)
1- z 2
-zw t
dy (t ) wn e n
Þ = [z sin(w t + q ) - 1 - z 2 cos(w t + q )], t ³ 0 (2)
dt 1- z 2
Where w = wn 1 - z 2 , q = cos -1 z
z sin(w t + q ) - 1 - z 2 cos(w t + q )
2
2
= z + - 1- z( 2
) sin[(w t + q ) - cos -1 z ] (3)
= sin w t
- 77 -
Automatic Control Systems
Response of 2nd Order System
(2) → (1) ⇒ dy (t ) = wn e -zw nt sin wn 1 - z 2 t , t ³ 0
dt 1- z 2
dy (t )
Setting =0
dt
Þ we have the solutions : t = ¥, and wn 1 - z 2 t = np , n = 0, 1, 2, L
np
Þt = , n = 0, 1, 2, L (4)
2
wn 1 - z
p
Þ tmax (or t p ) = (5)
2
wn 1 - z
pz
-
1-z 2
% M p = 100e
⇒ Mp is function of the damping ratio z only
- 79 -
Automatic Control Systems
Response of 2nd Order System
- 80 -
Automatic Control Systems
Response of 2nd Order System
- 81 -
Automatic Control Systems
Response of 2nd Order System
1 + 0.7z
td @ , 0 < z <1
wn
or a better approximation is
1.1 + 0.125z + 0.469z 2
td @ , 0 < z <1
wn
- 82 -
Automatic Control Systems
Response of 2nd Order System
- 83 -
Automatic Control Systems
Response of 2nd Order System
0.8 + 2.5z
tr @ , 0 < z <1
wn
or a better approximation is
1 - 0.4167z + 2.917z 2
tr @ , 0 < z <1
wn
- 84 -
Automatic Control Systems
Response of 2nd Order System
Settling Time ts
approximate settling time is 3~4 times of time constant
4
ts @
zw n
- 86 -
Automatic Control Systems
Transient Response of 2nd Order System
>>num = 9;
>>den = [1 9 9];
>>step(num,den);
- 88 -
Automatic Control Systems
Transient Response of 2nd Order System
【Example】Underdamped 2nd-Order System :
G (s) 9 Ü ( V = 0.5, wn = 3)
M (s) = = 2
Sol.) 1 + G ( s ) s + 3s + 9
1.8
tr » = 0.6[sec]
3
- ( 0.5p / 1- 0.5 2 )
Mp =e ´ 100 @ 16.3033[%]
p
tp = = 1.2092 [sec]
2
3 1 - 0.5
4
ts » = 2.6667 [sec]
1.5
ess = 1 - M (0) = 0
- 89 -
Automatic Control Systems
Transient Response of 2nd Order System
- unit step response using Matlab or CEMtool
>>num = 9;
>>den = [1 3 9];
>>step(num,den);
- 90 -
Automatic Control Systems
Transient Response and Zeros
Y (s) wn2 (- s / a + 1)
M (s) = = 2 2
, z >0
R ( s ) s + 2zwn s + wn
- 91 -
Automatic Control Systems
Transient Response and Zero
- 92 -
<Fig> LHP zero and overshoot
Automatic Control Systems
Transient Response and Zero
- 93 -
<Fig> RHP zero and undershoot
Automatic Control Systems
Transient Response and Zero
imaginary
overshoot undershoot
no effect increases increases no effect
0 real
- 94 -
Automatic Control Systems
Dominant Poles of Transfer Function
Dominant Pole
poles at near the imaginary axis
Poles more than 4 times farther from the imaginary axis than
dominant poles are negligible
- 95 -
Automatic Control Systems
Dominant Poles of Transfer Function
- 96 -
Automatic Control Systems
Dominant Poles of Transfer Function
【Example】
Dominant Pole Approximation
s+5
G (s) =
( s + 20)( s 2 + 2 s + 2)
Sol)
- 0.04 0.04 s + 0.254
G (s) = + 2
s + 20 s + 2s + 2
- 0.04 0.02 + j 0.107 0.02 - j 0.107
= + +
s + 20 s +1+ j s +1- j
0.04 s + 0.254
» 2
s + 2s + 2
- 97 -
Automatic Control Systems
Dominant Poles of Transfer Function
num3 = [1 5];
den3 = conv([1 20], [1 2 2]); //3rd order system
num2 = [0.04 0.254];
den2 = [1 2 2]; //2nd order approximation
t = [0:0.1:20];
y3 = step(num3, den3, t);
y2 = step(num2, den2, t);
plot(t, y3, t, y2);
- 98 -
Automatic Control Systems
Dominant Poles of Transfer Function
- 99 -
Automatic Control Systems
Dominant Poles of Transfer Function
【Example】
Y (s) 20
M (s) = =
R ( s ) ( s + 10)( s 2 + 2 s + 2)
- 100 -
Automatic Control Systems
Dominant Poles of Transfer Function
- 101 -
Automatic Control Systems