You are on page 1of 17

An Overview of Proportional plus Integral plus Derivative Control and

Suggestions for Its Successful Application and Implementation


By: David Sellers, Senior Engineer, Portland Energy Conservation Inc, Portland,
Oregon

ABSTRACT consumption of this energy intensive


PID control loops are becoming quite system. The performance of the
common in the commercial, institutional, discharge temperature controller was
and industrial HVAC industry. Proper critical if the system was going to meet its
application and tuning of this control design goals. Thus the designer had
algorithm can bring many efficiency and selected and specified a process control
performance benefits with it. However, grade proportional pneumatic controller
improper applications, lack of believing that this would assure that
understanding and poor tuning of these these requirements would be accurately
loops are often the root cause behind and reliably met. Even thought the
many commissioning problems. This product selected was part of the product
paper will discuss the background and line offered by the control contractor for
theory behind PID and why it offers the project, the field staff were not very
certain advantages from a precision and familiar with its installation, set-up and
energy conservation standpoint. It will operation since the controller was
also look at when the algorithm should infrequently specified due to it’s cost
and should not be applied. Finally, it relative to the new receiver controllers in
would look at how to set up, verify and the product line.
address control loop tuning issues based When the engineer inserted his lab grade
on field experience and the work of David mercury thermometer into the system
W. St. Clair. discharge duct to verify the controllers
performance he discovered that the
INTRODUCTION system was delivering air at 52.5°F; 4°F
Experience over the years seems to below the required set point of 56.5°F.
indicate that fundamental control system That was 47 tons of unnecessary cooling
theory and hardware are often and 5.7 mbH of unnecessary reheat. He
misunderstood by HVAC system documented the discrepancy as a
designers, engineers, and technicians calibration problem in his punch list and
resulting in frustration and the failure of moved on to check other areas. Later
many good designs to fully realize their that afternoon, when he took the chief
intended level of performance and facilities engineer to the equipment room
efficiency. Consider the following to show him the problem, he was further
example. dismayed to discover that the chilled
water valve was still in a modulated
It’s early in the morning on a summer day position even though the day had turned
in the Midwest. A young project engineer quite hot an humid. Worse yet, the
is performing the final inspection and controller was now maintaining a
punch list for a project that implemented discharge temperature of 60.5°F, even
extensive renovation and modification of a though its set point was unchanged. It
45,000 cfm constant volume reheat air looked like that calibrated or not, his
handling system serving a hospital sophisticated and expensive controller
emergency and radiology suite. The was not capable of holding a set point.
project had been driven by the need to
modify the system to meet the As a result, an angry letter was written to
requirements of new radiology equipment the control contractor branch manager
installed in the area it served as well as complaining about the poor quality of
the need to optimize the energy both their product and their field support.
The branch office responded by sending For many people, an easier way to think
their best pneumatic control pipe fitter of controller gain is to think of it in terms
out with a replacement controller. What of controller throttling range or controller
nobody at the time seemed to realize was proportional band. The terms are
that the product was in fact working reciprocals of each other, at least in the
properly and was probably reasonably general sense. The throttling range of
well calibrated. Despite everything the the controller is the change in input,
project engineer had learned in which will cause the controlled device to
developing the design for the system go through its full stroke. For instance, a
modification, despite all his calculations pneumatic controller temperature
and analysis, despite the combined controller with a 10°F throttling range
experience of the branch manager and that is controlling a normally closed valve
control fitter, they all had failed to with a 3-15 psi span would require a 10°F
understand the fundamental concept temperature change at its input sensor to
behind a proportional controller; i.e. the generate a 12 psi change at its output and
output of the controller is proportional to make the valve go from fully closed to
the difference between the set point and fully open. A typical controller calibration
the control point. procedure adjusts the controller so that
its controlled device is at mid-stroke when
PROPORTIONAL OFFSET OR ERROR the control point is exactly equal to the
Stated another way, except for one very set point. So, if the controller we were
specific load condition, there will always describing in the preceding sentence was
be a difference between the control point an air handling unit discharge
and the set point for a system that is temperature controller which modulated
operating under the control of a a chilled water valve to maintain a 56.5°F
proportional controller. This difference set point and had been calibrated so that
between what you want and what you are the valve was at mid stroke when the
getting is called the proportional offset or controller output was at 9 psi (half way
proportional error. How big this between 3 and 15 psi), then the discharge
difference will be is a function of the gain temperature would need to fall 5°F below
of the controller. Stated mathematically: set point to fully close the valve and rise
5°F above set point to fully open the
Output = KP * Proportional Offset valve.

Where: Thus, at low load conditions, the


KP = controller proportional gain discharge temperature would tend to
drop below the required set point until

Figure 1 – The Effect of Narrowing the Throttling Range On a Controller

