Controller Tuning
Controller Tuning
PR38
Controller Tuning
Table of Contents
1. Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Introduction—controller tuning . . . . . . . . . . . . . . . . . . . . . . . . . 3
3. Controller tuning precautions . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4. Trial settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5. Controller modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
6. Controller and valve actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.1 Types of controller action . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2 Determining controller action . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.3 Controller action—cascade loops . . . . . . . . . . . . . . . . . . . . . 8
6.3.1 Select correct controller action for primary controller . . . 8
6.4 Valve action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6.5 Split-range valves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7. Controller tuning procedures—all modes . . . . . . . . . . . . . . . . 9
7.3 Upset generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7.5 Gain adjustment procedure . . . . . . . . . . . . . . . . . . . . . . . . . 10
7.6 Reset adjustment procedure . . . . . . . . . . . . . . . . . . . . . . . . 11
7.7 Derivative procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
8. Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.2 Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.3 Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
8.4 Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
8.5 Pressure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
8.6 Ratio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
8.7 Floating control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
8.8 Batch switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
9. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
10. References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
List of Figures
Figure 1. Trial settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 2. Product cooler temperature control . . . . . . . . . . . . . . . 7
Figure 3. Gain too low, proportional band too wide . . . . . . . . . 12
Figure 4. Optimum gain, proportional band . . . . . . . . . . . . . . . 12
Figure 5. Gain too high, proportional band too low . . . . . . . . . 12
Figure 6. Reactor temperature cascade control . . . . . . . . . . . . 13
Figure 7. One-quarter ratio decay cycle . . . . . . . . . . . . . . . . . . 14
Figure 8. Constant gain on process signal . . . . . . . . . . . . . . . . 18
Figure 9. Variable gain on process signal . . . . . . . . . . . . . . . . . 18
Figure 10. Adaptive gain used to stabilize control . . . . . . . . . . . 19
Figure 11. Characterizer to linearize divider . . . . . . . . . . . . . . . . 19
1. Scope
1.1 This procedure provides information and guidance to aid the user
in the adjustment of the controller portion of a process control loop. The
procedures may be used with Pneumatic, Electronic (analog), Single
Loop Digital Controllers (SLDC), Distributed Control Systems (DCS),
and Direct Digital Control (DDC).
1.2 This procedure is designed to aid plant maintenance personnel.
Much more information and formal theory and techniques are available
in the literature shown in section 10. A number of experts are available
in the Company for special problems.
2. Introduction—controller tuning
2.1 The quality of control achieved with an automatic control system
depends upon several factors:
a. Characteristics of the process; such as dead time, time constants,
and nonlinearities.
b. Quality of the measurement and control devices and their current
condition. For example, a sticking control valve will introduce nonlin-
earity and erratic behavior and adversely affect control. A thermowell
with an insulating coating will slow down the temperature measure-
ment and thus cause slow response to changes. A long pipeline
bringing brine to a cooler may be filled with warm brine if there has
been no demand for some time.
c. Extent and type of process upsets.
d. Controller tuning of the loop affected, or possibly, of other interacting
control loops.
2.2 To be successful, the process of tuning (the controller adjustments)
must be systematic and logical. This procedure presents proven meth-
ods and principles.
3.2 Before making any changes, note and record the control valve load-
ing (output signal) required to hold the process at an acceptable value,
and the “as-found” controller settings. This will permit an orderly recovery
to manual operation if required and to return to the original tuning set-
tings if operation is not improved. Records of the reasons for change,
the changes made, and the results of the changes can be very valuable
in understanding the operation of the loop. It is very possible that the
tuning settings which are successful for one set of operating conditions
will be unacceptable at another. A compromise set of settings may be
needed, or it may be necessary to retune when operating conditions
change. Use of adaptive gain, see 5.2, may make it possible to better
satisfy all operating conditions with a single set of tuning parameters.
3.3 Note that other system upsets that might occur while tuning is in
progress can mask the effects of adjustments. Do not change controller
tuning without making an effort to prove satisfactory operation at the
new values, and to be certain that the control loop is stable. It is best
to observe operation under actual load change conditions for a long
enough time to create confidence in the results.
4. Trial settings
4.1 A reasonable estimate of controller settings may often be made
from a limited knowledge of the process. A number of rules of thumb
have been developed as a guide in tuning. These are usable only for
continuous processes and are for “regulatory action,” where the goal is
to keep a constant process value (PV) in the face of process upsets.
4.2 “Servo-action” type control is required if the PV is to closely follow a
changing set point (SP). This may be required in some batch processes
with programmed SP changes. Here it is necessary to have a system
which ideally is faster in response than the set point change. There is
less guidance in the process control literature on this problem than for
regulatory-action control.
4.3 Figure 1 shows controller settings that can be expected to give satis-
factory regulatory control in most loops, based upon the type of variable
being controlled. These settings may not result in the optimum response.
However, if the process is stable, they will be adequate for noncritical
loops and further tuning will not be needed. Consider these as starting
point for loops without known characteristics. These values are based
upon theory and experience and have been proven by years of use.
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Figure 1. Trial settings
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
Reset
ÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁ ÁÁÁÁÁÁ
(Repeats/ Derivative
Process type Gain PB Min/rpt minute) (time)
ÁÁÁÁÁÁÁÁ
Flow
ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
0.4 250 0.1 10 –
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁ ÁÁÁÁÁ
ÁÁÁÁÁÁ
Pressure—close
coupled(1) ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
0.5 200 0.2 5 –
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
Pressure—
ÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
2 50 2 0.5 –
ÁÁÁÁÁÁÁÁ ÁÁÁÁÁ
ÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
accumulating(2)
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁ
Level–tight(3)
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
1.3 80 5 0.2 –
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁ ÁÁÁÁÁ
ÁÁÁÁÁÁ ÁÁÁÁÁÁ
Level—averaging(4)
ÁÁÁÁÁ
ÁÁÁÁÁÁ
Temperature—fast
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
(5)
ÁÁÁÁÁÁ
1.3
(6)
80
–
2
–
0.5
–
0.2
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
measurement(5)
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁ
Temperature—slow
ÁÁÁÁÁÁ
ÁÁÁÁÁÁ
1 100 2 0.5 2
ÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁ
measurement(5)
Notes:
(1) Such as in header pressure control
(2) Such as in vessel pressure control
(3) Level must be held close to set point
(4) Level may deviate from set point
(5) The value for derivative should be made equal to the time constant of the measurement if that can be determined
5. Controller modes
5.1 There are many types of controllers. Assuming a constant SP, each
type of controller responds to a change in PV in a unique way. This type
of response is the controller “mode.” The actual response (change in out-
put value) may be affected by the magnitude of the process change, the
duration of the change, the rate of change, or some combination of
these. Some modes are described below:
On-off. The output is 100 percent or 0 percent. A thermostat is an exam-
ple of this. Used for certain simple applications, usually where the mea-
sured variable changes slowly.
Gap control. Has a deadband, usually centered on the SP. Response
outside of the deadband may be any of several modes.
Proportional (P). The output changes proportionally to the error, i.e.,
to the difference between process and set point values.
Proportional-integral (Pl). The output changes proportionally to the
error plus the sum (integral) of error times the duration of the error.
Proportional-integral-derivative (PID). The output changes proportion-
ally to the error plus the sum (integral) of error times the duration of the
error plus the rate of change of the measured variable.
Proportional-derivative (PD). Output changes proportionally to the error
plus the rate of change of the measured variable.
6.2.2 A similar analysis can be made for any loop to determine the re-
quired controller action. Note, however, there occasional variations in
design that reverse the logic, and these must be taken into account
when determining controller action. An increase in the process variable
may result in a decrease in the transmitter output. Reverse-acting trans-
mitters, and intentional reversal of transmitter process connections are
examples. Refer to DR130S, Fail Safe Design of Process Control Loops,
for a discussion of this. See also 6.4.1.
6.2.3 An inverter function may be intentionally configured within the
controller, on either the process or output signal, to reverse the signal.
7.4 These procedures apply to the most commonly used controller algo-
rithms, including various combinations of gain (proportional), reset, and
derivative functions. It does not include information on “integral only”
(floating) controller adjustments. Digital controllers may include adjust-
able parameters beyond these three functions.
7.4.1 Adjustments should be made in the sequence given below.
7.4.2 Some digital controllers include an adjustable, low-pass filter in the
input signal block. A typical adjustment range is from 0.001 to 10 Hz.
The filter is effective in removing noise or spikes occurring on otherwise
normal signals. Most loops will operate properly at a value of 10 Hz. Fil-
ter settings of too low a frequency may conceal the true process perfor-
mance and result in slow response to upsets.
7.4.3 Some digital controllers also permit adjustment of derivative gain
(a value which exists, but is not obvious, and is fixed in amplitude, in
analog controllers). A typical range is from 1 to 30 (gain). Operation at a
value of 10 will provide derivative response, at a given derivative time
setting, quite similar to earlier analog controllers. (Derivative gain values
in analog controllers typically vary from 6 to 10.)
e. Observe the controller output change and the response of the pro-
cess. See Figures 3, 4, and 5. If the process cycles, reduce the gain
to one-half of the original value, and observe the result. If the process
goes out of control, switch to manual, set the valve at the appropriate
value as determined above and wait for the system to settle out. Then
reduce the gain and try again. If the process is unresponsive and
shows little change, then increase the gain by a factor of two. Keep
increasing gain until the process cycles, then reduce gain to one-half.
Note the time, in minutes, between successive cycles of the process.
f. There is normally little value in making small changes in controller
tuning settings. A typical control loop will have substantial changes
in process gain and the control valve gain over the range of opera-
tion. There is also little value in attempting to determine the exact
best gain setting before the reset and derivative are nearly at the final
settings. See Figures 3, 4, and 5 for examples of idealized response
at different gain settings.
Figure 3. Gain too low, proportional Figure 4. Optimum gain, Figure 5. Gain too high, proportional
band too wide proportional band band too low
8. Applications
8.1 General
8.1.1 The operating goal should be known for each control loop. For ex-
ample, when tuning a loop to 1/4 ratio decay, see Figure 7, the expected
result usually is tight control for upsets due to changes in the process.
The process is held as close to the set point as possible. This is called
“regulator-action’’ type control. The valve or other manipulated variable
may make wide excursions to accomplish this, and in many cases this
is the desired performance.
8.1.2 In some cases this tight control is not the desired action. It may
be more desirable to achieve a smoothing or averaging effect on fluid
flow to, or from the vessel, see 8.3.1.
Figure 7. One-quarter ratio decay cycle
8.1.3 A different criteria is used for good performance in the face of set
point changes, as in batch processes. This has been called the “servo-
action’’ type control. Also, batch control loops often will benefit from
use of a batch switch, see 8.8.
8.2 Flow
See Figure 1 for trial settings. Generally flowmeters have considerable
noise on the signal and low gain, fast reset is suitable.
8.3 Level
8.3.1 For receiver level control, it is often desirable to allow the level to
vary over a wide range, to minimize flow changes to upstream or down-
stream process equipment.
8.3.2 For example, a particular level might be allowed to vary between
20 percent and 80 percent, with no harm to the receiver operation. For
this case, a proportional-only controller (no reset) is a good choice, and
this tuning can be calculated. The allowable excursion is 60 percent of
scale, 80 minus 20. The gain that will fully stroke the valve over this level
range is 1/0.6, equal to 1.67 gain units. With set point at 50 percent, the
valve will be just open at one allowable limit, and just closed at the other.
Note: typical of the sort of required understanding of the details of the
equipment is that to implement this scheme in the Moore 352 requires
(1) both the set point and manual reset blocks not track in Manual, and
(2) the manual reset value be set to 50 percent, so the controller output
is 50 percent when set point and process signals are equal.
8.3.3 Also available are various types of nonlinear control. The level
could be allowed to move freely with some reset effect but no propor-
tional effect until certain limits are reached, then, at the limits, the pro-
portional gain takes effect. In controllers where reset is developed as a
function of gain, reset effects will be very small when gain is low because
limits have not been exceeded. For the case of gap control without reset,
experience with this sort of control is that the process tends to “hang”
near one limit or the other, and that the expected smoothing does not
occur. Flow remains constant until the level reaches one of the limits
and then changes in response to the controller gain.
8.3.4 Another variation on the idea is to use a conventional Pl controller,
tuned for low gain to get good smoothing, but also install another con-
troller with proportional-only action and relatively high gain to enforce
greater valve action as the level approaches the limit of operation. Typi-
cally this other controller is a high-gain-plus-bias relay. Signal selecting
relays then determine which signal goes to the valve.
8.3.5 Other schemes have been used. For example, the “error squared”
algorithm has very low gain action near the set point but increases rap-
idly as the error increases.
8.3.6 A “gap” action controller has low or no gain for small values of
error and higher gain when the error exceeds the preset limits.
8.3.7 Note also, that the above discussion on averaging control could
be applied to some pressure control loops.
8.4 Temperature
Temperature is the one application which most often uses derivative
action. It is most typically used to offset the time lag in the temperature
measurement.
8.5 Pressure
8.5.1 In vessel pressure control the control system typically either vents
to relieve excess pressure, or adds gas (nitrogen, air, etc) to keep the
pressure up to the set point. These systems use two control valves in
some variation of a split-range design. See 6.5.2. Use of digital control-
lers can allow use of standard, rather than split-range valves, and that
approach is recommended where practical.
8.5.2 Probably the most common variation of split-range systems is, for
fail-safe design, to have the vent valve fail open on loss of instrument air,
and the gas valve fail close. In this case, the vent valve is air-to-close,
with a split-range of 3 to 9 psig. The gas valve is air-to-open, ranged 9 to
15 psig. The controller is increase-decrease; with its output at 9 psig
both valves are closed. Thus an increase in the vessel pressure causes
the transmitter output to increase, and the controller output to decrease.
This in turn causes the gas valve to further close (if operating conditions
are such that it is adding gas to the vessel), or, the vent valve to further
open (if operating conditions are such that the vessel is venting at the
time).
8.5.3 A less common variation on split-range systems, is a fail-safe
requirement that the vessel be “bottled-up” on instrument air failure; vent
valve closed, full pressurizing gas supply pressure on the vessel. A con-
troller action analysis, as in 5.2.1, indicates the controller is increase-
increase; the vent valve is 9–15 A.O.; the gas valve is 3–9 A.C. Another
situation would call for the two valves supplying heating and cooling to a
vessel to act differently to controller output signals and for positioner air
supply. It is possible, with a reverse acting positioner (increasing input
signal/decreasing valve opening) to close on increasing signal, but also
close on loss of supply air. Thus, switching off the positioner supply air
will shut both valves.
8.6 Ratio
8.6.1 Ratio control has commonly been done by taking a fraction of the
primary flow signal, say 70 percent, and applying that signal as set point
to the secondary controller, rather than dividing one flow signal by
the other to get the actual ratio value, and using the value as PV. See
Figure 8. The reason for this is twofold:
• While it is very desirable to use the actual ratio as the controlled and
displayed variable, see Figure 9, the pneumatic analog divider relays
once used are notoriously inaccurate at low signal inputs, and drift
with time. (However, various special instruments have been used
successfully, and newer electronic and digital computing relays are
far better.)
• The ratio value, calculated by dividing one flow by the other, is non-
linear. When the denominator is small, then a small change in the
(denominator) flow rate makes a large change in the calculated ratio.
When the denominator is large, the opposite is true. Restated, the
“process gain” varies significantly with different operating conditions.
Thus, controller tuning parameters properly adjusted for one set of
operating conditions may be unsuitable for another.
8.6.2 The PID adaptive gain digital controller provides a solution for both
problems listed above. See Figure 10.
• The ratio value can be calculated in the controller, digitally. This
makes an accurate ratio value available for both control and display,
and eliminates the “analog drift.”
• The adaptive gain (AG) signal to controller changes the controller
gain value in response to the designated input. When configured so
the AG block has as its input the “denominator” flow signal, the con-
troller gain is very low at low flow values, and increases as the flow
increases. Thus the system is essentially linearized, and the tuning
parameters need not be changed as operating conditions change.
8.6.3 It may also be possible to rearrange the signal path and accom-
plish ratio control with a multiplying block. This avoids the problems
involved in any dividing device. (This is the equivalent of 8.6.1 above;
the actual ratio value is not present in this scheme.)
8.6.4 Other means are available in many digital controllers to linearize
control responses. For example, the signal exit the divider block could be
routed through a characterizer block, and thence to the controller block.
See Figure 11.
8.7.2 The ID control algorithm is not appropriate for and is not normally
used for ordinary transmitter valve-controller control loops. Further, con-
troller response as shown on Figure 7 is not normally obtained with ID
control. It is essential that the required operation of the process be com-
pletely understood before attempting tuning. For example, similar to the
receiver level control described in 8.3.1, it is possible that the quickest
return of process to set point is the worst strategy to meet the process
requirements.
9. Definitions
9.1 Automatic control system (control loop)—A control system which
measures a variable and operates to correct or control the deviation from
a selected reference.
9.2 Controller—The device which compares the set point (SP), the de-
sired value, to the process variable (PV), and develops an output signal
(CO) to go to the final control element. The controller may be a physical
device or could be all or part of the program code in a computer. (The
Moore 352 controller is a computer; so are the “multi-loop controllers”
which simultaneously run many control algorithms and output to many
control valves.)
9.3 Control loop—The various parts used to control one variable, con-
sisting of a measuring device, a decision device, and a final element.
9.4 Controller mode—The manner in which a controller reacts to a
change in the measured variable, assuming a constant set point.
9.5 Controller tuning—The adjustment of the various controller modes
to produce acceptable control.
9.6 Cycling—This refers to a sustained oscillation in the measured vari-
able caused either by the control loop or some external influence.
9.7 Critical damped—A system in which the measured variable returns
to set point, after upset or load change, in the shortest practical time
without overshoot or undershoot.
9.8 Damping—Damping is an aspect of control loop dynamics which
tends to reduce cycling. It is usually accomplished by reducing the gain
of the system.
9.9 Direct action—Or Direct acting, an increase in PV causes an in-
crease in controller output. However, it has also been defined as exactly
the opposite. The only safe term to use is Increase(PV)/lncrease(CO). In
some digital systems the sense of action is expressed as positive or neg-
ative gain.
9.10 Derivative—Also called rate action, is the response of the control-
ler to the rate of change in the process variable. In some physical imple-
mentations this effect is also seen for changes in set point.
9.11 Derivative time—The time associated with derivative or rate ac-
tion; the time that the controller acts “before” it would without derivative.
9.12 Deviation—The difference between the set point and the mea-
sured variable.
9.13 Final control element—The device which changes the process in
response to the controller output signal. This is often a control valve.
10. References
1. Shunta, Joseph P., “The Calculation of Controller Tuning Parame-
ters,” Accession Report No. 16853 (May 1984).
2. St. Clair, D. W., “Controller Tuning and Control Loop Performance,”
Accession Report No. 16699 (April 1983).
3. Buckley, P. S., “Techniques of Process Control,” John Wiley & Sons
(1964).