Professional Documents
Culture Documents
PID Control - Simple Tuning Methods: Ulf Holmberg
PID Control - Simple Tuning Methods: Ulf Holmberg
Ulf Holmberg
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Tank process
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Open-loop system
System
Closed-loop system
+ e u
r Controller System y
−
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
u(t) y (t)
Step response
Kp
Step
1
t u System y t
T
Example–Stove plate
• Time constant T
• u(t) power to stove plate
• Stationary gain Kp
• y (t) temperature on plate
Introduction Dynamical System PID control Experiment
u(t) y (t)
Step response
Kp ∆u
Step
∆u
t u System y t
T
t u System y t
L T
Example – roll transport time
t u System y t
A
L T
Step response model from unit step:
• T Time constant
• Kp Stationary gain
• L Dead-time
• A see measure above
Introduction Dynamical System PID control Experiment
t u System y t
A∆u
L T
Step response model from experiment:
• T Time constant
• Kp Stationary gain
• L Dead-time
• A see figure
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Self-oscillation model
+ e u
r Ku System y
− Tu
Experiment
• P-control (closed-loop system!)
• Crank up gain to self-oscillation
• Reference-step starts oscillation
Self-oscillation model
• Ultimate gain Ku
• Ultimate period Tu
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
PID structure
+ e u
r Controller System y
−
e I + u
D
Introduction Dynamical System PID control Experiment
P-controller
e(t) u(t)
Ke0
e0
t e K u t
e(t) u(t)
Ke0
u0
e0 u0 Offset
t e K + u t
I-part (integrator)
e(t) I-del
e0 e0
1
R
t e Ti e I-del t
Ti
I-part
• ∝ surface under e(t) so far
• becomes as big as constant error e0 in time Ti
• used to eliminate remaining error
Introduction Dynamical System PID control Experiment
D-part (derivator)
e(t) D-del
t e Td de
dt D-del t
D-part
• ∝ slope on e(t)
• used to damp oscillations
Introduction Dynamical System PID control Experiment
PID-controller structure
Control signal = P + I + D
Z t
1 de(t)
u(t) = K [e(t) + e(s)ds + Td ]
Ti dt
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Controller K Ti Td Tp
P 1/A 4L
PI 0.9/A 3L 5.7L
PID 1.2/A 2L L/2 3.4L
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Controller K Ti Td Tp
P 0.5Ku Tu
PI 0.4Ku 0.8Tu 1.4Tu
PID 0.6Ku 0.5Tu 0.125Tu 0.85Tu
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Step response
9 5.3
8 5.2
7
5.1 Estimated from figure:
6
5
• A∆u = 0.1, ∆u = 0.5
5
4.9
⇒ A = 1/5
4.8
4
• L=3
4.7
3 4.6
2 4.5
0 100 200 300 20 30 40 50 60
Introduction Dynamical System PID control Experiment
r, y
Valve opens/closes
3
2.5
Ziegler-Nichols P-control
• K = 1/A = 5
0 20 40 60 80 100 120 140 160 180
0
0 20 40 60 80 100 120 140 160 180
Introduction Dynamical System PID control Experiment
r, y
Valve opens/closes
3
Ziegler-Nichols PI-control
2.5
• K = 0.9/A = 4.5
0 50 100 150 200 • Ti = 3L = 9
u
4
• No stationary error after valve
disturbance
2
0
0 50 100 150 200
Introduction Dynamical System PID control Experiment
r, y
Valve opens/closes Ziegler-Nichols PID-control
3.2
3
• K = 1.2/A = 6
2.8 • Ti = 2L = 6
2.6
2.4
• Td = L/2 = 1.5
0 50 100 150 200
Self-oscillation experiment
3
Ultimate gain and period
2
• Ku = 15 (from tuning)
1
• Tu = 10 (from figure)
0
0 20 40 60 80 100
u (styrsignal)
Z-N PID-tuning:
10
K = 0.6Ku = 8
5 Ti = 0.5Tu = 5
Td = 0.125Tu = 1.25
0
0 20 40 60 80 100 120
Introduction Dynamical System PID control Experiment
0
0 50 100 150 200 250
u
10
0
0 50 100 150 200 250
Introduction Dynamical System PID control Experiment
PID control
Introduction
Lab processes
Control System
Dynamical System
Step response model
Self-oscillation model
PID control
PID structure
Step response method (Ziegler-Nichols)
Self-oscillation method (Ziegler-Nichols)
Experiment
Level control in a tank
Level control of two connected tanks
Introduction Dynamical System PID control Experiment
Step response
r, y
Valve opens/closes
3
Ziegler-Nichols PI-control
2
• K = 0.9/A = 2.25
0 100 200 300 • Ti = 3L = 30
u
3
Disturbance eliminated in 60s
2
(Compare Tp = 5.7L = 57s)
1
0
0 100 200 300
Introduction Dynamical System PID control Experiment
r, y
Valve opens/closes
6
Ziegler-Nichols PID-control
5
4
• K = 1.2/A = 3
3
• Ti = 2L = 20
0 100 200 300
u • Td = L/2 = 5
10
Self-oscillation experiment
4.9
Ultimate gain and period
4.8
• Ku = 10 (from tuning)
4.7
• Tu = 25 (from figure)
0 20 40 60 80 100
u
Z-N PID-tuning:
3
K = 0.6Ku = 6
2
Ti = 0.5Tu ≈ 13
1
Td = 0.125Tu ≈ 3
0
0 20 40 60 80 100
Introduction Dynamical System PID control Experiment
Valve opens/closes
4
u
10
0
0 50 100 150 200 250