Pengendali PID
(Proposional, Integrator, Derivatif)
HAMID
Outlines & Tujuan
2
Outlines
Algoritma pengendalian PID
Aspek praktis
Tujuan
Memahami pengendalian PID
Memahami fungsi dari tiap-tiap bentuk pengendalian PID (P&I&D)
Dapat memilih kombinasi yang baik dan melakukan tuning dari
PID untuk berbagai penerapan pengendalian proses.
Mengetahui fitur tambahan yang diinstal kedalam pengendali yang
diterapkan dalam praktek
Apakah Pengendalian PID itu?
3
Definisi
hubungan antara perubahan pada
valve dan perubahan pada pengukuran
DIRECT Peningkatan posisi valve
mengakibatkan peningkatan pada
variabel proses
REVERSE Peningkatan posisi valve
mengakibatkan penurunan pada
variabel proses
6
PROSES DIRECT
PENGENDALI HARUS REVERSE
PROSES REVERSE
PENGENDALI HARUS DIRECT
PID Control
Key Concepts (3)
8
PID Control
Algoritma Pengendalian PID
9
Terdiri dari:
Proportional – dikenal juga sebagai Proportional Gain atau Gain
Integral – dikenal juga sebagai Automatic Reset atau Reset
Derivative – dikenal juga sebagai Rate atau Pre-Act
PID Control
Mode Proporsional (1)
10
CO = P .e (+b)
b
SP e + CO
+ P +
P = proportional Gain (dimensionless)/ Kp P
CO = controller output (%) PVm
b = Bias (%) (dikenal juga sebagai manual reset) BIASANYA 0
e = ( SP – PVm ) (%) “reverse action”, atau
e = – ( SP – PVm ) (%) “direct action”
PB =
10
0
.
CO = P e + b =
10
e+b
P
0
PID Control
PB
Mode Proporsional (2)
11
Large P
Small P
time
PID Control
Mode Proporsional (2)
12
PVm
SP
Manual reset
P constant
Manual reset
time
PID Control
Mode Integrator (Automatic Reset) (1)
13
1
CO = T ò SP e CO
e dt + 11
dt
m
TTmm
ò
Tm = integral time (minute per repeat or PVm
second per repeat)
CO = controller output (%)
e = ( SP – PVm ) (%) “reverse action” or
e = – ( SP – PVm ) (%) “direct action”
Some manufacturers use repeat per minute (or repeat per second)
instead of minute per repeat (or second per repeat)
Repeat per minute (or second) is the time it takes the reset (or integral) element to repeat
(reset) the action of the proportional element
òe dt
1
repeat per minute (Tr) minute
= per repeat (Tm) CO = I
PID Control
Integral (Automatic Reset) Mode (2)
14
Small P
time
PID Control
Mode Proportional-Integral(1)
15
P
P
SP e CO
+ 11
dt
TTmm
ò
PVm
1
CO = P (e + T òe dt)
m
PID Control
Mode Proportional-Integral (2)
16
in magnitude to
Proportional
response
Response due to
Proportional P
control action
Tm time
Error
0
time
PID Control
Mode Proportional-Integral (3)
17
P-only
I-only
Small P
time
PID Control
Mode Derivative (1)
18
de SP e CO
CO = dt + D
d
D dt
D
PVm
D = derivative time (minute or second)
CO = controller output (%)
e = ( SP – PVm ) (%) “reverse action” or
e = – ( SP – PVm ) (%) “direct action”
PID Control
Proportional-Derivative Mode (1)
20
d b
D
D dt +
SP e + CO
+
P
P
+
+
PVm
de
)
CO = P (e + D dt + b
PID Control
Mode Proportional-Derivative (2)
21
Theoretical
Actual
Response due to
Proportional mode
only
D
time
Ramp
Error
Generator OFF
Ramp
Generator ON time
PID Control
Proportional-Derivative Mode (3)
22
P-only
Small P
time
PID Control
Proportional-Integral-Derivative Mode (1)
23
PVm
1 de
ò
CO = P (e + T e dt + Ddt )
m
PID Control
Proportional-Integral-Derivative Mode (2)
24
time
PID Control
Bentuk-Bentuk Lain Cara Penulisan PID
25
y
PV m
ysp
SP
c
CO
Time
Note that controller output saturates causing area “A” to accumulate by
the integral action
After the disturbance returns to its normal level, the controller output
remains saturated for a period of time causing an upset in PVm
PID Control
Anti-Reset Windup
29
ySPsp y
PVm
c
CO
Time
When the manipulated variable saturates, the integral is not allowed
to accumulate
When control returns, the controller takes immediate action and the
process returns smoothly to the setpoint
PID Control
Methods for Anti-Reset Windup
30
PID Control
Bumpless Transfer (1)
31
True Setpoint
Internal Setpoint
Time
PID Control
Bumpless Transfer (3)
33
w/ bumpless transfer
Time
PID Control
Derivative on Process Rather than Error (1)
34
The Facts:
A step change in the set point results in a step change in the process
The derivative term acts on the rate of change of the error
The rate of change of a step change is very large
An operator step change of the setpoint would causes a very large change in the
output, upsetting the process
Derivative
Spike
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using standard PID
PID Control
Derivative on Process Rather than Error (2)
35
. d
P D
P D dt
PVm
1 dPVm
CO = P (e +T
m òe) - P Ddt
.
PID Control
Derivative on Process Rather than Error (3)
36
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using
“Derivative on Process Measurement” PID
PID Control
Derivative on Filtered Process
Rather than Process (1)
37
The Fact:
The derivative mode is hypersensitive to noise
PID Control
Derivative on Filtered Process
Rather than Process (2)
38
PID Control
Gain on Process Rather than Error (1)
39
The Facts:
In applications with high gain, a step change can result in a sudden, large
movement in the valve
Not as severe as derivative effect, but still can upset the process
MV
Gain
response
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using
“Gain on error and Derivative on Process Measurement” PID
PID Control
Gain on Process Rather than Error (2)
40
. d
P D
P D dt
PVm
P dPVm
ò
CO = T e dt + P( PVm +
m dt )
PID Control
Gain on Process Rather than Error (3)
41
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using
“Gain and Derivative on Process Measurement” PID
PID Control
Digital PID Algorithms (1)
42
Continuous signal
Dt
sample
Dt = sampling time
2Dt
de ei – ei-1
ò e dt @ Dt S ei dt @ Dt
.
1 de
Continuous form:CO = P (
m ò
e + T e dt + Ddt )
Dt D
Digital form:CO = P [ei + Tm S ei + Dt (ei – ei-1])
i = sampling instant
PID Control
Digital PID Algorithms (3)
44
Dt D
COi = COi-1 + P (e
Inherently
[ i –reset
Velocity form
have anti
ei-1) + T ei +Dt
windup
m feature
(ei – 2ei-1+e]i-2)
PID Control
Several Offered PID Algorithms (1)
45
Not used
Algorithm D Not used Error
PID Control
Several Offered PID Algorithms (2)
46
PID Control
Several Offered PID Algorithms (3)
47
P-only
PI
PID
PID Control
Several Offered PID Algorithms (3)
48
PID Control
Guidelines for Common Control Loops (1)
49
Temperature control
Wide variety of the process nature
Usually slow response with time delay
Use PID controller to speed up the response
PID Control
Guidelines for Common Control Loops (3)
51
Composition control
Similar to temperature control usually with larger
noise and more time delay
Effectiveness of derivative action is limited
Temperature and composition controls are the prime
candidates for advance control strategies due to its
importance and difficulty of control
PID Control
Session Summary
52
PID Control