PID Control
PID Control
PID Control
.Then a disturbance hits the system and the controller has to kick in again
In our house the disturbance may be the sun beating down on the roof, raising the temperature of the air
.inside
?So thats a really, really basic overview of a simple feedback control system. Sounds dead simple eh
Notice how important closing the feedback loop is. If we removed the feedback loop we would be in open loop
!control, and would have to control the cars position with our eyes closed
.Thankfully we are under Closed loop control -using our eyes for position feedback
As we saw in the house-temperature example the controller takes the both the PV and SP signals, which it
then puts through a black box to calculate a controller output. That controller output is sent to an actuator
.which moves to actually control the process
We are interested here in what the black box actually does, which is that it applies 1, 2 or 3 calculations to the
:SP and Measured PV signals. These calculations, called the Modes of Control include
Proportional (P)
Integral (I)
Derivative (D)
It is really very simple in operation. The PV is subtracted from the SP to create the Error. The error is simply
multiplied by one, two or all of the calculated P, I and D actions (depending which ones are turned on). Then
.the resulting error x control actions are added together and sent to the controller output
:These 3 modes are used in different combinations
P Sometimes used
Derivatives
:Go into the control room of a process plant and ask the operator
?Whats the derivative of reactor 4s pressure
:And the response will typically be
!Bugger off smart arse
:However go in and ask
?Whats the rate of change of reactor 4s pressure
:And the operator will examine the pressure trend and say something like
About 5 PSI every 10 minutes
Hes just performed calculus on the pressure trend! (dont tell him though or hell want a pay raise)
.So derivative is just a mathematical term meaning rate-of-change. Thats all there is to it
?!?!What the
.If you understood that you are a smarter person than me
:Heres a plain English definition
The integral of a signal is the sum of all the instantaneous values that the signal has been, from whenever
.you started counting until you stop counting
So if you are to plot your signal on a trend and your signal is sampled every second, and lets say you are
measuring temperature. If you were to superimpose the integral of the signal over the first 5 seconds it
:would look like this
The green line is your temperature, the red circles are where your control system has sampled the
temperature and the blue area is the integral of the temperature signal. It is the sum of the 5 temperature
values over the time period that you are interested in. In numerical terms it is the sum of the areas of each of
:the blue rectangles
63 C s = (11x1)+(12x1)+(13x1)+(14x1)+(x 1 13)
The curious units (degrees Celsius x seconds) are because we have to multiply a temperature by a time but
.the units arent important
As you can probably remember from school the integral turns out to be the area under the curve. When we
have real world systems, we actually get an approximation to the area under the curve, which as you can see
.from the diagram gets better, the faster we sample
Proportional control
:Heres a diagram of the controller when we have enabled only P control
In Proportional Only mode, the controller simply multiplies the Error by the Proportional Gain (Kp) to get the
.controller output
.The Proportional Gain is the setting that we tune to get our desired performance from a P only controller
The tricky thing about Integral Action is that it will really screw up your process unless you know exactly how
.much Integral action to apply
A good PID Tuning technique will calculate exactly how much Integral to apply for your specific process - but
?how is the Integral Action adjusted in the first place
To make things a bit more intuitive, a lot of controllers use an alternative unit of repeats per minute which is
.obviously the inverse of minutes per repeat
.The nice thing about repeats per minute is that the bigger it is - the bigger the resulting Integral action is
This principle mode of action of the PID controller can be explained by the parallel connection of the P, I and D elements shown in
Figure 8.1. From this diagram the transfer function of the PID controller is
(8.1
)
and
are usually tuned within given ranges. Therefore, they are often called the tuning
parameters of the controller. By proper choice of these tuning parameters a controller can be adapted for a specific plant to obtain
.a good behaviour of the controlled system
If follows from Eq. (8.2) that the time response of the controller output is
(8.3
)
, i.e.
determined. The result is shown in Figure 8.2a. One has to observe that the length of the arrow
measure of the weight of the
impulse.
Figure 8.2: Step responses (a) of the ideal and (b) of the real PID controller
In the previous considerations it has been assumed that a D behaviour can be realised by the PID controller. This is an ideal
assumption and in reality the ideal D element cannot be realised (see section 3.3). In real PID controllers a lag is included in the
D behaviour. Instead of a D element in the block diagram of Figure 8.1 a
(8.4
)
is introduced. From this the transfer function of the real PID controller or more precisely of the
controller follows as
(8.5
)
and
it follows
(8.6
)
b)
and the
c)
and
The step responses of these types of controllers are compiled in Figure 8.3. A pure I controller may also be applied and this has
the transfer function
(8.11
)