DigitalControlSystems Lecture 1 PDF
DigitalControlSystems Lecture 1 PDF
Discrete Equivalents
Z-Transform
Stability Criteria
Steady State Error
Design of Digital Control Systems
Digitization
The difference between the continuous and digital systems is that
the digital system operates on samples of the sensed plant rather
than the continuous signal and that the control provided by the
digital controller D(s) must be generated by algebraic equations.
In this regard, we will consider the action of the analog-to-digital
(A/D) converter on the signal. This device samples a physical signal,
mostly voltage, and convert it to binary number that usually consists
of 10 to 16 bits.
Conversion from the analog signal y(t) to the samples y(kt), occurs
repeatedly at instants of time T seconds apart.
A system having both discrete and continuous signals is called
sampled data system.
The sample rate required depends on the closed-loop bandwidth of
the system. Generally, sample rates should be about 20 times the
bandwidth or faster in order to assure that the digital controller will
match the performance of the continuous controller.
3
A
ADC
D
Micro
Processor
DAC
Correction
Element
Process
Clock
Measurement
A: Analog
D: Digital
4
R(t)
+
Gc(s)
Plant
Continuous Controller
r(t)
A/D
Digital
Controller
Digital Controller
p(t)
y(t)
Plant
m(kT)
D/A
m(t)
5
Sampler
r(t)
Continuous
r*(t)
Sampled
2T
3T
4T
r(3T)
r(4T)
r(2T)
r(kT)
r(T)
T
2T
3T
Zero-order
Hold
Go(s)
P(t)
1 1 sT 1 e sT
G0 ( s) e
s s
s
4T
8
e(t)
A/D
u*(t)
e*(t) Computer
u(t)
D/A
Process
Measure
Sampling analysis
Expression of the sampling signal
x * (t ) x(t ) T (t ) x(t )
k 0
k 0
c(t)
Zero-Order Hold
The Zero-Order Hold block samples and holds its input
for the specified sample period.
The block accepts one input and generates one output,
both of which can be scalar or vector. If the input is a
vector, all elements of the vector are held for the same
sample period.
This device provides a mechanism for discretizing one or
more signals in time, or resampling the signal at a
different rate.
The sample rate of the Zero-Order Hold must be set to
that of the slower block. For slow-to-fast transitions, use
the unit delay block.
11
The z-Transform
The z-Transform is used to take discrete time domain signals into a complexvariable frequency domain. It plays a similar role to the one the Laplace
transform does in the continuous time domain. The z-transform opens up new
ways of solving problems and designing discrete domain applications. The ztransform converts a discrete time domain signal, which is a sequence of real
numbers, into a complex frequency domain representation.
r * (t ) r (kT ) (t kT )
k 0
{r * (t )} r (kT )e ksT
k 0
z e sT
Z {r (t )} Z {r * (t )} r (kT ) z k
k 0
U ( z)
z
z 1
Z { f (t )} F ( z ) f (kT ) z k
k 0
12
T=1
r*(t)
Zero-order
Hold Go(s)
Process
(1 e st )
1
Go ( s )
; G p ( s)
s
s ( s 1)
Y (s)
1 e st
Go ( s )G p ( s ) G ( s ) 2
R * ( s)
s ( s 1)
1 1
1
Expanding into partial fraction : G ( s ) 1 e st ( 2
)
s s 1
s
0.3678 z 0.2644
G( z) 2
z 1.3678 z 0.3678
13
14
Z-Transform
Z-transform method: Partial-fraction expansion approaches
If :
Kn
K1
K2
A(s)
( s a1 )( s a2 ) ( s an ) s a1 s a2
s an
X(s)
Then : X ( z )
z e
Ki z
i 1
Example:
ai T
5( s 4)
5 10 z
15 z
5z
10 15
Z
s s 1 s 2 z 1
z e T z e 2T
s( s 1)( s 2)
If :
X(z)
A(z)
(z e
n
then : X (kT )
a1T
)( z e
a2T
) (s e
a nT
K1 z
z e
a1T
K2 z
se
a2T
K i e ai kT
i 1
Example:
2T
z
(
1
e
) 1 z
z
1
2kT
x(kT) Z
z 1
2T
z e 2T
( z 1)( z e )
R(z)
E(z)
G(z)
Y(z)
Y(z)
R(z)
D(z)
E(z)
G(z)
Y(z)
Y(z)
Y ( z)
G( z )
G ( z ) D( z )
T ( z)
R( z )
1 G ( z ) 1 G ( z ) D( z )
16
Y ( z)
G( z)
0.3678 z 0.2644
2
R( z ) 1 G ( z )
z z 0.6322
z
Assume an a unit step input : R( z )
z 1
z (0.3678 z 0.2644)
0.3678 z 2 0.2644 z
Y ( z)
3
2
( z 1)( z z 0.6322) z 2 z 2 1.6322 z 0.6322
Y ( z ) 0.3678 z 1 z 2 1.4 z 3 1.4 z 4 1.147 z 5
17
Stability
The difference between the stability of the continuous
system and digital system is the effect of sampling rate
on the transient response.
Changes in sampling rate not only change the nature of
the response from overdamped to underdamped, but
also can turn the system to an unstable.
Stability of a digital system can be discussed from two
perspectives:
z-plane
s-plane
18
ze
sT
( j )T
z eT
z T
19
Unstable zone
Re
Stable zone
s 1
s 1
Bilinear transformation
We can analyze the stability of the sampling control systems the same as we did
in chapter 3 (Routh criterion in the s-plane) .
Proof : suppose w j , z x jy , then :
z 1 x jy 1 x 1 jy x 2 y 2 1
2y
z 1 x jy 1 x 1 jy ( x 1) 2 y 2
( x 1) 2 y 2
2
2
2
2
y
1
( for the left half of the s-plane) (inside the unit circle of the z-plane)
0.632 Kz
z 1.368 z 0.368
2
0.632 Kz
z 1.368 z 0.368
2
Make
s 1
s 1
0.632 K
1.264
2.736 0.632 K
2.736 0.632 K
Go(s)
Gp(s)
Y(t)
K
K (0.3678 z 0.2644)
K (az b)
; G( z)
s ( s 1)
z 2 1.3678 z 0.3678 z 2 (1 a ) z a
The poles of the losed - loop transfer function t(z) are the roots of the equation
[1 G(z)] 0 : z 2 (1 a ) z a Kaz Kb 0
G p (s)
Example
23
E ( z ) R( z ) c( z ) R( z )
R( z )G( z )
R( z )
1 G( z ) 1 G( z )
*
1 K p
T
*
Kv
T2
*
K a
z 1
r (t ) t
R( z )
2
G(s)
R( z )
1 G( z)
r (t ) 1(t ) R( z )
r (t ) t
R( z )
z
;
z 1
Tz
( z 1)
K *p lim G ( z )
z 1
;
2
T 2 z ( z 1)
( z 1) 3
K v* lim ( z 1)G ( z )
z 1
; K a* lim ( z 1) 2 G ( z )
z 1
Example
e
Z.O.H
T 1s
1) Determine K for the stable system.
G (s)
K
G( s)
s( s 5)
1)
1 e Ts
K
G( z) Z
s
s
(
s
5
)
(1 e ) Z 2
s ( s 5)
K
K
K
Ts
5
5
(1 e ) Z 2
25
s
s
s5
Ts
Kz
Kz
KTz
5
5
25
(1 z )
( z 1) 2 z 1 z e 5T
T 1
1
K z 2 2.2067 z 0.2135
5
( z 1)( z 0.0067 )
s 1
0.9932 w (9.993 1.573 K ) w (10 .067 2.4202 K ) 0
s 1
0 K 4.16
2)
2
K
z
2.2067 z 0.2135
K *p lim G ( z ) lim
z 1
z 1 5
( z 1)( z 0.0067 )
K v*
K z 2 2.2067 z 0.2135
lim ( z 1)G ( z ) lim
0.2 K
z 1
z 1 5
( z 0.0067 )
ess
1
1 K *p
T
K v*
T
0.2 K
T 1
5
K
2)
30
31
E(z)
r(t)
R(z)
D(z)
G(z)
Y(z)
Y(z)
32
Y ( z)
G ( z ) D( z )
T ( z)
R( z )
1 G ( z ) D( z )
U ( z)
The tranfer function of the computer is
D( z )
E( z)
Consider the second order systemwith a zero - order hold and a plant
1
0.3678z 0.7189
k ( z 0.3678)
Gp( s )
when T 1; G ( z )
; If we select D( z )
z 1z 0.3678
s ( s 1)
(z r)
We cancer the pole of G ( z )at z 0.3678 and have the two parameters r and K .
1.359 z 0.7189
0.5 z 0.7189
D( z )
; G ( z ) D( z )
z 0.240
z 1z 0.240
1 A K a
sa
zA
Gc ( s ) K
; D( z ) C
; Z {Gc ( s )} D( z ); A e aT ; B e bT ; C
1 B
sb
zB
b
34
Gc(s)
G(s)
Y(s)
j
H(s)
M
Gc ( s)
K ( s zi )
i 1
N
( s pi )
-p
-z
j 1
K (s z)
First order compensator
Gc ( s )
( s p)
When z p, the network is called a phase - lead network
35
sa
Gc ( s ) K
(First - Order Compensator)
sb
zA
D( z ) C
(Digital Controller)
zB
Z {Gc ( s )} D( z ) (z - transform)
Ae
aT
;B e
bT
1 A
a
;C
K when s 0
1 B
b
36
37
Gc( s )
1 s
1 s
z p
sin m
1
1
G c( s )
( s z)
( s p)
G c( s )
1 s
1 s
G p (s)
1740
. We will attempt to design Gc ( s ) so that we achieve
s (0.25s 1)
a phase margin of 45o with a crossover frequeny c 125 rad/s (Fig 10.10).
Using the Bode diagram of G p ( s ), we find that the phase margin is 2 o (Eq 10.24).
Based on 10.4, we find that the required pole - zero ratio is 6.25 (Eq 10.18).
1
2
K ( s 50)
( s 312)
42
R(s)
D(z)
+
-
Zero
Order
hold
Y(s)
KGp(s)
Y ( z)
KG ( z ) D( z )
; 1 KG ( z ) D( z ) 0 (Characteristic equation)
R( z ) 1 KG ( z ) D( z )
Plot the root locus for the characteri stic equation of the sampled systemas K varies.
1. The root locus starts at the poles and progresses to the zeros.
2. The root locus lies on a section of the real axis to the left of an odd number of poles and zeros.
3. The root locus is symmetrical with respect to the horizontal real axis.
4. 1 KG ( z ) D( z ) 0 or KG ( z ) D( z ) 1 and KG ( z ) D( z ) 180o k 360o
43
Unstable
Root locus
Unit circle
One zero
At z = -1
-3
-2
-1
Re {z}
0
2 poles at
z=1
K ( z 1)
0
2
( z 1)
Let z and solve for K
1 KG ( z ) 1
( 1) 2
K
F ( )
( 1)
dF ( )
0; 1 3; 2 1
d
44
45
za
z b
K ( z 1)( z a )
KG ( z ) D( z )
( z 1) 2 ( z b)
If we select a 1 and b 0.2,
k ( z 1)
we have KG ( z ) D( z )
( z 1)( z 0.2)
Using the equation for F ( ), we obtain the entry point as z -2.56.
The root locus is on the unit circle at K 0.8.
Thus the systemis stable for K 0.8.
46
( z 1)( z 0.98) ( z 1)
Then the root locus would lie on the real axis of the z - plane.
When K 1, the root of the characteri stic equation is at the origin.
47
Im{z}
K=0.8
K increasing
Unit circle
Re{z}
-1
0.2
+1
Entry point at
z = -2.56
Root locus
48
P13.10 Dorf
1
; T 0.1; D( z ) K
s ( s 10)
0.0037 z 0.0026
(a) The transfer function G ( z ) D( z ) K 2
z 1.368 z 0.3679
0.0037 z 0.0026
(b) The closed - loop systemcharacteri stic equation is 1 K 2
0
z 1.368 z 0.3679
(c) Using root locus method, maximum value of K is 239.
(d) Using Figure 13.19 for T/ 1 and maximum overshoot of 0.3, we find K 75.
0.2759 z 0.1982
(e) When K 75; T ( z ) 2
z 1.092 z 0.5661
(f)
When K 119.5, the poles are z 0.4641 j 0.6843. The overshoot is 0.55.
G p (s)
49
P13.11 Dorf
sa
sb
By using Bode Plot, we may select a 0.7, b 0.1, and K 150.
The compensated systemovershoot and safety - state tracking error
(for a ramp input) are PO 30% and ess 0.01.
(a) Gc ( s ) K
zA
z 0.9324
155.3
zB
z 0.99
1 A
a
A e ; B e ;C
K
1 B
b
A e 0.007 0.9324; B e 0.01 0.99; C 155.3
aT
bT
zA
z 0.993
150
zB
z 0.999
1 A
a
A e ; B e ;C
K
1 B
b
A e 0.07 0.993; B e 0.01 0.999; C 150
aT
bT
50