7.4 PID Controller 279
The time constant T
t
specifies speed of the integral rewind. At the first
sight it seems that it should be the smallest possible. However, it has been
found that in presence of noise the integrator could interrupt its activity. An
empirical rule of thumb is the value about T
t
=
√
T
I
T
D
.
Bumpless Transfer
Modern PID controllers can function in automatic and manual modes. The
standard mode is automatic when the controller calculates the control signal.
The manual mode serves to handle nonstandard situations when the control
signal is specified by process operators. It is important to guarantee that
change between the modes is without undesired transient effects, i. e. the new
mode should start smoothly at the last calculated value of the old mode.
The bumpless transfer problem can be removed if incremental form of con-
trollers is used. In other cases it is possible to use the anti-windup scheme
(Fig. 7.19) where the controller follows the actually applied signal to the
process.
Transient effects can also occur when controller parameters are changed.
In that case it is necessary to recalculate the integral action.
Digital Implementation
The first PID controllers were constructed as thecontinuous-time pneumatic or
(later) electric devices. With the recent advances of microprocessors controllers
are mostly implemented digitally as discrete-time algorithms. In general, this
brings many advantages as the microprocessor not only implements the control
law but it can also trigger alarms, filter input variables, etc. However, there are
some features and properties special to digital devices as such a controller does
not process the analogue signal continuously but only at some time instants
– sampling times.
The most important parameters of a digital device is its sampling period
T
s
. If it is chosen too large, some dynamic effects can escape. Practical rule of
thumb is to choose it such that the interval (5 − 10)T
s
should cover the rise
time of the plant. In the frequency domain this can correspond to 10 times
the bandwidth. If there is no information about the controller process, it is
recommended to choose the sampling time as small as possible. Theoretical
issues on the choice of T
s
are also discussed in Section 5.1.
The discretisation in itself covers approximation of all three parts of the
PID controller when the original differential equation is transformed into a
difference equation.
To derive a digital version of the PID controller assume the parallel form
given by (7.47). Its discrete version can be obtained in various ways. For
example by backward approximation of the derivative and integral parts as