Week 21 PC Lecture 9 - PID Controller Tuning I
Week 21 PC Lecture 9 - PID Controller Tuning I
Week 21 PC Lecture 9 - PID Controller Tuning I
1
Recap PID controller
2
PID controller: Characteristic summary
• A proportional controller (Kp) will have the effect of reducing the
rise time and will reduce, but never eliminate, the steady-state error.
• An integral control (τI) will have the effect of eliminating the steady-
state error, but it may make the transient response worse.
• A derivative control (τD) will have the effect of increasing the
stability of the system, reducing the overshoot, and improving the
transient response.
3
PID LOOP SIMULATOR
Process
Gain (K) 1
Time Constant (T) 10 Output
Set Point Controller Process Process
Delay (L) 10 C + 1/Is + Ds K/(1+Ts) * e^(-Ls)
+
Controller -
Gain (C) 1.2
Integral (I) 12
Derivative (D) 1.2
1.6
1.4
1.2
SetPoint / Process Value
0.8
0.6
0.4
4
0.2
DV
PV
Measurement
• Process can have very different dynamics. How can we apply the same
equation to so many different processes? How to achieve the dynamic
performance that we desire?
• Must be stable.
• Provide good disturbance rejection---minimizing the effects of
disturbance.
• Have good set-point tracking---Rapid, smooth responses to set-
point changes
• Eliminate steady state error (zero offset)
• Avoid excessive control action.
• Must be robust( or insensitive) to process changes or model
inaccuracies.
7
Trial and error method
• Proportional action is the main control. Integral and derivative
actions are used to trim the proportional response.
• The starting point for trial and error tuning is always with the
controller gain, integral action and derivative action all at a
minimum.
• Make adjustments in the controller gain by using a factor of 2, that
is, 0.25, 0.5, 1.0, 2.0, 4.0 and so on.
• The optimal response is one’s chosen criterion, for example, quarter
decay ratio or less.
𝑐
𝐷𝑒𝑐𝑎𝑦 𝑅𝑎𝑡𝑖𝑜=
𝑎
1.2
1
SetPoint / Process Value
0.8
0.6
0.4
0.2
9
0
On-line controller tuning
10
Continuous cycling method
11
Continuous cycling method
12
Continuous cycling method
13
PID LOOP SIMULATOR
Process
Gain (K) 1
Time Constant (T) 10 Output
Set Point Controller Process Process
Delay (L) 10 C + 1/Is + Ds K/(1+Ts) * e^(-Ls)
+
Controller -
Gain (C) 2.19
Integral (I)
Derivative (D)
1.6
1.4
1.2
SetPoint / Process Value
0.8
0.6
0.4
0.2
0 14
-10
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
0
Kcu = 2.19
Pcu = 55 – 23 = 32 sec
Kc = 0.60x2.19 = 1.314
I = 32/2 = 6 sec
D = 32/8 = 4 sec
15
PID LOOP SIMULATOR
Process
Gain (K) 1
Time Constant (T) 10 Output
Set Point Controller Process Process
Delay (L) 10 C + 1/Is + Ds K/(1+Ts) * e^(-Ls)
+
Controller -
Gain (C) 1.314
Integral (I) 16
Derivative (D) 4
1.4
1.2
1
SetPoint / Process Value
0.8
0.6
0.4
0.2
16
0
Continuous cycling method:
advantages/disadvantages
Advantages
• Easy experiment; only need to change the P controller
• Includes dynamics of whole process, which gives a more accurate
picture of how the system is behaving
Disadvantage
• Time consuming.
• The test pushes the process to the stability limits.
• Not applicable to integrating or open-loop unstable process.
• For 1st and 2nd order processes without deadtime, the ultimate gain
does not exist.
17
Relay auto-tuning
4𝑑
𝐾 𝑐𝑢 =
𝜋∙𝑎
18
Relay auto-tuning: advantages/disadvantages
Advantages
• Only a single experimental test is required.
• The amplitude of the process output a can be restricted by adjusting
relay amplitude d.
• The process is not forced to a stability limit.
• The experimental test is easily automated using commercial
products.
Disadvantages
• It may not suitable for slow processes.
19
Step test method (process reaction curve
method)
• Ziegler and Nichols (1942)
20
Step test method (Ziegler and Nichols, 1942)
21
Step test method: advantages/disadvantages
Advantages
• Quick and easier to use than other methods.
• It is a robust and popular method.
• It is less disruptive to implement
Disadvantages
• It depends upon purely proportional measurement to estimate I and
D controllers.
• Approximations for the Kc, I, and D values might not be entirely
accurate for different systems.
22
Step test method (Cohen and Coon)
23
PID tuning
24