Con SL 2 P3
Con SL 2 P3
• Proportional Controller
• Controllers Categorization
M. Elnaggar
Root Locus with General Controller
• Consider closed loop system as, In general,
𝑠 + 𝑧1 …
𝐺 𝑠 = 𝑘𝑔
𝑠 + 𝑝1 𝑠 + 𝑝2 …
𝑟(𝑡) 𝑢(𝑡) 𝑦(𝑡)
𝑠 + 𝑧ℎ1 … +
𝐶(𝑠) 𝐺(𝑠)
𝐻 𝑠 = 𝑘ℎ −
𝑠 + 𝑝ℎ1 …
𝑠 + 𝑧𝑐1 … 𝐻(𝑠)
𝐶 𝑠 = 𝑘𝑐
𝑠 + 𝑝𝑐1 …
• The closed loop system is given by,
𝐶 𝑠 𝐺 𝑠
𝐶𝑙𝑜𝑠𝑒𝑑 𝐿𝑜𝑜𝑝 𝑇𝐹 =
1 + 𝐶 𝑠 𝐺 𝑠 𝐻(𝑠)
• To use the Root Locus as an analysis and design tool, the c/cs is given as,
𝑠 + 𝑧1 𝑠 + 𝑧ℎ1 𝑠 + 𝑧𝑐1 …
1 + 𝐶 𝐺 𝑠 𝐻 𝑠 = 0 → 1 + 𝑘𝑔 𝑘ℎ 𝑘𝑐 =0
𝑠 + 𝑝1 𝑠 + 𝑝2 𝑠 + 𝑝ℎ1 𝑠 + 𝑝𝑐1 …
The Root Locus Gain
M. Elnaggar 3
Proportional Controller
• In case of proportional controller,
𝑈(𝑠)
𝐶 𝑠 = = 𝑘𝑐
𝐸(𝑠)
𝑒(𝑡)
𝑟(𝑡) 𝑢(𝑡) 𝑦(𝑡)
𝑢 𝑡 = 𝑘𝑐 𝑒 𝑡 𝐶 𝑠 = 𝑘𝑐 𝐺(𝑠)
+
−
• The system closed loop,
𝐶 𝑠 𝐺 𝑠 𝐻(𝑠)
𝐶𝑙𝑜𝑠𝑒𝑑 𝐿𝑜𝑜𝑝 𝑇𝐹 =
1 + 𝐶 𝑠 𝐺 𝑠 𝐻(𝑠)
𝐶/𝐶𝑆 𝑒𝑞𝑢𝑎𝑡𝑖𝑜𝑛 ∶ 1 + 𝐶 𝐺 𝑠 𝐻 𝑠 = 0
𝑜𝑝𝑒𝑛 𝑙𝑜𝑜𝑝 𝑧𝑒𝑟𝑜𝑠
𝐶/𝐶𝑆 𝑒𝑞𝑢𝑎𝑡𝑖𝑜𝑛 ∶ 1 + 𝑘𝑔 𝑘ℎ 𝑘𝑐 =0
𝑜𝑝𝑒𝑛 𝑙𝑜𝑜𝑝 𝑝𝑜𝑙𝑒𝑠
• The proportional controller is used to obtain,
– Given steady state performance. Increasing 𝑘𝑐 decreases the steady
state error
– A specific transient performance if the corresponding root location
located on the root locus.
M. Elnaggar 4
Proportional Controller Example
• Consider the closed loop system,
10 3
𝐺 𝑠 = 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+3
The system is controlled via proportional
controller 𝑘𝑐
𝑘
1+ =0
𝑠 + 1 𝑠 + 2 (𝑠 + 3)
• System poles,
𝑠 = −1 , −2 , −3
M. Elnaggar 5
Proportional Controller Example
• Real Segment : from −1 to −2 and from
− 3 to −∞ .
• Asymptotes:
𝑞 = 𝑛 −𝑚 = 3 −0= 3
−1 −2 −3
𝜎𝑎 = = −2
3
2𝑖+1 𝜋 𝜋 5𝜋
𝜃𝑎 = = , 𝜋,
3 3 3 X X X
• Break point:
𝑑𝐺𝐻 𝑑 1
= =0
𝑑𝑠 𝑑𝑠 𝑠 3 + 6 𝑠 2 + 11 𝑠 + 6
3𝑠 2 + 12𝑠 + 11 = 0
𝑠 =− −1.42, −2.577
M. Elnaggar 6
Proportional Controller Example
• Intersection with the imaginary axis,
𝑘
1+ = 0
𝑠 + 1 𝑠 + 2 (𝑠 + 3)
𝑠 3 + 6 𝑠 2 + 11 𝑠 + 6 + 𝑘 = 0
𝑆3 1 11
𝑆2 6 6+𝑘 X X
X
𝑆1 60−𝑘
6
𝑆0 6 + 𝑘
M. Elnaggar 7
Proportional Controller Example
What is the range of 𝑘𝑐 for stable system ?
From Routh Table the system is stable for ,
𝑘 < 60
𝑘𝑐 𝑘𝑔 𝑘ℎ < 60 𝑘𝑐 < 2
−1.13 + 𝐽1.13 𝑘1
If exist, What is the value of 𝑘𝑐 corresponds for 5 %
O.S, What is the corresponding steady state error ?
−𝜋𝜁 X X X
𝑂. 𝑆 = 5% = 𝑒 1−𝜁 2 𝜁 = 0.7 𝜃 = 45𝑜
ς 𝐿𝑝
𝑘1 = = 3.54 𝑘𝑐 = 0.118
ς 𝐿𝑧
𝐸𝑟𝑟𝑜𝑟 𝑠𝑡𝑒𝑎𝑑𝑦 𝑠𝑡𝑎𝑡𝑒 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡 ∶ 𝑘𝑝 = lim 𝑘𝑐 𝐺(𝑠) = 0.59
𝑠→0
1
𝑒𝑠𝑠 = = 0.6289 = 62.89 %
1 + 𝑘𝑝
M. Elnaggar 8
Proportional Controller Example
If exist, What is the value of 𝑘𝑐 corresponds for 5 %
O.S and 2 second settling time?
−𝜋𝜁
1−𝜁 2
−2 + 𝐽2
𝑂. 𝑆 = 5% = 𝑒 𝜁 = 0.707 𝜃= 45𝑜
4
𝑇𝑠 = 𝑅𝑒𝑎𝑙 𝑝𝑎𝑟𝑡 = 2
𝑅𝑒𝑎𝑙 𝑝𝑎𝑟𝑡
The desired operating point is not located on the root
locus. There is not 𝑘𝑐 exist to operate at it.
X X X
If exist, What is the value of 𝑘𝑐 for 2% steady state
error?
1
𝑒𝑠𝑠 = = 0.02 𝑘𝑝 = 49
1 + 𝑘𝑝
𝑘𝑝 = lim 𝑘𝑐 𝐺(𝑠) = 49 𝑘𝑐 = 9.8
𝑠→0
However, this gain results in unstable system. There
is not 𝑘𝑐 exist to achieve this low error.
M. Elnaggar 9
Controllers Categorization
• Generally, the cascaded controllers can be categorized based on the
objective of the controller. The different categories are,
𝐻(𝑠)
– Improve Steady State Performance
• Lag Compensator
• PI Controller
M. Elnaggar 10
Lag Compensator
• Consider the closed loop system with unity dcgain feedback.
• The lag compensator objective is to reduce the closed loop system steady
state error. It is achievable by increasing the steady state constant.
𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
• The lag compensator is given as, +
𝐶(𝑠) 𝐺(𝑠)
−
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐 𝐻 𝑠 =1
𝑠 + 𝑃𝑐
• The steady state constant is modified by adding the compensator as
(assuming the system is type zero),
𝑘𝑝 𝑢𝑛 = lim 𝐺 𝑠
𝑠→0
𝑘𝑝 𝑐𝑜𝑚 = lim 𝐶 𝑠 𝐺 𝑠
𝑠→0
M. Elnaggar 11
Lag Compensator
• As the system is considered type zero, Then the steady state constant ,
𝑘𝑝 𝑐𝑜𝑚 = 𝑘𝑝 𝑢𝑛 lim 𝐶 𝑠
𝑠→0
𝑘𝑝 𝑐𝑜𝑚 𝑍𝑐
= 𝑘𝑐
𝑘𝑝 𝑢𝑛 𝑃𝑐
M. Elnaggar 12
Lag Compensator Summary
• Lag compensator,
𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
𝑠 + 𝑍𝑐 𝐶(𝑠) 𝐺(𝑠)
𝐶 𝑠 = 𝑘𝑐 +
𝑠 + 𝑃𝑐 −
𝑍𝑐
𝑘𝑐 ≈ 1 , = 𝛼 , 𝛼≫1 , 𝑍𝑐 > 𝑃𝑐 𝐻 𝑠 =1
𝑃𝑐
0.035 𝜎 2 + 𝜔2 O X
𝑃𝑐 = 𝑍𝑐 𝑃𝑐
𝜔 𝛼−1
M. Elnaggar 13
Lag Compensator Design Steps
• To design a lag compensator via root
locus, 𝑒(𝑡) 𝑢(𝑡)
𝑟(𝑡) 𝑦(𝑡)
1- Determine the operating transient +
𝐶(𝑠) 𝐺(𝑠)
−
point on the uncompensated root locus,
𝑆𝑜𝑝 . 𝐻 𝑠 =1
2- Find the steady state constant of the
system.
3- Determine the gain of the controller 𝑆𝑜𝑝 = 𝜎 + 𝐽𝜔
𝛼 that is required to meet the system
steady state desired.
4- Calculate the compensator pole
location and the zero location as,
0.035 𝜎 2 + 𝜔2 𝑍𝑐
𝑃𝑐 = , = 𝛼 O X
𝜔 𝛼−1 𝑃𝑐 𝑍𝑐 𝑃𝑐
M. Elnaggar 14
PI Controller
• PI (proportional integral) controller is considered as a special condition of
the Lag compensator. Its objective is to reduce the steady state error to
zero. i.e. achieve perfect tracking for the input signal.
• Most of industrial applications use PI controller.
M. Elnaggar 15
PI Controller
• PI Controller is given as, 𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
+
𝐶(𝑠) 𝐺(𝑠)
−
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐
𝑠 𝐻 𝑠 =1
• The control signal can be expressed as,
𝑡
𝑈(𝑠) 𝑠 + 𝑍𝑐
= 𝑘𝑐 𝑢 𝑡 = 𝑘𝑐 𝑒 𝑡 + 𝑘𝑐 𝑍𝑐 න 𝑒 𝜏 𝑑𝜏
𝐸(𝑆) 𝑠 0
M. Elnaggar 16
PI Controller
• PI Controller is given as, 𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
+
𝐶(𝑠) 𝐺(𝑠)
−
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐
𝑠 𝐻 𝑠 =1
𝑡
𝑢 𝑡 = 𝑘𝑐 𝑒 𝑡 + 𝑘𝑐 𝑍𝑐 න 𝑒 𝜏 𝑑𝜏
0
• PI controller advantage:
– Eliminate the error steady state by introducing an integrator in the
feedforward.
• PI controller disadvantages:
– Adding a pole at the origin deteriorates the transient performance. It is
minimized by good tuning of the integral term gain.
– Windup Phenomena
M. Elnaggar 17
Lag Compensator - Example
• Consider the closed loop system,
𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
+
𝐶(𝑠) 𝐺(𝑠)
𝑘𝑔 −
𝐺 𝑠 =
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝐻(𝑠)
𝐻 𝑠 =1
The system operates at damping ratio of 0.167. It is required to obtain the
system gain and design a cascading controller 𝐶 𝑠 to reduce the steady
state error to its 10% of its value and keep the same transient performance.
– Poles at −1 , −2 , −10
– No zeros
M. Elnaggar 18
Lag Compensator - Example
• Real Segment : from −1 to −2 and from −10 to −∞ .
• Asymptotes:
𝑞 =𝑛 −𝑚 =3 −0=3
−1 −2 −10
𝜎𝑎 = = −4.333
3
2𝑖+1 𝜋 𝜋 5𝜋
𝜃𝑎 = = , 𝜋,
3 3 3
X X X
• Break Point:
𝑑𝐺𝐻 𝑑 1
= =0
𝑑𝑠 𝑑𝑠 𝑠 3 + 13 𝑠 2 + 32 𝑠 + 20
3𝑠 2 + 26𝑠 + 32 = 0
𝑠 = −1.4853, −7.1813
M. Elnaggar 19
Lag Compensator - Example
• Intersection with the imaginary axis,
𝑘
1+ =0
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝑠 3 + 13𝑠 2 + 32𝑠 + 20 + 𝑘 = 0
𝑆3 1 32
𝑆 2 13 20 + 𝑘
X X X
𝑆 1 396−𝑘
13
𝑆 0 20 + 𝑘
M. Elnaggar 20
Lag Compensator - Example
• The system operates at damping 0.167
cos 𝜃 = 𝜁 = 0.167
𝜃 = 80𝑜
𝑠𝑜𝑝
• The intersection point is,
𝑠𝑜𝑝 = −0.694 + 𝐽3.926
M. Elnaggar 21
Lag Compensator - Example
• The compensated system steady state,
1
𝑒𝑠𝑠 𝑐𝑜𝑚 = = 0.1 ∗ 0.1083
1 + 𝑘𝑝 𝑐𝑜𝑚 𝑠𝑜𝑝 = −0.694 + 𝐽3.926
𝑘𝑝 𝑐𝑜𝑚 = 91.3
𝑍𝑐 = 𝛼 ∗ 𝑃𝑐 = 0.1557
ς 𝐿𝑝 𝐿𝑃𝑐
𝑘𝑐 𝑘𝑔 = ς 𝐿𝑧
𝑘𝑐 = ≈1
𝐿𝑧𝑐
M. Elnaggar 22
Lag Compensator - Example
Lag Compensated
𝐻 𝑠 =1
Uncompensated
164.6
𝐺 𝑠 =
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝑠 + 0.1557
𝐶 𝑠 =
𝑠 + 0.014
M. Elnaggar 23
Lag Compensator - Example
Lag Compensated 𝐻 𝑠 =1
Uncompensated
164.6
𝐺 𝑠 =
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝑠 + 0.4672
𝐶 𝑠 =
𝑠 + 0.04212
M. Elnaggar 24
Lag Compensator - Example
164.6
𝐺 𝑠 =
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝑠 + 0.05191
𝐶 𝑠 =
𝑠 + 0.00468
M. Elnaggar 25
Lag Compensator - Example
• Design PI controller to eliminate the steady
state error.
• The controller, 𝑠𝑜𝑝 = −0.694 + 𝐽3.926
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐
𝑠
• Let, 𝑃𝑐 = 0
• Get angle,
X X X
∠ 𝑠𝑜𝑝 + 𝑃𝑐 = 𝜃𝑃𝑐 = 100𝑜
• Then,
∠ 𝑠𝑜𝑝 + 𝑍𝑐 = 𝑍𝑃𝑐 = 100 − 2 = 98𝑜
𝑍𝑐 = 0.14
• And, 𝑘𝑐 = 𝐿𝑧𝑐 /𝐿𝑃𝑐 ≈ 1
M. Elnaggar 26
Lag Compensator - Example
𝐻 𝑠 =1
164.6
𝐺 𝑠 =
𝑠 + 1 𝑠 + 2 𝑠 + 10
𝑠 + 0.14
𝐶 𝑠 =
𝑠
M. Elnaggar 27
PD Controller
• PD (proportional derivative) controller objective is to improve the system
transient performance by reducing the system overshot or settling time. It is
achievable by changing the system root loci to pass through the required
design specifications.
𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
• PD Controller is given as, +
𝐶(𝑠) 𝐺(𝑠)
−
𝐶 𝑠 = 𝑘𝑐 𝑠 + 𝑍𝑐
𝐻(𝑠)
M. Elnaggar 28
PD Controller Effect
• Considering a system with open loop transfer function,
1
𝐺 𝑠 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+5
M. Elnaggar 29
PD Controller Effect
• Considering a system with open loop transfer function,
1
𝐺 𝑠 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+5
M. Elnaggar 30
PD Controller Effect
• Considering a system with open loop transfer function,
1
𝐺 𝑠 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+5
M. Elnaggar 31
PD Controller Effect
• Considering a system with open loop transfer function,
1
𝐺 𝑠 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+5
M. Elnaggar 32
PD Controller Effect
𝑍𝑐 = −2
𝑟(𝑡) 𝑢(𝑡) 𝑦(𝑡)
𝑍𝑐 = −4 𝐶(𝑠) 𝐺(𝑠)
+
−
𝑍𝑐 = −4
𝐻(𝑠)
Uncompensated
1
𝐺 𝑠 𝐻 𝑠 =
𝑠+1 𝑠+2 𝑠+5
𝐶 𝑠 = 𝑘𝑐 𝑠 + 𝑍𝑐
M. Elnaggar 33
PD Controller Disadvantages
1- Impulsive Effect 𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
+
𝑃𝐷 𝐺(𝑠)
As, −
𝑑𝑒 𝑡 𝑏(𝑡)
𝑢 𝑡 = 𝑘𝑐 𝑍𝑐 𝑒 𝑡 + 𝑘𝑐 𝐻(𝑠)
𝑑𝑡
𝑑 𝑟 𝑡 −𝑏 𝑡
𝑢 𝑡 = 𝑘𝑐 𝑍𝑐 𝑟 𝑡 − 𝑏 𝑡 + 𝑘𝑐
𝑑𝑡
In case of step reference signal, the derivative of the step at time 𝑡 = 0
results in impulse effect on the control signal . i.e. 𝑢 0 = ∞
-- Solution:
It can be solved by moving the 𝑟(𝑡) 𝑢(𝑡) 𝑦(𝑡)
𝐺(𝑠)
controller to the feedback to have +
−
its effect on the closed loop
transient and avoid direct derivation 𝑏(𝑡)
𝑃𝐷 𝐻(𝑠)
of the input signal.
M. Elnaggar 34
PD Controller Disadvantages
2- Noise Amplification 𝑟(𝑡) 𝑒(𝑡) 𝑢(𝑡) 𝑦(𝑡)
As, +
𝑃𝐷 𝐺(𝑠)
−
𝑑 𝑟 𝑡 −𝑏 𝑡
𝑢 𝑡 = 𝑘𝑐 𝑍𝑐 𝑟 𝑡 − 𝑏 𝑡 + 𝑘𝑐 𝑏(𝑡)
𝐻(𝑠)
𝑑𝑡
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐 𝑎𝑛𝑑 𝑍𝑐 < 𝑃𝑐
𝑠 + 𝑃𝑐
𝑆𝑑𝑒𝑠𝑖𝑒𝑑
• The compensator added angle is,
𝜃𝑐 = 𝜃𝑧 𝑐 − 𝜃𝑝 𝑐
– Poles at 0, −2
– No zeros
M. Elnaggar 38
Lead Compensator - Example
• Real Segment : from 0 to −2
• Asymptotes:
𝑞 = 𝑛 −𝑚 = 3 −0= 2
0 −2
𝜎𝑎 = = −1
2
2𝑖+1 𝜋 𝜋 3𝜋
𝜃𝑎 = = ,
2 2 2
• Break Point: X X
𝑝2 𝑝1
𝑑𝐺𝐻 𝑑 1
= =0
𝑑𝑠 𝑑𝑠 𝑠 2 + 2𝑠
2𝑠 + 2 = 0
𝑠 = −1
M. Elnaggar 39
Lead Compensator - Example
• The system operates at damping 0.707
cos 𝜃 = 𝜁 = 0.707 𝑠𝑑
𝜃 = 45𝑜
4
𝑇𝑠 = = 1 𝑠𝑒𝑐
𝜎
𝑠𝑑 = −4 + 𝐽 4
M. Elnaggar 40
Lead Compensator - Example
• The lead compensator is given by,
𝑠𝑑
𝑠 + 𝑍𝑐
𝐶 𝑠 = 𝑘𝑐
𝑠 + 𝑃𝑐
• Let, 𝑍𝑐 = −4
• Applying the angle condition, 𝑠𝑜𝑝
𝜃𝑝1 + 𝜃𝑝1 + 𝜃𝑝𝑐 − 𝜃𝑧𝑐 = 180𝑜
𝜃𝑝1 = 180 − tan−1 4/4 = 135𝑜 𝜃𝑃𝑐 𝜃𝑧𝑐
X O X X
𝜃𝑝2 = 180 − tan−1 4/2 = 116.5𝑜 𝑃𝑐 𝑍𝑐 𝑝2 𝑝1
𝜃𝑧𝑐 = 90
• So,
4
𝜃𝑝𝑐 = tan−1 = 18.5 𝑃𝑐 = 16
𝑝𝑐 − 4
M. Elnaggar 41
Lead Compensator - Example
• The gain is calculated as,
ς 𝐿𝑝
𝑘 = 𝑘𝑔 𝑘𝑐 𝑘𝐻 = = 78.6
ς 𝐿𝑧
𝑘𝑐 = 78.6/2 = 39.7
• Then the lead compensator is,
𝑠+4
𝐶 𝑠 = 39.7
𝑠 + 16
• The compensated open loop,
𝑠+4
𝐶 𝑠 𝐺 𝑠 = 78.6
𝑠(𝑠 + 2)(𝑠 + 16)
It becomes a third order system.
𝑠+2
• Remark that, another solution is, 𝐶 𝑠 = 16 𝑠+8
M. Elnaggar 42
Lead Compensator - Example
2
𝐶 𝑠 = 16 𝑠 + 2 /(𝑠 + 8) 𝐺 𝑠 =
𝑠 𝑠+2
𝐻 𝑠 =1
M. Elnaggar 43
Lead Compensator - Example
• Same problem can be solved using PD controller. The controller is given by,
𝐶 𝑠 = 𝑘𝑐 𝑠 + 𝑍𝑐
𝑠𝑑
M. Elnaggar 44
Lead Compensator - Example
𝐶 𝑠 = 3 𝑠 + 5.33
2
𝐺 𝑠 =
𝑠 𝑠+2
𝐻 𝑠 =1
M. Elnaggar 45
Lead Compensator vs PD Controller
𝑟(𝑡) 𝑢(𝑡) 1 𝑦(𝑡)
𝐶(𝑠)
+
−
𝑠 𝑠+2
𝑛 𝑡 = 0.001 sin(100 𝑡)
𝐶 𝑠 = 3 𝑠 + 5.33
𝑠+4
𝐶 𝑠 = 39.4
𝑠 + 16
M. Elnaggar 46
Lead-Lag Compensator
• Lead-Lag compensators are used to improve both transient and steady
state performance for a given system.
• Lead compensator is used to,
– Improve the transient performance.
– There is no guarantee about the steady state performance.
M. Elnaggar 47
Lead-Lag Compensator – Design Steps
• To design a Lead-Lag compensator via Root Locus,
1- Analyze the uncompensated system.
2- Design a lead compensator to achieve the required transient
performance. i.e determine the pole/zero locations and the compensator
gain.
𝑘𝑐 𝑠 + 𝑧𝑐1
𝐶𝑙𝑒𝑎𝑑 𝑠 =
𝑠 + 𝑃𝑐1
3- Consider the open loop system and the Lead cascaded as a new
uncompensated system. Design lag controller for this system to achieve the
required steady state performance. i.e determine the pole/zero locations.
𝑠 + 𝑧𝑐2
𝐶𝑃𝐼 𝑠 =
𝑠 + 𝑃𝑐2
𝑟(𝑡) 𝑢 𝑦(𝑡)
4- The compensator is given as,
+
𝐿𝑎𝑔 𝐿𝑒𝑎𝑑 𝐺(𝑠)
−
𝑠 + 𝑧𝑐1 𝑠 + 𝑧𝑐2
𝐶𝑃𝐼𝐷 𝑠 = 𝑘𝑐
𝑠 + 𝑃𝑐1 𝑠 + 𝑃𝑐2 𝐻(𝑠)
M. Elnaggar 48
PID Controller
• Similar to lead-lag compensator, PID controller is the combination of PI and
PD controllers.
• PID stands for proportional integral derivative controller.
• It is the most common used controller in industry as it can achieve the
required transient performance with perfect reference tracking for most of
the applications.
𝐾𝑖𝑛𝑡
• PID controller is given as,
𝑠
𝑠 + 𝑧𝑐1 𝑠 + 𝑧𝑐2
𝐶𝑃𝐼𝐷 𝑠 = 𝑘𝑐 𝐾𝑑𝑖𝑟 𝑠
𝑠
𝑑𝑒 𝑡 𝑟(𝑡)
𝑘𝑝𝑟𝑜𝑝
𝑢 𝑦(𝑡)
𝑢 𝑡 = 𝑘𝑝𝑟𝑜𝑝 𝑒 𝑡 + 𝑘𝑑𝑒𝑟 +
𝐺(𝑠)
𝑑𝑡 −
𝑡
+𝑘𝑖𝑛𝑡 න 𝑒 𝜏 𝑑𝜏
0 𝐻(𝑠)
M. Elnaggar 49
PID Controller – Design Steps
• To design a PID controller via Root Locus,
1- Analyze the uncompensated system.
2- Design a PD controller to achieve the required transient performance.
𝐶𝑃𝐷 𝑠 = 𝑘𝑐 𝑠 + 𝑧𝑐1
3- Consider the open loop system and the PD cascaded as a new
uncompensated system. Design PI controller for this system to achieve the
required steady state performance.
𝑠 + 𝑧𝑐2
𝐶𝑃𝐼 𝑠 =
𝑠
4- For implementation, determine the proportional, derivative, and integral
gains.
𝑟(𝑡) 𝑢 𝑦(𝑡)
𝑠 + 𝑧𝑐1 𝑠 + 𝑧𝑐2 𝐶𝑃𝐼 (𝑠) 𝐶𝑃𝐷 (𝑠) 𝐺(𝑠)
𝐶𝑃𝐼𝐷 𝑠 = 𝑘𝑐 +
𝑠 −
𝑘𝑖𝑛𝑡
𝐶𝑃𝐼𝐷 𝑠 = 𝑘𝑝𝑟𝑜𝑝 + 𝑘𝑑𝑒𝑟 𝑠 + 𝐻(𝑠)
𝑠
M. Elnaggar 50
Example
• Consider the closed loop system,
𝑟(𝑡) 𝑢(𝑡) 𝑦(𝑡)
+
𝐶(𝑠) 𝐺(𝑠)
𝑠+8 −
𝐺 𝑠 =
𝑠 + 3 𝑠 + 6 𝑠 + 10
𝐻(𝑠)
𝐻 𝑠 =1
• It is required to design a compensator to achieve,
- overshot of 20 %
- Peak time of 0.2 second
- zero error steady state for step input.
• So,
15.7
𝜃𝑧𝑐1 = 18.160 = tan−1 𝑍𝑐1 = 55.95
𝑍𝑐1 − 8.1
• The compensator gain,
ς 𝐿𝑝 𝐿𝑝1 𝐿𝑝2 𝐿𝑝3
𝑘𝑐 = = = 5.33
ς 𝐿𝑧 𝐿𝑧1 𝐿𝑧𝑐1
M. Elnaggar 52
Lead-Lag Compensator - Example
• The PD controller is,
𝐶𝑃𝐷 𝑠 = 𝑘𝑐 𝑠 + 𝑧𝑐1 = 5.33 𝑠 + 55.95
• Second, Design a PI controller for the open loop system,
5.33 𝑠 + 8 𝑠 + 55.95
𝐶𝑃𝐷 𝑠 𝐺 𝑠 =
𝑠 + 3 𝑠 + 6 𝑠 + 10
𝜃𝑝𝑐 − 𝜃𝑧𝑐2 = 2𝑜
𝜃𝑝𝑐 = ∠ 𝑠𝑑 + 0 = 117𝑜
15.7
𝜃𝑧𝑐2 = 1150 = 180 − tan−1 𝑍𝑐1 = 0.7
8.1 − 𝑍𝑐2
M. Elnaggar 53
Lead-Lag Compensator - Example
𝑃𝐷
𝐻(𝑠)
𝑃𝑟𝑜𝑝 𝐶𝑜𝑛𝑡
𝑠+8
𝐺 𝑠 =
𝑠 + 3 𝑠 + 6 𝑠 + 10
𝐻 𝑠 =1
M. Elnaggar 54
Controllers Design Summary
M. Elnaggar 55
Controllers Design Summary
1- Zero location change the root
locus shape.
2- Gain is selected based on new
PD
𝑘𝑐 𝑠 + 𝑧𝑐 root locus.
Controller
3- causes impulsive effect with step
input
4- Causes noise amplification
Improve
Transient
Performance
1- Zero location to cancel slowest
𝑠 + 𝑧𝑐 stable pole.
Lead 𝑘𝑐
𝑠 + 𝑝𝑐 2- zero is smaller than pole
Compensator
3- considered as a practical version
of PD controller to reduce noise.
M. Elnaggar 56