Professional Documents
Culture Documents
Presentation Overview
Introduction
PID parameterisation and structure
Effects of PID terms
z Proportional, Integral and Derivative terms
Limitations
z For single-input single-output systems only
z Difficult to tune to meet precise specifications
z Subtle differences in implementation causes problems
Idealised PID-Controller
Configuration
Set-Point
e(s)
K(s)
Output
u(s)
y(s)
r(s)
Controller
Plant
de
u c (t ) = k1e(t ) + k 2 e(t )dt + k 3
dt
0
P
Laplace domain:
k
U c ( s ) = k1 E ( s ) + 2 E ( s ) + k 3 sE ( s )
s
P
D
I
u c (t ) = K c e(t ) +
Ti
de
edt + Td
dt
0
z Kc :
proportional coefficient
z Ti:
z Td:
de
u c (t ) = K p e(t ) + K i edt + K d
dt
0
z Kp :
proportional gain
= Kc
z Ki:
integral gain
= Kc/Ti
z Kd :
derivative gain
= KcTd
1
u c (t ) = K c 1 +
Ti
de
(.) dt e(t ) + Td
dt
0
t
z Kc :
proportional coefficient
z Ti:
z Td:
PID Parameterisation
There are also differences in units for gain terms
Proportional gain:
z as a pure gain or proportional band (= 100%/gain)
Integral gain:
z as reset (i.e. Ki, units of repeats per second or minute)
z or integral time (i.e Ti, units of seconds or minutes)
Derivative gain:
z as derivative time (i.e Td, units of seconds or minutes)
Set-Point
Set-Point
Set-Point
Loop Output
I-PID Control should not be used on
integrating processes (e.g. level control)
PID Parameterisation
These many different forms of PID do cause problems:
z each has different behaviour
z each require different tuning rules
z you must know which form is used before doing any tuning, design and/or
simulation
Integral Action
z First-order plant
Derivative Action
z First-order plant
z Second-order plant
z Rate feedback
1
G (s) =
s+a
Closed-loop TF:
z New pole s = -(a+Kc)
Kc
y(s) G(s)K(s)
=
=
r(s) 1+ G(s)K(s) s + a + Kc
Amplitude
0.6
0.5
0.4
Kc=1
0.3
Kc=2
0.2
Kc=10
0.1
0
0
0.5
1.5
Time (sec.)
2.5
G(s) =
n2
s 2 + 2n s + n2
Kc
y(s)
= 2
r ( s ) s + 2 n s + n2 + K c
As Kc increases:
z CL natural frequency increases
z CL damping ratio decreases
z steady state error decreases
overshoot increases
Kc=10
Amplitude
1
0.8
0.6
0.4
0.2
0
0
2
Time (sec.)
Integral Action
Objective is to remove steady-state error
PI controller in time
Laplace domain:
domain: u c (t ) = K c e + T
i
edt
K ( s ) = K c 1 +
T
s
i
1
u c (t ) = K c e +
Ti
e
et
1dt = K c e +
edt = K c e +
Ti
Ti
0
0
G (s) =
1
s+a
Closed-loop TF:
Controller:
K (s) =
1
Ti s
2
ncl
y(s)
1
= 2
= 2
2
r(s) Ti s + aTi s +1 s + 2 clncls + ncl
s
0
1
= lim
=
=0
1 1
1
1 1
s 0
s+
0+
1+
s + a Ti s
s + a Ti
aTi
Amplitude
1.2
1
0.8
0.6
0.4
0.2
0
0
10
Time (sec.)
15
Derivative Action
Objective: stabilise system; slow down transients
PD controller:
de
u c (t ) = K c e(t ) + Td
dt
In Laplace domain:
K ( s ) = K c (1 + Td s )
+
-
e(s)
KC
uC(s)
Plant
y(s)
KC Td s
P-D Controller
r(s)
KC
uC(s)
Plant
KC (1+Td s)
K(s)
GK c
CLTF =
1 + GK c (1 + Td s )
y(s)
1
G (s) =
s+a
Closed-loop TF:
Controller:
K ff ( s ) = K c
K ( s ) = K c (1 + Td s )
Kc
y(s)
=
r ( s ) (1 + K cTd )s + a + K c
Closed-loop pole: s = (a + K c )
(1 + K c Td )
1
ess = lim
=
K
1
s0
K c (1 + Td s ) 1 + c
1+
s+a
a
0.6
Amplitude
0.5
0.4
0.3
Td=1
0.2
Td=2
0.1
Td=5
4
Time (sec.)
10
G (s) =
2
np
2
s 2 + 2 p np s + np
2
Kcnp
y(s)
= 2
2
2
r(s) s + 2 pnp + Kcnp
Td s + (1+ Kc )np
cl =
p
1+ Kc
K c np
2 1+ Kc
Td
0.6
Amplitude
0.5
0.4
0.3
Td=0.1
0.2
Td=0.3
0.1
Td=0.6
0.5
1.5
Time (sec.)
2.5
3.5
Controller
r(s)
e(s)
KC
G*
Kr
angular
velocity
1
s
y(s)
angle
GK c
CLTF =
1 + G (K c + K r s )
Fundamental Trade-offs
Set-point tracking:
z Good tracking performance
K(s)G(s) large
Stability:
z Keep K(s)G(s) away from -1
limit on K(s)
Disturbance rejection:
z Reduce effect of disturbances
K(s) large
Noise immunity:
z Noise should not excite u(s)
limit on K(s)
Applicability of PID
PI controllers adequate for most applications
Derivative action is rarely utilised
z often misunderstood due to the many different forms and the
different ways in which they work
Applicability of PID
The following generalisation is from Shinsky
("Process Control Systems", McGraw Hill, 1979)
Process
Integral
Derivative
Flow
100-500
essential
no
Pressure, liquid
50-200
essential
no
Pressure, gas
0-5
no
no
Level
5-80
seldom
no
Vapour (T and p)
10-100
yes
essential
Chemical Composition
100-1000
essential
if possible
y y step y nom
R=
=
T
T
RN =
u step
R
u nom
Kp
Ti
Td
1.0/(R N L)
P+I
0.9/(R N L)
3L
P+I+D
1.2/(R N L)
2L
1/(2L)
Kp
Ti
Td
0.5Kc
P+I
0.45Kc
0.8Tc
P+I+D
0.6Kc
0.5Tc
0.125Tc
- controller = PI
z second order
- controller = PID
Magnitude:
60
PI:
40
20
0
0
-50
-100
-2
10
-1
10
10
10
Frequency (rad/sec)
Phase:
PI:
Magnitude:
Bode Diagrams
60
40
PD:
PD
lead
20
0
100
50
0
-1
10
10
Phase:
Frequency (rad/sec)
PD:
10
10
Bumpless Transfer
Prevents spiky demand signals to actuators when
switching between different control modes
Occurs when switching from manual to automatic
z Cause: controller output different from current signal
z Solution: set reference to follow current plant output value
called a tracking controller
Derivative Filtering
Most industrial PID controllers have some filtering
on derivative action
Prevents noisy measurements giving noisy
controller outputs
Usually applied as:
Td s
Td s + 1
0.13
Integral Windup
Caused by integral action and actuator saturation
Graphical Representation
Anti-Windup Mechanisms
Analogue implementation:
Anti-Windup Mechanisms
Logic/digital implementation easier:
*
*
1 if u = 0
0 if u<>0
Digital Implementation
A continuous time PID controller is given by:
t
u c (t ) = K p e(t ) + K i
de
e(t )dt +K d
dt
Kd
e( j ) +
j =0
Digital Implementation
This may be re-written as:
u c (k ) = u c (k 1) + K p [e(k ) e(k 1)] + K i s e(k ) +
or:
Kd
u c (k ) = u c (k 1) + u c (k )
Extra Slides
Generic Equations
Closed-loop TF from reference to error
e( s ) =
1
r ( s)
1 + G(s)K(s)
1
1
=
ess = lim s
s 0 1 + G ( s ) K ( s ) s 1 + k p
1
1
2 =
ess = lim s
s0 1 + G ( s ) K ( s ) s
kv
n2 K c
1+ 2
s + 2 n s + n2
1
=
1+ Kc
Proportional-integral control:
ess = lim
s 0
K ( s ) = K c 1 +
T
s
i
s
= lim
1
1 s 0
1
1
1+
K c 1 +
s+
K c s +
s + a Ti s
s+a
Ti
0
1
1
Kc
a
Ti
=0
1+
e ss = lim
s0
1+
2
np
2
s 2 + 2 p np s + np
2
np
2
s 2 + 2 p np s + np
K c Td s
K c (1 + Td s )
1
1+ Kc