The black line (darkest) represents the response of a well-tuned proportional control
system to an upset or change in the system, like a set point change for instance. Notice
how there are a few oscillations and then the system finds a new stable operating point at
a different valve position. The blue line is the response of this same system after the
throttling range has been decreased to the point where it starts to become unstable. The
red and the gray lines are the results of further decreases in the throttling range. Note
the valve was in a position where the flow temperature change at its input. If the
through it exactly matched the low load controller had a 5°F throttling range, a
condition. When there was no load, the 1°F temperature change at its input
system would have to allow the discharge would result in a 2.4 psi change in output.
temperature to drift down to 51.5°F to With a 2°F throttling range, the output
completely close the valve. Similarly, at would change 6 psi for every 1°F
high load conditions, the system would temperature change at the input sensor.
have to allow the discharge temperature So, as the throttling range of the
to drift up to 61.5°F before the control controller is decreased, the controller
valve would be driven fully open and becomes much more sensitive to changes
allow the design chilled water flow to at its input and responds much more
enter the cooling coil. strongly to them. This is good as long as
the system that the controller is
It is quite likely that the controller in the controlling can keep up with the
case study at the beginning of the paper controller’s changes. But, as you narrow
was a proportional controller with a 10°F the throttling range, most real systems
throttling range working as designed over will reach a point where time lags,
a range of load conditions. Early in the thermal inertia, physical inertia and other
day, when the load was low, a stable factors result in the over-all system
operating point was achieved with a response is slower than the controller’s
discharge temperature 4°F below the response to a change at its input. As a
controller’s set point. As the load result the system becomes unstable and
increased, the chilled water flow at this starts to hunt. (In human terms, the
valve position was inadequate and the system can’t keep up with the demands of
discharge temperature started to rise. the controller and goes crazy.) Figure 1
The rising discharge temperature illustrates what happens as the throttling
changed the offset in the system and thus range is reduced on a system.
output of the controller. This caused the
valve to open until a new point of stability
was achieved.

After thinking about all of that for a while,


it is a common reaction for less
experienced people to suggest that the
throttling range be made as small as
possible so that the system would have
little if any proportional offset, regardless
of the load condition. This is in fact one
of the parameters that you are trying to
achieve when you tune a controller; i.e.
you are trying to achieve the smallest
possible throttling range, which will
provide stable system performance under
all operating conditions. It is in the
second part of that statement wherein the
trick and the problem lies.

As you narrow the throttling range of a


controller, the response of the controller
to a change sensed by its input sensor
becomes much more pronounced. For
instance, a pneumatic temperature
controller with a standard 12 psi output
range and a 10°F throttling range will
adjust it’s output 1.2 psi for every 1°F of
To understand this a little better, lets look
in detail at what happens with our chilled
water valve controller when something
causes the temperature to change at its
input sensor. We will continue to discuss
this as if the controller were a pneumatic
unit. The essence of what happens will be
the same regardless of whether the
controller is a pneumatic instrument, a
solid state instrument, or a computer.
The first thing that happens is the actual
air temperature changes. The change in
air temperature causes the temperature
of the sensing element to change. There
is some time lag associated with that
process, but probably not much since
sensors are designed to respond fairly
rapidly to temperature changes. The
controller must now act on this
temperature change. In pneumatic
controllers, this typically was
accomplished via a series of levers, Figure 2 – Mid 1940’s State of the
bellows, and other mechanisms that Art Pneumatic Controller.
somehow caused air from the air source
to be added or removed from the output Note all the levers and other
line. Again, this happened fairly quickly, mechanisms. Current technology
but some finite amount of time will be computers and electronic controllers
required for all the levers, bellows, and have far fewer moving parts, but there
other mechanical devices to move to is still some time required for an input
reflect the new operating condition. (See change to be reflected at the output.
Figure 2i).
Now that the controller has made some chilled water coil will start to change.
internal change to try to change its output But, the higher chilled water flow rate
pressure, the pressure has to actually must first cool the tubes and fins of the
change before the system will respond. coil to a slightly lower temperature before
This is a function of several things the tubes and fins can cool the air stream.
including the nature of the pressure Once the air stream starts to cool, there
source, the length of the line to the valve will be some period of time (usually called
that is being controlled, and the volume of transport time or dead time) between
air required to fill the valve actuator when the cooler air leaves the face if the
enough to start to move the valve stem. coil and when it reaches the sensing
Of course, just because the valve linkage element. Once the cooler air reaches the
starts to move doesn’t necessarily mean sensing element, it can change the
that the valve plug is going to move. temperature of the sensing element,
Most mechanisms, especially linkage which will effect the controller output and
systems, have some play in them. So, for the cycle repeats. In small systems with
the valve plug to move and start to fast controllers and rapid fluid streams,
actually change the flow through the the combined impact of all of these time
chilled water coil, the valve linkage must factors will amount to fractions of a
first move enough to take up this play second or seconds. On a large system
(sometimes termed hysteresis or dead with large final control elements and
band). large distances between the controllers,
And of course, all of this takes time. Once sensors and coils, these interactions can
the play is out of the system and the valve take fractions of a minute or even
plug actually moves, the flow through the minutes.
 The PID algorithm may solve significant
