Week 8
Week 8
(KON 313E)
Week 8
By playing with the value of K in the root locus, we can change the location of the closed loop poles.
CL Poles: −𝜉𝑤𝑛 ± 𝑤𝑑 𝑗
𝜉=cos(𝛽)
𝑤𝑑 = 𝑤𝑛 1 − 𝜉 2
*In the higher order characteristic equations, the 2nd order dominant poles that provide the desired
behaviour are determined. In order to minimise the effect of other poles, the design can be made by
assigning the remaining poles to 5 times more to the left of the real axis.
K Synthesis (P Controller Design) with Root Locus
With the help of the amplitude condition, the gain value K can be calculated.
Here, the gain value K' of the open loop transfer function itself must also be taken into account.
By changing the value of K in root locus, we can change the location of the closed loop poles.
𝐴 =5,7546 𝐵 𝐶 𝐷
-0.725±2.3j 𝐵 = 4,002 𝐾∗ =
𝐴
𝐶 = 2,6298
𝐷 = 2,4116 𝐾 ∗ = 4,41
𝐾 ∗ = 𝐾 ′𝐾
4,41
𝐾= = 1,1
4
K Synthesis (P Controller Design) with Root Locus
R(s) (𝑠 + 1) C(s)
K It is known that one of the closed loop system poles
+ (𝑠 − 1)
_ is at -0.5. What is the K value that ensures this?
1
(𝑠 + 2)
(𝑠+1) 1
𝑂𝐿𝑇𝐹 = 𝐾 𝐵 𝐴
(𝑠−1) (𝑠+2) 𝐴 𝐵 1,5∗1,5
𝐾= = =4,5
-0,5 𝐶 0,5
x x
-2 -1 1
𝐶
K Synthesis (P Controller Design) with Root Locus
R(s) 1 C(s)
K
+ 𝑠(𝑠 + 5)(𝑠 + 8)
_ 𝑡𝑠 =4→ 4𝜉𝑤𝑛 = 4 → 𝜉𝑤𝑛 =1
ξ𝑤𝑛 = 1
Plot the root locus. Calculate the gain K It is seen on root locus
(P controller) which makes the settling that the required settling
time Ts=4sec. Show on the root locus. time can be satisfied.
0−5−8 −13
𝜎𝑎 = =
3 3
(Calculate by yourself that the point of departure from the real axis is -2)
K Synthesis (P Controller Design) with Root Locus
𝐾
𝑠(𝑠 + 5)(𝑠 + 8)
𝐶𝐿𝑇𝐹 =
R(s) 1 C(s) 𝐾
1+
K 𝑠(𝑠 + 5)(𝑠 + 8)
+ 𝑠(𝑠 + 5)(𝑠 + 8)
_ 𝐾 𝑠 𝑠+5 𝑠+8 +𝐾 =0
𝑃𝑐 𝑠 = 1 + 𝑠(𝑠+5)(𝑠+8)=0
𝑠 3 +13𝑠 2 + 40𝑠 + 𝐾 = 0
𝜉𝑤𝑛 =1
𝑠 2 + 2𝑠 + 𝑤𝑛 2 𝑠 + 𝑝 = 𝑠 3 + 13𝑠 2 + 40𝑠 + 𝐾
𝑝 + 2 = 13 → 𝑝 = 11
2𝑝 +𝑤𝑛 2 =40 → 𝑤𝑛 2 = 18 → 𝑤𝑛 =3 2
𝑝𝑤𝑛 2 = 𝐾 →K=18*11=198
K=198
K Synthesis (P Controller Design) with Root Locus
R(s) 1
K
+ 𝑠(𝑠 + 5)(𝑠 + 8)
_
K= 𝐴 𝐵 𝐶
Compansators
Compansators
Let's say that the pole at point A provides the transient behavior we want.
Although adding a pole to the origin reduces the steady-state error, it prevents
us from reaching the poles that will provide the transient behavior we want.
To avoid this problem, the design can be realized by adding an open loop zero
very close to and to the left of the pole at the origin!
But this does not have to be the only method of PI controller design (You might
prefer to change the original root locus).
PI Controller (Ideal Integral Compensator)
In order to avoid this problem, the design can be realized by adding a zero very close
to and to the left of the origin pole.
PI Controller (Ideal Integral Compensator)
PI Controller
Ki
Kp
PI Controller (Ideal Integral Compensator)
In the given system, calculate the value of the gain K such that the
damping ratio of the closed-loop system is 0.174. Then, instead of
the K gain, design a PI controller that will provide the same
cos 𝛽 = 0.174
damping ratio and cancel the steady-state error for unit step
𝛽≈80
input.
In this case the steady state error for unit step input is:
𝑅(𝑠)
E(s)=1+𝐾𝐺(𝑠) 𝑒𝑠𝑠 = lim 𝑠𝐸(𝑠)
𝑠→0
1 1 1
𝑒𝑠𝑠 = lim 𝑠 = = 0.108
𝑠→0 𝑠1+ 164.4 1 + 8.23
(𝑠 + 1)(𝑠 + 2)(𝑠 + 10)
PI Controller (Ideal Integral Compensator)
In the given system, calculate the value of the gain K such that the
damping ratio of the closed-loop system is 0.174. Then, instead of
the K gain, design a PI controller that will provide the same
damping ratio and cancel the steady-state error for unit step
input.
Desired ξ=0,174
Wn, p1, p2 and K values can be calculated by solving 4 equations with 4 unknowns !
PI Controller (Ideal Integral Compensator)
In the given system, calculate the value of the gain K such that the
damping ratio of the closed-loop system is 0.174. Then, instead of
the K gain, design a PI controller that will provide the same
damping ratio and cancel the steady-state error for unit step
input.
PI Controller (Ideal Integral Compensator)
• This is not the only design method of the PI controller.
• The ‘zero’ to be added can also be placed far from the ‘origin’
according to the closed loop requirements.
• Where to place the zero and the gain value can be calculated by
amplitude and angle condition; or it can be calculated by polynomial
equalization (solution examples with similar approaches are available
in the PD controller)
• The remaining closed-loop pole(s) that break the dominant pole
approximation must also be considered.
PD Controller (Ideal Derivative Compensator)
• It is used to improve the transient behavior of the system.
𝐾𝐷 𝑠
𝐾𝑝
Kp
PD Controller (Ideal Derivative Compensator)
In the system below, which has an overshoot for the The dominant poles where the ξ=0.504 line intersects with the ground
unit step input by 16%, design an ideal derivative axis can be found geometrically by drawing a good root locus
compensator that provides the same amount of (1.205±2.064j).
overshoot and reduces the settling time to 1/3 times. cos 𝛽 = 0.504
𝛽≈59.74
−ln(0.16)
𝜁= =0.504
𝜋2 +𝑙𝑛2 (0.16)
The gain value for these poles can be obtained with the amplitude condition.
It is also possible to obtain it algebraically (polynomial equating) without using root locus.
PD Controller (Ideal Derivative Compensator)
In the system below, which has an overshoot for the
Algebraic method
𝐾
unit step input by 16%, design an ideal derivative 𝑠(𝑠 + 4)(𝑠 + 6)
compensator that provides the same amount of −ln(0.16) 𝐶𝐿𝑇𝐹 =
𝜁= =0.504 𝐾
overshoot and reduces the settling time to 1/3 times. 𝜋2 +𝑙𝑛2 (0.16) 1+
𝑠(𝑠 + 4)(𝑠 + 6)
𝐾 𝐾
= = 3
𝑠(𝑠 + 4)(𝑠 + 6) + 𝐾 𝑠 + 10𝑠 2 + 24𝑠 + 𝐾
Desired Reality
For k=-1 ,
𝜃𝑥 = 68.9 + 86.4 + 120.3 − 180
𝜃𝑥 =95.7
6.19
𝑡𝑎𝑛 180 − 95.7 = a≈3
3.613 − 𝑎 a
PD Controller (Ideal Derivative Compensator)
In the system below, which has an overshoot for the
unit step input by 16%, design an ideal derivative
compensator that provides the same amount of
overshoot and reduces the settling time to 1/3 times.
The gain value at this point can also be calculated from the amplitude condition.
𝐴 = 6.63
𝐴 𝐵 𝐷
B=6.20 𝐾= =47.4
𝐶
PD Controller C=6.22
D=7.17
PD Controller
𝐾(𝑠 + 𝑎)
𝑠(𝑠 + 4)(𝑠 + 6) 𝐾(𝑠 + 𝑎) 𝐾(𝑠 + 𝑎)
𝐶𝐿𝑇𝐹 = = = 3
𝐾(𝑠 + 𝑎) 𝑠(𝑠 + 4)(𝑠 + 6) + 𝐾(𝑠 + 𝑎) 𝑠 + 10𝑠 2 + (24 + K)𝑠 + 𝐾𝑎
1+
𝑠(𝑠 + 4)(𝑠 + 6)
3 Unknowns, 3 Equations
(𝑠 + 𝑝) 𝑠 2 + 2𝜉𝑤𝑛 𝑠 + 𝑤𝑛2 = 𝑠 3 + 10𝑠 2 + (24 + K)𝑠 + 𝐾𝑎
7.22+p=10 P=2.78 (𝑠 + 𝑝) 𝑠 2 + 7.22𝑠 + 51.26 = 𝑠 3 + 10𝑠 2 + (24 + K)𝑠 + 𝐾𝑎
51.26+7.22p=24+K K=47.4
𝑠 3 + 7.22 + 𝑝 𝑠 2 + 51.26 + 7.22p s + 51.26p = 𝑠 3 + 10𝑠 2 + (24 + K)𝑠 + 𝐾𝑎
51.26p=Ka a=3
PD Controller
PID Controller
• It is used to improve both steady-state error and transient behavior
simultaneously.
• It is one of the most popular controller types in real applications.
PID Controller
• It is used to improve both steady-state error and transient behavior
simultaneously.
• It is one of the most populer controller types in real applications.
PID Controller
Different design methods are available. One of the most used ones has 2 stages,
as expressed below.
2) The position of the other zero is found. Total gain of controller is calculated with
the amplitude condition:K(s+a)
Apart from this, solution is also possible by algebraic method by equalizing polynomials!
Note: Instead of placing a zero right near the pole at the origin, the location of that zero can also be obtained by designing.
In this case, the controller's degrees of freedom will increase. Even as the design becomes more complex, more
requirements can be achieved. (For example: in addition to time response requirements, steady state error requirements
can also be provided (Ex: A specific error value for ramp input)
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times. Overshoot: 0.2
ln 0,2
𝜉= = 0.456
𝜋2 + 𝑙𝑛2 0,2
−3 − 6 − 10 − −8
𝜎𝑎 = = −5.5
3−1
(2k + 1)180 𝜋
Actual System: 𝜃𝑎 = 𝜃𝑎1 =
3−1 2
𝜉=0.456 𝜉𝜔𝑛 ∓ 𝜔𝑛 1 − 𝜉 2 = 5,445 ∓ 10,57𝑗 3𝜋
𝜃𝑎2 =
2
𝜉𝜔𝑛 =5.445 Departure(breaking) point can
be calculated
𝜔𝑛 =11.94 𝜎 = −4.6
𝜋 3,14 Note: Even if the root locus is not given, the K value for 20% overshoot and the
𝑇𝜌 = ⇒ 𝑇𝑝 = = 0.296 corresponding closed loop poles can be calculated with an algebraic approach
𝑤𝑛 1 − 𝜉2 11.94 1 − 0, 4562 (polynomial equalization) as we did in the previous examples.
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
2
What is required: 𝑇𝑝𝑁 = 0.296 ⋅ = 0,197
3
(same overshoot) 𝜋
𝑇pN = ⇒ 𝜔𝑛 = 17.91
𝜉=0.456 𝜔𝑛 1 − 𝜉2
Actual System:
−𝜉𝜔𝑛 ∓ 𝑤𝑛 1 − 𝜉 2 𝑗 = −8.17 ∓ 15.94𝑗
𝜉=0.456 𝜉𝜔𝑛 ∓ 𝜔𝑛 1 − 𝜉 2 = 5,445 ∓ 10,57𝑗
𝜉𝜔𝑛 =5.445
From this point on, we can achieve the solution in 2 ways:
𝜔𝑛 =11.94 • Classical method using angle&litude condition
𝜋 3,14 • Algebraic approach
𝑇𝜌 = ⇒ 𝑇𝑝 = = 0.296
𝑤𝑛 1 − 𝜉2 11.94 1 − 0, 4562
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
Classical method using angle&litude condition:
Let's place the zero of the PI controller at -0.5 (There must be a pole
at the origin to remove the steady-state error )
(s+0.5)/s
the required closed loop poles
x x x -0.5
x
-10 -8 -6 -3
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
Classical method using angle&litude condition:
To obtain the dominant poles determined for the transient behavior,
we can locate the zero of the PD controller with the angle condition:
−𝜃1 +𝜃2 −𝜃3 −𝜃4 +𝜃5 −𝜃6 +𝜃𝑥 = 2𝑘 + 1 180
15.94
𝜃2 𝜃3 𝜃4 𝜃5 𝜃6
𝜃1
x -8.17 x x -0.5
x
-10 -8 -6 -3
𝑓𝑜𝑟 𝑘 = −1 , 𝜃𝑥 ≈ 20°
contribution of zero
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
Classical method using angle&litude condition:
To obtain the dominant poles determined for the transient behavior,
we can locate the zero of the PD controller with the angle condition:
15.94
𝜃𝑥 ≈ 20°
𝜃2 𝜃3 𝜃4 𝜃5 𝜃6
𝜃𝑥 = 20 𝜃1
contribution of zero x
-10
-8.17
-8
x-6 x-3 -0.5
x
a
PID controller without gain:
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
Classical method using angle&litude condition:
We can use the amplitude condition to calculate the K gain.
15.94
a
PID Controller
The system shown below, whose root locus also given, makes 20% overshoot. Design a PID controller that
makes the steady-state error zero for unit step input, continues the 20% overshoot as in the current system,
and reduces the peak time to 2/3 times.
𝐾(𝑠 + 0.5)(𝑠 + 𝑎) (𝑠 + 8)
𝑠 (𝑠 + 3)(𝑠 + 6)(𝑠 + 10) 𝐾(𝑠 + 0.5)(𝑠 + 𝑎)(𝑠 + 8)
𝐶𝐿𝑇𝐹 = 𝐶𝐿𝑇𝐹 =
𝐾(𝑠 + 0.5)(𝑠 + 𝑎) (𝑠 + 8) 𝑠 𝑠 + 3 𝑠 + 6 𝑠 + 10 + 𝐾(𝑠 + 0.5)(𝑠 + 𝑎)(𝑠 + 8)
1+ 𝑠 (𝑠 + 3)(𝑠 + 6)(𝑠 + 10)
desired reality