Feedback Control PID Control: Hadiyanto
Feedback Control PID Control: Hadiyanto
Feedback Control PID Control: Hadiyanto
PID Control
Hadiyanto
Overall Course Objectives
To develop skill on feedback control and PID
design
Feedback Concept
FB v FF
FB vs FF
FB vs FF
Case of HE
Ratio Control
Method
General Feedback Control Loop
D(s)
G d (s)
Y s (s)
G s (s)
Closed Loop Transfer Functions
From the general feedback control loop and using
the properties of transfer functions, the following
expressions can be derived:
Y (s) G p ( s ) Ga ( s ) Gc ( s )
Ysp ( s ) G p ( s ) Ga ( s ) Gc ( s ) Gs ( s ) 1
Y (s) Gd ( s )
D( s ) G p ( s ) Ga ( s ) Gc ( s ) Gs ( s ) 1
G p ( s) Ga ( s) Gc ( s) Gs ( s) 1 0
Feedback Control Analysis
1
t
de(t )
c(t ) c0 K c e(t ) e(t )dt D
I 0 dt
where e(t ) ysp ys (t )
C (s) 1
Gc ( s ) K c 1 D s
E (s) Is
Definition of Terms
e(t)- the error from setpoint [e(t)=ysp-ys].
K - the controller gain is a tuning parameter
c
and largely determines the controller
aggressiveness.
- the reset time is a tuning parameter and
I
determines the amount of integral action.
- the derivative time is a tuning parameter
D
and determines the amount of derivative
action.
Proportional Control
P Control c(t ) c0 K c e(t )
Gc ( s ) K c
Example,
Properties of Proportional Action
c(t ) c0 K c e(t )
Gc ( s ) K c
Kc K p Closed loop transfer function
Kc K p 1 base on a P-only controller
Y (s)
applied to a first order
Ysp ( s ) p process.
s 1
Kc K p 1 Properties of P control
◦ Does not change order of
process
◦ Closed loop time constant is
smaller than open loop p
◦ Does not eliminate offset.
Effect P to first order
Effect of controller gain . kc
Kc 2 I 10 Kp 1 p 5
Characteristic Equation :
1 2
5s 1 2 10 s 1 0
Rearranging
25s 2 15s 1 0
p 5 1.5
Example of a PI Controller Applied to a
Second Order Process
K c 1; I 1; K p 1; p 5; 2
Characteristic Equation :
1 1
1 1 0
25s 20 s 1
2
s
Rearranging
25s 20 s 2 s 1 0
3 2
Figure 8.9. PI control: (a) effect of integral time (b) effect of controller
gain.
Increasing the integral time.
more conservative(sluggish) process response.
Too large integral time.
too long time to reach to the set point after load upset or set-
point change occurs.
Theoretically, offset will be eliminated for all values of .
I
Derivative Control
Properties of Derivative Action
de(t )
c(t ) c0 K c D
dt
Y (s) K c K p D s
2 2
Ysp ( s ) p s 2 p K c K p D s 1
ysp
ys
cder
Time
Derivative Action
Lastly, please keep in mind that you do not need to implement all three controllers
(proportional, derivative, and integral) into a single system, if not necessary. For
example, if a PI controller gives a good enough response (like the above
example), then you don't need to implement derivative controller to the system.
Keep the controller as simple as possible.
Proportional Band
100%
PB
Kc
Another way to express the controller gain.
Kc in this formula is dimensionless. That is, the
controller output is scaled 0-100% and the error
from setpoint is scaled 0-100%.
In more frequent use 10-15 years ago, but it still
appears as an option on DCS’s.
Conversion from PB to Kc
100% 100%
K
D
c 0.5
PB 200%
100%
K c 0. 5 0.25 % / psi
200 psi
Conversion from Kc to PB
15% 25º F
K
D
c 3.75
º F 100%
100%
PB 26.7%
3.75
Open-Loop Control - Example
1
G( s )
2
s 10s 20
num=1;
den=[1 10 20];
step(num,den)
Proportional Control - Example
num=[Kp]; 1
0.9
Amplitude
0.8 0.8
den=[1 10 20+Kp];
To: Y(1)
0.7
0.6
0.6
t=0:0.01:2;
Amplitude
0.4
To: Y(1)
0.5
0.3
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.2
Time (sec.)
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Proportional - Derivative - Example
The derivative controller (Kd) reduces both the overshoot and the
settling time.
Kd s Kp
T( s )
MATLAB Example 2
s ( 10 Kd ) s ( 20 Kp )
Step Response
From: U(1)
1.4
1.2
Kd=10;
Amplitude
0.8
To: Y(1)
0.9
0.6 0.8
Kd=10
0.4
0.6
Amplitude
den=[1 10+Kd 20+Kp];
To: Y(1)
0.2 0.5
0.4
0
t=0:0.01:2;
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.3
Time (sec.)
0.2
Kd=20
step(num,den,t) 0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Proportional - Integral - Example
The integral controller (Ki) decreases the rise time, increases both
the overshoot and the settling time, and eliminates the steady-state
error Kp s Ki
T( s )
3 2
MATLAB Example s 10 s ( 20 Kp ) s Ki
Step Response
From: U(1)
1.4
Kp=30;
1.2
Step Response
From: U(1)
1 1.4
Ki=70;
Amplitude
1.2
0.8
To: Y(1)
1
0.6
num=[Kp Ki];
Ki=70
Amplitude
0.8
To: Y(1)
0.4
0.4
0
Time (sec.)
1.2 1.4 1.6 1.8
0.2
2
Ki=100
0
Time (sec.)
1.2 1.4 1.6 1.8 2
Assignment