The bottom line is that each controller control problems in some cases, but
must be tuned to the system it serves to universal application of the control
function properly, and each system will algorithm to all control loops in a
have a minimum throttling range below
which system operation will no longer be
stable. It is not uncommon for the
proportional temperature control systems
for large HVAC equipment to require
throttling ranges of 5-10°F or more for
stable performance. This results in large
offsets or errors from the desired set
point for many of the system’s operating
conditions. For some systems, like the
one in the case study, this will result in a
significant energy consumption penalty
for much of the operating cycle unless the
set point of the controller is constantly
readjusted by the operators to
compensate for the offset. Of course,
most facilities groups have more than Figure 3 – 1940 Vintage Control
enough to do with out having to Room
constantly run around and adjust their
controllers. After all, it’s supposed to be Each box with a circle in it is a PID
an automatic temperature control system. controller. All of these controller loops
And, even if this were possible, the and much more can now fit in a
constant adjusting would probably result current technology PCi.
in other operational issues developing.
facility or complex without considering
if the process warrants the added
PID TO THE RESCUE
complexity may cause more problems
The good news is that the PID control
that it solves.
algorithm (which stands for Proportional
plus Integral plus Derivative) can, when
PID technology has actually been around
properly applied, eliminate all of the
in the process control industry for quite a
proportional offset associated with a
while. The first successful PID controllers
traditional proportional only control loop.
were pneumatic instruments that were
developed in the late 30’s and early 40’s.
The bad news is that PID controllers are
When they were first developed, the
much more complex than traditional
tuning and application of the devices was
proportional controllers to tune and
actually more of an art than a science.
maintain. This problem has additional
This condition persisted until around
complications associated with it
1940 when two engineers at Taylor
including:
Instruments – John Ziegler and Nathaniel
Nichols – developed the “Ziegler-Nichols”
 The exact workings and mathematics
method of tuning controllersiii. Figure 3 is
behind PID algorithms vary from
a picture of a control room from a 1940’s
manufacturer to manufacturerii. The
synthetic rubber plant and will give you
tuning constants that work for a system
an idea of the state of the art at the time
equipped with a controller from
they performed their work.
manufacturer A may not work on the
same system if the controller is replaced
It is the integral function (the I in PID)
by another from manufacturer B.
that really addresses the problem we are
 The PID algorithm and how to apply and concerned with in the HVAC business; i.e.
adjust it is not well understood by many eliminating proportional offset. The
in the HVAC community. derivative function allows the controller
to be more responsive to changes in the the integral function is simply added to
process but is seldom required to any the loop without making an adjustment to
great extent in most (but not all) HVAC decrease the proportional gain. This is
applications. because a well tuned control loop has its
gain set so that the system operates just
THE EFFECTS OF THE INTEGRAL on the stable side of instability. Assuming
FUNCTION no other changes to the control system or
The integral function works to eliminate mechanical system it serves, anything
the proportional offset over time. There that increases the gain of the control
are numerous ways to actually accomplish system significantly will force it into an
this, and the method will vary from unstable operating region. Thus, if
manufacturer to manufacturer. But, the integral action and gain is to be added to
intent in all cases is very similar. The a well tuned proportional only control
integral function looks at accumulated loop a concurrent reduction in the
offset over time (thus the term integral) proportional gain will be required to keep
and adjusts the output of the controller as the over-all system in a stable operating
required to eliminate offset. The action state. Some general rules regarding
usually is applied in conjunction with the making this adjustment will be discussed
proportional action although integral only in a subsequent section of this paper.
control is used in some limited process
and HVAC applications. Another problem associated with integral
action is called integral wind-up. Since
Mathematically, a proportional plus the integral function is accumulating
integral controller will operate on some proportional offset over time, the
variation of the following equation: accumulated value will tend to increase as
long as the offset is positive (above set
point) and decrease when the offset is
Output = KP * Proportional Offset+ negative (below set point). If the
KI *  Proportional
time
Offset equipment controlled by the control loop
does not have the “muscle” to eventually
Where: force the offset to be negative, the
KI = controller integral gain controller will simply keep accumulating
 Proportional Offset = summation positive offset, resulting in a huge
time
or integration accumulated value. This will drive the
of proportional offset over time output of the control loop to its maximum
value and it will remain there until
As stated previously, the exact equation or conditions change to the point where the
algorithm used will vary from system can recover and force the offset to
manufacturer to manufacturer, but the be negative and the negative offset has
concept is as illustrated in the equation been big enough and lasted long enough
above. Integral gain is typically thought to bring the accumulated positive value
of in terms of repeats per minute or back down.
minutes per repeat (reciprocal terms), a
reference to how quickly the effect of
integral action will increase the output of
the controller relative to the output
change caused by the proportional
response to the initial upset. This is
illustrated in Figure 4.

One of the problems that seems to occur


