Trane PID Control in Tracer PDF
Trane PID Control in Tracer PDF
Applications Guide
PID Control
in Tracer Controllers
CNT-APG002-EN
®
Applications Guide
PID Control
in Tracer Controllers
CNT-APG002-EN
October 2001
PID Control in Tracer Controllers
This manual and the information in it are the property of American Standard Inc. and shall not be used or reproduced in whole or in
part, except as intended, without the written permission of American Standard Inc. Since The Trane Company has a policy of continu-
ous product improvement, it reserves the right to change design and specification without notice.
The Trane Company has tested the system described in this manual. However, Trane does not guarantee that the system contains no
errors.
The Trane Company reserves the right to revise this publication at any time and to make changes to its content without obligation to
notify any person of such revision or change.
The Trane Company may have patents or pending patent applications covering items in this publication. By providing this document,
Trane does not imply giving license to these patents.
™ The following are trademarks or registered trademarks of The Trane Company: Tracer, Tracer Summit, and Trane.
Contents
CNT-APG002-EN iii
®
Contents
Chapter 4 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Discharge-air temperature control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Building pressure control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Cascade control—first stage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Staging cooling-tower fans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Setting up the PID loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Determining the staging points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Chapter 5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Troubleshooting procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Tips for specific problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Changing the sampling frequency . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Changing the gains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
iv CNT-APG002-EN
®
Chapter 1
This guide will help you set up, tune, and troubleshoot proportional, inte-
gral, derivative (PID) control loops used in Tracer controllers. These con-
trollers include the Tracer MP580/581, AH540/541, and MP501
controllers. This chapter provides an overview of PID control.
Setpoint
Measured variable
Initial point
Time
In the heating, ventilating, and air-conditioning (HVAC) industry, PID
loops are used to control modulating devices such as valves and dampers.
Some common applications include:
• Temperature control
• Humidity control
• Duct static pressure control
• Staging applications
CNT-APG002-EN 1
®
+ Error
Σ PID calculation HVAC equipment Plant
Setpoint –
Measured variable
(process variable)
Conversion function
2 CNT-APG002-EN
®
PID calculations
PID calculations
A PID loop performs three calculations: the proportional calculation, the
integral calculation, and the derivative calculation. These calculations
are independent of each other but are combined to determine the
response of the controller to the error.
Proportional calculation
The proportional calculation responds to how far the measured variable is
from the setpoint. The larger the error, the larger the output of the calcu-
lation. The proportional calculation has a much stronger effect on the
result of the PID calculation than either the integral or derivative calcu-
lations. It determines the responsiveness (or aggressiveness) of a control
system. Though some systems use only proportional control, most Trane
controllers use a combination of proportional and integral control.
Proportional-only control (a method of control that does not use the inte-
gral and derivative contributions) is traditionally used in pneumatic con-
trollers. It may be used in staging applications because it can be simpler
to manage than full PID control. The programmable control module
(PCM) and the universal programmable control module (UPCM) assume
proportional-only control when the integral and derivative gains are set
to zero. Tracer MP580/581 controllers have a unique setting for propor-
tional-only control. Figure 3 illustrates proportional-only control.
Note:
The integral calculation automates the process of setting pro-
portional bias. In proportional-only control, the proportional
bias lets you decide what the output should be when the error is
zero; in PID control, the integral calculation maintains the cur-
rent output when the error is zero (see “Integral calculation” on
page 4).
CNT-APG002-EN 3
®
Proportional bias = 75
Proportional bias = 50
Proportional bias = 25
Error
Integral calculation
The integral calculation responds to the length of time the measured vari-
able is not at setpoint. The longer the measured variable is not at set-
point, the larger the output of the integral calculation.
The integral calculation uses the sum of past errors to maintain an out-
put when the error is zero. Line 1 in Figure 5 on page 5 shows that with
proportional-only control, when the error becomes zero, the PID output
also goes to zero (assuming a proportional bias of zero). Line 2 shows the
integral output added to the proportional output. Because the integral
calculation is the sum of past errors, the output remains steady rather
than dropping to zero when the error is zero. The benefit of this is that
the integral calculation keeps the output at an appropriate level to main-
tain an error of zero.
4 CNT-APG002-EN
®
PID calculations
Error ≠ 0 Error = 0
Proportional + integral
output when proportional
Proportional + integral
output has gone to zero
output
Output
2
1
Proportional-only
output
Time
The value of the integral calculation can build up over time (because it is
the sum of all past errors), and this built-up value must be overcome
before the system can change direction. This prevents the controller from
over-reacting to minor changes, but can potentially slow down the
response.
One drawback to integral control is the problem of integral windup. Inte-
gral windup occurs when the sum of the past errors is too great to over-
come. This can happen when the HVAC equipment does not have enough
power to reach the setpoint; the integral windup only increases as the
equipment struggles to reach the setpoint. To minimize the problem of
integral windup, Trane controllers use a method of PID control known as
the velocity model, which is described in “Velocity model” on page 7.
Derivative calculation
The derivative calculation responds to the change in error. In other
words, it responds to how quickly the measured variable is approaching
setpoint. The derivative calculation can be used to smooth an actuator
motion or cause an actuator to react faster.
However, derivative control has several disadvantages:
• It can react to noise in the input signal.
• Setting derivative control requires balancing between two extremes;
too much derivative gain and the system becomes unstable, too little
and the derivative gain has almost no effect.
• The lag in derivative control makes tuning difficult.
• Large error deadbands, common in HVAC applications, render deriv-
ative control ineffective.
CNT-APG002-EN 5
®
Proportional gain ≠ 0
2
Derivative gain > 0
Output
Proportional gain ≠ 0
1 Derivative gain = 0
Time
6 CNT-APG002-EN
®
Velocity model
Velocity model
Trane controllers use a type of PID control known as the velocity model.
The velocity model minimizes the problem of integral windup, which
occurs when the sum of past errors in the integral calculation is too great
to allow the controller to change the output at one of the extremes (see
“Integral calculation” on page 4).
The velocity model, illustrated in Figure 7, gets its name from the fact
that the proportional gain affects the change in error (or error velocity)
instead of the error, as in a classic PID model. In the velocity model, the
error is multiplied by the integral gain, and the change in error is multi-
plied by the proportional gain. When the error gets close to zero, the
change in error gets close to zero as well. So both the integral and propor-
tional gains are multiplied by a number close to zero. This forces the out-
put of the PID calculation to stop changing when the error becomes zero,
minimizing (but not eliminating) integral windup.
CNT-APG002-EN 7
®
8 CNT-APG002-EN
®
Chapter 2
PID settings
This chapter describes some of the key variables used to set up and tune
PID loops. The variables discussed here are:
• Throttling range
• Gain
• Sampling frequency
• Action
• Error deadband
Throttling range
The throttling range is the amount of error it takes to move the output of
a system from its minimum to its maximum setting. For example, a throt-
tling range of 4°F (2.2°C) means that a controller fully opens or closes an
actuator when the error is ±2°F (1.1°C) or greater, as illustrated in
Figure 8. Note how the controller response (actuator position) lags behind
the space temperature.
Actuator position
Space temperature (°F)
Setpoint = 75°F
Time
CNT-APG002-EN 9
®
Throttling range = 10
Throttling range = 4
Controller output (%)
Throttling range = 20
Error
Gains
Gains, which are calculated from the throttling range, determine how fast
a measured variable moves toward the setpoint. The larger the gains, the
more aggressive the response. The proportional, integral, and derivative
calculations each have an associated gain value. The error, the sum of
past errors, and the change in error are multiplied by their associated
gains to determine the impact that each has on the output.
10 CNT-APG002-EN
®
Proportional Integral
Application Output Throttling range gain gain
Discharge-air cooling Valve position 0–100% 20.0°F (11.1°C) 4.0 (8.0) 1.0 (2.0)
Discharge-air heating Valve position 0–100% 40.0°F (22.2°C) 2.0 (4.0) 0.5 (1.0)
Space temperature Discharge setpoint 2.0°F (1.1°C) 20.0 (20.0) 5.0 (5.0)
50–100°F (10–37.8°C)
Duct static pressure Inlet guide vane or variable-frequency 2.0 in. wc (0.5 kPa) 40.0 (160) 10.0 (40.0)
drive (VFD) position 0–100%
Building static Inlet guide vane or variable-frequency 20.0 in. wc (5.0 kPa) 4.0 (8.0) 1.0 (2.0)
pressure drive (VFD) position 0–100%
Discharge-air cooling Electric/pneumatic 20.0°F (11.1°C) 0.4 (4.0) 0.1 (1.0)
5.0–15.0 psi (34–103 kPa)
You can also calculate proportional and integral gains using the following
calculations:
0.80 × output range
Proportional gain = --------------------------------------------------------
throttling range
So based on the desired throttling range of 2.0 in. wc, the initial propor-
tional gain is 40 and the integral gain is 10.
CNT-APG002-EN 11
®
Sampling frequency
The sampling frequency is the rate at which the input signal is sampled
and the PID calculations are performed. Using the right sampling fre-
quency is vital to achieving a responsive and stable system. Problems can
arise when the sampling frequency is too slow or too fast in comparison to
time lags in the system.
Sampling too slowly can cause an effect called aliasing in which not
enough data is sampled to form an accurate picture of changes in the
measured variable. The system may miss important information and
reach the setpoint slowly or not at all.
Figure 10 and Figure 11 show how aliasing can affect system response.
In Figure 10 the sampling frequency is too slow. Because of this, many of
the changes in duct static pressure are missed. In Figure 11 the sampling
frequency is fast enough that the changes in static pressure are tracked
accurately.
Time
Time
12 CNT-APG002-EN
®
Sampling frequency
Problems also arise from sampling too quickly. Some systems have natu-
rally slow response times, such as when measuring room temperature.
Slow response times can also be caused by equipment lags. Since PID
loops respond to error and changes in error over time, if the measured
variable changes slowly, then the error will remain constant for an
extended period of time. If the measured variable is sampled repeatedly
during this time, the proportional output remains about the same, but the
integral output becomes larger (since it is the sum of past errors). When
the control system does respond, the response is out of proportion to the
reality of the situation, which can destabilize the system. The control sys-
tem should always wait to process the result of a change before making
another change.
Figure 12 shows the measured variable when sampling frequencies are
too fast, acceptable, and barely acceptable. When the sampling frequency
is too fast (2 seconds), the measured variable begins to oscillate and
finally destabilizes because the PID loop output drives the actuator to
extremes. When the sampling frequency is slowed to either 10 or 20 sec-
onds, the system remains stable once setpoint is reached.
Sampling freq. = 10 s
Sampling freq. = 20 s
Measured variable
Sampling freq. = 2 s
(system destabilizes when
sampling freq. is too fast)
Time
CNT-APG002-EN 13
®
Note:
Tracer controllers have different approaches to using the sam-
pling frequency. For Tracer MP580/581 controllers, the sam-
pling frequency can be a multiple of the program frequency. The
Tracer AH540 controller has a pre-determined sampling fre-
quency. The Tracer MP501 controller has a setting for the sam-
pling frequency.
14 CNT-APG002-EN
®
Note:
The system time constant is the time it takes to reach 63.21% of
the difference between the start point and the end point. How-
ever, two-thirds (66%) is accurate enough for most purposes.
Time (minutes)
CNT-APG002-EN 15
®
Example
In this scenario, we want to find the sampling frequency for a PID loop
controlling a heating application.
1. Fully close the output.
2. The stabilized temperature is 60°F (16°C).
3. Fully open the output.
4. The stabilized temperature is 105°F (41°C).
5. The change in temperature is 105°F – 60°F = 45°F (41 – 16 = 25°C).
6. Two-thirds of the change in measured variable is 0.66 × 45°F = 30°F,
so two-thirds of the total change has occurred when the temperature
is 60°F + 30°F = 90°F (0.66 × 25°C = 17°C; 16 + 17 = 33°C).
7. Close the output. The temperature stabilizes.
8. Fully open the output. The time to reach 90°F (33°C) is 54 seconds (so
the system time constant is 54 seconds).
9. Divide the system time constant by ten, resulting in 54 ÷ 10 = 5.4.
The best initial sampling frequency is 5 seconds.
16 CNT-APG002-EN
®
Action
Action
The action of a PID loop determines how it reacts to a change in the mea-
sured variable (such as a room temperature). A controller using direct
action increases the output when the measured variable increases. A con-
troller using reverse action decreases the output when the measured vari-
able increases.
Direct action
Figure 14 shows the temperature when a system is cooling a space. When
the error is large and the PID output is at 100%, the actuator and valve
combination are fully open. As the measured variable (room temperature)
decreases, the error becomes smaller, and the controller closes the valve
to reduce or stop cooling. Because the PID output and measured variable
move in the same direction (both decreasing), the loop is direct acting.
Error
Setpoint
Time
Reverse action
Figure 15 shows the temperature when a system is heating a space.
When the error is large and the PID output is at 100%, the actuator and
valve combination are fully open. When the measured variable (room
temperature) increases, reducing the error, the controller closes the valve
to reduce heating. Because the PID output and measured variable move
in opposite directions, the loop is reverse acting.
Setpoint
Error
Temperature
As temperature ↑
Measured variable actuator position ↓
(temperature) so action is reverse
CNT-APG002-EN 17
®
To find the action for other applications, determine whether the actuator
and measured variable move in the same direction. If so, then the action
is direct. If not, then the PID loop is reverse acting.
Example 1
An exhaust fan controls the static pressure in a building. The exhaust fan
operates at its highest speed when the building pressure is too high.
When the pressure goes above the setpoint, the exhaust fan should speed
up to blow air from the building. So when the measured variable (the
building pressure) increases, the actuator increases the fan speed.
Because the measured variable and the actuator move in the same direc-
tion, the PID loop is direct acting.
Example 2
A supply fan controls the static pressure in ducts supplying variable-air-
volume (VAV) boxes. The supply fan operates at its highest speed when
the pressure is too low. When the pressure goes above the setpoint, the
supply fan should slow down to blow less air to the VAV boxes. So when
the measured variable (the pressure) increases, the variable-frequency
drive (VFD) decreases the fan speed. Because the measured variable and
the control signal to the VFD move in opposite directions, the PID loop is
reverse acting.
18 CNT-APG002-EN
®
Error deadband
Error deadband
Error deadband is typically used to minimize actuator activity. It can also
be used to allow for some slack in system sensors and actuator mechanics.
Error deadband prevents the PID output from changing when the abso-
lute value of the error is less than the error deadband. For example, in
Figure 16 the error deadband is set at 2.0°F (1.1°C). As long as the abso-
lute value of the error is less than the 2.0°F (1.1°C), the PID output can-
not change. When the absolute value of the error exceeds 2.0°F (1.1°C),
the PID output can change.
Measured
Error
variable control
Error deadband
Setpoint
control
Figure 16 illustrates the way that error deadband limits how often an
actuator is controlled. When a PID loop controls a chilled-water valve,
limiting control is not so important. But when a PID loop controls how
many stages of cooling are being used, it is important to limit equipment
cycling.
Typical applications
Table 4 shows reasonable error deadbands for several applications. The
error deadband can also be calculated as described in the following
sections.
CNT-APG002-EN 19
®
IMPORTANT
The error deadband should not be smaller than the sensor resolution or
the controller will react to noise.
20 CNT-APG002-EN
®
CNT-APG002-EN 21
®
22 CNT-APG002-EN
®
Chapter 3
Programming in PCL
PID control is called direct digital control (DDC) in process control lan-
guage (PCL). Table 5 shows how the DDC function is invoked in PCL. In
this example, DDC loop 4 compares the discharge-air temperature to the
heating discharge-air setpoint. Line 1 stores the result of the PID func-
tion in the analog variable HEATCALC. Line 2 controls the valve to the cal-
culated value. You can program specific PID settings in the DDC Loop
Parameters screen, shown in Table 6 on page 24.
CNT-APG002-EN 23
®
24 CNT-APG002-EN
®
Programming in PCL
CNT-APG002-EN 25
®
Programming in TGP
Figure 17 shows the PID block used to program PID loops in TGP editor.
The PID block is more flexible than the DDC function in PCL. The enable/
disable and failure inputs can accept any binary value, regardless of
source. The setpoint, measured variable, p-gain, i-gain, and d-gain inputs
can accept any analog value, except analog outputs, including variable
(local or from a BAS), hardware input, and network input. You can pro-
gram PID settings in the PID Properties dialog box, shown in Figure 18.
Binary value
26 CNT-APG002-EN
®
Programming in TGP
CNT-APG002-EN 27
®
28 CNT-APG002-EN
®
Chapter 4
Applications
This chapter describes several HVAC applications that use PID control. It
includes specific settings and recommendations for each application.
CNT-APG002-EN 29
®
Chapter 4 Applications
Table 10 shows the initial values the technician used for the hot-water
valve PID loop. Chapter 2, “PID settings,” explains how to select initial
values for various PID applications.
30 CNT-APG002-EN
®
After the initial installation and testing, the technician noticed that the
discharge-air temperature was oscillating in a 10°F (5.6°C) band around
setpoint. Slowing the sampling frequency to 30 seconds stopped the oscil-
lations (see Chapter 5, “Troubleshooting”). The technician also increased
the proportional and integral gains to make the discharge-air tempera-
ture reach setpoint faster.
Figure 21 shows the discharge-air temperature and valve position over a
two-hour period. During the unoccupied period, the hot-water valve is
completely open. Eventually the discharge-air temperature rises to
almost 100°F (37.8°C). At the twelve-minute point, the HVAC system
changes from the unoccupied to the occupied state, and the hot-water
valve is adjusted to meet the discharge-air setpoint. The valve closes com-
pletely for nearly 20 minutes until the discharge-air temperature drops
below setpoint. Achieving a stable discharge-air temperature takes
approximately 30 minutes. Note that once setpoint is reached, the valve
position remains stable between 10% and 15%. A stable valve position
over time indicates that the loop has been tuned for optimal performance.
Discharge-air
temperature (°F)
Discharge-air temperature
DA Temperature and valve position
setpoint (°F)
Time (minutes)
CNT-APG002-EN 31
®
Chapter 4 Applications
32 CNT-APG002-EN
®
Table 12 lists the settings for the PID loop controlling building pressure.
The sampling frequency is slow because building pressure changes slowly.
For programs written in PCL, the error deadband is 1.0, which is equal to
100 times the minimum resolution of the pressure sensor.
Figure 23 shows system response over a 14-hour period. During the unoc-
cupied period (from 150 to 650 minutes) a different type of control, which
decreases pressure, is being used. After the control mode changes from
occupied to unoccupied, the PID loop still attempts to increase space pres-
sure by closing the relief damper.
When the space is again occupied, the rapid change in the damper posi-
tion indicates that the system is being aggressively controlled.
You may find that during occupied operation, the relief damper is con-
trolled to a fully open position. This is usually the result of pressure in an
adjacent space influencing pressure in the measured space.
Relief damper
position (%)
Unoccupied
Time (minutes)
CNT-APG002-EN 33
®
Chapter 4 Applications
Space
temperature
Cascade control requires two sensors, one for the space temperature and
one for the discharge-air temperature. The PCL or TGP program must be
programmed to respond to a failure of either of the sensors. Suggested
failure conditions are:
• If the space temperature sensor fails, set the discharge-air tempera-
ture setpoint to the space temperature setpoint. Other limits for the
discharge-air temperature setpoint may need to be defined. Inform
the operator of the sensor failure.
• If the discharge-air temperature sensor fails, control the hot or
chilled-water valve as appropriate to the climate in your region.
Inform the operator of the sensor failure.
Table 13 shows a PCL program to calculate the discharge-air tempera-
ture setpoint, and Figure 25 on page 35 shows the same program in TGP.
Most of the programming occurs in the DDC Loop Parameters screen. Use
the values shown in Table 14 on page 35.
Table 13: PCL program for discharge-air temperature setpoint in cascade control
Line Result 1st Arg Operator 2nd Arg Description of Statement
---- -------- --------- -------- -------- --------------------------------------
1 DATSTPT = SP_TEMP DDC:1 SP_STPT Call the PID function
2 *IFT = SP_TEMP FAIL If the space sensor has failed
3 DATSTPT = SP_STPT set the disch air setpt to space setpt
4 *END = (Note: the discharge-air temp sensor is
checked in another program.)
34 CNT-APG002-EN
®
Figure 25: TGP program for discharge-air temperature setpoint in cascade control
If space temperature sensor has
failed, switch control to space
temperature setpoint
If you use the settings shown in Table 14, you should not have to tune the
loop. These values can be used in almost any cascade control application
without change. The proportional and integral gains are high to respond
aggressively to the error and change in error. The minimum and maxi-
mum output values keep the output between 50°F (10°C) and
120°F (49°C).
CNT-APG002-EN 35
®
Chapter 4 Applications
PID calculated
discharge-air setpoint
Temperature (°F)
Space temperature
Space setpoint
Time (minutes)
The discharge-air temperature setpoint calculated by the PID loop may
not control the discharge-air temperature depending on other conditions
that have priority, such as high and low setpoint limits. The high limit
controls the discharge-air temperature for much of the time in Figure 27
(because the calculated setpoint is too high). Also, Figure 27 shows how
aggressively the PID loop responds to disturbances in space temperature.
Space temperature
Space setpoint
PID calculated
discharge-air setpoint
Temperature (°F)
Effective discharge-air
temperature setpoint
Time (minutes)
36 CNT-APG002-EN
®
CNT-APG002-EN 37
®
Chapter 4 Applications
38 CNT-APG002-EN
®
The throttling range is fairly wide—from 10°F to 25°F (6°C to 14°C). The
large throttling range keeps control loose to prevent stages from cycling
too often. Assuming an output range from 0 to 100, the throttling range
translates to a proportional gain of 26 to 10 respectively (see “Calculating
the gains” on page 11). The proportional gain chosen for this application
is in the middle of that range at 17. The gain may need to be adjusted to
optimize the system.
The temperature of the water flowing through a cooling tower responds
fairly slowly, so the sampling frequency should be set to at least 1 minute.
The sampling frequency may need to be adjusted to a slower rate if the
temperature oscillates around the setpoint (see “Calculating the sampling
frequency” on page 14). The goal in this case is to effectively control the
water temperature while limiting equipment cycling.
CNT-APG002-EN 39
®
Chapter 4 Applications
90% point
Controller output (%)
10% point
Error
40 CNT-APG002-EN
®
For staging applications, the result of the PID calculation controls binary
outputs rather than an analog output. For this kind of staging applica-
tion, it is typical to use the deadband to make sure that the binary output
state is maintained for some specific range. Figure 30 illustrates the stag-
ing points for two cooling-tower fans. The three lines indicate (from bot-
tom to top): the number of fans versus the control value, fan 1 on and off
points, and fan 2 on and off points. Fan 1 is turned on at 63% and off at
10%. Fan 2 is turned on at 90% and off at 36%.
Fan 2
Fan 1
2
No. of
1
fans
0
0 10 20 30 40 50 60 70 80 90 100
Control value (%)
CNT-APG002-EN 41
®
Chapter 4 Applications
Stage 1 = On: control value ≥ 10% + ( 2 × overlap range ) = 50%
Off: control value < 10%
For a three-fan system, the first stage should turn on at 50% and turn
off at less than 10%.
3. For each subsequent stage, the on and off points are described by:
Stage n = On: control value ≥ 10% + ( n + 1 ) × overlap range
Off: control value < 10% + ( n – 1 ) × overlap range
42 CNT-APG002-EN
®
Stage 1 = On: control value ≥ 10% + ( 2 × 26.7 % ) ≈ 63%
Off: control value < 10%
Stage 2 = On: control value ≥ 10% + ( 3 × 26.7 % ) = 90%
Off: control value < 10% + ( 1 × 26.7 % ) ≈ 36%
The staging points are illustrated in Figure 31. You should not have to
adjust the extremes at 10% and 90%, but you may need to adjust the mid-
dle staging points to optimize the system.
Fan 2
Fan 1
2
No. of
1
fans
0
0 10 20 30 40 50 60 70 80 90 100
Control value (%)
CNT-APG002-EN 43
®
Chapter 4 Applications
Stage 1 = On: control value ≥ 10% + ( 2 × 20 % ) = 50%
Off: control value < 10%
Stage 2 = On: control value ≥ 10% + ( 3 × 20 % ) = 70%
Off: control value < 10% + ( 1 × 20 % ) = 30%
Stage 3 = On: control value ≥ 10% + ( 4 × 20 % ) = 90%
Off: control value < 10% + ( 2 × 20 % ) = 50%
Fan 3
Fan 2
Fan 1
3
No. of 2
fans
1
0
0 10 20 30 40 50 60 70 80 90 100
Control value (%)
44 CNT-APG002-EN
®
Chapter 5
Troubleshooting
This chapter offers a general troubleshooting procedure and tips for spe-
cific problems.
Troubleshooting procedure
When following this troubleshooting procedure, change only one thing at
a time, then wait to see the effect the change has on the system.
Follow these steps to troubleshoot a PID loop:
1. Make sure that the system is not in override.
2. Graph the measured variable, setpoint, and valve position over time
to determine how the system performs.
Look at the big picture. Can the system actually accomplish what it
needs to? What is happening to the measured variable? Is it oscillat-
ing or failing to reach setpoint?
3. Check the programming logic for:
• DDC statement in an *IFT or *IFF clause
• Failure conditions that are always true
• Output connected to the wrong part of a Switch block in TGP
• Conflicting programming demands, such as bad logic interlocks
between program modules
CNT-APG002-EN 45
®
Chapter 5 Troubleshooting
Problem Tips
Measured variable is • Slow the sampling frequency
cycling around setpoint • Decrease PID gains
• Check programming for conflicting actuator
commands
• Actuators may be overridden by minimum-on
and -off times
Overshooting setpoint Reduce gains
Undershooting setpoint Increase gains
Output at maximum Ensure that minimum output is not set to 100%
Output at minimum Ensure that maximum output is not set to 0%
46 CNT-APG002-EN
®
Examples
Examples
This section presents troubleshooting scenarios from a hot-water valve
application. The three examples have the same symptom but different
solutions to the problem.
Example 1
A hot-water valve cycles closed every few minutes. Although the space
temperature remains fairly stable, the discharge-air temperature swings
across a range of 10°F (5.6°C).
The technician follows the troubleshooting procedure described in this
chapter. However, nothing seems to work. The program is the same as the
one used in “Discharge-air temperature control” on page 29, and is known
to work well. Reducing the sampling frequency reduces the cycling, but
does not eliminate it. Reducing the gains helps reduce the cycling further,
but now the discharge-air temperature takes too long to reach setpoint.
The valve continues to cycle closed, though not as often.
The technician goes back through the troubleshooting steps and notices
when checking the programming logic that the hot-water valve closes
when the chilled-water valve is open. The technician decides to check the
position of the chilled-water valve while the application is running with
its original settings. Figure 33 illustrates what the technician found. The
chilled-water valve opens when the discharge-air temperature goes above
setpoint, thus forcing the hot-water valve to close.
Discharge-air Discharge-air
Discharge-air temperature and valve position
Hot-water valve
position (%)
Chilled-water valve
position (%)
Time (minutes)
CNT-APG002-EN 47
®
Chapter 5 Troubleshooting
48 CNT-APG002-EN
®
Examples
Discharge-air Discharge-air
Hot-water valve
position (%)
Time (minutes)
CNT-APG002-EN 49
®
Chapter 5 Troubleshooting
Example 3
The technician experiences the same problem as in the first two exam-
ples: a hot-water valve cycles closed every few minutes, and the dis-
charge-air temperature swings across a range of 10°F (5.6°C). The
technician graphs the discharge-air temperature setpoint and the hot-
water valve position, as shown in Figure 35.
Discharge-air Discharge-air
temperature setpoint (°F) temperature (°F)
Hot-water valve
position (%)
Time (minutes)
The dramatic changes in the hot-water valve position indicate that the
gains are too high. The technician reduces the proportional gain from 16
to 1 and the integral gain from 4 to 0.25. This stops the hot-water valve
from cycling but increases the time to reach setpoint to more than 20 min-
utes. The technician then increases the proportional gain to 4 and the
integral gain to 1, which brings the discharge-air temperature to setpoint
more quickly while still preventing the hot-water valve from cycling.
50 CNT-APG002-EN
®
Chapter 6
CNT-APG002-EN 51
®
I tried the 4:1 ratio for proportional and integral gains, but this
did not optimize my system. Can I try another ratio?
We recommend maintaining a 4:1 ratio between the proportional and
integral gains. Changing the gains may slightly improve the speed and
stability of a system, but the 4:1 ratio has proven to work effectively. See
“Calculating the gains” on page 11 for more information.
Why is the derivative gain usually zero?
Derivative control is rarely used in HVAC applications because the large
error deadbands used in HVAC applications make derivative control inef-
fective. Also, derivative control can react to noise in the input signal, and
the lag in derivative control makes tuning difficult. Setting the derivative
gain to zero prevents derivative control from being used. See “Derivative
calculation” on page 5 for more information.
What is the difference between direct acting and reverse acting?
Reverse acting loops decrease the output as the measured variable
increases. Discharge-air heating, duct static pressure control, and space
temperature control applications are typically reverse acting. Direct act-
ing PID loops increase the output as the measured variable increases.
Discharge-air cooling and building static pressure (with exhaust fans)
applications are typically direct acting. See “Action” on page 17 for more
information.
When should I use proportional-only control?
Proportional-only control works well in staging applications because it
can be simpler to manage than full PID control. Proportional-only control
is also used in pneumatic controllers. To use proportional-only control, set
the integral and derivative gains to zero. See “Proportional calculation”
on page 3 for more information.
Why should I use PID control in staging applications?
Most Trane controllers have built-in PID functions, making settings easy
to enter and adjust. See “Staging cooling-tower fans” on page 37 for more
information.
How can I tell if a PID loop is working well?
Graph the measured variable, setpoint, and valve position over time,
especially during periods of change, such as when changing from unoccu-
pied to occupied mode. The setpoint should be achieved in a reasonable
time and the valve position should remain fairly stable once setpoint has
been reached. If the measured variable oscillates around the setpoint,
fails to reach setpoint, or takes too long to reach setpoint, follow the
guidelines in Chapter 5, “Troubleshooting.”
52 CNT-APG002-EN
®
CNT-APG002-EN 53
®
54 CNT-APG002-EN
®
Appendix A
This appendix presents the mathematical formulas used for PID control
in Tracer MP580/581 controllers, the programmable control module
(PCM), and the universal programmable control module (UPCM).
Where:
Kprop = proportional gain
Kint = integral gain
Kdiff = integral gain
c = 2.56 for the PCM and UPCM
c = 1.00 for Tracer MP580/581 controllers
∆error ( n ) = change in error
2
∆ error ( n ) = change in the change squared
The factor 2.56 scales the PID output to a range of 0–100% in the PCM
and UPCM.
CNT-APG002-EN 55
®
56 CNT-APG002-EN
®
Glossary
action
A PID setting that determines how the PID loop reacts to a change in the
measured variable (such as a room temperature). A controller using
direct action increases the output when the measured variable increases.
A controller using reverse action decreases the output when the mea-
sured variable increases. See also measured variable.
actuator
Electric, hydraulic, or pneumatic motor that changes the position of
moveable devices such as valves and dampers.
cascade control
A method of control in which one PID loop calculates a setpoint for use by
other PID loops or control systems. Cascade control is used in applica-
tions that require tight control; the response to error is aggressive.
conversion function
The part of a PID loop that converts the measured variable to the same
units of measurement as the setpoint. The result of the conversion func-
tion is called the measured variable or process variable.
deadband
See error deadband.
derivative control
Control action based on the rate of change of the error. Used to smooth an
actuator motion or cause an actuator to react faster. Derivative control is
rarely used in HVAC applications.
direct action
See action.
error
In PID control, the difference between the setpoint and the measured
variable. For example, if the setpoint is 75°F (23.9°C) and the measured
variable is 65°F (18.3°C), then the error is 10°F (5.6°C). This means that
the HVAC system must heat the space by 10°F (5.6°C). The error is the
basis of all PID calculations. Also called offset.
CNT-APG002-EN 57
®
Glossary
error deadband
A PID setting that defines how much the error must change before the
PID loop reacts. Used to compensate for bearings, linkages, and other
mechanical items.
gain
The primary tool for tuning PID loops, gain determines how a particular
part of the PID calculation contributes to the final output. The bigger the
gain, the more a part contributes. The proportional, integral, and deriva-
tive calculations each have an associated gain setting. Gain is defined as
the output range divided by the throttling range (multiplied by a scaling
factor for each part of the PID calculation). See also throttling range.
hysteresis
The programming of equipment to react in a different way depending on
whether the control value is increasing or decreasing (Figure 31 on
page 43 illustrates hysteresis).
integral control
Control action based on the sum of past errors. Used to maintain an out-
put when the error is zero. See also integral windup, error. Also called
reset control, automatic reset.
integral windup
A condition that can occur when the result of the integral calculation
becomes too great for the system to change direction. This is typically
caused when the system does not have the power to reach setpoint. Trane
uses the velocity model to minimize the problem of integral windup.
See also integral control, velocity model.
measured variable
Typically, a value read by a sensor, such as space temperature, discharge-
air temperature, or duct static pressure. The measured variable is sub-
tracted from the setpoint to determine the error. See also error.
Also called process variable.
overshoot
When a controller responds too aggressively to error, it can push the con-
trolled variable past the setpoint. The overshoot is the amount by which
the system passes the setpoint.
PID loop
See proportional, integral, derivative (PID) loop.
process variable
See measured variable.
58 CNT-APG002-EN
®
Glossary
program frequency
The rate at which a program executes or cycles.
proportional control
Control action based on the error. The most important determinant in
how quickly the system responds to the error. Some applications use pro-
portional-only control.
resolution
See sensor resolution.
reverse action
See action.
sampling frequency
The rate at which the input signal in a PID loop is sampled. For Tracer
MP580/581 controllers, this occurs at the same rate or a multiple of the
rate of the program frequency. See also program frequency.
sensor resolution
The minimum change of a physical quantity, such as temperature or air-
flow, that causes a reliable reaction in the sensor. Typically, this value is
provided by the sensor manufacturer. If a thermistor can reliably report a
temperature change of 0.1°F (0.06°C), then any change less than that
should be considered noise.
setpoint
The point at which the desired value of the controlled variable is set. For
example, if the controlled variable is space temperature, then the cooling
setpoint might be 75°F (42°C).
staging
The process of organizing individual pieces of equipment into a group to
produce a single result. For example, a cooling tower might have three
fans used in stages to cool water. On a hot day, all three fans would be
needed to cool the water, but on a cooler day one or two fans would be
enough.
CNT-APG002-EN 59
®
Glossary
throttling range
For an HVAC controller, the range of input that drives the output from
the minimum output to the maximum output (typically 0% and 100%).
The gains are calculated from the throttling range. See also error, gain.
velocity model
A type of PID control used in Trane controllers to minimize the problem
of integral windup. See also integral windup.
windup
See integral windup.
60 CNT-APG002-EN
®
Index
Numerics C
4 to 1 ratio for gains, 11, 52 calculating
action, 18
error deadband for staged outputs,
A 21, 40
gains, 11
action, 17-18
sampling frequency, 14-15
determining, 18
staging points, 42
direct, 17, 52
examples, 18 calculations, PID, 3-6
recommended values, 18 cascade control, 34-36
reverse, 17, 52 cascade control program
actuator PCL, 34
and error deadband, 19 TGP, 35
and PID output, 2 conversion function, 2
cycling, troubleshooting, 46
cooling, 17
aliasing, 12
cooling tower fans, staging, 37-44
applications, 29-44 See also staging
building pressure control, 18, 32-33
cycling of equipment or output
cascade control, 34-36
minimizing, 19, 20, 39
cooling, 17
troubleshooting, 46, 47-50
discharge-air temperature control,
29-31
duct static pressure control, 11, 12,
18
D
heating, 16, 17 damper, relief, 32-33
list of, 1 DDC, 23
recommended action for, 18
recommended error deadband for, derivative
19 control, 5-6
recommended gains for, 11 gain, 3, 6, 10-11, 52
recommended sampling frequency direct action, 17, 52
for, 14 direct digital control (DDC), 23
staging, 20-21, 37-44, 52
disable conditions, 24, 25, 27
steam valve control, 6
variable-air-volume control, 20 discharge-air temperature control,
29-31
duct static pressure control, 11, 12, 18
B dynamic braking, 6
braking, dynamic, 6
building pressure control, 18, 32-33
CNT-APG002-EN 61
®
Index
H R
heating, 16, 17
P recommended values, 9-21
high setpoint limit, 36 PCL, see process control language action, 18
PID block in TGP, 26 error deadband, 19
hot water valve
gains, 11
PCL program, 29 PID control sampling frequency, 14, 53
TGP program, 30 definition, 1
troubleshooting, 47-50 mathematical formulas for, 55 relief damper, 32-33
overview, 1-2 PCL program, 32
hysteresis, 42
PID calculations, 3-6 TGP program, 32
See also derivative control, resolution, sensor, 20, 32
integral control, proportional reverse action, 17, 52
control
routine, see programming
62 CNT-APG002-EN
®
Index
T
TGP, see Tracer graphical
programming editor
thermistors, 20
throttling range, 9-10, 53
time constant, 15
Tracer graphical programming
editor, 23, 26-27
cascade control program, 35
example of TGP program, 27
hot water valve program, 30
Limit block, 27
Or block, 39
PID block, 26
PID Properties dialog box, 26
CNT-APG002-EN 63
®