Lect 5 Contrioller Tuning
Lect 5 Contrioller Tuning
Controller Tuning
Tuning is the adjustment of the controller parameters to obtain a specified closed
loop response. Tuning of controller is the process of setting controller gains to
achieve desired performance.
After a Control system is installed the controller settings must usually be
adjusted until the control system performance is considered to be satisfactory.
The goal of the tuning is to determine the gains that optimize system response.
High gain increase responsiveness but also move the system closer to instability.
Low gain improve stability but the system becomes sluggish.
ISE e dt
2 ….. (2)
0
ITAE t e dt
….. (3)
0
If the performance indices increases, control system can perform poorly and
even become unstable. So it needs to tune the controller parameters to achieve good
control performance with the proper choice of tuning constants.
Example: Select the gain of a proportional controller (Kc) using the one-quarter decay
ratio criterion (DR=0.25).
The process is described by: Gp(s) = 10/[(s+2)(2s+1)] ,
Assume Gm(s) = Gv= 1.
Answer:
𝐺𝑃 𝐺𝑣 𝐺𝑐
𝑌(𝑠) =
1 + 𝐺𝑃 𝐺𝑣 𝐺𝑐 𝐺𝑚
2ψ
0.21083
=6.93
1) Cohen-Coon Method
It is an empirical rule which have been proven is practice, it is known as Cohen and
Coon method.
d(s)
Gd
1
C(s)
s
R Y(s)
GC Gv Gp
Ym(s) Y (s)
Gm
The Cohen - Coon method applies only to open-loop processes that are inherently
stable.
Cohen and Coon suggest method to first model process in the open loop and then
picking the appropriate control parameters. Noted that most responses have a
“sigmoidal” response to step change.
The procedure of this method is to open the control system by disconnection the
controller from the final control element, and introduce a step change of magnitude A
in the variable L which actuates the final control element.
Then find the T.F. between Ym and C as
𝑌𝑚 (𝑠)
𝐺𝑃𝑅𝐶 = = 𝐺𝑓 (𝑠) 𝐺𝑝 (𝑠) 𝐺𝑚 (𝑠) ….. (4)
𝐶(𝑠)
Cohen-Coon used process reaction curve, that it is a response of the process to a step
change in the manipulated variable. Cohen and Coon observed that the response of
most processing units to a step change in input variable can be adequately
approximated by the response of first order system with dead time, and the transfer
function is:
𝑌𝑚 (𝑠) 𝐾𝑒 −𝑡𝑑𝑠
𝐺𝑃𝑅𝐶 = ≈ ….. (5)
𝐶(𝑠) 𝜏𝑠+1
Approximate
response
S Slop = S
td t td t
(a) (b)
Fig. (1) (a) Curve for Cohen-Coon tuning.
(b) Curve approximation with a first order dead-time system.
Example: Consider the feedback control system for the stirred-tank blending process
shown in Fig. 1 and the following step test. The controller was placed in manual, and
then its output was suddenly changed from 30% to 43%. The resulting process reaction
curve is shown in Fig.(2). Thus, after the step change occurred at t = 0, the measured
exit composition changed from 35% to 55% (expressed as a percentage of the
measurement span), which is equivalent to the mole fraction changing from 0.10 to
0.30. Select the PID controller settings using the Cohen-Coon technique.
Answer
A first-order-plus-time-delay model can be developed from the process reaction curve
in Fig. (2) Using the graphical method. The tangent line through the inflection point
intersects the horizontal lines for the initial and final composition values at 1.07 min
and 7.00 min, respectively.
55 − 35
𝑆= = 3.3726 %/min
7 − 1.07
𝑂𝑢𝑡𝑝𝑢𝑡 𝐵 55 − 35 20
𝐾= = = = = 1.5384 %/%
𝐼𝑛𝑝𝑢𝑡 𝐴 43 − 30 13
∆𝑌
𝜏𝑑 = = 1.07 𝑚𝑖𝑛
∆𝑋
Process Control 50 Fourth Class
Dr. Zaidoon M. Shakor
𝐵 20
𝜏= = = 5.93
𝑆 3.3726
Example: Table (1) shows experimental process reaction curve of an open loop system
with a PI controller. Using the data in given in the table
(a) Approximate the open–loop response with that of a first–order system plus dead
time (i.e., find the values of K, τ, and td).
(b) Select the controller settings using the Cohen–Coon technique.
Table (1)
Time (min) -10 -5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90
Manipulated
10 10 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
input
Measurement of
0.650 0.650 0.650 0.651 0.652 0.668 0.735 0.817 0.881 0.979 1.075 1.151 1.213 1.239 1.262 1.311 1.329 1.338 1.350 1.350 1.350
output
Answer
1.3
1.2
1.1
Y(t)
1
0.9
0.8
0.7
0.6
0 20 40 60 80 100
Time (min)
Ke t d s
Then G PRC
s1
From Fig(1)
K=gain=B/A=(1.35-0.65)/(15-10)=0.7/5=0.14
S=slope at the inflection point=(1.35-0.65)/(60-14)= 0.0152
B=Ultimate response = 0.7
τ = effective time constant= B/S = 0.7/0.0152= 46
td = dead time =14
0.14e 14 s
GPRC
46s1
Using Cohen and coon setting
For PI controller
1 t
Kc 0.9 d 21.71
K td 12
303t d /
I t d 28.68
9 20t d /
2) Ziegler-Nichols Method
The method of Ziegler and Nichols known as the continuous cycling method. In this
method, integration and derivative terms of the controller are disabled and the
proportional gain is increased until a continuous oscillation occurs at ultimate gain Kcu
for the closed loop system. Considering Kcu and its related oscillating ultimate period,
Pu , the controller parameters can be calculated from the equation bellow.
𝐾𝑐𝑢 ⇒ 𝑓𝑟𝑜𝑚 𝑡ℎ𝑒 𝑝𝑟𝑜𝑐𝑒𝑑𝑢𝑟𝑒 𝑜𝑓 𝑡ℎ𝑒 continuous cycling method
Pu Pu
Pu
Also, Ziegler-Nichols used another method bode diagram of two graphs: one is a plot
of the logarithm of the magnitude of sinusoidal transfer function; the other is a plot of
phase angle; both are plotted against the frequency on a logarithm scale as shown in
Fig. (2).
Gain margin (GM) and crossover frequency (𝜔) can be found from two plots therefore,
the ultimate gain and period of oscillation are calculated from following:
K u
20 log GM ….. (17)
P
23.1428 ….. (18)
u
Gain
A.R
margin
0o
Ø(I)
Phase
Ø
margin
-180o
ωCO
ω
Example: Determine the Ziegler – Nichols tuning parameters for a PID controller, with
the given transfer functions. Assume that the time constants have units of minutes.
5 0.4 2
𝐺𝑣 = 𝐺𝑚 = 𝐺𝑝 =
2𝑆+1 5𝑆+1 𝑆+1
Answer
Continuous cycling method
1+ GOL = 0
1+Gv Gm Gp Gc = 0
Put Gc = Kcu
5 0.4 2
1+( ∗ ∗ ∗ 𝐾𝑐𝑢 ) = 0
2𝑆+1 5𝑆+1 𝑆+1
4 𝐾𝑐𝑢
1+( )=0
(2𝑆 + 1)(5𝑆 + 1)(𝑆 + 1)
10 S3 + 17 S2 + 8 S +1 + 4 Kcu = 0
Put S=iw , i= -1
10 (iw)3 + 17 (iw)2 + 8 (iw) +1 + 4 Kcu = 0
-10 iw3 – 17 w2 + 8 iw +1 + 4 Kcu = 0