Lecture 3
Lecture 3
Lecture-3
Modeling of Digital Control
Systems
Lecture Outline
2
Sampling Theorem
ADC Model
DAC Model
Combined Models
Sampling Theorem
3
Sampling is necessary for the processing of
analog data using digital elements.
𝜔 𝑠 =𝑘 𝜔 𝑚 ,5 ≤ 𝑘 ≤10
Selection of Sampling
8
Frequency
𝜔 =𝑘 𝜔 ,5 ≤ 𝑘 ≤10
𝑠 𝑚
-5
1 System: sys
𝜔 𝑏 = =0.33 𝑟𝑎𝑑/ 𝑠𝑒𝑐 Frequency (rad/s): 0.33
Magnitude (dB)
-15
-30
0
Phase (deg)
-45
-90
-2 -1 0 1
10 10 10 10
Frequency (rad/s)
Selection of Sampling Frequency (1st Order
Systems) 1
3
The frequency response amplitude drops below
the DC level by a factor of about 10 at the
frequency .
OR 𝜔 𝑠 =𝑘 𝜔 𝑏 ,35 ≤𝑘 ≤ 70
Selection of Sampling Frequency (2nd Order
Systems) 1
4
The frequency response of second order system
is
K
H ( j )
j 2 / n 1 ( / n ) 2
𝜔 𝑏 =10 𝑟𝑎𝑑/𝑠𝑒𝑐
We know
𝜔 𝑠 =𝑘 𝜔 𝑏 ,35 ≤𝑘 ≤ 70
Choosing k=60
𝜔 𝑠 =60 𝜔𝑏 =600 𝑟𝑎𝑑/𝑠𝑒𝑐
Example-1 1
6
Corresponding sapling period is calculated as
2 𝜋 2 ×3141
𝑇= = =0.01 𝑠𝑒𝑐
𝜔𝑠 600
Example-2 1
7
Fort he following first-order system select a
suitable sampling frequency and find the
corresponding sampling period.
10
𝐺 ( 𝑠) =
𝑠+ 1
Example-3 1
8
Consider the following second order transfer
function. Select a suitable sampling period for
the system. 16
G (s) 2
s 8s 16
Example-4 1
9
A closed-loop control system must be designed
for a damping ratio of about 0.7, and an
undamped natural frequency of 10 rad/s. Select
a suitable sampling period for the system if the
system has a sensor delay of 0.02 sec.
Solution
u(t) u*(t)
t t
0 0
Sampling Process
T
u(t) u*(t)
u*(t)
u(t)
δT(t)
× =
t t t
0 0 0
Modulation modulating modulated
signal pulse(carrier) wave
u (t ) u (t ) (t kT )
*
k 0
DAC Model
2
Assume that 6
DAC outputs are exactly equal in magnitude to their inputs.
The DAC yields an analog output instantaneously.
DAC outputs are constant over each sampling period.
u(k)
u(t)
uh(t)
𝑢 ( 𝑘 ) 𝑍 𝑂𝐻 𝑢 h (𝑡 )=𝑢 ( 𝑘 ) , 𝑘𝑇 ≤ 𝑡 ≤ ( 𝑘+1 ) 𝑇
→
DAC Model
2
Unit impulse response of ZOH 7
Where
DAC, Analog Subsystem, and ADC
Combination 3
5
Transfer Function
𝑔 ( 𝑡 ) =𝑔 (𝑡 ) − 𝑔 (𝑡 −𝑇 )
𝑍𝐴 𝑠 𝑠
The analog response is sampled to give the
sampled impulse response
𝑔 𝑍𝐴 ( 𝑘𝑇 ) =𝑔 𝑠 ( 𝑘𝑇 )− 𝑔 𝑠 (𝑘𝑇 −𝑇 )
[ { }]
∗
−1 −1 𝐺( 𝑠)
𝐺 𝑍𝐴𝑆 ( 𝑧 )=(1− 𝑧 )Z L
𝑠
Solution
𝐾 𝐾 /𝜏
𝐺 ( 𝑠) = =
𝜏 𝑠+1 in𝑠+1/
Re-writing transfer function 𝜏
standard form
Example-3
3
𝐾 /𝜏 8
𝐺 ( 𝑠) =
𝑠+ 1/ 𝜏
Where and
Now we know
−1
𝐺 𝑍𝐴𝑆 ( 𝑧 )=(1− 𝑧 ) Z [
𝐺(𝑠 )
𝑠 ]
Therefore, 𝐺 (𝑠 ) 𝐾 /𝜏
=
𝑠 𝑠 ( 𝑠+1/ 𝜏 )
The corresponding partial fraction expansion is
𝑠
=( )[
𝐺 (𝑠 ) 𝐾
𝜏
𝜏
−
𝜏
𝑠 𝑠+1 /𝜏 ]
Example-3
3
9
−1
𝐺 𝑍𝐴𝑆 ( 𝑧 )=(1− 𝑧 ) Z
[( ) {
𝐾
𝜏
𝜏
−
𝜏
𝑠 𝑠+1/ 𝜏 }]
Using
the z-transform table, the desired z-
domain transfer function is
−1
𝐺 𝑍𝐴𝑆 ( 𝑧 )=(1− 𝑧 ) Z 𝐾
1
−
1
[ {
𝑠 𝑠+ 1/ 𝜏 }]
𝐺 𝑍𝐴𝑆 ( 𝑧 )=
𝑧 −1
𝑧
𝐾
[ {𝑧
−
𝑧
𝑧 − 1 𝑧 −𝑒 −𝑇 /𝜏 }]
[ {
𝐺 𝑍𝐴𝑆 ( 𝑧 )= 𝐾 1−
𝑧 −1
𝑧 − 𝑒− 𝑇 / 𝜏 }]
Example-3
4
0
[ {
𝐺 𝑍𝐴𝑆 ( 𝑧 )= 𝐾 1−
𝑧 −1
𝑧 − 𝑒− 𝑇 / 𝜏 }]
𝑇
−
𝜏
𝑧 − 𝑒 − 𝑧+1
𝐺 𝑍𝐴𝑆 ( 𝑧 )=𝐾 −𝑇 /𝜏
𝑧 −𝑒
𝑇
−
𝜏
1 −𝑒
𝐺 𝑍𝐴𝑆 ( 𝑧 )=𝐾 − 𝑇 /𝜏
𝑧−𝑒
Example-4
4
1
Find GZAS(z) for the vehicle position control system,
where u is the input force, y is the position of the
car, and b is the viscous friction coefficient.
𝑏 𝑦˙ 𝑦
Solution