Chapter 1. Digital Control System-1
Chapter 1. Digital Control System-1
X(s) X*(s)
Sampled data systems
• The Laplace transform of the sampled signal
x*(t) is defined as
X * ( s)
k 0
x(kT )e kTs (1.1)
• Properties of X*(s)
– 1. X*(s) is period in s with period jws
– 2. If X(s) has a pole at s=s1, then X*(s) will have
poles at s=s1+jnws
Sampled data systems
• The frequency spectrum of x*(t) is obtained by
using Fourier transform
• X*(jw) is obtained by replacing s=jw in the
Laplace transform since x(t)=0 for t<0.
• Hence X*(jw) is given by
j ( j )
X * ( j ) X ( j ) e
• Effect of sampling on frequency spectrum is to
repeat or replicate the frequency spectrum
centered at ks with k=1,2,3…
Sampled data systems
• The sampling theorem- sampling should be
performed at frequency at least twice the
maximum frequency of the original signal x(t)
• Data hold
– in all sampled data systems, data hold systems are
used
– It approximates an ideal low pass filter
– It converts the sampled signal into a continuous
time signal
– There are three types of data hold circuits
• Zero order, first order and second order data hold
Data reconstruction
• If the input of a sampler is given by e(t) and e n(t)
is used to denote the reconstructed signal, then
– delay units
y (–k )For
bsecond
o u ( k ) b1u ( k 1) b2 u ( k 2) a1 y ( k 1) a1 y ( k 2)
order system
Description of discrete time systems
– Block diagram of second order system
– Multiplication by a constant
k n 1
e(k n)u (k n) z E ( z )
n
k 0
k 1
e( k ) z
Description of discrete time systems
• Properties of z-transform contd…
– complex translation
ak e(k ) E ( z a )
e(k ) k ak
• Example: find the z transform of
– Initial value
• Given E(z) as Z transform of e(k) , then
e(0) lim E ( z )
z
– final value
• Given E(z) as Z transform of e(k) , then
lim
n
e(n) lim ( z 1) E ( z )
z 1
Description of discrete time systems
• Properties of Z transform contd
– Example: Apply the final and initial value
properties to the Z transform of sample of unit
step function and check its values
e(k ) 1 for all k 0
z 1
E ( z)
z 1 1 z 1
– Applying
lim final
e ( n ) value
lim ( z 1) E ( zproperty
) ( z 1)
z
1
n z 1
z 1
Description of discrete time systems
• 2. Transform methods
• Similar to continuous time systems:
– the transfer function of a discrete time system is
given by H(z) which is a ratio of Z-transform of
output Y(z) to the Z transform of the input U(z)
Y ( z ) [ y (k )]
H ( z) u(k) y(k) 0 for all k 0
U ( z ) [u (k )]
• Discrete convolution
Analysis contd…
• Example: 1) find the value of e(k) when E(z) is
given by
z
E( z)
z 2 3z 2
– Using power series method
• use long division to obtain e(k) , 0,1,3,7,15…
• Example 2: find e(k) when E(z) is given by
z
E( z)
( z 1)( zexpansion
– Using partial fraction 2)
e ( k ) 1 2 k
Analysis contd…
• Exercise : find y(k) when Y(z) is given by
– a) 3.894 z 3.894 z
Y ( z)
z 2 0.6065 ( z j 0.7788)( z j 0.7788)
1
Y ( z)
– b) ( z 2)( z 1)
Analysis contd…
• Using the inversion formula
– When computing y(k) using the inversion formula,
the following equivalent formula is used
y (k ) residues of Y(z)z
k -1
– Assume that
z 1
Y1 ( z ) Y2 ( z )
z 1 z2
– y1(k)= 1 for all k and y2(k)=2 power of (k-1)
– Then y(6)=127
Analysis contd…
• Analysis using impulse response method
– When the impulse response of a discrete system
h(k) is given, the output y(k) can be obtained using
• A) Y(z)=H(z)U(z) and then using the inverse method
• B) y(k)=h(k)*u(k)
n
y (k ) h(n)u(k n)
n
k 1
k
y (k ) CA x(0) C A
n0
k n 1
Bu (n) Du (k )
Analysis contd…
• Example: find the transition matrix, states and
output of a discrete time system when the
state equation is given by
0 1 0 1
A B C
2 3 1 1
C (kT ) 1 e kT
Introduction
• Open loop discrete time systems
– For the system above, the steady state value is 1.
This is obtained by using the final value theorem.
– The DC gain is the G(z) as z1
– When there are cascaded systems, the output of
the cascaded system may vary depending on the
location of the samplers
– Example: consider the following three sampled
data systems, find C(z) for the three cases
Introduction
• Open loop discrete time systems
C ( z ) E ( z )G1 ( z )G2 ( z )
C ( z ) E ( z )G1G2 ( z )
C ( z ) G1 E ( z )G2 ( z )
Introduction
• Open loop discrete time systems
– When the system has digital filters, the open loop
output is obtained by using the Z-transform of the
difference equation
– Example: for the system shown below, find the
output
C ( z ) E ( z ) D( z )G ( z )
Introduction
• Open loop discrete time systems
– Exercise: Determine the expression for the output
of the following systems
Introduction
• Closed loop discrete time systems
– Closed loop discrete systems contain samplers
either in the forward or feedback path or in both
paths
– The output can be derived by using the methods
used for open loop.
– Consider the closed loop system below
G ( z ) R( z )
C ( z)
1 GH ( z )
Introduction
• Closed loop discrete time systems
– When the closed loop system contains digital
filters, the system output is obtained by using the
cascade of the digital filter and analog parts
– For example: for the system below, the output is
given as
G ( z ) D( z ) R( z )
C ( z)
1 D( z )GH ( z )
Introduction
• Closed loop system
– When the system contains multiple samplers, the
closed loop system output is obtained by
• Drawing the signal flow graph of the original system
• Writing equations to each sampler input
• Combining the equations
G1 ( z )G2 ( z ) R ( z )
C ( z)
1 G1 ( z )G2 ( z ) G2 H ( z )
Introduction
• System time response for discrete time
systems
– Is obtained using the inverse transform method
ones the output z transform is obtained
– Example: for the temperature control system
shown below, determine the output when the
input is unit step
G( z)
C ( z) R( z )
1 G( z)
Introduction
• System time response
– Using the Z transform of unit step input and
0.3625
G( z)
z 0.8187
– The closed loop output and its inverse become
0 . 3625 z
C (z)
( z 1 )( z 0 . 4562 )
Introduction
• System time response
– For a general closed loop system with single
sampler and single loop, the output is given as
m
G( z)
K (z z ) i
C ( z) R( z ) R( z )
1 G( z ) n
(z p ) i
• Definition
– Consider a nonlinear discrete system given by
x(kT T ) f [ x(kT ), kT , u ( kT )) x ( k oT ) xo
– The system will be stable if all poles are inside the unit
circle
Stability
• Characteristic equation
– For a system whose output is given by
G( z)
C ( z) R( z )
1 GH ( z )
– For stability
• Roots of the characteristic equation must lie with in the
unit circle
• If any root is on the unit circle, system is marginally stable
• If any root is out side the unit circle, system is unstable
Stability
• Characteristic equation
– When the system is described in state space, as
x(k 1) Ax(k ) Br (k )
y (k ) Cx(k ) Dr (k )
2 T
w j tan
T 2
• Hence the frequency in s-plane and the
frequency in w plane are related by
2 T
ww tan
T 2
RH criteria
• Is a systematic way of determining the stability
of a continuous system without actually
solving the characteristic equation
• In digital systems, simple RH can not be
applied but following method is used
– Convert the z domain transfer function to w plane
by using Bilinear transformation
– Determine the characteristics equation
– apply RH as continuous system
Jury’s stability test
• Is a similar method to the RH which can be
directly applied to characteristic equation in z
domain
• Consider a characteristic equation given by
C ( z ) an z n an 1 z n 1 a1 z a0 an 0
z0 z1 z2 z nk z n 1 zn
a0 a1 a2 an k an 1 an
an an 1 an 2 ak a1 a0
b0 b1 b2 bn k bn 1
bn 1 bn 2 bn 3 bk 1 b0
c0 c1 c2 cn k
cn 2 c n 3 cn 4 cn 2
Jury’s stability test
• The entries in the third row and above are
calculated by
a0 an k b0 bn 1 k c0 cn 2 k
bk ck dk
an ak bn 1 bk cn 2 ck
1 z (T 1 e T ) z (1 e T Te T )
2
s s 1 ( z 1) 2
( z e T
)
Jury’s stability test
• Jury’s table is
z0 z1 z2
0.00468K+0.905 0.00484z-1.905z 1
– The1characteristic
KG ( z ) 0 equation of the system is
z 1 1
G( z) 2
z s s 1
– Where
Frequency response techniques
• Example: using Z-transform table and T=1, the
final characteristic equation becomes
K (0.3679z 0.2642)
1 KG ( z )
( z 1)( z 0.3679)
• The root locus becomes
Root Locus
1.5
0.5
Imaginary Axis
-0.5
-1
-1.5
-5 -4 -3 -2 -1 0 1 2
Real Axis
Frequency response techniques
• Bode plot- is another frequency response
technique
– Graphical method which draws the magnitude and
phase of the closed loop response as a function of
frequency
– For discrete time systems two methods can be
followed
• Form the characteristic equation of the system in z
• Change to w plane and plot bode plot or
• Draw the bode plot in z domain and convert it to s
domain using the conversion formula