Chapter 4 - PID Controller
Chapter 4 - PID Controller
Chapter 4 - PID Controller
PID Controller
Objectives
Conventional Controller
– Know a mathematical model of the process in order to design a controller.
– P, PI, PD, PID, Otto-Smith, Optimal, adaptive, robust, nonlinear
Unconventional
– new approaches to the controller design in which knowledge of a
mathematical model of a process generally is not required.
– fuzzy controller and neuro or neuro-fuzzy controllers.
2 Main Groups of controllers
Motivation
– Simple to get working
– Can be tuned to meet time-domain specifications
– Readily available in PLC/DCS systems
– Digital and analogue implementation easy
Limitation
– For single-input single-output systems only
– Difficult to tune to meet precise specifications
PID Controller
The proportional term produces an output value that is proportional to the current
error value. The proportional response can be adjusted by multiplying the error
by a constant Kp, called the proportional gain constant.
A high proportional gain results in a large change in the output for a given
change in the error. If the proportional gain is too high, the system can become
unstable. In contrast, a small gain results in a small output response to a large
input error, and a less responsive or less sensitive controller.
If the proportional gain is too low, the control action may be too small when
responding to system disturbances.
The proportional term produces an output value that is proportional to the current
error value. The proportional response can be adjusted by multiplying the error
by a constant Kp, called the proportional gain constant.
A high proportional gain results in a large change in the output for a given
change in the error. If the proportional gain is too high, the system can become
unstable. In contrast, a small gain results in a small output response to a large
input error, and a less responsive or less sensitive controller.
If the proportional gain is too low, the control action may be too small when
responding to system disturbances.
The contribution from the integral term is proportional to both the magnitude
of the error and the duration of the error. The integral in a PID controller is
the sum of the instantaneous error over time and gives the accumulated
offset that should have been corrected previously. The accumulated error is
then multiplied by the integral gain and added to the controller output.
The integral term accelerates the movement of the process towards set point
and eliminates the residual steady-state error that occurs with a pure
proportional controller. However, since the integral term responds to
accumulated errors from the past, it can cause the present value to
overshoot the set point value
Control Loop GBO
Integral Term
The contribution from the integral term is proportional to both the magnitude
of the error and the duration of the error. The integral in a PID controller is
the sum of the instantaneous error over time and gives the accumulated
offset that should have been corrected previously. The accumulated error is
then multiplied by the integral gain and added to the controller output.
The integral term accelerates the movement of the process towards set point
and eliminates the residual steady-state error that occurs with a pure
proportional controller. However, since the integral term responds to
accumulated errors from the past, it can cause the present value to
overshoot the set point value
Control Loop GBO
Derivative Term
Time Domain: MV (t ) K c E (t ) I p
MV ( s )
Transfer function: Gc ( s ) Kc
E (s)
MV ( s ) K c 1
Transfer Function: Gc ( s )
E ( s) TI s
where TI = controller integral time, II = constant term or bias
Integral Mode
Kc
MV (t )
TI E (t ' )dt ' I
0
I
Integral Mode
dE (t )
Time Domain: MV (t ) K cTD ID
dt
Transfer Function: MV ( s )
Gc ( s ) K cTD s
E (s)
where TD = controller derivative time
ID = constant term or initialization
Derivative Mode
dE (t )
MV (t ) K cTD ID
dt
Final value after disturbance:
D Kd
CV (t ) t lim s DK
s 1 K cTD s
d
s0
Taking the derivative of the error when the set point is first adjusted
in a step change will introduce a near-infinity value for the MV.
To avoid this, we can use the controlled variable (CV) instead to
calculate the output of the derivative mode.
dE (t )
Original equation MV (t ) K cTD ID
dt
Recommended dCV (t )
equation MV (t ) K cTD ID
dt
PID Controller
E (t ) SP(t ) CV (t )
1
dCV (t )
MV (t ) K c E (t )
TI 0
E (t ' )dt 'TD
dt
I
PID Controller
Two-degree-of-freedom PID
control scheme
Practical PID controller
Set-point Weighting
0,1 , 0,1
Practical PID controller
General ISA–PID Control Law
Practical PID controller
Integral Windup
Conditional Integration
If u(k)>umax no update for integral part an u(k) = umax
If u(k)<umin No update for integral part u(k) = umin
Practical PID controller
Anti-Windup
Back calculation
Tt Td Ti ( PID) Tt Ti ( PI )
Practical PID controller
Anti-Windup
Back calculation
Practical PID controller
Anti-Windup
Combined
y1 y0
y1
y0
Tt 0.03Ti
Practical PID controller
Anti-Windup
1
P-only 1
K p 3
1 30 3
PI
Kp
0 . 9
12 .
9 20
4
1 3 16 32 6
PID K p 12 . 11 2
13 8
Ciancone Correlations
- Example