in some retrofit installations where a P
only controller is replaced with a PI
controller is that the once stable control
loops will sometimes become unstable if
Figure 4 - Integral Action at One Repeat Per Minute vs.
Proportional Action Only
12.0
11.0 Initial output change of 1 psi via
proportional response.
10.0
9.0
8.0
7.0 Integral action
1 minute
repeats the initial
6.0 proportional
response in 1 minute
5.0
4.0
0.0 0.5 1.0 1.5 2.0 2.5 3.0
Time
Output Pressure - Integral Action
Output Pressure - Proportional Action
To illustrate this, consider a PI control control loops remain active, they attempt
loop serving a chilled water coil that is to force the system to achieve set point,
subjected to a load that it cannot handle. even though the inactive system is
If everything else is at design and sized incapable of achieving this. When the
properly, the chilled water valve serving system restarts, the loops are “wound
the coil will be fully open at the exact up”. One step that can help to combat this
point where the coil capacity matches the problem on programmable systems is to
load. As the load begins to exceed what
the coil is capable of, the controller will
begin to see a positive offset because the Figure 5 - Proportional Plus Integral Plus Derivative Action with a
wide open valve can not maintain set Derivative Time of One Minute vs. Proportional Plus Integral
Action Only
point and the discharge temperature 12.0
Derivative action immediately addes
starts to rise. Nevertheless, the integral 11.0 another 1psi to the output value
controller will continue to accumulate this 10.0
offset with the accumulated value
9.0
becoming larger and larger as time
progresses. This will cause the output of 8.0

the controller to reach its maximum value 7.0 1 minute


Integral action
would require 1
in short order and remain there. This will 6.0 minute to add 1 psi
continue even when the load begins to 5.0 Initial output change of 1 psi via
to the output with
out derivative
drop back toward a level that the coil can proportional response.
action.
4.0
handle, because as long as the coil is
0.0 0.5 1.0 1.5 2.0 2.5 3.0
overloaded, the discharge temperature
Time
will be above set point, and thus the offset Output Pressure - PI Action Output Pressure - PID Action
will be positive with the magnitude of the
offset varying with the amount that the force the output of the loop statement to
coil is overloaded. It is only when the zero and/or skip the calculation step any
load on the coil drops below what it is time the component it serves is off.
capable of handling at full flow that the
accumulated value will start to decrease. THE EFFECTS OF THE DERIVATIVE
But, since the large accumulated offset FUNCTION
value will hold the chilled water valve The derivative function responds to the
wide open, it is quite likely that the rate of change of proportional offset over
system will significantly overshoot in the time. As with integral action, there are
negative direction before the accumulated numerous ways to actually accomplish
offset value is reduced to the point that this. In the general case, the derivative
the valve begins to modulate closed. The function looks at the rate at which the
result can be sluggish and erratic system proportional offset changes over time
performance and wasted energy. Most (thus the term derivative) and adjusts the
controllers incorporate some sort of anti- output of the controller as required to
wind-up feature, which work with varying minimize the rate of change. When
degrees of successiv. Scheduled HVAC properly applied, the derivative function
equipment is prone to this sort of problem will help to minimize the deviation from
when the system is commanded off if set point that a system will experience
steps are not taken to prevent it. If the when it sees a sudden change in the
requirements of the process. The need concept is as illustrated in the equation
for this function is not common in HVAC above. Derivative gain is typically
systems, and thus it is often not necessary thought of in terms of minutes, a
to implement it. However, the function reference to how long it would take the
can be useful to help minimize the swings effect of integral action to increase the
that a system will see at start-up or due to output of the controller in response to an
some other large load change. upset relative to the output change
Experience has show it to be particularly caused by the immediate effect of the
helpful in minimizing pressure deviations derivative action as a result of the initial
in large variable air volume systems at upset. This is illustrated in Figure 5.
start-up and in dealing with the problems One of the interesting aspects of
associated with marginally oversized derivative action is that it only will occur
valves and other final control elements. during an upset when there is a change in
offset relative to time. If the rate of
Mathematically, a proportional plus change of offset is zero, then the
integral plus derivative controller will derivative gain is multiplied by zero and
operate on some variation of the following will have no effect on the output.
equation:
Derivative action, when properly applied,
Output = KP * Proportional Offset+ can result in improved performance. But,
KI *  Proportional Offset+ it is difficult to apply properly. With
time
proportional, integral, and derivative
KD *  Proportional Offset/ Time action, you generally are trying “to use

PI response (note elimination of offset)


PID response (note offset eliminated and peak deviation is less)

P only response (note offset from set


point).
Set point changed from 50% to 70%.

Figure 6 – The Effect of Proportional, Integral, and DerivativeControl Response on System Performance

In most cases, the biggest benefit associated with PID control for an HVAC application is the elimination of the
proportional offset via the integral function. Derivative action can minimize the process swing associated with a
system upset, but the benefits associated with this are often quite modest or insignificant in an HVAC application.

enough, but not too much of each


Where: function. But, with proportional and
KD = controller derivative gain integral action, if you don’t use enough,
 Proportional Offset/ Time = rate the result will generally be better than if
