Professional Documents
Culture Documents
Control
Topic 13
PID Controller Tuning
Dr Zoltan K. Nagy
1
Objectives for Today
Tuning criteria
Root-locus diagram
Tuning controllers by pole positioning
Tuning using the Ziegler-Nichols method for PID tuning
Practical Issues
Controller Design
2
Performance Criteria
Stability criteria
Steady state criteria (maximum admissible steady
state offset)
Dynamic Response Criteria
Performance Criteria
∞
Integral Squared Error (ISE): ISE = ∫ ε 2 (t )dt
0
Other general criteria
Minimize variability
Remain stable for the worst disturbance upset (i.e.,
reliability) Æ robust stability
Avoid excessive variation in the manipulated variable
6
3
Example 1: Tuning via dynamic response
criteria in few (one) point in time
1
G(s) =
(s + 1)(1 + 0.5s)
P-only Control
4
Dynamic Changes as Kc is increased for a
FOPDT Process
-5 -4 -3 -2 -1 0 1
Real Axis
5
Controller Tuning by Pole Assignment
(Pole Placement)
12
6
Example 2: Pole placement design
1
Gref (s ) =
16s 2 + 4s + 1
Underdamped
y τ =4 trajectory with
settling time
1
ς = 0 .5 determined by τ
Characteristic equation: G p ( s) Ga ( s ) Gc ( s) Gs ( s ) + 1 = 0
PID controller: Gc (s ) = K c (1 +
1
τIs
+ τ Ds )
14
7
Example 2: Pole placement design
KK cτ D + τ 2 KK c + 1 1
τI s +τI s +1= 0 Gref (s ) =
KK c KK c 16s 2 + 4s + 1
Reference trajectory
τ I (KK cτ D + τ ) τ I (KK c + 1)
= 16 and =4
KK c KK c
Solving:
τ −4 4 KK c
Kc = τI =
K (4 − τ D ) KK c + 1
By choosing Kc, τI and τD, we can position the roots (hence dynamic
response) wherever we want in the complex plane 15
Example
Desired
Process
16
8
Classical Tuning Methods
17
p Find the Z-N settings for the controller from Ku and Pu using the
rules summarized in the Table on the next slide
18
9
Ziegler-Nichols Stability Margin
Controller Tuning
controller Kc τI τD
P 0.5 Ku - -
PI 0.45 Ku Pu /1.2 -
PID 0.6 Ku Pu /2 Pu /8
19
6
G p (s ) =
(2s + 1)( 4s + 1)(6s + 1)
20
10
Example 3: Z-N tuning
Characteristic equation for the system with controller and process only:
Gp (s )Gc (s ) + 1 = 0
Using the method of substitution we find the limiting value for a P-only
controller (ultimate gain) controller for which the closed-loop system is
at the verge of stability
6K c
Characteristic equation: +1= 0
(2s + 1)( 4s + 1)(6s + 1)
21
This equation can be satisfied if and only if both the real and imaginary
parts are equal to zero:
− 48ω 3 + 12ω = 0
1 + 6K c − 44ω 2 = 0
Solving, gives:
ω = 0, K c = −1/ 6
ω = 0.5, K c = 1.67
System is stable for -1/6 < Kc < 1.67, Hence, the ultimate gain is: K u = K c = 1.67
And the frequency of sustained oscillations at that point is: ωco = 0.5 rad / min
22
11
Example 3: Z-N tuning
The ultimate period is given by:
2π
ωco = 0.5 rad / min Pu = = 12.56 min/ cycle
ωco
¾ P: Kc = 0.5Ku = 0.83
Ke −α s
G p (s) =
τ s +1
α τ time
24
12
Controller tuning in time domain using
approximate process model
Ke −α s
G p (s) =
τ s +1
controller Kc τI τD
1 ⎛ τ ⎞⎟ − −
P ⎜ ⎟
K ⎜⎝ α ⎠
0.9 ⎛ τ ⎞⎟
PI ⎜ ⎟ 3.33α −
K ⎝⎜ α ⎠
1.2 ⎛ τ ⎞⎟
⎜ ⎟
PID K ⎜⎝ α ⎠ 2.0α 0.5α
26
13
Example 4
6
G p (s ) =
(2s + 1)( 4s + 1)(6s + 1)
6e −3s
6
5 Gmodel (s ) =
4 10s + 1
3
y
3rd order
2 FOPDT
0
0 10 20 30 40 50
time
27
Example 4
Z-N approximate model PID:
6e −3s
Gmodel (s ) = K=6
10s + 1 α=3
τ = 10
1.6
K = ⎜ = 0.6667
1.4 y
6 ⎜⎝ 3 ⎠⎟ 1.2
τI = 2 × 3 = 6 1
y and y sp
0.8
τD = 0.5 × 3 = 1.5 0.6
0.4
0.2
Quarter decay ratio
0
0 10 20 30 40 50
time
28
14
Summary
29
15