Professional Documents
Culture Documents
PID Controller
PID Controller
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
PI - Most often used
PID Sometimes used
PD rare as hens teeth but can be useful for controlling servomotors.
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.
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.
Another note from Jim: "Whether learning about PID and how the parameters affect
performance, or trying to tune a process, simulation is an important tool for getting PID right.
Finn Peacock has a simulation tool available that runs in Microsoft Excel. Over the years, I have
written a lot of different simulation programs while developing PID algorithms for everything
from industrial process controls to scientific research apparatus on the NASA Space Shuttle. If
this spread sheet had been available then, it would have saved me a lot of time. You can get a
copy of this simulation tool (screen shot below) as part of the Pro package available from Finn
Peacock atwww.pidtuning.net. Again, I don't make a dime off this. I just found it valuable and
wanted to pass it along."
--
eedback Control
Feedback (or closed loop) control is where control theory
really starts to get interesting. ? What do we mean by
feedback? Feedback is information fed back into the control
system providing information about the current status of what
it is trying to control. Let's clarify with an example.
You are driving a car along a straight and level road. You press
the accelerator until the speed reaches 30mph. You then ease
off on the accelerator a touch to maintain that constant speed.
You are now participating in a closed loop control system. The
objective, or target, of control here is the desired speed of the
car. The input to the control loop is the reading of speed seen
by you on the speedometer and the output is the control of the
accelerator pedal. The intelligence at work here (I use the
phrase in the most general sense !) is you, the driver. As you
drive along the road there is a dynamic interaction between
the speedometer reading and the position of the pedal. As you
detect an error in the target speed of 30mph you apply a
correcting action using the pedal. In terms of feedback, you
are feeding back the detected error in the target speed and
applying it to the pedal. (For the moment we will ignore the
mathematics that would
dictate constants of
proportionality etc and
focus on the fundamental
characteristics).
So, all is well. We have the car under control, with our personal feedback loop and are
wondering what all the fuss is about feedback control is easy. Before we get too confident
let's make some changes to this control system, and see where it takes us. Some of the
changes may seem a little strange but stay with me, because they will lead to a better
understanding further down the line.
Let's replace the accelerator pedal with a switch. "On" gives maximum acceleration and
"off" gives none at all. Crazy?, of course it is but imagine your attempts at trying to maintain
a steady speed. You would probably find that your speed would oscillate above and below
your target of 30mph, probably quite significantly. You could perhaps achieve a better control
with higher speed shorter pulses of the switch but you would then be facing the problem of
speed of response of the engine. The engine will not deliver power instantly (well at least not
the cars I drive). Without a significant duration of switch-on time you
may not see any change in speed.
Proportional Control
Without realizing it you were applying proportional control to
the car speed. In other words the corrective action you took in
response to an incorrect speed was in proportion to the
amount of error. A large drop in speed caused you to floor the
accelerator and, as your speed came up, you gradually eased
off the pedal until achieving the target of 30mph. So much
easier than the switch, but more complex control. With the
switch control, your input (reading the speedometer), only had
to decide above or below the target. Now you have to know
how much above or below. Your output was a simple on-off,
now its a pedal position. Is it worth it for controlling the car?
Of course it is. Would you use it for central heating control?
Probably not. Knowing where it is appropriate to apply specific
control techniques is as important as knowing how to apply
them.
erivative Control
Derivative control quantifies this need to apply more
correction by linking the amount of accelerator pedal to the
rate of change of speed. In other words the faster the speed
is dropping the more acceleration we apply. A sudden drop in
speed requires a large and equally quick depression of the
accelerator pedal. Do not confuse this with the amount of
speed drop. It is quite independent. It is also important to
realize that on its own derivative control is not sufficient to
restore the speed to 30mph. Consider if the change in speed is
very slow. For example the speed may be dropping at a rate of
1mph per minute. This would produce an insignificant amount
of accelerator pedal depression and even if (after 25 minutes)
the speed dropped to 5mph the amount of pedal depression
would still be insignificant. We conclude that we need
proportions of both elements to properly control the speed;
derivative control to cope with sudden fluctuations and
proportional to bring it back from large errors.
We have a very reasonable control system now which can maintain the
target speed 30mph within certain limits regardless of flat or hilly roads.
What we now need to examine is how close to the target are we capable
of controlling the speed. Using the car example in this case is probably a
little unfair in that the accuracy of the speedometer and a requirement to
travel at an almost exact speed of 30mph are just not sensible. However,
lets assume that is exactly what we are trying to achieve. So, what is
wrong with our current accuracy? If I were to estimate what were possible
within the current control system I would say that we could hold the speed
within the limits of 28 32 mph. So how can we improve that.. Before I
answer that lets examine the nature of the speed error.
If we have a large difference in target and actual speed our proportional
control applies a correction. If we have a sudden change in speed the
derivative control helps out. However, if we only have a small fixed error
the proportional element is so small that it is ineffective and because
there is no change in speed the derivative contribution is zero. So the
small error persists indefinitely. What we need here is something that
increases in its contribution the longer the error , however small, exists.
This is called Integral Control.
Integral Control
Consider integral control as a constant summation function. That is, it is
constantly adding up the error from the target speed and providing feedback
proportional to the total rather than the error. So in our example, the constant error
of even a fraction of a mph will accumulate until at some point the total will be
enough to cause effective corrective action. Once again I have to emphasize that
integral control on its own will not be enough to control speed within the example
already described. Proportional and derivative are still essential ingredients in the
mix.
PID Control
First, to understand these types of control you must have the elements of control. The
elements of control are the sensor (senses the medium being controlled), the controller
(device either preset or programmed to react to the sensor), and the final controlled
device such as a damper or a control valve (receives input signals from controller to
affect change in controlled medium). These elements are considered the control loop.
On/Off control is the basic type of control in a control loop. With On/Off control, the
sensor senses the controlled medium and sends a signal back to the controller, which
processes the signal. For ease of understanding, our example will be a heating
application. The set point (the desired control point) in this case is 68 degrees with a
temperature differential of 2 degrees for the controller. When the sensors signal to the
controller reports a temperature of less than the controllers set point, the controller
sends a signal to the final control device (hot water valve) to position to fully open until
set point is achieved. When the controller receives a signal from the sensor that the set
point has been achieved, the controller then sends a signal to the valve to position to
fully closed. The problem with On/Off control is over-shoot temperature of the desired
system set point because of reaction time between sensor, controller, and final control
device. Review: With On/Off, the controller asks Is there an error? The controller
compares the actual value of the controlled medium to the set point through the sensor.
As the controlled medium deviates from set point, the controllers output cycles the final
controlled device on, and when the set point is reached the controllers output cycles the
final control device off.
Floating control is a variation of On/Off control that requires a fast responding sensor
and a slow-moving actuator connected to the final controlled device (valve or damper).
Using the same example as the On/Off example above, when the sensed temperature
drops below the set point of 68 degrees by the controlled mediums sensor, the
controller sends a signal to activate the actuator on the final control device. The actuator
starts to slowly drive open the hot water valve, increasing the heat in the controlled
medium. When set point is reached the actuator stops opening the final control device
(hot water valve) and tries to hold at set point. If set point starts to be over-shot, the
controller sends a signal to the actuator to start to drive close the valve. Review: Set
point control is achieved when the sensor signal (from the controlled medium) starts to
deviate from the controller set point. The controller sends a signal to the actuator of the
final control device (valve or damper) to slowly drive open. As the set point is
approached the controller sends a signal to the actuator, then the actuator stops and
tries to maintain set point. If set point is passed the controller sends signal to the
actuator to drive the final control device to a closed position.
--
==
Understand Control Signal Jargon
Posted on Mon,Oct 24, 2011 @ 10:00 AM
Tweet
"On/Off", "Open/closed", "3 Point", "Tri-state", 'proportional modulation", phase cut", "PWM" or "MFT" - what it
all means.
On/Off or Open-Close: The actuator is able to drive either to its full open position, or to its full closed
position. The same indication is used for spring return type actuators. Where the actuator will drive to its full
open position and spring return to its zero position. This can also be reversed.
3-point, Tri-State, Floating Point: The actuator has both clockwise (CW) and counter-clockwise (CCW)
control inputs. One drives the actuator to its open, the other to its close position. If there is no signal (Null point)
on either input the actuator simply stays in its last position.
Proportional Control: The actuator drives proportional to its control input and modulates throughout its angle
of rotation. This control type is usually a variation of VDC. Common values are:
It is common to also have a 0-20/4-20 mA output from a controller. This can be very easily converted to 0-10
VDC or 2-10 VDC with a 500 resistor.
Pulse Width Modulation (PWM): The actuator drives to a specified position according to a pulse duration, the
length of signal. The pulse can originate from a dry contact closure or a triac sink or source controller. An
example of PWM control:
Phasecut: An actuator drives depending on the power result of a remaining wave. This signal type cuts the
amplitude of the wave and the actuator recognizes this signal as a proportional movement.
Multi-Functional Technology (MFT): This technology was developed by Belimo for incorporation into our
damper and valve actuator. MFT provides the ability to program characteristics of the actuator. Some of the
key characteristics to change are:
CONTROL INPUT
selectable On/Off, VDC, PWM or Floating point
MOTION VALVES
selectable Running time adjustment
FEEDBACK
selectable feedback values
Belimo actuators are compatible with many control inputs and all direct digital control (DDC) systems. There
are many signals to select from with todays controllers.