5 Introduction to Control
5 Introduction to Control
1
Module 5: Introduction to control – PID
Control
2
Two-Position or On–Off Control Action
𝑢 𝑡 = 𝑈1 , 𝑓𝑜𝑟 𝑒 𝑡 > 0
𝑢 𝑡 = 𝑈2 , 𝑓𝑜𝑟 𝑒 𝑡 < 0
3
Two-Position or On–Off Control Action
5
Proportional Control (P control)
𝑢 𝑡 = 𝐾𝑝 𝑒 𝑡 → 𝑈 𝑠 = 𝐾𝑝 𝐸(𝑠)
R(s) 2 Y (s)
KP
- s +1
5
s+5
6
Proportional Control
𝑢 𝑡 = 𝐾𝑝 𝑒 𝑡 → 𝑈 𝑠 = 𝐾𝑝 𝐸(𝑠)
R(s) 2 Y (s)
KP
- s +1
5
s+5
7
Integral Control
𝑡
𝐸(𝑠)
𝑢 𝑡 = 𝐾𝐼 න 𝑒 𝑡 𝑑𝑡 → 𝑈 𝑠 = 𝐾𝐼
𝑠
0
1 1 Slope
Slope =1 𝐾
K𝑃D K p
0 0
0 0
0 0 t t 0 0 t
𝑡
1
𝑢 𝑡 = 𝐾𝑐 𝑒 𝑡 + න 𝑒 𝑡 𝑑𝑡
𝑇𝐼
0
1
+
𝑒(𝑡) 𝑢(𝑡)
𝐾𝐶
+
1
න
𝑇𝐼
9
Derivative Control
𝑑𝑒(𝑡)
𝑢 𝑡 = 𝐾𝐷 → 𝑈 𝑠 = 𝐾𝐷 𝑠𝐸(𝑠)
𝑑𝑡
• Anticipate the future behavior of the error signal by considering its rate of
change → tend to improve the dynamic response of the controlled variable
Slope = KP
Slope =1 KD
0 0
0 t 0
10
Derivative Control
𝑑𝑒(𝑡)
𝑢 𝑡 = 𝐾𝐶 𝑒 𝑡 + 𝑇𝐷 ≈ 𝐾𝐶 𝑒 𝑡 + 𝑇𝐷
𝑑𝑡
1
+
𝑒(𝑡) 𝑒(𝑡
Ƹ + 𝑇𝐷 )
+
𝑑(. )
𝑇𝐷
𝑑𝑡
𝐾𝐶 𝑇𝐷 𝑠
𝑈 𝑠 = 𝐸 𝑠 + 𝐾𝐶 𝐸(𝑠)
𝑇𝐹𝐷 𝑠 + 1
• In practice, it is recommended to filter the variable that is
differentiated.
• Most often, a first order filter is used
13
PID control 𝑆𝑃
1
𝐶 𝑠 = 𝐾𝑃 + 𝐾𝐼 + 𝐾𝐷 𝑠
𝑠
1 𝐾𝐷 𝑠
𝐶 𝑠 = 𝐾𝑃 + 𝐾𝐼 +
𝑠 𝑇𝐹𝐷 𝑠 + 1
1
𝐶 𝑠 = 𝐾𝑐 1+ + 𝑇𝐷 𝑠
𝑇𝐼 𝑠
1 𝑇𝐷 𝑠
𝐶 𝑠 = 𝐾𝑐 1 + +
𝑇𝐼 𝑠 𝑇𝐹𝐷 𝑠 + 1
1
𝐶 𝑠 = 𝐾𝑐 1+ 1 + 𝑠𝑇𝐷
𝑇𝐼 𝑠
1 𝑇𝐷 𝑠
𝐶 𝑠 = 𝐾𝑐 1+ 1+
𝑇𝐼 𝑠 𝑇𝐹𝐷 𝑠 + 1
14
PID Summary
15
Integral windup
16
Anti windup
17
Anti windup
18
Exercise
• Replace the on-off control by P, PI, PID control and study the effect
of P, I and D components to the rise time, oscillation, overshoot,
settling time, steady-state error
19
Modification of PID control scheme
𝑡
1 𝑑𝑒𝐷
𝐾𝑃 𝑒𝑃 𝑡 + න 𝑒 𝑡 𝑑𝑡 + 𝜏𝐷
𝜏𝐼 𝑑𝑡
0
𝑒𝑃 = 𝛽𝑟 − 𝑦
𝑒 =𝑟−𝑦
𝑒𝐷 = 𝛾𝑟 − 𝑦
• 𝛽 and 𝛾 are small. If they are set to 0, then changes in the set point
don’t have any effect on these terms.
20
Proportional – Integral control
21