Understanding PID Control and Loop Tuning Fundamentals - Control Engineering PDF
Understanding PID Control and Loop Tuning Fundamentals - Control Engineering PDF
PID basics
A PID controller using the ideal or International Society of Automation (ISA) standard form of the PID algorithm computes its
output CO(t) according to the formula shown in Figure 1. PV(t) is the process variable measured at time t, and the error e(t) is
the difference between the process variable and the setpoint. The PID formula weights the proportional term by a factor of P,
the integral term by a factor of P/TI, and the derivative term by a factor of P.TD where P is the controller gain, TI is the integral
time, and TD is the derivative time.
The "integral time" refers to a hypothetical sequence of events where the error
starts at zero, then abruptly jumps to a fixed value. Such an error would cause
an instantaneous response from the controller's proportional term and a
response from the integral term that starts at zero and increases steadily. The
time required for the integral term to catch up to the unchanging proportional
term is the integral time TI. A PID controller with a long integral time is more
heavily weighted toward proportional action than integral action.
Historical note
The first feedback controllers included just the proportional term. For mathematical reasons that only became apparent later
on, a P-only controller tends to drive the error downward to a small, but non-zero, value and then quit. Operators observing
this phenomenon would manually increase the controller's output until the last vestiges of the error were eliminated. They
called this operation "resetting" the controller.
When the integral term was introduced, operators observed that it would tend to perform the reset operation automatically.
That is, the controller would augment its proportional action just enough to eliminate the error entirely. Hence, integral action
was originally called "automatic reset" and remains labeled that way on some PID controllers to this day. The derivative term
was invented shortly thereafter and was described, accurately enough, as "rate control."
Tricky business
Loop tuning is the art of selecting values for the tuning parameters P, TI, and TD so that the controller will be able to eliminate
an error quickly without causing the process variable to fluctuate excessively. That's easier said than done.
Consider a car's cruise controller, for example. It can accelerate the car to a desired cruising speed, but not instantaneously.
The car's inertia causes a delay between the time that the controller engages the accelerator and the time that the car's
speed reaches the setpoint. How well a PID controller performs depends in large part on such lags.
Suppose an overloaded car with an undersized engine suddenly starts up a steep hill. The ensuing error between the car's
actual and desired speeds would cause the controller's derivative and proportional actions to kick in immediately. The
controller would begin to accelerate the car, but only as fast as the lag allows.
After a while, the integral action would also begin to contribute to the controller's output and eventually come to dominate it
because the error decreases so slowly when the lag time is long, and a sustained error is what drives the integral action. But
exactly when that would happen and how dominant the integral action would become thereafter would depend on the severity
of the lag and the relative sizes of the controller's integral and derivative times.
This simple example demonstrates a fundamental principle of PID tuning. The best choice for each of the tuning parameters
P, TI, and TD depends on the values of the other two as well as the behavior of the controlled process. Furthermore,
modifying the tuning of any one term affects the performance of the others because the modified controller affects the
process, and the process in turn affects the controller.
Ziegler-Nichols tuning
The reaction curve also shows how long it took for the process to demonstrate its initial reaction to the step (the dead time d)
1 sur 1 and how much the process variable increased relative to the size of the step (the process gain K). By trial-and-error, Ziegler 09/08/2016 14:54