of change of proportional offset you didn’t use them at all in most cases;
relative to time i.e. some benefit will be realized, but it
may be less than optimal. With derivative
As stated previously, the exact equation or gain, not using enough provides no real
algorithm used will vary from benefit, and using too much can cause
manufacturer to manufacturer, but the many, many more problems than it cures”v
which each peak is 25% of the magnitude
COMBINED EFFECT OF P + I + D of the preceding one although other
Figure 6 illustrates the response of the solutions are also considered acceptablevi.
same system to a proportional only Generally, the decay in amplitude
control loop, a proportional plus integral following a disturbance should occur in a
control loop, and a proportional plus reasonable period of time and result
integral plus derivative control loop. stable operation at set point, as can be
Notice how the addition of integral action seen from Figure 6. Loops that are stable
eliminates the proportional offset and the but take a long time to settle in to set
addition of derivative action reduces the point after an upset probably require
peak offset experienced when the loop is additional proportional and/or integral
upset. gain. Loops that remain in oscillation
following an upset probably have too
Eliminating the proportional offset can much gain.
have significant energy and cost savings
implications for HAVC systems in addition CONTROL LOOP TUNING
to improving the precision of the control TECHNIQUES
system. In the example at the beginning A detailed discussion of loop tuning is
of this paper, you will recall that the offset beyond the scope of this paper. In
resulted in 47 tons of unnecessary cooling addition, several of the sources cited
and 5.7 mBh of unnecessary reheat under contain very well written instructions and
one operating condition. Eliminating will provide excellent guidance.
unnecessary loads like these can result in Controller Tuning and Control Loop
reductions in operating costs of hundreds Performance, Second Edition is especially
or even thousands of dollars per year, well written and useful in that it presents
especially in the case of large systems and the information in a non-mathematical
systems that operate a significant number format geared towards giving technicians
of hours per year. Using either of these and operators a practical, easily
functions will significantly increase the implemented understanding of PID loops
time required to tune and maintain the and their tuning. The guide also includes
control loop as compared to a the mathematics associated with the
proportional only loop. process for those who are interested. A
supplemental software program is
Minimizing the peak swing in proportional available with the guide that provides and
offset that will occur when the loop is excellent tutorial on loop tuning and
upset (the effect of properly applied allows the user to experiment with
derivative action) provides benefits that techniques and become familiar with the
are related more to improved operation responses of the various types of gain.
and performance rather than improved The software can also be used to quasi-
precision and lower energy costs. Since simulate problem loops and play what-if
most HVAC process are relatively steady games with them if you know enough
state operations once they are stabilized about the system. Many of the
and the changes that do occur usually illustrations used in this paper are screen
occur gradually over a relatively long time captures from the output of this program
interval, derivative action provides little (Figure 6 is one example).
additional value for most HVAC control
loops. In general, there are two approaches to
loop tuning, closed loop and open loop.
A well tuned PID loop will exhibit a The closed loop approach is used with the
characteristic response where-in the system on line and operating in
oscillations introduced by an upset will automatic. This is probably the approach
decay fairly quickly with each peak being that will be used most of the time in
significantly less than the preceding. HVAC tuning applications. Regardless of
Many tuning solutions attempt to achieve the approach used, it is important to have
a pattern called a “quarter decay ratio” in some way to monitor what is going on in
real time and document the results. This just begins to cycle. In doing this, you
is especially true for the open loop are finding the ultimate gain of the
method. Generally, the dynamic trending system, which is the point where the
capability of current technology DDC system is just starting to go unstable.
systems can be used for this. Older 3. Observe the period or frequency of the

A self regulating process will level off.


Non-self regulating processes won’t.

Slope of the portion of the response curvewhich represents


a stable rate of change after the apparent dead time.
Apparent dead time

Point at which step changewas made

Figure 7 – Open Loop Response

The open loop tuning technique will yield a response curve similar to the following. The parameters derived from the
response curve are used to determine the initial controller settings. They can also provide some insight into the
characteristics of the system. Notice how the apparent dead time is made up of a flat segment of pure dead time; i.e.
nothing literally happened, and a transition to a stable rate of change. In open loop tuning, you are most interested in
the apparent dead time and the slope of the linewhere the process is undergoing a stable rate of change.

