Good Tuning - A Pocket Guide, 2nd Edition - Gregory K. McMillan
Good Tuning - A Pocket Guide, 2nd Edition - Gregory K. McMillan
'<
G)
CD
CO
o
~
=".
s:
(")
~
D)
::J
Notice
The information presented in this publication is for the
general education of the reader. Because neither the author
ISA- The Instrumentation, Systems and Automation Society nor the publisher has any control over the use of the
67 Alexander Drive information by the reader, both the author and the publisher
P.O. Box 12277 disclaim any and all liability of any kind arising out of such
Research Triangle Park, NC 27709 use. The reader is expected to exercise sound professional
judgment in using any of the information presented in a
particular application.
Additionally, neither the author nor the publisher have
Printed in the United States of America. investigated or considered the effect of any patents on the
10 9 8 7 6 5 4 3 ability of the reader to use any of the information in a
particular application. The reader is responsible for reviewing
any possible patents that may affect any particular use of the
information presented.
No part of this work may be reproduced, stored in a retrieval Any references to commercial products in the work are
system, or transmitted in any form or by any means, cited as examples only. Neither the author nor the publisher
electronic, mechanical, photocopying, recording or otherwise, endorses any referenced commercial product. Any trademarks
without the prior written permission of the publisher. or tradenames referenced belong to the respective owner of
the mark or name. Neither the author nor the publisher makes
Library of Congress Cataloging-in-Publication Data any representation regarding the availability of any referenced
in Process commercial product at any time. The manufacturer's
instructions on use of any commercial product must be
McMillan, Gregory K., 1946- followed at all times, even if in conflict with the information
Pocket guide to good tuning / by Gregory K. McMillan. in this publication.
p.cm.
ISBN 1-55617-940-5
1. Automatic control-Handbooks, manuals, etc. I. Title .
1.<
3.2 Deadly Dead Band 64 6.6 Crystallizers 130
3.3 Sticky Situations 74 6.7 Distillation Columns 132
3.4 Fouled Sensors 78 6.8 Dryers 135
3.5 Noisy Measurements 81 6.9 Evaporators 137
6.10 Extruders 138
Chapter 4.O-Control Considerations 85
6.11 Fermentors '" 140
4.1 Auto Tuners 85 6.12 Heat Exchangers 142
4.2 Uncommonly Good Practices 6.13 Neutralizers 143
for Common Loops 85
6. 14 Reactors.................................. 145
4.3 Dead-Time Compensation and
6.15 Remote Cascade 146
Warp Drive 88
6.16 Sheets and Webs 147
4.4 I Have So Much Feedforward,
I Eat before I Am Hungry 92 Chapter 7.0-Adaptive Control 151
4.5 Cascade Control Tuning 95
7.1 Learning the Terrain................. 151
4.6 Keep the Secondary Loop
on the Move 98 7.2 Watching but Not Waiting 152
7.3 Shifting into High Gear 154
Chapter 5.0- Troubleshooting 99 7.4 Back to the Future 156
5.1 Patience, Heck, I Need to
Appendix A-Technical Terms in
Solve the Problem 99
Process Control that Are
5.2 Great Expectations and Used Interchangeably 159
Practical Limitations 107
Appendix B-For Math Lovers Only 161
Chapter 6.0- Tuning Requirements for
Various Applications 113 Appendix C-An Integral Part of Tuning 165
6.1 Batch Control 115
6.2 Blending 118 Appendix D-Closed Loop Time Constant.. 169
6.3 Boilers 119
6.4 Coils and Jackets 125
6.5 Compressors 128
I.O-Best of the Basics
1.1 Introduction
Welcome to the wonderful world of proportional-
integral-derivative (PID) controUers. This guide wiD
cover the kry points of good tuning and provide more
than seventy rules of thumb. First, let's blow away
some myths:
J.,
fail-open valve), the control action had to be the
opposite of the action that would normally be
appropriate based on process action alone. For- Process Valve Signal Controller
Action Action Reversal Action
tunately, the valve action corrects both the dis-
play and the actual valve signal in modern Direct Increase- No Reverse
controllers, so the control action can be based Open
solely on process action. However, the user
should verify this before commissioning any Reverse Increase- No Direct
loops. In control systems that use fieldbus Open
blocks, the valve action should be set in the ana-
Direct Increase- Yes Reverse
log output (AO) block rather than in the PID Close
controller block. This ensures that the "back-cal-
culate" feature is operational for any function Reverse Increase- Yes Direct
blocks (split range, characterization, and signal Close
selection) that are connected between the PID Direct Increase- No Direct
and AO blocks. The signal can also be reversed Close
in the current-to-pneumatic transducer (liP) or
in the positioner for a control valve. Before the Reverse Increase- No Reverse
advent of the smart positioner, it was preferable Close
for the sake of visibility and maintainability that
any reversal be done in the control room rather Which brings us to rule of thumb number one.
than at the valve. It is important to standardize
on the location of the signal reversal to ensure ' Rule 1- The controller action
that it is done and done only once. Table 1 sum- .~.. should be the opposite of the pro-
marizes how the controller action depends upon cess action unless there is an
both the process and valve actions and on the .•• • increase-to-dose (fail-open) con-
~
signal reversal. trol valve for which there is no
reversal of the valve signal. This means that
you sho~ld use reverse and direct-acting control-
lers for dlTect and reverse-acting processes,
.~.
respectively. The valve signal can be reversed for • Man (manual) - The operator manually sets
a fail-open valve at many places, but it is best the output. PID action is suspended (open
done in the AO block of the control system. loop).
I I
;
to-
:..
.-. - Rule 3 - Increase the gain to
.-- -.~.... - ..... --';
~.,; •... .' -. achieve tight level, stirred reactor,
\ t~ - • or column control and to speed
II
\ ...
i E :
;'l ~
~ -- up the set point response for
..
------------: _----\
\
_._- - _ ..
.!:E.
advanced, batch, cascade, and
•• ••\
sequence control. For high gains it is especially
\
important that you set a process variable filter to
.\
~?:c- ensure that fluctuations in the PID output are
smaller than the valve dead band. You should
also establish set point velocity limits so the out-
put doesn't jerk when the operator changes the
set point.
.!
- ..•
~
~.
~
I
I approximately the sum of all the pure dead
.\ times and small time constants as you traverse
I
I
I cl
Q) ,
the loop. The dead time from valve dead band is
inversely proportional to the rate of change of
e
~
...-
~I
III
~
I
!
the controller output, and the dead time from
transportation delays is inversely proportional to
ca ~! throughput. The diagram in Figure 6 has many
Q
~ I uses-including preventing guests from overstay-
-=
e
Co
>
Q
~ I!
I
I
ing their welcome. Just show this slide and start
talking about dead time and you will be amazed
.se I
I
at how quickly the place empties. There is a
safety issue, however, in that guests can get tram-
I I
!
..c ~c: I
I
pled in the rush for the door.
U Co? I
I
•••
.•
I
~ ~III ... I
I
I The following list summarizes the three key vari-
Woe 0.. Q) ~ i
::> >
CO ...
(5 I
I
ables and their relationship to loop performance:
"0
al, > 'E
0
I
I
()
51 I
0
U
I
I
I 1. Dead Time or TimeDelay {'tcJ
I
I ~ II
I
I
! u
I The most important of the three key loop
:II: II
variables
0
ii:
Delays controller's ability to see and react
to upset
Perfect control is possible for zero dead
tIme
Nonlinearities become less important as the sented in this section, you should skip ahead to
dead time decreases Section 2.0 on Tuning Settings and Methods.
t3 5~§~fik~~~~]i~~
curve slope):
-c2- -
II
<J
~PV = change in the process variable (wtfrac)
(degC) (psi) (Pph) (ft) u <J
•..•. 0
~FR = change in the flow ratio (Pph/pph) ;> U
c. =- ~ >
0
-
••• ClO
and steady-state gain for a process that reaches a Q ;> Eo:'
steady state (i.e., self-regulating) and for an inte- =-
grator such as level. In both cases, the process
variable response is to change the controller out-
-~
oS
I c
Cl.
~
put with the loop in manual (open-loop to- ;> 0
u =- U
response). Figure 7 also shows the equations ~ ~~ ~
c
=-, i..
e e e =- e e e ...•e
I
:l VI
Gii 0 VI
"!
-
0 0
"! VI 0 "!
ods that generally give the best results. The "gen- = = = 'i
-= :: = = = = ...•- = ~
IX G.l ::;)
VI ...•
which is referenced in Tables 2 and 3. While this •
= .Q
= = =
'tl
method is best for gas pressure, reactor, and level oc • ...
loops, it can be used for most other loops as 0.c 9
...•
...•
VI
J.
...•
,;..
~'
0 0
I
9
or.
~
= =. ..
~
...•
'5
o
.r.
on on'"l~ 0
on
VI VI
.. ..
G.l
'8
G.l
~.
Co ",G.l",
.. "i:
j
>
:;
",
--..
Co
- -
.. -..
:l
III
G.l
:l
:l
Gii
at
D
I-
--~
~
..
G.l III G.l
~
-
G.l Co Co Co
'C G.l ::;)
f
0 :l G.l G.l G.l
~ I:T Co l- E I-
Gii ::s
- :; .E - .:
G.l Co G.l
~ 'C 0 III l- e
is. :; .c
", !i G.l 0
CoI
G.l E
:l c
Co I:T llC III III c
< ::s !=
III
~
G.l
IX
G.l
c G.l
is c;
•
"'a e
A closed-loop (controller in auto) method has
the following advantages over open-loop (con-
CwS
ta ~
c.El
'tl
Q
.c
'Z .< ::; ~ ~ -
~
{,.l .< ~ .< ::; on troller in manual) methods:
t --e
..J ..J {,.l ..J {,.l
::;
·
{,.l {,.l {,.l v
rI:: rI:: rI::
~ c
"6 l.
~ 1:e -;,
..•-. -. s
..., ...,
S S
::: •...
5'
<=
~
..•~ e
S
5'
<= ~
Q
It forces the user to find the maximum con-
,c
" ~
III '4:l
_<:I'tl c <= ==~
troller gain to minimize peak error and
·
I
.5 .:: e- '4:l
e-..., ! e- <=
·
II
::>
response and gets inside the window of
CwS
ta ~
~
'4:l
<=
<=
~
<=
...,
<=
-
<= <=
<=
~ •...
<=
<=
•...
<= <=
'4:l
<=
...,
<= II
.&l
'tl
allowable controller gains for integrating
and runaway loops .
~El oc
..• s~
..• ~.
S S
, •... ;;; ~
'5
~0
III
~e
C e
c. c
Iii ..•~ J.'" oJ.
~ ~ ~
<=
<=
~
g
~
~
~
~
~
, ..•
~
~
S
~
I
=
·
Q
c
2.
·S i" " ""l <= <= ~ ..• ~ '" '"
::>
'2
Loops stay in automatic, which is safer for
~"'a <= wi wi
= = or.
= = ~ difficult or very fast loops.
I;/} ~
Q-S
III
c c
-;
'tl
...,
S ..•, -. or. ;;; S
~ ·
u
c
-u 1Il
u
Q
u ..•~ ~
<=
~
'"
~
or.
~ = ..•~ = ~
"6
Q
3.
=: 1\
rr,; <:I
..•
fIl
-
~ ~
'"
"'!
<=
~
..• ..• ~ ~ ..• ~~ 0
~
or•
~
E
It includes the effects of valve stick-slip and
dead band.
.~~ .. •.... 'S
<:I
£
$0 ••••<:I ~, ~
.. .. ••.. f
::l <:I ::l
.. ••
.. - --..~
<:I -;; ::l
~ <:I
••.. ~ ~ 4. It includes the dynamics and peculiar fea-
~
- ...l ~
"'at! <:I <:I
c.. ~
-
C"'a i- ::>
<:I
e e <:I
- - ~i·
~ :E Q, D"
tures of controller algorithms.
..c..'"'" .e.. .. - -.e..
tll~ c
.:: El .5! Q
li:
::l
:r
::I
~ <:I
.!::!
e <:I
<:I
<:I
•• <:I Q,
-
:3 ii !"'" c
~~
~
Q.
'tl
:; .c :;
<:I e <:I C 5.
••
u
Q, :r llII
'" •
<:I
C u
1Il JE ::I
'0
It includes nonlinearities that are depen-
-
1Il <:I
-
<:I
c
Q~ < :3 !"'" ~ ::II: Z ::II: C
U dent on direction and rate of change.
I
M
-
~
~
~
-u
III
Ziegler-Nichols method. ~ •.
-E .
0: i .
~
C
.
'ii
III
Q 0:
:: ..
E
c
C
•..:: ..••.
0:
•.
I
•..E....
0;"
~ particularly important to maxi- C-' 8
mize the gain for tight control and I ::
•.
QC) c
a fast set point response. However, for dead- ~ ""
time-dominant loops, you should substantially
...•
~
decrease the factor for the reset time. This will ~
prevent the set point response from faltering
because of too much gain action and not
enough reset action. For temperature and pres-
sure loops on exothermic reactors, it is especially
important to use this method to prevent a run-
away.
A list of steps for the "Closed Loop Method" is
as follows:
o~
CJ QJ
4. Bump the controller set point and output
and increase the controller gain if necessary
to get a slight oscillation.
:>~ - 1
•••
starts to oscillate or the gain has reached
your comfort limit. Then note the period.
~~
-=
Q
~
For gain settings greater than 1, the oscilla-
tion will be more recognizable in the con-
•••
QJ
rI:.l troller output (CO). Make sure CO stays on
scale within the valve's good throttle range.
6. Reduce the gain until the oscillation just
forward, and add rate if there is no inverse
disappears so recovery is smooth. response or interaction.
I
!
the controller tuning settings. This method
velocity limit for the set pomt and ~onfig- looks at the change in ramp rate of the OfoPV as
ure the set point so it tracks the PV m man- shown in Figure 10 for about two to three dead
ual and ROUT (DOC). This will enable the times. It doesn't require the loop to be at steady
loop to restart. I
I
state. However, if there is an upset that causes
;
the ramp rate to change, the results will be inac-
8. If rate action is used, set the rate time equal I curate ..!n g.eneral, you should repeat this test in
to one-tenth (1110) of the period and set I both dIrectIOns and use the most conservative
reset time equal to half the period. If rate I
! settings. Also, if the bump in controller output is
action is not used, cut the gain by 50 per- I much larger than the dead band, the shortcut
cent. If the loop is clearly dead-time domi- i
method doesn't include the dead time from
nant, increase the reset action so the reset valve dead band. If the changes in controller
time is about one-eighth (118) of the loop output per scan approach the control valve dead
period. Make another set point change and band in size, you should add the additional dead
adjust the gain to get a smooth response.
Do not become any more aggressive than a
slight oscillation.
I time from the valve dead band to the observed
dead time.
!
,
!
I
I
I
,
The shortcut method is also effective for pH
i
i loops because it can keep the test near the oper-
ating point on the titration curve. The use of a
closed-loop method can get confusing for pH
particularly if the oscillations develop into a
limit cycle after being bounced back and forth
--
u
te
tI'.l
between the flat ends of the titration curve. The
period of such a limit cycle is extremely long
and variable, and it will occur for a large range of
~
-=
5
tI'.l
I
>
N
0..
~- c
controller gains.
~
-
u
Q"
1. Adjust the measurement filter to keep the
controller output fluctuations caused by
noise within the valve dead band.
~
...= ~
,c
-c
-=
_
Q.
Q = 2. Note the magnitude of output change for
u
bIl .- = r- each reaction to typical upsets. With the
;
.:
~
~a.
c ~
Q
~=-
(I)~
=...
•..=-=
l'j .- ~
3. Note the observed dead time and the
change in ramp rates. If the process was
Q..~ lined out before the test, then the starting
ramp rate is zero (~%PV 1 I ~ t = 0).
,*'
4. Divide the change in ramp rate by the
change in valve position to get the pseudo
I),.%AVP change in actual valve position (0/0)
integrator gain (K;). Then compute the
dead time from the dead band. I),.%CO= change in the controller output (°/0)
DB = dead band from valve hysteresis (Ofo)
5. Use the following equations. For a master Kc = controller gain (dimensionless)
or supervisory loop, omit "tdv- Cd = rate time coefficient (1.0 for baek-
mixed and 0.0 for plug flow volumes)
1(1),. OfoPV 2/ I),.t) - (I),.OfoPV 1/ ~t)\ = reset time coefficient (4.0 for back-
K·
1
= '---------------'\f),.OfoCOI mixed and 0.5 for plug flow volumes)
I<x = gain factor (1.0 for Ziegler-Nichols, 0.5
for IMC, and 0.25 for Lambda)
Kc = --- ~ I<e = open-loop gain (dimensionless)
K·1 • 'td 0 ~ = pseudo integrator open-loop gain
(llsec)
DB I),.%PV = change in process variable (°/0)
'tdv = ~. I),. 0/0 A VP • 'tdo I),. t = change in time (sec)
"t = largest loop time constant (see)
DB "tdo = dead time seen in open-loop test (see)
f),. OfoAVP = If),.OfoCOI- -
- dead time from control valve dead
2 "tdv
band (see)
T·1 = c·I • ('td + 'td 0 ) derivative (rate) time setting (seconds)
V
= integral (reset) time setting
(seconds/ repeat)
Rule 15- Use the shortcut
method when you want a quick
estimate for a very slow or nonlin-
ear loop, provided that the valve
dead band is 0.25 percent or less
and the step size keeps you near the operating
point. Make sure there are no load upsets during
the test and that you measure the new rate of
change of the PV for at least two dead times.
You should repeat the test for both directions
and use the most conservative tuning.
~
E .5-
.-E-_E
1. Adjust the measurement filter to keep the The equation for reset time setting is as follows:
controller output fluctuations caused by
noise within the valve dead band. Ti = T 98 I 4 = 'tdol 4 + 't (seconds/repeat)
2. Note the magnitude of output change to The equation for gain setting is as follows:
determine the reaction to typical upsets.
With the controller in manual near set
point, make a step change in the controll~r
output (~%CO) of about the same magm- cAr is a tuning factor that is increased to provide
tude as the output change you noted, but a slower and smoother response.)
larger than twice the valve dead band.
3. Note the observed dead time as the time it . ... Rule 16- Use the Lambda tun-
.....
took to reach the first change in the process ..l ing method for dead-time-domi-
variable (~%PV) outside of the noise band. _ . nant or fast loops that can be left
~•. in manual. You should repeat the
4. Note the open-loop gain (the percentage test for both directions and use the
change in measurement divided by the per- most conservative tuning.
centage change in controller output).
~;<~ . Br~~~;:~:;~%~~:1f.~L
through lower maintenance costs
and more accurate process operating points.
";-
--
c~
~c
3.2 Deadly Dead Band VJ
--
a. - _
~
lrl
tU
> ~
~
.c: I:
- =
~
N
WI
Q,
..
III
~ "t'
~ 5
~"t'
~
-
=•.. ...
=
..•
<U
N
e - II V)
this problem, you should use splined connec-
tions and short large-diameter shafts, and you
should conduct actual flow tests on all rotary
~
~
lrl
=
e
a.
'"
- - -=
Q,II
~.c:
WI
-11I_I:
.c: I:
:it ••
~
-~ = ~
5
"t'-"t'
c
CIS
..c
C CIS
•••
Co"t'
<U
=. -
••••
Co
~
V)
valves. All tests on control valves should use step lrl ••• II "t'J:"t'
~ ",-
~ II
=~
sizes that approximate what is expected to occur
.•=:= e,,~
as changes in the controller output from one
scan to another « 0.5%). You should also use
=
~
lrl
==.
-. =.
==
very large step sizes for pressure-relief valves and .~u
for compressor antisurge valves. There is noth- =. "lI:t
=
-
tU
"lI:t "lI:t "lI:t
ing in a valve specification that requires that the ~
valve will actually move. To ensure that a valve Q ~
(II)
(j
~
-..
I C (II)
will respond to meet the needs of a control loop, f'l')
=-
Co~
you should add the dynamic classes in Table 4
to the valve specification sheet when purchasing
~
~
~ .-
~E-
5
(II)
a control valve.
""
Table 4 - Dynamic Classes of Control Valves (Four
classes A ~ D for each of the four categories 1 ~ 4)
I-Minimum Step 2-Maximum Step
Classes Classes
Class A - 3.0% ± 0.3% Class A - 5% ± 0.5%
Class B - 1.0% ± 0.1% Class B - 10% ± 1.0%
Class C - 0.5% ± 0.1% Class C - 20% ± 2.0%
Class D - 0.2% ± 0.1% Class D - 50% ± 2.0%
."
g~
•• >
..
i;J g£±~{~!~~lf:i~::
more sensitive. Be careful to avoid
increasing the valve dead time from dead band
on the steep portion of the curve. Also make
sure you don't eliminate an equal-percentage
characteristic used to compensate for a flow ratio
!!
"'i=-
gcun.
! ~= j
u c:"•• -l-
_ .... ..
=• .•
-
.z:
In the normal scheme of things, slip is worse
:: " than stick, stick is worse than dead band, and
dead band is worse than stroking time. For slid-
ing stem valves, stick-slip goes hand in hand
with dead band since the common cause is
excessive packing friction. Rotary valves can
have a large dead band from gaps in connections
and linkages and not much stick-slip. However,
high performance valves generally have signifi-
cant stick-slip and shaft windup from excessive
packing and seating friction. Stick-slip causes a
limit cycle in all loops, dead band causes a limit
cycle in integrating loops, and a large stroking
time causes instability when the rate of change
of the controller output from integral action is
faster than the slewing rate of the valve.
3.3 Sticky Situations In rotary valves, the positioner feedback mea-
For those of you who have been stuck with dead sure~ent is.often t~e actuator shaft. The tight-
band and stick-slip and want to break free, this ness of the Intervenmg connections determines
section will discuss the sources of the problems whether the po~itio~er is actually seeing what
and details of the solutions. the ball or dISCISdomg. On top of this, there
may be a scotch yoke actuator where the loose-
. Tight connections are the goal for the transmis- ness ?f the gear mesh adds another degree of
sion of force from the actuator to the internal slop m valve response.
ball, disk, or plug. For a sliding stem valve there
is a single connection between the actuator shaft .. <., Rule 22 - To reduce the extra
and the stem of the plug. In a rotary valve there i/'CSJ de~d hand in rotary valves, use
is a connection between the actuator shaft, valve sphned shafts and digital position-
shaft, and ball or disk stem. There may also be ~ ers that measure the actual rota-
linkages associated with the translation of verti- tion of the internal hall or disk.
cal actuator motion to rotary valve motion. The
play in each connection, which is usually a For surfaces that must slide, the tightness and
pinned, keyed, or splined slot, determines how r?ughness of these surfaces leads to high fric-
much dead band (backlash) exists whenever the tIOn, commonly called sticktion. The smallest
valve needs to reverse direction. While the play change in signal that a control valve can respond
of loose slots may be fun at Vegas, they are to regar~less of its direction or past movement is
deadly in control loops. called suck: When the valve does move, it slips
where the mcr~mental change is approximately
Manufacturers have been doing a better job of ~qual to the st~ck.Excessive break away torque,
not only improving the tightness of connections madequately SIzed actuators, operation near the
but also in increasing the number of pins, keys, s~at, and poorly tuned positioners can result in a
and splines around the circumference of the slIp J?uch .la~ger.than the stick even though the
shaft to increase the effectiveness of the trans- p~eking.fnctIOn ISnot too high. Control loops
mission of force. A splined shaft with a large WillOSCIllateregard!ess of tuning with an ampli-
number of tight spline connections has the least tude eq~al to the slIp ~ultiplied by the open
backlash. loop gam. The resolutIon capability or sensitiv-
1. Crud on the stem, trim, or seals that reduce While it is best to reduce the sources of high
the slickness of surfaces friction, the stick-slip can be reduced by install-
ing an actuator with plenty of muscle and a digi-
2. High temperatures where the expansion tal positioner tuned with a high gain and rate
reduces the clearances between surfaces setting.
1
flow profile that reduces noise. Always install 4.0-Control Considerations
the control valve downstream of the flowmeter.
n·e
Output (CO)
(%)
Time
(Olin)
e = sq rt (a2 - n2) If n = 0, then e = a
alternative to n Is a flIter to smooth PV
Measurement
(%) Ramp "me Identification
and shortcut estimate of
controller tuning seHings
Output (CO)
(%)
Time
(sees)
coated (velocity> 5 fps) and that the signal is have Scotty and warp drive, you are stuck with
fast (minimum transportation delay) and the dead time caused by equipment, piping,
smooth (no noise). For pH loops with an operat- instrumentation, and control valves in your
ing point on a steep titration curve, the greatest loop.
need is for an exceptionally precise control valve
(resolution < 0.15%). Characterizing the signal A dead-time compensator is very sensitive to an
of the process variable according to the titration overestimate of the dead time. A dead time that
curve can help reduce the oscillations. is 25 percent larger than actual can cause insta-
bility. A major source of dead time is a transpor-
4.3 Dead-Time Compensation and tation delay, which can be computed for a
pipeline as the volume divided by the flow or for
Warp Drive a sheet as the distance divided by the speed.
When I first left home, my dad said, "Be as hon- Overestimates of the process gain and underesti-
est as the day is long, don't talk when you mates of the time constant are also problems but
should listen, and don't be fooled into thinking to a lesser degree.
a dead-time compensator can eliminate process
dead time." A dead-time compensator such as a To derive the full advantage of a Smith Predic-
Smith Predictor can cancel out the effect of dead tor, you should increase the controller gain and
time for changes in the controller output and the reset action. For a negligible time constant,
make possible higher gains and faster reset the reset time can be set equal to one-fourth of
action (smaller reset times). However, it is a the uncorrected dead time to provide a reset
common misconception that it eliminates dead action that is an order of magnitude greater. A
time when correcting disturbances from feed- dead-time compensator is most effective on
back action. The minimum peak error still corre- dead-time-dominant loops where the dead time
sponds to the excursion of the process variable can be accurately calculated and updated in the
in one total loop dead time. The disturbance predictor.
and correction must still make a complete tra-
versal of the block diagram. Dead time in the Most dead-time compensators can be reduced to
plant cannot be eliminated by an algorithm some form of the Smith Predictor shown in Fig-
without violating the laws of physics. Unless you ure 18. The PID controller output passes
through a dead time, single time constant, and
steady-state gain model of the valve, process,
and sensor dynamics. The model output with
and without the loop dead time is subtracted
from and added to the measurement of the pro-
cess variable, respectively. This leaves the model
output without the dead time as the controlled
variable. The dead time has been removed from
the loop as far as changes in the controller out-
put are concerned. Note that the controlled vari-
able is no longer the actual process variable.
~
.
update the dead time as quickly
and accurately as possible and -~
o
u
is
GI
make sure you always underesti- ~
a..
mate the dead time and process gain and over-
estimate the time constant. You should include -E
~
V)
the change in dead time resulting from a change
in a transport delay by using a computation in
which the dead time is inversely proportional to .
.............................. ,.
~
flow or speed. -'0 ~_
GI 'tI
J:~
c:: u
o~
u
Rule 31 - The reset time should
be set to be about one-fourth (1/4)
of the uncompensated dead time
to get the most out of a dead-time
compensator. The reset time can
be decreased by an order of magnitude by add-
ing a dead-time compensator with a 10 percent
or less underestimate of the dead time.
I> I>
before I Am Hungry =
.~
A feedforward signal that is accurate both in F
gain and in timing can make an impressive
-=•••
t'=
impact on control loop performance, especially ~
for unit operations with large dead times such as :a
~
...> ...> ...
>
-..
the compensating effect from the feedforward I
CI"
signal should arrive in the process at the same
~
time as the load change and be equal but oppo-
site to the upset. For fast loops, the timing is ~
tight, and the feedforward signal may arrive early •• I>
E
~
I>
E •E
~ ~
and cause an inverse response. If it is too late,
the feedforward signal creates a second distur-
bance. For fast loops, the timing is more critical
than the gain, but dynamic compensation is
often neglected. Figure 19 shows the patterns of ...> ...> ...>
response that are a clue to how you should
adjust the feedforward gain and timing.
You can greatly improve a loop's set point 4.5 Cascade Control Tuning
response by adding the percentage change in set Cascade control is a type of control in which a
point into the controller output as a feedforward seconda.ry (slave or inner) loop is added that gets
signal that has a gain of about half of the con- a set pomt from a primary (master or outer)
troller gain, an action opposite to the control l?op. If th~ secondary loop response (both dead
action, and a slight filter. This provides the kick tIme a.nd bme constant) is five times faster than
you would normally get from a high gain setting. t~e pnmary loop response, there is no interac-
The loop can then rely on reset action to make tIon between the loops, and the secondary loop
the rest of the transition to the new set point. can correct for upsets it can measure before they
i3.~.~:,~
..
!:ili~d~n~~i~e~~:;;:~.
tion (dead time and lead lag) must
. be set properly to get the most
affect the primary loop. If ~he secondary loop is
not fast enough, you must mcrease the scan time
a~d the PV filter time of the primary loop or you
I!
WI have to dec:ease the controller gain and rate
a.ctlOno~ the pnmary loop to reduce the interac-
benefit. For fast processes the tim- tlOn. BeSIdescatching an upset quicker, the sec-
ing is more critical. It is better for the signal to ondary l<:>opmay also help linearize the response
arrive a little late than too early because inverse of the pnmary loop. For example, in the cascade
.
response is extremely disruptive.
ij
... nal of a set point in percent to the
.. L,
temperature linear in addition to sensing coolant
controller output with a gain temperature disturbances before they affect the
about half of the controller gain, re~ctor temperature. Similarly, the cascade of
an action opposite of the control- exit coolant te~perature to a flow loop on cool-
ler action, and a small filter. The feedforward ~nt makeup WIllremove the nonlinearity of the
action is opposite the controller action because mstalled characteristic and dead band of the
the controller action works on error, which is the valve in addition to reducing the effect of cool-
measurement minus the set point. For nonlinear ant pressure cha?ges. The most common type of
valves, you may need to add signal characteriza- seco~dary loop ISthe flow loop. It can consider-
tIon. ably Improve the performance of a primary loop
CONTROL CONSIDERATIONS
for concentration, level, and temperature con-
The most common mistake is to forget to prop'
trol. The flow loop is not generally recom-
erly set the output limits of the primary loop.
mended for liquid pressure control because the
You must set the output limits on the primary
speed of response of the liquid pressure and flow
loop so they match the set point limits on the
are about the same. Another type of cascade
se.condary loop. Also, the primary loop must not
control that should be used more frequently is
WInd up when the secondary loop output is at its
the cascade control of still, reactor, or evapora- output limits.
tor temperature to stearn pressure control. In
this kind of control, the stearn pressure loop
~ Rule 34 - If the dead time and
i~;~!~i:~~;~~5~:
compensates not only for steam supply pressure
upsets but also for changes in the condensing
rates (heat load and transfer) as reflected in the »- >~
CONTROL CONSIDERATIONS
Rule 36 - Make sure the output 5.0-Troubleshooting
limits of the primary loop match
the set point limits of the second-
ary loop. In a fieldbus-based sys-
tem, the primary loop output limits 5.1 Patience, Heck, I Need to Solve the
use the engineering units of the secondary loop. Problem
In older systems, the primary loop output limits
Figure~20 and 21 show some diagnostics for
are usually expressed as a percentage of the sec-
loops m.manual and auto. In these diagrams,
ondary loop scale. reset actIOn (repeats per minute) is referenced
rather than reset time (seconds per repeat). If
4.6 Keep the Secondary Loop on the there are fewer oscillations with the loop in man-
Move ual, the problem is either a poor control valve or
controller tuning. If there are also fewer oscilla-
A common mistake is to tune a secondary loop
tions in other loops, then they are probably
for a smooth set point response in a cascade
caused by an interaction between this loop and
loop with a large process time constant. The .
other loops. If the oscillations persist and are
load rejection capability of the secondary loop IS
~ast,they are probably due to electromagnetic
much more important. In particular, it is the rise
mterference (EMI), sensor noise, pressure waves,
time rather than the settling time of the second-
or resonance. If the oscillations persist and are
ary loop that should be minimized to make the
slow, then they are periodic upsets from other
initial response as fast as possible. The remote
loops that have poor tuning or valves or are
set point (RSP) of a secondary controller is often
caused by on-off actions (level switches), steam
changed by the primary controller before the
~raps, pressure regulators, burps (column flood-
secondary loop PV even crosses its RSP. The use
mg), or flashing~ If the oscillations dissipate
of a filter on the RSP of a secondary loop will
when the valve IS closed, the oscillations were
seriously degrade cascade control. caused by pressure fluctuations at the valve.
1
1.'•'.,'..:.'.;.\
'.. .
RJtle 39 - To track down the
\:;,t.(ii. i •.. source of an oscillation, put each
loop in manual and stop each on-
percent. This will allow the test to be completed ',.•....~ ...> off action one at a time. When the
before your patience wears thin. If there is no oscillation stops, you know the cul-
response, repeat the step. The steps should all be prit was the last loop you put in manual or the
in the same direction until there is response of last on-off action you stopped.
the process variable that is outside of the noise
band. Then repeat test for the opposite direc- If the loop is in automatic and there are fast peri-
tion. The absolute magnitude of the total num- odic upsets, the oscillations are probably caused
ber of step changes needed to get a response in by EMI, sensor noise, pressure waves, or reso-
both directions is a measure of the valve dead nance. If you experience slow periodic upsets
band. and a period much greater than four times the
dead time, then you should suspect on-off
Rule 37 - If the oscillation goes actions, steam traps, pressure regulators, burp-
away when you put the loop in
.............•
·....L:. ,.,...,.. ing, or flashing as the source. Otherwise, tuning
.v_ manual, then the loop is the cause is probably the culprit. When PV wanders in
~ of the oscillation. The culprit automatic it is a symptom of the control loop
could be the control valve, tuning, operating on the flat portion of an installed
or loop interaction. valve characteristic. If the PV falters for a dead-
time-dominant loop (see Figure 3b), it is an indi-
_ Rule 38 - If the oscillation only cation of too much gain action. If the PV stair-
, . . >;.L. goes away when you close the cases (see Figure 5), it is an indication of too
valve, then it was caused by pres- much rate action. If the PV overshoots and
~. . sure fluctuations at the valve. The develops a slow oscillation whose period varies
culprit could be an oscillating pres- with the reset setting (see Figure 4), it is a sign of
too much reset action (i.e., the reset time too
small). If the loop period is very sensitive to reset
action, it is a sign that there is excessive valve
dead band. For sticky valves, you can make the
co
oscillation significantly faster by using more rate c
".°i'"y ~
'" :C.f!:.c "c
" :E.,S!:c
and gain action. This will get the controller out- u
;>
u
;>
" "~
.9 .9
!-
co ~ s" ~
c -u
._ ] c ti u
put through the dead band more quickly. a;
;>
a;
;> Ol '"
tlO~
y
e E
Ol
.~ ~ E
.J
'': '"
"C -=:; ~ ~ .9c
period of the loop. lfl
~ ~~
u
/;;. "
c
";;; ~ u
co ~ E
"
v- ~
u
c Ol
;-
~ :;; :a
Note that on Figures 20 and 21 "reset too hi"
means the reset action is too high, which means
is
I
the reset time is too small. Q
N
~
••
.. Rule 40 - If the oscillation
..•... . ••••.• period for the loop in automatic
..
~
~
.~
The oscillation can be made much faster and
tighter by using higher gain and rate action.
~
;- Rule 41 - A power spectrum ana-
.:. lyzer can rapidly point you to the
culprit by indicating which loops
~- experience significant peaks in
the power at the same frequency.
The first step is to enter the data for loops in
automatic into the power spectrum analyzer.
The data gathering must be done quickly
enough to prevent aliasing. For chemical pro-
cesses,it is sufficient to use data from a historian
with no compression and an update time of 1
second. For sheets (webs), you may need to store
the data using a device with an exceptionally fast
scan time (50 milliseconds or less) that is directly
connected to the controlled variable terminals.
I
___-----A----
there is any reset action in the controller, the Rule 43 - For simple single-
batch will always overshoot its set point. The ended temperature or pH control,
response appears to ramp. Particularly problem- a proportional plus derivative
atic is any residual heat left in the jacket or controller is needed to prevent
reagent in the dip tube when the control valve overshoot. The bias should be set
closes. to shut the control valve well before the CV
reaches set point.
In this guide the ability to go only in one direc-
tion with a manipulated variable will be called When the controller output drops to the point
"single-ended" control. This case occurs surpris- where seating friction and changes in the
ingly often. The solution is a proportional plus installed characteristic is significant, the control-
derivative controller. The bias should be set to ler output can be readily switched to pulse-width
provide zero controller output bef~re t~e con- modulation to get extra rangeability of the con-
trolled variable (CV) reaches set pomt smce the trol valve and eliminate the sensitivity, stick-slip,
CV will continue to coast for the duration of the and plugging problems associated with trying to
loop dead time after the valve is closed. Ho~- throttle near the seat. The conversion of a per-
ever, if the product is a validated phar~aceut1cal cent output to a percent pulse width can be
where a change in controller structure IS prob- done by a special output card or algorithm. The
lematic, most of the overshoot can be elimi- point for switching to pulsing is about 10% and
nated by setting the reset time a factor of ten or 20% for sliding stem and ball valves, respec-
more greater than would be calculated by a Zie- tively. If pulse width rather than pulse frequency
gler-Nichols or Lambda tuning rule. An open modulation is used, the valve gain remains con-
loop shortcut method is advantageous for these stant at its last value.
and other batch loops since there is often not
enough time or a steady state within the cycle Rule 44 - When the controller
time for a full tuning test. output drops low, use pulse-width
modulation to reduce plugging
and to improve the repeatability
of the end point.
~
6.2 Blending Rule 45 - Use Lambda tuning to
The accuracy and timing of feeds for a blend is get identical set point responses
often critical. The set point response for all the for the feed flow controllers. A
feed flow controllers should be identical. master composition loop may cause
Lambda tuning offers this capability. In some oscillations if it is too fast or has
cases there is an online analysis and a cascade too much dead time from violation of the cas-
control system where a master composition ~oop cade rule and destabilization, respectively.
manipulates the set point o~ the .feed loops III .
the proper ratio. The dead time III the compOSI- A model predictive controller can be set up and
tion loop heavily depends on the method and tuned to provide tighter composition control. If
location of the analysis, which sets the cycle the changes in feed composition or the desired
time and sample transportation delay. Analyzers composition of the blend are slow, a PI control-
that require process time or sample systems, cre- ler may suffice. Since the process gain varies
ate a severely dead time dominant master.lo?p. with the composition set point, gain scheduling
If fast inline sensors are used, such as Conolis, may be beneficial for large changes in the oper-
microwave, or nuclear magnetic resonance ating point.
meters, the process response of the master loop
is basically the secondary feed loops response set 6.3 Boilers
by Lambda tuning. This creates ~ unstable cas-
cade control system since the basICcascade rule The cascade control system where a drum level
of the master loop being 5 times sl~wer.than the controller manipulates the set point of a feedwa-
secondary loop is violated. The OSCIllatIOns can ter flow controller must handle the changes in
be suppressed by slowin~ ~own the mast~r loop steam use. Normally the level set point is con-
by detuning and the additIOn of a ~lter tune. A stant. Boiler drum level has an integrating and
feedforward of composition set POIllt changes noisy response with transients that are in the
can be added to the master loop output to opposite direction of the final response. While
improve its set point response. the cross-sectional area is relatively large because
it is a horizontal vessel, the ramp rate and inte-
grator gain is not exceptionally small because the
fft ~g~~~~1~1;~:~1~~t
feedforward are proportional to the derivative
and magnitude of the firing rate, respectively.
The transient feedforward gain is negative
whereas the classical feedforward gain is positive.
feedwater valve. This means some
The feedwater flow controller should be tuned compensation of the feedwater valve nonlinear-
first with the Lambda method for an aggressive ity is desirable to enable a smaller than usual
response that will get through the dead band Lambda factor for the flow controller.
and resolution of the feedwater valve quickly.
The valve is the largest source of dead time in The oxygen controller normally manipulates a
the cascade control system. The process dead bias to the air flow measurement instead of the
time is less than a second. If the controller out- air flow set point to keep the cross limiting of
put can be characterized or the flow controlle~ the fuel and air controls intact. The set point
gain scheduled to compensate for the changes In may be optimized as a function of steam load.
slope of the installed characteristic of the valve, The oxygen response is dead time dominant
the Lambda factor can be reduced from 4 to 2. unless a large signal filter is used. It is a combina-
tion of dead time from the dead band and reso-
The level controller should be tuned with a lution of the air damper or control valve and the
closed loop method for load upsets. Changes in transportation delay of gas from the combustion
firing rate should be used during the tuning to zone to the oxygen sensor location. Some high
make sure it can deal with shrink and swell. temperature zirconium oxide sensors can be
Make sure the shrink and swell is not interpreted located in or near the combustion zone making
as a closed loop oscillation. Increase the control- the process transportation delay less than the
I
--..);------------
dead time from the damper or valve. A sample
6.4 Coils and Jackets
line to an analyzer house adds a considerable
transportation delay. Coil and jacket temperature loops are normally
se~ondary loops that must respond to the set
If the oxygen sensor is in the stack or analyzer pomt demands from a master temperature loop
house, dead time compensation or model pre- on a crystallizer, evaporator, fermentor, or reac-
dictive control (MPC) should be used with the tor. Th~se loops must also respond to distur-
dead time automatically adjusted to be inversely bances ~nthe coil inlet temperature or flow and
proportional to the load. The oxygen and air dependmg on the system, changes in the heat
flow controllers must be tuned for a smooth sta- transfer coefficient and area. These secondary
ble response, where robustness is more impor- co~trol.lers should be tuned with a closed loop
tant than performance. A larger than normal ?sclllatIOn method before the master controller
Lambda factor for PI control and move suppres- IStuned.
sion for MPC is advisable. The o~"ygencontrol-
ler should ignore the positive spikes in the :rn~ velocity is les~ and the dead time is greater
oxygen reading from the action of the cross lim- m.Jacket than a coll but otherwise the consider-
its for air to lead fuel for an increase in firing atIOns are similar. For the rest of this section
demand and air to lag fuel for a decrease in fir- coils will be discussed, but the conclusions are
ing demand. The oxygen controller must not the same for jackets.
chase noise at low load when the oxygen signal
gets noisy from poor mixing or at low oxygen L~w coil cool~t flow can lead to a high process
levels that are pushing the rangeability limit of gam and ~ead time that can cause instability. If
the sensor. at all pOSSIble,the coil flow should be kept con-
stant and the ~~keup flow manipulated to
Rule 49 - Tune the oxygen con- ch~nge the coll mlet temperature. For a recircu-
troller for a smooth and stable latIOn system, the return flow based on a pres-
response despite blips from cross ~ure balance should change to match the change
limits and noise from low loads. m makeup flow.
l1[~4t;~~£i¥~~~;~~
13[~~£~~~gE~~:~~~ low set point limit. Variability in
this loop adversely affects both capacity and
a
13rI~~ff€;iffr~:~~~:~
interactive time constants of the
tray concentration response. Feedforward co~-
6.8 Dryers
Dryer temperature control loops suffer from
transportation delays and non-representative
product temperature measurements. While it is
trol, RTD sensors, and narrow temperature cah- desirable to measure the temperature of the final
product, the sensor isn't in good contact with
bration spans are criticaL For.2-J?oi~t
the flowing solids because of voids or buildup of
composition control and optlmlzauon, use
coatings on the thermowe1l. Consequently a gas
model predictive controL
temperature measurement is used. Sometimes an
There are many other difficulties encountered ~n inferen~ial moi~ture measurement (online prop-
the control of columns. For example, the manIp- erty estImator) ISconstructed based on an exit
ulation of steam to control sump level has an gas temperature subtracted from an inlet gas
inverse response from shrink and swell, and the temperature after it has passed through a dead
bottoms temperature controller v.:ill interact time. and filter block that match the delay and
with a sump level controller, particularly for a lag tIme of the dryer. Separate inlet and exit gas
temperature loops tend to fight each other. The
thermo-siphon reboiler. Chro?latog~aphs used
addition of a feedforward signal based on feed
for composition control pro~lde stau ca~ed .
response at best and an erratic and unreltable SIg- changes is also important. Model predictive con-
trol can sort out the interaction, deal with dead
nal at their worst. time, and provide better feedforward control. If
....
Rule 61 - For extruder zone tem-
,,2~_:~
sure that upsets and nonlinearities
i3
...·...........i'.
....
perature control, use a Lambda
tuning method to provide a
smooth wall temperature. Make
sure that upsets and nonlinearities
in the manipulated variables do not affect the
in the manipulated variables do not affect the
wall temperature.
~
i.
Q,
0
I
'l:t
N
~
..'"'-
~
7.4 Back to the Future
1
i
$
.~
Original equations:
Tj = T98/ 4 (B-2)
Substituting Equations B-1 for the closed loop ICe = (~%CO 1 ~%PV) 1 4 (B-1 0)
time constant ('tJ into the denominator and B-5
for the open loop time constant corrected for
dead time into the numerator of B-3:
~%CO= change in controller output (%)
~%PV = change in process variable (%)
I\: = controller gain setting
Factoring out the Lambda factor in the denomi-
Kc = open loop gain (~%PV / ~%CO)
nator:
Ar = Lambda tuning factor
Tj = controller integral time setting (see!
repeat)
Substituting the La.mbda fac~or for robustI.less 'tc = closed loop time constant (e.g., set
(Ar = 4) for the deVIsor Of'td m the denommator point response time constant) (see)
otB-7: 'tdo = observed dead time (see)
'to = open loop time constant (e.g., largest
Kc = ('to + 'tdcl4)/[Ko * 4* ('to + 'tdo 14)] (B-8)
process time constant) (see)
Ti = ~ * To (C-2)
~ = 0.1 * kj
(C-4)
For the shortcut method, a process gain of one is = derivative time factor applied to total
assumed so that the process time constant is the dead time in shortcut method
inverse of the pseudo integrator gain. The short-
cut dead time factor is then the closed loop
= integral time factor applied to loop
period factor multiplied by the loop period period in closed loop method
divided by the dead time. = derivative time factor applied to loop
period in closed loop method
(C-S) = change in the process variable within
the 1st dead time interval (e.u.)
(C-6) = change in the process variable within
the 2nd dead time interval (e.u.)
The following equations have been used to = change in the process variable within
approximate the loop period in various applica- the 3rd dead time interval (e.u.)
tions for self-regulating processes: = controller integral (reset) time setting
(see/repeat)
To"" 1.4 * {[(l_e-oetd/'to)/(l_e-(td/'to)] + I} * "Cd = controller derivative (rate) time setting
(C-7) (sec)
= quarter amplitude loop period (sec)
To = 1.4 * ([(M'V1 + ~PV2 + ~3) /~PVd + I} * 'td = total loop dead time (sec)
(C-8) = open loop time constant (e.g., largest
process time constant) (see)
To = 1.4 * {I + l('td /('td + 'to)] 0.65 + I} * 'td
(C-9)
(0-1)