IntroCtrlSys Chapter8
IntroCtrlSys Chapter8
ANALYSIS OF
DISCRETE CONTROL SYSTEMS
Stable
Re s Stable Re z
1
Re{s} < 0 | z |< 1
z = eTs
()
H(s)
Region of Region of
stability Re z stability
Re w
1 1+ w
z=
1 w
A l
Analyze th stability
the t bilit off the
th following
f ll i system:
t
R(s) + Y(s)
ZOH G(s)
T = 0.5
H(s)
3e s 1
Gi
Given t G( s) =
that:
th H ( s) =
s+3 s +1
Solution:
S l ti
The characteristic equation of the system:
1 + GH ( z ) = 0
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 10
The extension of the Routh-
Routh-Hurwitz criteria Example (cont)
s
G ( s ) H ( s ) 3 e
GH ( z ) = (1 z 1 )Z G ( s) =
s ( s + 3)
s
1 3e
3 e 1
= (1 z )Z H (s) =
s ( s + 3)( s + 1) ( s + 1)
1 2 z ( Az + B)
= 3(1 z ) z
( z 1)( z e 30.5 )( z e 10.5 )
(1 e 30.5 ) 3(1 e 0.5 )
A= = 0.0673
3(1 3) 1 z ( Az + B)
Z =
s3(s0+.5 a)( s + b) ( z 1)( z e aT )( z e bT )
3e 30.5 (1 e 0.5 ) e 0.5 (1 e ) aT
B= b(1 e = 0).0346
a(1 e bT )
3(1 3) A=
ab(b a)
0 .202 z + 0. 104
aeaT (1 e bT ) be bT (1 e aT )
GH ( z ) = 2
z ( z 0.223)( zB = 0.607) ab(b a)
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 11
The extension of the Routh-
Routh-Hurwitz criteria Example (cont)
1+ w
Perform the transformation: z =
1 w
1+ w 1+ w 1+ w 1+ w
4 3 2
Row 4
Row 5
Row 6
Row 7
Since all the first terms of the odd rows are positive, the system is stable.
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 17
The root locus of discrete systems
RL is
i a sett off all
ll the
th roots
t off the
th characteristic
h t i ti equation
ti off
a system when a real parameter changing from 0 +.
Consider a discrete system which has the characteristic
equation:
N ((zz )
1+ K =0
D( z )
N ( z)
Denote: G0 ( z ) = K
D( z )
Assume that G0(z) has n poles and m zeros.
The rules for construction of the RL of continuous system
can be applied to discrete systems, except the step 8.
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 19
Rules for construction of the RL of discrete systems
Rule
R l 1:
1 The
Th number b off branches
b h off a RL = the
th order
d off the
th
characteristic equation = number of poles of G0(z) = n.
Rule 2:
For K = 0: the RL begin at the poles of G0(z).
As K goes to + : m branches of the RL end at m zeros of
G0(z), the nm remaining branches goes to approaching
the asymptote defined by the rule 5 and rule 6.
Rule 3: The RL is symmetric
y with respect
p to the real axis.
l zeros
poles pi zi (pi and zi are
poles and zeros
OA = = i =1 i =1
nm nm of G0(z) )
The geometric
Th t i form
f off the
th above
b formula
f l isi
j = 1800 + (angle from zi (i=1..m) to pj )
(angle
( l pi (i=1..m,
( ij)) to pj )
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 22
The root locus of discrete systems Example
Consider a discrete system described by a block diagram:
R(s) Y(s)
+ ZOH G(s)
T = 0.1
5K
G( s) =
s( s + 5)
Sketch the RL of the system when K=0+. Determine
the critical gain Kcr
1 G(s) 5K
5 K
G ( z ) = (1 z )Z G ( s) =
s s ( s + 5)
1 5K
= (1 z )Z 2
s ( s + 5)
0. 5
1 z[(0.5 1 + e ) z + (1 e 0.5 0.5e 0.5 )]
= K (1 z ) 0 .5
5( z 1) ( z e )
2
0.021z + 0.018
G( z) = K
( z 1)( z 0.607)
0.021z + 0.018
The
Th characteristic
h ti : 1 + K
t i ti equation = 0 (*)
( z 1)( z 0.607)
Poles: p1 = 1 p2 =Z 0.607a = z[(aT 1 + e ) z + (1 e aTe ]
aT aT aT
)
aT
s 2
( s + a ) a ( z 1) 2
( z e )
z
Zeros: 1 = 0 .857
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 24
The root locus of discrete systems Example (cont)
The asymptotes:
(2l + 1) (2l + 1)
= = =
nm 2 1
OA =
poles zeros [1 + 0.607] ( 0.857)
= OA = 2.464
nm 2 1
The breakaway/break-in points:
( z 1)( z 0.607) z 2 1.607 z + 0.607
((*)) K = =
0.021z + 0.018 0.021z + 0.018
dK 0.021z 2 + 0.036 z 0.042
=
dz (0.021z + 0.018) 2
dK z1 = 2.506
Then =0
dz z2 = 0.792
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 25
The root locus of discrete systems Example (cont)
The intersection of the root locus
loc s with
ith the unit
nit circle:
(*) ( z 1)( z 0.607) + K (0.021z + 0.018) = 0
M th d 2:
Method S b tit t z = a + jb into
2 Substitute i t (**) :
( a + jb)2 + (0.021K 1.607)( a + jb) + (0.018K + 0.607) = 0
K cr = 21.83
0 5742+j0 8187
0.5742+j0.8187
+j
22.506
506 0.792
Re z
3 2 1 0.857 0 0.607 +1
j
0.5742j0.8187
e ( e 0.6)
Draw the exact Bode diagram of discrete systems:
Difficult
Cannot apply the addition property of the Bode plot
fs
Note: Sampling theorem: f
2 T
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 32
Frequency response of discrete systems Example
Consider the discrete system:
R(s) Y(s)
+ ZOH G(s)
T = 0.1
12
G( s) =
s( s + 3)
Plot the frequency response of the open-loop system
Solution:The transfer function of the open-loop system:
1 G( s) 0.0544 z + 0.0493
G ( z ) = (1 z )Z G( z) = 2
s z 1.741z + 0.741
jT
jT 0 .0544 e + 0.0493
Frequency response: G ( e ) =
( e jT ) 2 1.741e jT + 0.741
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 33
Frequency response of discrete systems Example (cont)
w
1
Z-plane W-plane
I the
In th imaginary
i i axis
i off the
th w-plane:
l w = jw
In the unit circle of the z-plane:
jT
2 z 1 2 e 1
2 T
z + 1 jT = jT = j tan
T z =e
T e + 1 T 2
2 z 1
Due to the bilinear transformation: w =
T z + 1
j = j 2 tan T
w
T 2
T T
At low frequency: T / 2 0 tan , then:
2 2
jw j
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 36
Procedure for drawing approximate Bode diagram
When determine
Wh d i the
h gaini crossover frequency,
f phase
h
crossover frequency, remember the relationship:
2 T
jw = j tan
T 2
Dominant
D i t poles l off a discrete
di t system
t are the
th poles
l lying
l i
closest to the unit circle.
= 1 (ln r ) 2 + 2
n T
Percentage of overshoot: POT = exp 100%
2
1
3
Settling time: ts = (according to 5% criterion)
n
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 44
Steady state error
H(s)
R ((zz )
E
Error expression:
i E ( z) =
1 + GC ( z )GH ( z )
R( )
R(s) Y( )
Y(s)
+ ZOH G(s)
T = 0.1 10
G(s) =
( s + 2)( s + 3)
1. Calculate the closed-loopp transfer function of the system.
y
2. Calculate the time response of the system to step input.
3. Evaluate the performance of the system: POT, settling
time, steady-state error.
Solution:
G( z)
1. The closed-loopp TF of the system:
y G cl ( z ) =
1 + G( z)
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 46
Performance of discrete system Example 1 (cont)
G( s)
1 G ( s) =
10
G ( z ) = (1 z )Z ( s + 2)( s + 3)
s
1 10
= (1 z )Z
s( s + 2)( s + 3)
1 z ( Az + B )
= 10(1 z )
( z 1)( z e 20.1 )( z e 30.1 )
1 z ( Az + B)
Z =
0.042 z + 0.036 s s + a s + b z z e aT
z e bT
G( z) = ( )( ) ( 1)( )( )
( z 0.819)( z 0.741
b(1) e aT ) a(1 e bT )
A=
ab(b a)
aeaT (1 e bT ) be bT (1 e aT )
B=
ab(b a)
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 47
Performance of discrete system Example 1 (cont)
0.042 z + 0.036
G( z) G( z) =
Gcl ( z ) = ( z 0.819)( z 0.741)
1 + G( z)
0.042 z + 0.036
( z 0.819)( z 0.741)
=
0.042 z + 0.036
1+
( z 0.819)( z 0.741)
0.042 z + 0.036
Gcl ( z ) = 2
z 1.518 z + 0.643
2. The
Th time
ti response off the
th system
t tot step
t input.
i t
Y ( z ) = Gk ( z ) R( z ) 0.042 z + 0.036
Gk ( z ) =
0.042 z + 0.036 z 2 1.518 z + 0.643
= 2 R( z )
z 1.518 z + 0.643
0.042 z 1 + 0.036 z 2
= 1 2
R( z )
1 1.518 z + 0.643z
(1 1.518 z 1 + 0.643 z 2 )Y ( z ) = (0.042 z 1 + 0.036 z 2 ) R ( z )
U it step
Unit t r ( k ) = 1,
t input:
i kk 0
Initial condition: y ( 1) = y ( 2) = 0
Substitute the initial condition to the recursive equation
off y(k),
(k) we have:
h
y ( k ) = {0; 0.0420; 0.1418; 0.2662; 0.3909; 0.5003;...
0.5860; 0.6459; 0.6817;0.6975; 0.6985; 0.6898;...
0.6760; 0.6606; 0.6461; 0.6341; 0.6251; 0.6191;...}
0.6
0.5
0.4
Amplitude
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
Percentage of overshoot:
ymax yss 0.6985 0.624
POT = 100% = 100% = 11.94%
yss 0.624
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 52
Performance of discrete system Example 1 (cont)
Settling time (5% criterion): cxl = 0.624
First, we need to find ks satisfying: = 5% = 0.05
(1 ) yss y (k ) (1 + ) yss , k ks
0.593 y (k ) 0.655, k ks
From the time response calculated before ks = 14
ts = ksT = 14 0.1
ts = 1.4 sec
kt) t= {error:
St d c(state
Steady 0; 0.0420; 0.1418; 0.2662; 0.3909; 0.5003;...
Since the system0.5860is;unity
0.6459negative
; 0.6817;feedback,
0.6975; 0.6985we ;have:
0.6898;...
ess = rss 0.6760
yss =; 10.
6606 ; 0.6461;
0.624 0.6341e; 0=.6251
0. ; 0.6191;...}
376
ss
1 1
n = (ln r ) + =
2 2
(ln 0.8019) 2 + 0.3285 2 = 0.3958
T 0 .1
POT = exp
.100% = exp 0.5579 3.14 .100% = 12.11%
2
1 2
1 0. 5579
3 3
t q = = = 1.36 sec
n 0.5579 0.3958
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 54
Performance of discrete system Example 2
2( s + 5)
with T = 0.1 G( s) =
( s + 2)( s + 3)
1. Formulate
1 F l t the
th state
t t equations
ti d
describing
ibi the
th system
t
2. Calculate the response of the system to unit step input
(assuming the initial conditions are zeros) using the state
equation formulated above.
3 Calculate POT,
3. POT settling time,
time steady state error
Solution:
S l ti
1. Formulate the state equation:
Y ( s) 2( s + 5) 2 s + 10
G( s) = = = 2
E R ( s ) ( s + 2)( s + 3) s + 5s + 6
The state equation of the continuous plant:
x&1 (t ) 0 1 x1 (t ) 0
x& (t ) = 6 5 x (t ) + 1 eR (t )
2 1424 3 2 {
A B
x1 (t )
y (t ) = [10 2]
123 x2 (t )
C
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 56
Performance of discrete system Example 2 (cont)
The transient matrix:
1 1
1 0 0 1 s 1
( s ) = (sI A) = s =
-1
0 1 6 5 6 s + 5
s+5 1
1 s + 5 1 ( s + 2)( s + 3) ( s + 2)( s + 3)
= =
s ( s + 5) 6 6 s 6 s
( s + 2)( s + 3) ( s + 2)( s + 3)
1 3 2 1 1 1
L L
1 s + 2 s + 3 s + 2 s + 3
(t ) = L [( s)] ==
L 1 6 + 6 L 1 2 + 3
s + 2 s + 3 s + 2 s + 3
(3e 2t 2e 3t ) (e 2t e 3t )
(t ) = 2t 3t 2t 3t
(6e + 6e ) (2e + 3e )
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 57
Performance of discrete system Example 2 (cont)
The state equation of the x[(k + 1)T ] = Ad x(kT ) + Bd eR (kT )
discrete open-loop system: y (kT ) = Cd x(kT )
T
T 2 3
(3e 2e ) (e 2 e 3 ) 0
Bd = ( ) Bd = 2 3 2 3
d
0 0(6e + 6e ) (2e + 3e ) 1
2 3 0.1
T (e 2 e 3 ) ( e +
e
0.0042
= d = ) =
2 3 2 3
0 ( 2e + 3e )
(e e )
2 3 0 .0779
0
Cd = C = [10 2]
0.6
0.5
0.4
Amplitude
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5
Time (sec)
ymax = 0.635
63 ymax yss
POT = 100% = 1.6%
yss
yss = 0.625
The settling time:
(1 0.05) y y ( k ) (1 + 0.05) y , k ks
According to the response of the system:
0.594 y (k ) 0.656, k 6
ks = 6 ts = ksT = 0.6 sec
c(k ) = {0; 0.198; 0.348; 0.455; 0.529; 0.577; 0.606; 0.622; 0.631; 0.634;...
S d state error: ess = rss yss = 1 0.625 = 0.375
Steady
0.635; 0.634; 0.632; 0.630; 0.629; 0.627; 0.627; 0.626; 0.625; 0.625...}
16 November 2011 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 62