systems using higher end controllers cycling. This is typically called the
often provided this sort of monitoring in natural period of the system and is a
the form of a circular chart, and some parameter that provides the basis for
stand-alone microprocessor based the subsequent steps and can also
controllers mimic this feature provide quite a bit of insight into the
electronically via a liquid crystal or CRT system’s characteristics.
display. If neither of theses options are 4. Set the controller settings to the
available to you, then you may want to following values.
bring a portable data-logger along that
has display capabilities to use while you Proportional gain = ¼ to ½ of the
are testing. At a minimum, it would need ultimate gain.
to have an input that could monitor the Integral time in minutes per repeat =
process variable for the control loop you 1.2 times the natural period.
are trying to tune. A second input that Derivative time in minutes = 1/8 of the
can document the signal to the final natural period.
control element is very handy, but not
necessary. 5. Monitor the performance of the loop
and make minor adjustments as
The general steps for the closed loop required to optimize the performance
method are as follows: and tailor it to the needs of the
system.
1. Turn off the integral and derivative 6. Subject the loop to upsets by making
gain. acceptable set point changes and/or
2. Increase the proportional gain of the shutting down and restarting the
loop in small increments until the loop system to be sure that stable
operation is achieved in a reasonable 9. Subject the loop to upsets by making
time and with-out excessive and/or large set point changes and/or
dangerous deviations in the process shutting down and restarting the
variable. system to be sure that stable
operation is achieved in a reasonable
The open loop technique involves placing time and with-out excessive and/or
the system in manual, and when the dangerous deviations in the process
process has stabilized, introducing a step variable.
change and observing the results. Figure
7 illustrates a typical response curve from There are some situations where these
an open loop tuning process. The general tuning process break down and won’t
steps are as follows: work, but they are rare. For instance,
some loops will exhibit a slope that
1. Place the controller in manual and continues to increase rather than
stabilize the process. Its important stabilizing in an open loop test. Other
that any changes introduced into the loops may exhibit an reversed response to
process during the test be changes an upset. These characteristics are
that you made. unlikely in an HVAC system, but are
2. Introduce a step change. discussed in Controller Tuning and
3. When you see the results of the Control Loop Performance, Second
change, make a step change in the Edition if you are interested in pursing
opposite direction with a magnitude of additional information in this regard.
twice that used for the original step
change. When tuning loops, the following general
4. Return the output to its starting value. concepts should be kept in mind.
Basically, you are trying to get the
result you want and put the process  The natural period and the apparent
back in a safe and stable operating dead time of the control loop are very
mode with out exceeding critical important parameters. As a general
system parameters or tripping safety rule, the natural period will be about
equipment. 4 times the apparent dead time. The
5. Measure and document the apparent apparent dead time is the result of the
dead time. various lags in the system due to
6. Measure and document the slope of transportation times, slope in
the line in terms of rate of change per mechanism, thermal characteristics,
minute expressed as a percentage of etc. Generally, anything that you can
transmitter span divided by the step do to minimize these lags will improve
change you introduced expressed as a the performance of the control loop.
percentage of controller output span.  If the control loop is subject to a
7. Set the controller settings to the periodic disturbance then the
following values. frequency of the disturbance might
have a very significant impact on the
Proportional gain = 1/slope to 1/(2 loops ability to control. The control
times the slope) loop will be helpless in dealing with
Integral time in minutes per repeat = disturbances that are short relative to
5 times the apparent dead time its natural frequency because they are
Derivative time in minutes = ½ the too fast for it to deal with. If the
apparent dead time. disturbance is at nor near the natural
frequency of the loop, then there is
8. Return the loop to automatic and strong likelihood that the control loop
monitor the performance of the loop will make things worse rather than
and make minor adjustments as better.
required to optimize the performance At first you may think that repetitive
and tailor it to the needs of the cyclic upsets are not a likely situation
system. in the HVAC industry. But, given the
configuration of the systems, there  Given the variable performance
usually are many control loops that criteria seen by HVAC systems, you
interact through the dynamics of the may want to be a little conservative in
system. If one of the loops starts to your tuning parameter settings,
hunt for some reason, the result of it’s especially during the first year of
hunting will become a periodic operation. Otherwise, you may be
disturbance to other loops. Consider a faced with some major headaches
VAV fan system as an example. If the when an overnight weather change
system controlling the mixed air takes a system that was tuned to the
dampers starts to hunt, the dampers edge of stability over the edge.
will start moving around, This will  Before tuning, you should have an
vary the static pressure requirements idea of what you expect to happen and
for the fan system, (especially if the what your desired outcome is as well
dampers have not been well sized) and as what the given system can be
thereby introduce a periodic expected to do. If you have reason to
disturbance into the static pressure believe that the valves and dampers in
control loop. If that disturbance the system have not been sized
happens to fall near the natural properly, then don’t expect high
frequency of the static pressure precision results. You should also try
control loop, it could cause that loop to get a feel for how fast the process
to suddenly begin to hunt. This would might respond to an upset.
lead to flow variations in the system  You, and everyone else involved with
that could impact the performance of the tuning process should know and
the terminal unit flow controllers, the agree about how far you will let things
building static pressure control system go before you abort the test and shut
and the control loop controlling the down or otherwise take over control of
return fan. the system. This can be critical in
 In general, for optimum performance, some cases if you want to avoid
you want to be just on the stable side damage to the system and equipment
of the ultimate gain point. or avoid unnecessary safety system
 The ultimate gain of the system will trips. You will need to know how to
change as the characteristics of the respond quickly and with confidence
system change. In HVAC applications, to a situation that is going down hill
this can happen for a variety of rapidly. In situations where the risks
reasons including wear in the are high, it would be good for the
machinery and equipment and team to rehearse their actions in the
seasonal variations in the loads served event of a run-away process to be sure
and the heat transfer characteristics everyone knows what they are
of the equipment used to serve the supposed to do and can move quickly
load under various conditions. Loops and with confidence.
that are tuned in the winter may not  You should have tested all safety
be stable in the summer or during the systems and interlocks and they
swing seasons. Variable volume should be set at the appropriate levels
system loops that were tuned with the required to protect systems, people
system operating at part load early in and equipment.
the day may not be stable at full load  You should schedule your testing at a
later in the day. You should anticipate time when the system and the loads it
this and expect to retune frequently serves can tolerate some disturbance
during the course of the first year as and a shutdown down of the system
the systems go through all of their would not create a crisis. Tuning the
operating modes in real time for the discharge temperature control loop
first time. In addition, you should on a surgery air handling system
anticipate the need to retune during an open heart case is not a
occasionally as equipment ages and/or good idea.
systems are modified.
 Plan on being readily available for  Non linearity – Non linear
