Lec 4 &5 - Digital Control 2 - Discrete System Analysis
Lec 4 &5 - Digital Control 2 - Discrete System Analysis
Mechatronics Engineering
Future University
• Stability Definition
𝑦 𝑖 = ℎ 𝑘−𝑖 𝑢 𝑘
𝑘=0
∞
𝑦 𝑖 = ℎ 𝑘−𝑖 𝑢 𝑘 ≤ ∞
𝑘=0
∞ ∞ ∞
• A linear discrete-time system is stable if and only if all its poles are
inside the unit circle in z-domain.
Relation between s-plane and z-plane
(constant settling time)
𝑗𝜔 𝑍 = 𝑒 𝑠𝑇 , 𝑠 = 𝜎 + 𝑗𝜔
jIm(z)
𝑗𝜔1
𝜎 𝜔1 𝑇 Re(z)
2𝜋 𝜔 𝜔
Note that 𝜔𝑠 = 𝑇 , this means that 2𝑠 is mapped to 𝜋 and − 2𝑠 is
mapped to −𝜋. The strip to the left in s-domain is mapped inside
the unit circle in z-domain.
Relation between s-plane and z-plane
0.6 0.3
0.8/T 0.4 0.2/T
0.5
0.4 0.6
0.7
0.9/T 0.8 0.1/T
0.2
0.9
1/T
0
1/T
-0.2
0.9/T 0.1/T
-0.4
0.8/T 0.2/T
-0.6
0.6/T 0.4/T
0.5/T
-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Dead Beat Response and Time Delay
𝑧−0.2
Consider the unit step response of the system 𝐺 𝑧 =
𝑧3
Step Response
1
0.9
0.8
0.7
If all poles are at the origin, the response
0.6
reaches steady state after a number of
Amplitude
The D/A acts as a zero order hold (ZOH). The A/D acts as a
sampler.
𝑢 𝑘𝑇 𝑦 𝑘𝑇
ZOH 𝐺 𝑠
T
𝒀𝒛
In order to find the transfer function 𝑼 = ℤ 𝑮𝒁𝑶𝑯 𝒔 𝑮 𝒔 ,
𝒛
we have to determine 𝐺𝑍𝑂𝐻 𝑠 .
Transfer Function of the Zero Order Hold
-T T 2T 3T
𝟏 𝟏
The Laplace transform of 𝑔𝑍𝑂𝐻 𝑡 is 𝑮𝒁𝑶𝑯 𝒔 = − 𝒆−𝑻𝑺
𝒔 𝒔
Graphical Calculation of the time response for a unit
step input
𝑒 𝑒∗ 𝑢 𝑦
1
𝑟 𝐺𝑍𝑂𝐻 𝑠
𝑇 𝑇𝑠
−
𝑟 𝑒 𝑒∗
1 1 1
T 2T 3T T 2T 3T T 2T 3T
𝑢 𝑦
1 1
T 2T 3T T 2T 3T
Transfer function of a sampled data
system
𝑢 𝑘𝑇 𝑦 𝑘𝑇
D/A 𝐺 𝑠 A/D
𝑢 𝑘𝑇 𝑦 𝑘𝑇
ZOH 𝐺 𝑠
T
𝑌 𝑧
The transfer function 𝑈 = ℤ 𝐺𝑍𝑂𝐻 𝑠 𝐺 𝑠 is given by
𝑧
𝟏 − 𝒆−𝑻𝒔 𝑮 𝒔
𝑮 𝒛 =ℤ 𝑮 𝒔 = 𝟏 − 𝒛−𝟏 ℤ
𝒔 𝒔
𝑎
Consider the system 𝐺 𝑠 = 𝑒 −𝜆𝑠
𝑠+𝑎
Let 𝜆 = 𝑙𝑇 − 𝑚𝑇 where 𝑙 is an integer and 0 < 𝑚 < 1.
𝜆 is called the time delay of the system.
We can write
0.1
𝜆 = 8 × 0.2 − × 0.2 = 8𝑇 − 0.5𝑇, 𝑖. 𝑒 𝑙 = 8 𝑎𝑛𝑑 𝑚 = 0.5
0.2
−𝜆𝑠 𝑎
Recall: 𝐺 𝑠 = 𝑒 ,𝜆 = 𝑙𝑇 − 𝑚𝑇
𝑠+𝑎
𝑧+𝛼
We conclude that 𝐺 𝑧 = 1 − 𝑒 −𝑎𝑚𝑇
𝑧 𝑙 𝑧−𝑒 −𝑎𝑇
𝑒 −𝑎𝑚𝑇 −𝑒 −𝑎𝑇
where 𝛼 =
1−𝑒 −𝑎𝑚𝑇
The original system has a pole at 𝑠 = −𝑎. It is mapped to
𝑧 = 𝑒 −𝑎𝑇 , i.e. it follows the relation 𝑧 = 𝑒 𝑠𝑇 .
𝐶 𝑧 𝐺 𝑧
𝐶 𝑧 𝐺 𝑠
Block diagrams with all blocks are in z-domain
Series blocks 𝐶 𝑧 𝐺 𝑧
𝑈 𝑧 𝑌=𝐶 𝑧 𝐺 𝑧 𝑈
Parallel blocks 𝐶 𝑧
+
𝑈 𝑧
𝑌 = 𝐶 𝑧 +𝐺 𝑧 𝑈
+
𝐺 𝑧
Feedback systems 𝐺
𝑅 𝑧 𝐺 𝑧 𝑌 𝑧 = 𝑈
- 1 + 𝐺𝐻
𝐻 𝑧
Basic rules to discretize continuous-time
systems
T T T
𝑈 𝑠 𝑌∗ 𝑠
𝐻1 𝑠 𝐻2 𝑠
𝑈∗ 𝑠 𝑋 𝑠 𝑋∗ 𝑠 𝑌 𝑠
∗ ∗ ∗
We can write 𝑌 𝑠 = 𝐻2 𝑠 𝑋 𝑠
∗ ∗ ∗ ∗
⟹ 𝑌 𝑠 = 𝐻2 𝑠 𝐻1 𝑠 𝑈 𝑠
∗
Note that 𝐻1 𝑠 𝑈 𝑠 ∗
= 𝐻1∗ 𝑠 𝑈∗ 𝑠 = 𝐻1 𝑧 𝑈 𝑧
∗
∗
Hence, 𝑌 𝑠 = 𝐻2 𝑠 𝐻1∗ ∗
𝑠 𝑈 𝑠 = 𝐻2∗ 𝑠 𝐻1∗ 𝑠 𝑈∗ 𝑠
i.e. 𝑌 𝑧 = 𝐻1 𝑧 𝐻2 𝑧 𝑈 𝑧
Basic rules to discretize continuous-time
systems
T T
𝑈 𝑠 𝑌∗ 𝑠
𝐻1 𝑠 𝐻2 𝑠
𝑈∗ 𝑠 𝑋 𝑠 𝑌 𝑠
∗ ∗ ∗
Note that 𝑌 𝑠 = 𝐻1 𝑠 𝐻2 𝑠 𝑈 𝑠
∗ ∗
This leads to 𝑌 𝑠 = 𝐻1 𝑠 𝐻2 𝑠 𝑈∗ 𝑠
i.e. 𝑌 𝑧 = ℤ 𝐻1 𝑠 𝐻2 𝑠 𝑈 𝑧
An important note: ℤ 𝑯𝟏 𝒔 𝑯𝟐 𝒔 ≠ 𝑯𝟏 𝒛 𝑯𝟐 𝒛
Example 1 G(s)
-V +V
A/D Computer D/A
R -
C(z)=1
Mechanical load
H(s)
Power Amplifier motor
Filter
Y: position
The equivalent block diagram
R Y
G(s)
-
𝑌 𝑧 =?
H(s)
Example 1 (contd.)
R G(s)
Y
- E
H(s)