Hamid Abdillah
Maret 2005
Outlines
Algoritma pengendalian PID
Aspek praktis
Tujuan
Memahami pengendalian PID
Memahami fungsi dari tiap-tiap bentuk pengendalian PID
Dapat melakukan visual tuning
Maret 2005
Pengendalian PID
PID singkatan dari Proportional - Integrator –
Derivative.
Digunakan pada pengendalian umpan balik
Dikenal juga sebagai “three-term control”.
Menggunakan pemrograman komputer.
Maret 2005
Set point
(SP)
PID Control
Algoritma PID sederhana, mudah dipahami, dan relatif
lebih mudah disetel (tuned) daripada pengendali lain
Menjadi peralatan standar ketika pengendalian proses
berkembang pada tahun 1940an
Pada pengendalian proses saat ini, lebih dari 90%
lingkar pengendalian menggunakan tipe PID
Maret 2005
Konsep Dasar
Aksi Proses
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
Maret 2005
Konsep dasar
Konsep dasar
Algoritma PID tidak mengenali output yang benar untuk
membawa variabel proses menuju setpoint
• Yang mengenali output yang benar adalah pengguna
yang melihat hasil pengendalian
PID algorithm harus disetel (di tuning) sesuai dengan
proses.
• Tiap bentuk dari persamaan PID harus dipahami.
• Penyetelan didasarkan pada dinamika respon proses
Maret 2005
Cin
CO = P .e SP
+
e CO
PP
P = proportional gain
PVm
CO = controller output (%)
b = Bias (%) (dikenal juga sebagai manual reset)
e = ( SP – PVm ) (%) “reverse action”, atau
e = – ( SP – PVm ) (%) “direct action”
CO = P. e
100 100
PB = = e.
P PB
Maret 2005
PVm
SP
Large P
Small P
time
Maret 2005
PVm
SP
Manual reset
P constant
Manual reset
time
Maret 2005
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
Maret 2005
I-only
Small P
time
Maret 2005
Mode Proportional-Integral(1)
PP
SP
+
e 11 CO
TTmm
dt
PVm
1
CO = P (e +
Tm e dt )
Maret 2005
in magnitude to
Proportional
response
Response due to
Proportional P
control action
Tm time
Error
0
time
Maret 2005
PVm PI
SP
P-only
I-only
Small P
time
Maret 2005
PVm
D = derivative time (minute or second)
CO = controller output (%)
e = ( SP – PVm ) (%) “reverse action” or
e = – ( SP – PVm ) (%) “direct action”
d b
D
D dt +
SP e + CO
+
PP
+
+
PVm
de
)
CO = P (e + D dt + b
Maret 2005
Theoretical
Actual
Response due to
Proportional mode
only
D
time
Ramp
Generator OFF
Error
Ramp
Generator ON time
Maret 2005
PD
P-only
Small P
time
Maret 2005
11
TTmm
dt
SP e + CO
+ +
PP
+
d
D
D dt
PVm
1 de
CO = P (e +
Tme dt + D dt )
Maret 2005
time
Maret 2005
y
PVm
ysp
SP
c
CO
Time
Anti-Reset Windup
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
Maret 2005
True Setpoint
Internal Setpoint
Time
Maret 2005
w/ bumpless transfer
Time
Maret 2005
Derivative
Spike
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using standard PID
Maret 2005
d
PP .D
D dt
PVm
1 dPVm
CO = P (e +
Tm ) .
e -P D
dt
Maret 2005
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using
“Derivative on Process Measurement” PID
Maret 2005
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
Maret 2005
SP e
+ PP
TTmm
dt
+ CO
PP
d
PP .D
D dt
PVm
P dPVm
CO =
Tm
e dt + P ( PVm +
dt
)
Maret 2005
MV
SP
PVm
time
Fig. Process variable and valve response
to a setpoint change using
“Gain and Derivative on Process Measurement” PID
Maret 2005
Continuous signal
t
sample
t = sampling time
2t
1 de
Continuous form: CO = P (e +
Tm
e dt + D dt )
t D
Digital form: CO = P [ei + T
m
ei + t (ei – ei-1) ]
i = sampling instant
Maret 2005
t D
COi = P[ ei +T
m
ei dt + t (ei – ei-1) ]
• Velocity form
Inherently have anti reset windup feature
t D
COi = COi-1 + P [ (ei – ei-1) + ei + t (ei – 2ei-1+ei-2) ]
Tm
Maret 2005
Not used
Algorithm D Not used Error
Maret 2005
P-only
PI
PID
Maret 2005
Temperature control
Wide variety of the process nature
Usually slow response with time delay
Use PID controller to speed up the response
Maret 2005
Session Summary
PID control, which is the most widely used control
algorithm in process control application, comes in different
forms and terms
Each of the terms of the PID equation must be
understood to obtain a right combination of the PID
control elements for various process control application
objectives