some time after you make your characteristics abound in the process
adjustments in case problems show and equipment that is associated with
up. Making significant changes to a HVAC systems. Most heat transfer
control system late Friday afternoon devices have a non-linear relationship
on your way out of town on a two between heat transfer rates, flow rates
week vacation will not make you very and temperature differences. Many of
popular upon your return if the the sensing systems that provide
changes result in operational inputs to the controllers we use are
problems and you aren’t there to help non linear. Examples include the
correct them or return things to the output from the thermistors
way they were. commonly used to measure space
 Document everything. This includes temperature and the output from
the settings that were in placed prior differential pressure based flow
to starting the process, the settings measuring elements. Velocity limiting
you left in place when you finished, is another non-linear system response
and any other pertinent observations that can cause havoc with HVAC.
that you might have made during the Actuators and final control elements
process. This information should be generally have some finite speed at
communicated to the folks who will be which they can move through their full
running the systems right after you stroke. If the process goes through a
are done tuning. If there are latent large change, and the rate of change
problems related to the final tuning is faster than the rate at which the
parameters you left in the system, final control element can move to
they will often (but not always) show make a correction, then the process
up in the first hours or days of becomes velocity limited. If the
operation subsequent to your change in the process is small, the
adjustments. problem usually doesn’t show up. As a
 Proceed slowly. The best thing that result, the loop may be stable for
you can do after you make an small upsets but unstable for large
adjustment to a tuning parameter is ones.
wait and watch. Often, it is tempting  Loop interactions – Sometimes,
to make a second change fairly quickly designs include interactive loops
if the initial change you made doesn’t where in the normal response of one
produce the anticipated result. This loop will upset the second loop, which
may be a satisfactory approach if you will upset the first loop, etc. A pipe
are very familiar with the system and line with a pressure control loop that
the process is not particularly critical. modulates a valve to maintain the
However, bear in mind that the lack of pressure ahead of a second valve that
anticipated response could be due to is controlled by a flow control loop is a
system lags or other phenomenon that good example of this. Many times,
you failed to consider and you may one of the control functions can be
suddenly find yourself suddenly eliminated to solve this type of
dealing with a run-away process when problem. Or, one of the loops can be
the accumulated impacts of your tuned to be very “loose” while the
changes finally take effect. more critical loop is tuned for “tight”
control.
RELATED ISSUES  Auto tuning – Auto tuning is one of
those things that sounds like a really
There are several control loop issues that nice feature, but in fact can be of little
are not directly related to the actual use or benefit in some situations. It is
tuning process but which will certainly probably unwise to rely on it as a total
impact it. These include: loop tuning solution, despite what
sales literature and salesmen may lead
you to believe. The exact auto tuning
algorithm employed will vary from changes that minimize the hysteresis
manufacturer to manufacturer. There rather than additional controller
have been instances where an auto tuning.
tune controller from manufacturer A  Matching final control element spans
would not be able to tune itself in a to output spans – If the output span
certain process, but when a controller from the control system is not
from manufacturer B was substituted, matched to the actual span of the final
the same process was able to stabilize. control element, a problem similar to
In a different process, the controller wind-up will occur because the control
from manufacturer A was able to self loop spends a portion of its time trying
tune, but the controller form to actuate something that can not be
manufacturer B only achieved further actuated. Then, when things
marginal results. It is also important change, the controller spends time
to understand exactly how the auto backing down from its limit to a point
tune algorithm works. Some where the final control element begins
algorithms make gradual adjustments to actuate again.
based on ongoing observation of the
process. Others will actually do a
 Filters – Because current technology
controllers use digital technology and
variation of the open loop method and
operate at very high speeds, they are
slam the final control elements up
capable of detecting and responding
against their limits. This can be an
to very small and inconsequential
undesirable approach on some
processes.
 Hysteresis – Packing friction and play The Impact of Sampling Time On Observed Data vs. What is Really Going On
in a linkage system can cause control
The rate at which data is sampled for analysis can result in an inaccurate picture of what is going on. Sampling
problems when small errors exist, rates that are an multiple of the frequence of the disturbance can mask instability. Other rates can distort the

especially where integral control is in 56.00


73.00 wave form.

effect. Basically, the controller tries to 55.00 (set 72.00


point)

respond to a small change, but 54.00


71.00
nothing happens due to hysteresis. 56.00
70.00
Data sampled every 15 minutes makes every thing look like its just fine!

So, the controller increases its output 55.00 (set 69.00


point)
some more, which causes too much to
54.00
happen and the cycle repeats itself in 68.00
Data sampled every 5 minutes shows a distorted wave form as compared to real time.

the reverse direction. The 56.00


67.00

characteristic indication of this 55.00 (set 66.00


point)

problem is a low amplitude cycle in 54.00


65.00

the process. If you respond to this 56.00


64.00
Data sampled every 3 minutes appears to be stable but off-set from set point about 1°F.

problem based on the normal tuning 55.00 (set 63.00


point)

rules, it won’t be solved; it will only 54.00


62.00
change the period of the cycle. Thus Data sampled at 1/minute appears to have a slightly lower peak and lower frequency than real time.
56.00
61.00
it is important to recognize and
distinguish this problem form hunting 55.00 (set point)
60.00

associated with marginal stability. 54.00


59.00

One very practical way to check for 58.00 A sampling rate of 1/second reflects the real time data fairly accurately.

