Beruflich Dokumente
Kultur Dokumente
This process is repeated until the house has cooled down to 22C and there is no error.
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:
(13 x 1)+(14x1)+(13x1)+(12x1)+(11x1) = 63 C s
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?
In other words the smaller the minutes per repeat is the bigger the integral action.
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.
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.
Lets adjust our car control environment a little more to examine a limitation in
proportional control. We are driving along a flat road with our proportional control of
the pedal responding to changes in the speedometer reading when suddenly we start to
climb a steep hill. The speed drops very quickly and we match the drop by a carefully
proportioned depression of the accelerator. The net result is that eventually we get back
up to 30mph but only after we have dropped right down to about 10. We could see the
speed dropping quickly but we constrained ourselves to only apply a fixed proportion of
accelerator based on the difference between actual speed and target speed. What we
feel we needed to do is produce a lot more accelerator power than we actually needed
for a short duration to counteract the sudden decrease in speed followed by a more
proportioned response. How do we relate this gut feeling to control theory? The
answer is derivative control.
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.
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
In the previous sections we have seen how something like the speed of a car
can be controlled by making adjustments to the control (accelerator) based on
an observed error in the required speed. We have considered simple bang
bang control where the accelerator is used like a switch which is either fully
applied or fully off. We have seen that applying the accelerator in proportion to the speed
difference helps increase accuracy of achieving the required speed (proportional control) and
that adding up all of the small errors over time to adjust the accelerator helps
reduce gradual drift in the speed. It was also noted how effective applying a
quick jolt of power during sharp slowdown periods helped smooth out
fluctuations (derivative control). Each of these techniques are important in
their own way in a control system of error analysis and adjustment for
achieving the objective of accurate control of the target, which, in our example case was the
speed of a car.
Having seen the benefits and limitations of each technique, which do you choose for your
own control system ? Do you use just one, or perhaps two, or perhaps all ?? While it is true
that there are a great many control systems that use one or two of these techniques and
function perfectly well within their scope of requirements, the most useful way to use these
techniques is within the scope of a three term controller i.e.
proportional, integral and derivative control. This is more commonly
known as PID control. We will now examine how a single control
system can make use of all three techniques to achieve the required
control of the target (eg speed). This topic is notoriously
mathematical in most of the rigorous explanations of the subject
which can exclude a great many practical engineers who were not
born again mathematicians. We feel that this can be avoided,
especially initially, in favour of a feel for what is going on. If
maths is your forte then perhaps later sections will be of more
interest. For the purposes of simplicity we will stay with the car speed control system example
where the accelerator pedal is the control input and the car speed is the target output.
When we say PID controller we are in fact saying that there is a single controlled quantity
(eg speed) which can be adjusted in such a way as to minimise the observed error between
required and measured values, using feedback proportional to each of the three PID
elements.
The above statement contains a lot of concepts !!. By feedback we are saying that some
function of the output (speed) error is used to correct the input (accelerator) control. i.e. a part
of the output is fed back to the input. Because this feedback is intended to reduce the error in
the output we call it negative feedback. This should be obvious when you consider what would
happed if positive feedback was used. i.e. to correct a slight increase in speed, you pressed the
accelerator further..in no time you would be going rather fast. In fact we will see
later that the accidental occurrence of positive feedback constitutes a loss of
control, or instability, of the system. In the above statement we also note that there
are proportional elements of each of the P,I and D elements. Put simply there are
three constants that determine how much of each type are added together to give a
resulting correction to the accelerator pedal. The bigger the constant , the more the control
pedal reacts to a change of that nature in the speed. For example a large number multiplying
the derivative part of the feedback will make the car speed very responsive to
sudden changes in speed. This may help control the speed but you might find the
ride a bit jumpy. A small number for this will mean that other elements, like
proportional feedback, may become more needed to correct speed fluctuations.
Sudden drops in speed may take a bit longer to correct in this case, but the ride
should be a bit smoother ! What we need is an optimum choice for these constants in order for
the speed to be controlled accurately enough for our purposes without other aspects of the
system being adversely affected. This process of choosing the numbers is referred to as tuning
the PID control system.
Within this process of tuning you can see that the three term control we have chosen to
focus on, can be reduced to two ,or even one, term simply by making the appropriate constants
zero (or just very small). So, what happens if we get these constants
wrong. At best you will have poor control of speed. The difference
between target and actual speed may be quite significant for long periods
of time and there may be large delays between recognising a speed
difference and it being corrected. At worst you may suffer instability. Instability can create
wildly varying accelerator positions and speeds, quite capable of wrecking any car. Lets focus
on the more dangerous case of instability. What is it and how is it caused ?
In an ideal control system, any observed changes in the output will
result in an instantaneous adjustment to the control input using the
calculated proportions of P,I and D. In the real world there are always
finite delays between observation and corrective action. If these delays
become significant then they alone can cause instability. Consider a
garden swing. When it comes towards you, you give it a push at the top
of its travel in order to make it swing higher. To slow down you apply
your force somewhere nearer the lower point of the travel. In other words, timing is crucial. In
a control system applying the corrective response at the wrong time can turn negative feedback
into positive This in turn would reinforce the observed variations making them bigger and
bigger. Although timing is the most obvious and easy to comprehend way in which a control
system can end up having positive feedback and instability ,it is by no means the only way. In
general, it is possible for any feedback control system to exhibit instability due to a particular
combination of control constants, feedback timing and input stimuli (changes in accelerator
pedal).
So, where do you start in deciding the constants to apply ?. One empirical approach is to
start with just proportional control (i.e. I and D constants zero) and increase the P constant
until the system just starts to oscillate (i.e. continuously overshooting and undershooting the
target speed) then turn up the Integral constant until the oscillations stop. This should provide
smooth but relatively slow control of speed. Now turn up the derivative control until the
response is just fast enough to be acceptable for the given application. Using this technique
your control system will be fairly well tuned. About 90% of control systems in operation
around the world are fairly well tuned. The rigorous way accurate tuning is tackled is to
delve into the mathematics of transfer functions that describe the relationship of output to input
and find the poles of instability in these functions. For the moment this is beyond our current
scope. We can leave the topic of instability here with the following warnings..
1. Be aware that your control system can suddenly become unstable due to a particular
choice of PID constants
2. A stable control system with one set of input stimuli may be unstable with others. (i.e.
input range and fluctuations)
(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.
Modulating/Proportional represents the higher end of control positioning. In
modulating/proportional control the output varies continuously and is not limited to being
fully open or fully closed. Proportional means that the size of the output is related to the
size of the error detected by the controller. The key phrase for modulating/proportional
control is Continuous Control Action. The sensor, controller, and final control device
act as one unit to maintain constant precise control over the controlled medium.
Continuing with the previous example, when a modulating system senses a deviation
from the set point of 68 degrees, the controller calculates the amount of the error (1
degree less than set point) and sends a signal to the actuator, which will drive open the
final control device (valve or damper) by a certain percentage of the controlled
mediums set point deviation (1/2 degree) to maintain set point without over-shoot. The
controller calculates how much the final control device needs to open without over-shoot
and will start reversing the actuator to close the final control device to a percentage of
the closed position to maintain set point.
Popular modulating control signals include 4-20 ma and 0-10 volts. If you were to look
into a control panel like a Hoffman Enclosure you might see controls like a Honeywell
UDC3200 that could be taking a 4-20 ma signal from a device like a Hawkeye 908
current transmitter and based on the control input signal from the Hawkeye 908 ( which
would most likely be a 4-20 ma signal) the UDC 3200 controller would respond with a 420 ma output signal to a device like a Honeywell Variable Frequency Drive which would
control either a fan or a pump. This is an example of how a proportional signal like a 420ma signal is used in modern HVAC controls.
If you are in Georgia or Florida,the control pros at Stromquist & Company can answer
your control questions.
--
==
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:
0-10 VDC
2-10 VDC
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:
Time base: 0 to 10 seconds
Output pulse: 5 seconds
Actuator position: 50%
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.