PID Tuning Tutorial
PID Tuning Tutorial
Choosing the proper values for P, I, and D is called "PID Tuning". Find
out about PID Tuning Software
Proportional Band
Integral
Notice that the offset (deviation from set-point) in the time response
plots is now gone. Integral action has eliminated the offset. The
response is somewhat oscillatory and can be stabilized some by adding
derivative action. (Graphic courtesy of ExperTune Loop Simulator.)
Integral action gives the controller a large gain at low frequencies that
results in eliminating offset and "beating down" load disturbances. The
controller phase starts out at –90 degrees and increases to near 0
degrees at the break frequency. This additional phase lag is what you
give up by adding integral action. Derivative action adds phase lead
and is used to compensate for the lag introduced by integral action.
Derivative
dm
CONTROLLER OUTPUT = DERIVATIVE ----
dt
Derivative action can stabilize loops since it adds phase lead. Generally,
if you use derivative action, more controller gain and reset can be
used.
With a PID controller the amplitude ratio now has a dip near the center
of the frequency response. Integral action gives the controller high
gain at low frequencies, and derivative action causes the gain to start
rising after the "dip". At higher frequencies the filter on derivative
action limits the derivative action. At very high frequencies (above 314
radians/time; the Nyquist frequency) the controller phase and
amplitude ratio increase and decrease quite a bit because of discrete
sampling. If the controller had no filter the controller amplitude ratio
would steadily increase at high frequencies up to the Nyquist frequency
(1/2 the sampling frequency). The controller phase now has a hump
due to the derivative lead action and filtering. (Graphic courtesy of
ExperTune Loop Simulator.)
In general, for the tightest loop control, the dynamic controller gain
should be as high as possible without causing the loop to be unstable.
Choosing a controller gain is accomplished easily with PID Tuning
Software
You can use the picture to recognize the shape of an optimally tuned
loop. Also see the response shape of loops with I or P too high or low.
To get your process response to compare, put the controller in manual
change the output 5 or 10%, then put the controller back in auto.
These settings are rough, assume proper control loop design, ideal or
series algorithm and do not apply to all controllers. Use ExperTune's
PID Loop Optimizer to find the proper PID settings for your process
and controller. (From Process Control Systems (Shinskey) p.99 and
Tuning and Control Loop Performance (McMillan) p 39)