this it to simply place your fingertip on Temperature


57.00

the valve stem near the packing. You °F 56.00


can often feel the stem “popping” back 55.00 (Set Point)
55.00
and forth when the output from the
54.00
controller over-comes the packing Real time control system response shows a 2°F sinasoidal occillation with a 3
friction (as opposed to a smooth 53.00
minute cycle time.

modulation.) Or you may be able to 52.00


0 5 10 15 20 25 30
observe or feel actuator motion with Time in Minutes
out a subsequent valve motion due to
Real time data 1 Second data sample rate 1 Minute data sample rate
play in a linkage system. In any case, 3 Minute data sample rate 5 Minute data sample rate 15 Minute data sample rate
solving this problem requires making
changes in the process. This can, in only control loop will provide very
human terms, drive the control system satisfactory control for space
crazy trying to respond to things that temperature. Evidenced of this can be
really don’t matter. It can also ruin found by recognizing that numerous
certain types of actuators in a matter buildings to this day use pneumatic
of months. As a general rule, the filter thermostats for zone temperature
time for the system (if available) control with satisfactory results. In
should be set only as long as is general, most of the problems with
necessary to provide the desired this approach can be traced to low end
filtering, regardless of whether the equipment (one pipe thermostats for
loop is P, PI, or PID. instance), poor maintenance and
 Sampling rate – This issue is related to calibration, and thermostat locations
the filtering issue we just covered. issues (over the coffee maker for
The sampling rate used by a controller instance). Integral and derivative
to sample and control the process as action will do nothing to solve these
well as by the engineer to monitor the more fundamental problems and will
process can have a tremendous impact significantly increase the initial set up
on what you (or the controller) and maintenance time for the system.
perceive as actually going on. Figure  Another example where a proportional
8 illustrates this phenomenon, which only loop might prove to be
can mask and distort the information satisfactory is for secondary back-up
that is presented to the control system or limit applications. Mixed air low
and operators. limit control loops are good examples
of this.
WHEN TO APPLY PID INSTEAD OF P  Cascaded or highly interactive control
ONLY loops are another area where
It is important to understand that the application of PID to every single loop
benefits associated with integral and may yield more problems than
derivative action come at a price. Just satisfaction. It may be better to use
because you can do PID doesn’t mean you PID for the critical loop and allow the
should do PID. Invoking the integral and other loops to function as P only loops.
derivative functions will result in loops  Add integral action in situations where
that require more time and attention to precision is required. Controlling
properly tune them. In addition, these chilled water temperatures or building
loops will require more attention over the static pressures are good examples of
course of their operating life to maintain this type of application. In these
and adjust the tuning parameters as the situations, minor offsets from set point
system and load characteristics change. can have significant operational and
In addition, the operators charged with energy issues associated with them
this function will need to have a more and eliminating the offset via integral
sophisticated understanding of control action will provide significant benefits.
theory and its application in a real world  Add integral action in situations where
operating environment. The following the proportional offset associated with
general guidelines are suggested when a proportional only loop will result in
making decisions regarding the significant energy waste. The reheat
application of PID to a given control fan system example used at the
requirement. beginning of this paper is a good
example of this type of situation.
 Use proportional only control in  Think hard before adding derivative
situations where high precision is not action to a control loop. To be
required or warranted by operational effective at all, it must be very
or economic concerns. A prime carefully applied and adjusted. If
example of this is zone temperature implemented improperly, it can cause
control. In quite a few instances, a many more problems than it solves.
simple, well tuned and calibrated P Generally, HVAC systems can be made
to perform quite well with out the use
of this function. It can prove to be
beneficial in situations where systems
experience significant deviations in
the process parameters at start up and
in dealing with final control elements
that are marginally (not significantly)
oversized.
i
Photo taken from Pneumatic Instruments Gave Birth to Automatic Control, from Reference
Guide to PID Tuning, A collection of Reprinted Articles of PID Tuning Techniques, reprinted from
Control Engineering Magazine, Cahners Reprint Services – 800-323-4958 ext. 2240, page 33
ii
See The PID Algorithm for the Process Industries at
http://members.aol.com/pidcontrol/pid_algorithm.html.
iii
Modern Control Started with Ziegler-Nichols Tuning, from Reference Guide to PID Tuning, A
collection of Reprinted Articles of PID Tuning Techniques, reprinted from Control Engineering
Magazine, Cahners Reprint Services – 800-323-4958 ext. 2240, pages 13 through 15 contains an
interesting interview with John Ziegler where-in he talks about the development of the controller
and it’s tuning techniques.
iv
Controller Tuning and Control Loop Performance, Second Edition, page 9, David St. Clair,
Straightline Control Company Inc. 3 Bridle Brook Lane, Newark, DE 19711-
2003,Dwstclair@aol.com, http://members.aol.com/pidcontrol/.
v
Controller Tuning and Control Loop Performance, Second Edition, pages 11-12.
vi
A Comparison of Controller Tuning Techiques, from Reference Guide to PID Tuning, A
collection of Reprinted Articles of PID Tuning Techniques, reprinted from Control Engineering
Magazine, Cahners Reprint Services – 800-323-4958 ext. 2240, page 18.

You might also like