Chapter 10 Introduction To Digital Control
Chapter 10 Introduction To Digital Control
y y*
9 12
1 3 5 7 9 11 t (sec) 1 3 6 t (sec)
T = 1 sec
y*
(a) (b)
9 12
3 6 t (sec)
T = 3 sec
(c)
Continuous signal and its discrete-time representation with different sampling rates
y* y*
t t
t = nT t t = nT t
y* (b)
(a)
Impulse area nT
t = nT t
(c)
From the response of a real sampler to the response of an ideal impulse sample
The Sampling Process
Impulse
y (t) Sampler y*
Laplacing
y (s) y(nT)L [ (t - nT)]
*
n 0
or y (s) y(nT) e -nTs
*
n 0
The Hold Process :
From Discrete to Continuous Time
discrete Continuous
impulses m* (t) m (t) output
Hold Device
Transfer Function :
Response of an impulse input : (t)
1
t
m* (t) m (t)
t T
1 - e -Ts
-Ts
1 e 1
H(s) -
s s s
First Order Hold
m(nT) - m[(n - 1)T]
m(t) m(nT) (t - nT)
T
nT t (n 1)T n 2,3,4....etc
T 2T
-1
Transfer function: 2
1 sT 1 - e -sT
H(S)
T s
First Order versus Zero Order Hold
m* (nT)
m (t)
m (t)
0 t
1T 3T 5T 7T 0 t
1T 3T 5T 7T
(a) (b)
0 t
1T 3T 5T 7T
(c)
Comparison of reconstruction with zero-order and first-order holds, for slowly varying signals.
m* (nT)
m (t)
m (t)
0 2T 4T 6T 8T 10T t
0 2T 4T 6T 8T 10T t
(a) (b)
0 2T 4T 6T 8T 10T t
(c)
Comparison of reconstruction with zero-order and first-order holds, for rapidly changing signals.
Z-Transforms
Sample
y(t) yz(t)
y ( s ) y ( n )e nTs
z
n 0
Let z eTs
y ( s ) y ( n ) z n
z
n 0
y( z )
Ζ y (t ) y(z)
z
y(n )z
n 0
-n
Remarks
1. z-transform depends only on the discrete values y(0), y()ז,y()ז..etc. If two
continuous functions have the same sampled values , then z-transform
will be the same.
Z[u(t)] 1 1 z 1 1 z 2 1 z 3 ......
1 z
1 z 1 z-1
2. Exponential Function
e
Ze -at anT
z n
λ n , λ e -aT z 1
n 0 n 0
1
1 λ
1
-aT 1
1-e z
z
z-e -aT
e -aT z 1 1 for convergence
Z-Transforms of Basic Functions (2)
3. Ramp Function
4. Trigonometric Functions
zsinwT
Z sinwt 2
z 2zcoswT 1
z 2 zcoswT
Z coswt 2
z 2zcoswT 1
Z-Transforms of Basic Functions (3)
5. Translation
Z f(t - kT) Z e kTs
f ( s ) f (z)z k
Z f(t - kT) f(nT kT)z n
n 0
dy ynt yn 1
dt T
y n y n 1 1 z
Z
1
y(z)
T T
Properties of z-Transforms
1. Linearity
Z a f a f
1 1 2
2
a f (z) a f (z)
1 1 2 2
t z 1
Proof: (1-z )fˆ y(z)(1 z ) y(nT ) z n y(nT ) z n y(nT ) z n 1
-1 -1
lim y( 0 )-y( 0 )z -1 y(T )-y(T)z -1 z1 y( 2T)-y( 2T)z -1 z 2.... y(nT)
n
As z1 lim (1 z1 )yˆ(z) lim y nT lim y(t)
z 1 n t
Numerical Integration in z-transform
t nT
y(t) f t dt
0
nT
y nT y (n-1 )T f(t)dt
(n-1 )T
yˆ z T 1 z fˆ z
1
2 1 z 1
Inversion of z-transforms
unit impluse 1
1
unit step 1/s 1
1 z 1
ramp: f(t) = at a/s2 aTz 1
(1 z 1 ) 2
f(t) = tn n!/sn+1
n 1
lim (1) n
a 0 a n 1 e aT z 1
f(t) = e-at 1/s+a 1
1 e aT z 1
e aT z 1
f(t) =te-at 1/(s+a)2
(1 e aT z 1 ) 2
Z-Transforms Table (2)
In computer control:
measurements are taken periodically and
control actions implemented periodically,
This results in a discrete input/discrete
output dynamic system.
en cn
Discrete System
Example of Discrete Systems
Let dc
ken c
dt
a discrete time approximation is
cn cn 1
ken cn
T
cn cn 1 kcn cn
T T
(1 )cn cn 1 ken
T T
Taking z-transform
(1 ) cˆ( z ) z 1 cˆ( z ) keˆ( z )
T T
cˆ( z ) k
or
e( z ) (1 ) z 1
T T
Z-transform for a given continuous
system with Transfer function G(s)
and a ZOH
1 e Ts
Z H ( s )G ( s ) Z G (s)
s
G s Ts G s
Z Z e
s s
G s 1 G s
Z z Z
s s
G s
1 z Z
1
s
Example: Pure Integrator with Hold
1 e ST Kp
c*(s) s s y*(s
)
1 e Ts K p
HG p ( s)
s s
1 e Ts K p Kp K p e Ts
Z HG ( s ) Z [ . ] Z[ 2 ] Z[ 2 ]
s s s s
1
Kp 1
K pTz K pT z 1
[1 - z ] Z [ 2 ] [1 z ]
-1
s (1 z 1 ) 2 (1 z 1 )
Step response
Hence of 1
c( s )
s
1
cˆ( z )
1 z 1
K p z 1 1 K p z 1
yˆ ( z )
(1 z 1 ) (1 z 1 ) (1 z 1 ) 2
(1 z ) (1 e p z 1 )
1 *
*
*
nT p
y (nT ) K p [1 e ] *
y (t ) K p to t *
time
Note: Compare with discrete approximation to
First-order system
Generalization
cn a 0en a1en 1 ... aken k b1cn 1
b 2cn 2 ... bmcn m
cˆ( z ) a 0eˆ( z ) a1 z 1eˆ( z ) ... ak eˆ( z ) z k
b1cˆ( z ) z 1 b2 cˆ( z ) z 2 ... bm cˆ( z ) z m
or cˆ( z ) a0 a1 z 1 a2 z 2 ... ak z k
1 2 m
D( z )
eˆ( z ) 1 b1 z b2 z ... bm z
Remark :
Note that D(z) is the z-transform of the response of the system
to an impulse input eˆ( z ) 1
Z-transform of a Continuous
Process with Sample and Hold
Hold Process
H (s) Gp (s)
discrete c*(s) y (s) y*(s)
input
discrete
continuous output
variables
1. Z G1 ( s)G2 ( s ) Z G1 ( s ) Z G2 ( s )
c1 c2
c3
G1(z) G2(z)
T
c3 ( z ) c2 ( z ) c3 ( z )
G3 ( z ) G1 ( z ) G2 ( z )
c1 ( z ) c1 ( z ) c 2( z )
Closed-Loop System
disturbance
Hold Process y2 ( s)
T eˆ( z ) T
+ D (z) H (s) Gp (s)
y(2)
set m (s)
ysp (z) - ˆ( z )
c y1(s)
point
yˆ ( z )
sampled output
yˆ ( z ) Z y ( s ) Z y1 ( s ) y 2 ( s )
Z y1 ( s ) Z y 2 ( s )
HG p ( z )eˆ( z ) yˆ 2 ( z )
HG p ( z ) D ( z )eˆ( z ) yˆ 2 ( z )
HG p ( z ) D ( z ) y sp ( z ) yˆ ( z ) yˆ 2 ( z )
or HG p ( z ) D ( z ) y sp ( z ) yˆ 2 ( z )
yˆ ( z )
1 HG p ( z ) D( z ) 1 HG p ( z ) D ( z )
and
k p k c (1 b) z 1 1
yˆ ( z ) 1
1 [ k p k c b(1 k p k c )]z (1 z 1 )
y (nT )
k p kc
1 k p kc
1 e nT / p
p
p
1 k p kc
The response is very similar to continuous control.
1 b1 z -1 b2 z -2 ..... bn z -n 0
For an impulse imput e(z) 1 and C(z) D(z)
consider the k th term
Ck
f K (z) 1
1 - PK z
f k (nT) C K e nlnPK
Let PK α jβ | PK | e jw
ln Pk ln(PK ) jw
e lnPK
e ln(PK )
e jw
Unstable
roots
real
STABLE
REGION
Unit
circle
Location of poles
Consider the impule response of a system with
1
D(z)
1 - P1 z 1
1 2 -2
y(z) 1
1 P1 z P1 z ....
-1
1 - P1 z
y(1) P1
na
y(nT) P1
if | P1 | 1, y(t) as t
0 Pi 1 then y(t) 0 : exponential decay
- 1 P1 0 then y(t) 0 : oscillatory
Three stability tests
Schur-Cohn stability test
Jury Stability test (simpler than Schur-
Cohn)
Routh stability coupled with bi-linear
transformation.
Lyapunov stability analysis applicable
in state space representation
Jury Stability Test
Assume that the characteristic
equation:
Jury Table
Jury Test
Stability Criteria
Example
Example
Example 2
Example 2
For K=1:
Example 2
Example 2
Routh Stability Criteria
Transform Characteristic equation in z-
domain into w-domain using bilinear
transformation
Use the same Routh Stability Criteria
in w-domain
Bilinear Transformation
Bilinear approximation can be solved
for s =(1/T)ln(z):
Routh Stability Criteria
E(s)=R(s)-C(s)H(s)
STEADY STATE ANALYSIS
UNIT STEP INPUT ANALYSIS
UNIT RAMP INPUT ANALYSIS
UNIT PARABOLA INPUT ANALYSIS
SUMMARY STEADY STATE ERROR
EXAMPLE
EXAMPLE
EXAMPLE
ROOTLOCUS ANALYSIS
• The effect of system gain and/or sampling period on the
absolute and relative stability of the closed loop system
should be investigated in addition to the transient response
characteristics. Root locus method is very useful in this
regard.
• The root locus method for continuous time systems can be
extended to discrete time systems without much modifications
since the characteristic equation of a discrete control system
is of the same form as that of a continuous time control
system.
ROOTLOCUS ANALYSIS
In many LTI discrete time control systems, the characteristics
equation may have either of the following two forms.
1+G(z)H(z)=0 or
1+GH(z)=0
Define 1+L(z)=0
So L(z)=-1: same as RL in continuous time
So, rootlocus contruction is the same as in continuous time.
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE
For T=1 sec