G.K.mcmillan - IsA - Good Tuning PID (A Pocket Guide)
G.K.mcmillan - IsA - Good Tuning PID (A Pocket Guide)
G.K.mcmillan - IsA - Good Tuning PID (A Pocket Guide)
01
Copyright 2001 ISA The Instrumentation, Systems, and Automation Society 67 Alexander Drive P.O. Box 12277 Research Triangle Park, NC 27709 All rights reserved. Printed in the United States of America. 10 9 8 7 6 5 4 3 2 1 ISBN 1-55617-726-7
No part of this work may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of the publisher. Library of Congress Cataloging-in-Publication Data McMillan, Gregory K., 1946Pocket guide to good tuning / by Gregory K. McMillan. p. cm. ISBN 1-55617-726-7 1. Automatic control--Handbooks, manuals, etc. I. Title. TJ213.M352 2000 670.4275--dc21 00-036958 ISA wishes to acknowledge the cooperation of those manufacturers, suppliers, and publishers who granted permission to reproduce material herein. The Society regrets any omission of credit that may have occurred and will make such corrections in future editions.
Notice The information presented in this publication is for the general education of the reader. Because neither the author nor the publisher has any control over the use of the information by the reader, both the author and the publisher disclaim any and all liability of any kind arising out of such 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 investigated or considered the effect of any patents on the 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. Any references to commercial products in the work are cited as examples only. Neither the author nor the publisher endorses any referenced commercial product. Any trademarks or tradenames referenced belong to the respective owner of the mark or name. Neither the author nor the publisher makes any representation regarding the availability of any referenced commercial product at any time. The manufacturer's instructions on use of any commercial product must be followed at all times, even if in conflict with the information in this publication.
Editors Introduction
This mini-book is available both in downloadable form, as part of the ISA Encyclopedia of Measurement and Control, and bound in a print format. Mini-books are small, unified volumes, from 25 to 100 pages long, drawn from the ISA catalog of reference and technical books. ISA makes mini-books available to readers who need narrowly focused information on particular subjects rather than a broad-ranging text that provides an overview of the entire subject. Each provides the most recent version of the materialin some cases including revisions that have not yet been incorporated in the larger parent volume. Each has been re-indexed and renumbered so it can be used independently of the parent volume. Other mini-books on related subjects are available. To order: Internet: www.isa.org Phone: 919/549-8411 Fax: 919/549-8288 Email: info@isa.org
Table of Contents
Chapter 1.0 Best of the Basics................................ 1 1.1 Introduction ................................. 1 1.2 Actions Speak Louder than Words 2 1.3 Controller la Mode..................... 6 1.4 Is That Your Final Response? ....... 7 1.5 The Key to Happiness ................ 30 1.6 Nothing Ventured, Nothing Gained ....................................... 34 Chapter 2.0 Tuning Settings and Methods ........... 43 2.1 First Ask the Operator ................ 43 2.2 Default and Typical Settings....... 43 2.3 The General-purpose Closed-loop Tuning Method............................ 47 2.4 The Shortcut Open-loop Method 53 2.5 Simplified Lambda Tuning ......... 58 Chapter 3.0 Measurements and Valves ................ 63 3.1 Watch Out for Bad Actors .......... 63 3.2 Deadly Dead Band ...................... 64
TABLE OF CONTENTS
Chapter 4.0 Control Considerations .................... 75 4.1 Auto Tuners................................ 75 4.2 Uncommonly Good Practices for Common Loops........................... 75 4.3 Dead-Time Compensation and Warp Drive.................................. 78 4.4 I Have So Much Feedforward, I Eat before I Am Hungry .......... 82 4.5 Cascade Control Tuning............. 85 Chapter 5.0 Troubleshooting ............................... 89 5.1 Patience, Heck, I Need to Solve the Problem................................ 89 5.2 Great Expectations and Practical Limitations................................... 97 Index .................................................................... 103
TABLE OF CONTENTS
mode than they do in the manual mode. A third of them oscillate as a result of nonlinearities such as valve dead band. Another third oscillate because of poor controller tuning. The remaining loops oscillate because of deficiencies in the control strategy. A well-designed control loop with proper tuning and a responsive control valve can minimize this variability. Because this means you can operate closer to constraints, good tuning can translate into increased production and profitability.
troller for a reverse-acting process except as noted later in this guide. Correspondingly, you should select reverse control action for a directacting process so an increase in process variable measurement will cause a decrease in controller output that is proportional to its gain setting, except as noted later. A direct-acting process is one in which the direction of the change in the process variable is the same as the direction of the change in the manipulated variable. A reverse-acting process is one in which the direction of the change in the process variable is opposite the direction of the change in the manipulated variable. The manipulated variable is most frequently the flow through a control valve, but it can also be the set point of a slave loop for a cascade control system or variable speed drive. The valve action sets the display. For example, it determines whether a 100 percent output signal corresponds to a wide open or a fully closed valve. It also determines the direction of a change in the actual signal to the control valve when there is a change in the controllers output. In some analog controllers developed in the 1970s, such as the Fisher AC2, the valve action affected only the display, not the actual signal. To compensate for this lack of signal reversal for a reverse-acting valve (i.e., an increase-to-close or
BEST OF THE BASICS
fail-open valve), the control action had to be the opposite of the action that would normally be appropriate based on process action alone. Fortunately, the valve action corrects both the display and the actual valve signal in modern controllers, so the control action can be based solely on process action. However, the user should verify this before commissioning any loops. In control systems that use fieldbus blocks, the valve action should be set in the analog output (AO) block rather than in the PID controller block. This ensures that the back-calculate feature is operational for any function blocks (split range, characterization, and signal selection) that are connected between the PID and AO blocks. The signal can also be reversed in the current-to-pneumatic transducer (I/P) or in the positioner for a control valve. Before the advent of the smart positioner, it was preferable for the sake of visibility and maintainability that any reversal be done in the control room rather than at the valve. It is important to standardize on the location of the signal reversal to ensure that it is done and done only once. Table 1 summarizes how the controller action depends upon both the process and valve actions and on the signal reversal.
Table 1 Controller Action Process Action Direct Reverse Direct Reverse Direct Reverse Valve Action IncreaseOpen IncreaseOpen IncreaseClose IncreaseClose IncreaseClose IncreaseClose Signal Reversal No No Yes Yes No No Controller Action Reverse Direct Reverse Direct Direct Reverse
respectively. The valve signal can be reversed for a fail-open valve at many places, but it is best done in the AO block of the control system.
IMan (initialization manual) PID action is suspended because of an interruption in the forward path of the controller output. This is typically caused by a downstream block that is not in the cascade mode. The controller output is back-calculated to provide bumpless transfer. RCas (remote cascade) The set point is remotely set, often by another computer. PID action is active (closed loop). This mode is also known in older systems as the supervisory mode. ROut (remote output) The output is remotely set, often by a sequence or by another computer. PID action is suspended (open loop). In older systems, this mode is known as direct digital control (DDC).
(derivative) time setting as seconds. The contribution made by derivative mode is the rate of change of the error or process variable in percent (%), depending upon the type of algorithm, multiplied by the rate and gain settings. When derivative action is on the process variable instead of on the control error, it works against a set point change. (The control error is the difference between the process variable and the set point.) The reason for this is that it doesnt know the process variable should be changing initially and that the brakes should only be applied to the process when it approaches set point. Using derivation action that is based on the change in control error will provide a faster initial takeoff and will suppress overshoot for a set point change. This is particularly advantageous for set points driven for batch control, advanced control, or cascade control. The improvement can translate into shorter cycle or transition times, an enhancement of the ability of slave loops to mitigate upsets, and less off-spec product because overshoot has been diminished. When derivative action is used with a time constant there is a built-in filter that is about oneeighth (1/8) of the rate setting. However, you should use set point velocity limits to prevent a 8
BEST OF THE BASICS
jolt to the output when there is a large step change in error from a manually entered set point. This is particularly important when you are using large gains or derivative action based on control error. The PID algorithm uses percentage (%) input and output signals rather than engineering units. Thus, if you double the scale span of the input (error or process variable), you effectively halve the PID action. Correspondingly, if you double the scale span of the output (manipulated variable), you double the PID action. In fieldbus blocks, both input and output signals can be scaled with engineering units. Using output signal scaling will facilitate the manipulation of the slave loops set point for cascade control. For controllers that use proportional band, you need to divide the proportional band into 100 percent to get the equivalent controller gain. Proportional band is the percentage change in error needed to cause a 100 percent change in output. Proportional mode is expressed by the following equation (note that adjustments are gain or proportional band): Pn = Kc En
When the derivative mode acts on the process variable in percent (%PV), the equation becomes as follows: Pn = Kc Dn Integral mode is expressed by the following equation (note that adjustments are integral time or reset): In = Kc 1/Ti (En Ts ) + In-1 When the derivative mode acts on %PV, the equation becomes as follows: In = Kc 1/Ti (Dn Ts ) + In-1 The equation for derivative mode is as follows (adjustments are derivative time or rate): Dn = Kc Td (En - En-1)/ Ts Or for derivative mode on %PV: Dn = Kc Td (%PVn - %PVn-1) / Ts Note the inverse relationships across controllers! Gain (Kc) = 100% / PB Reset action (repeats/minute) = 60 / Ti 10
BEST OF THE BASICS
Where: En Kc PB Pn = = = = error at scan n (%) controller gain (dimensionless) controller proportional band (%) contribution of the proportional mode at scan n (%) process variable at scan n (%) contribution of the integral mode at scan n (%) contribution of the derivative mode at scan n (%) derivative (rate time constant) time setting (seconds) integral time or reset time setting (seconds/repeat) scan time or update time of PID controller (seconds)
%PVn = = In Dn Td Ti Ts = = = =
11
trol valves, the PID gain setting is inversely proportional to the slope of the installed valve characteristic at your operating point. If a valve is sized too small or too large, the operating point ends up on the flat portion of the installed valve characteristic curve. For butterfly valves, the curve gets excessively flat below 15 percent and above 55 percent of valve position. Figure 1 shows the combined response of the PID controller modes to a step change in the process variable (%PV). The proportional mode provides a step change in the analog output (%AO1). If there is no further change in the %PV, there is no additional change in the output even though there is a persistent error (offset). The size of the offset is inversely proportional to the controller gain. Integral action will ramp the output unless the error is zero. Since the error is hardly ever exactly zero, reset is always driving the output. The contribution made by the integral mode will equal the contribution made by the proportional mode in the integral time (%AO2 = %AO1). Hence, the integral time setting is the time it takes to repeat the proportional contribution (seconds per repeat). The contribution made by the derivative mode for a step change is a hump because of the built-in filter, which is about one-eighth (1/8) of the rate 12
BEST OF THE BASICS
%AO1 seconds/repeat
%AO2 = %AO1
%PV
0 Time (secs)
13
setting. Otherwise, there would be a spike in the output. If the temperature is below set point for a reactor, as shown in Figure 2, should the steam or water valve be open? After looking at a faceplate or the digital value for temperature on a graphic display, most people think the steam valve is open when the temperature is below set point. Reset provides a direction of action that is consistent with human expectation. However, the proper direction for a change in controller output and the split-ranged control valve depends upon the trajectory of the process variable (PV). If the temperature is rapidly and sharply increasing, the coolant valve should be opening. Gain and rate action will recognize that a set point is being approached and position the valves correctly to prevent overshoot. In contrast, reset has no sense of direction and sacrifices future results for immediate satisfaction. Most reactors, evaporators, crystallizers, and columns in the process industry have too much reset. On two separate applications in chemical plants, for example, it was reported that the controller was seriously malfunctioning because the wrong valve was supposedly open, when in reality it was just gain and rate doing their job to prevent overshoot.
14
IVP
PV
50%
44
Reset action integrates the numeric difference between the PV and SP seen by operator on a loop faceplate Reset works to open the steam valve (reset has no sense of direction).
15
Figures 3a and 3b show the effect of gain setting on a set point response. If the gain is too small, the approach to set point is too slow. If the gain is too large, the response will develop oscillations. If the dead time is much larger than the time constant and the gain action is too large compared to the reset action, the response will momentarily flatten out (falter or hesitate) well below the set point. Loops that are dead-time dominant tend to have too much gain and not enough reset action. For nearly all other loops in the process industry, the opposite is true. The size of the dead time relative to the time constant and the degree of self-regulation (ability to reach a steady state when the loop is in manual) determine which tuning methods you should employ. It is particularly important to maximize the gain so you can achieve tight control of loops that can ramp away from set point, such as gas pressure. Maximizing the gain is also important for loops that can run away from set point, such as an exothermic reactor temperature. Finally, gain must be maximized to speed up the set point response for advanced control, batch control, and cascade control as well as for startup sequences. However, gain readily passes variability in the process variable to the output, which can increase overall variability and interaction. 16
BEST OF THE BASICS
Figure 3a Effect of Gain Setting on Set Point Response for a Time Constant Much Larger than Dead Time
17
18
3 2 1 1 - low controller gain 2 - medium controller gain 3 - high controller gain
Figure 3b Effect of Gain Setting on Set Point Response for a Dead Time Much Larger than Time Constant (Dead Time Dominant)
You must set the process variable filter to ensure that fluctuations from measurement noise stay within the dead band of the control valve. The variability amplification by gain can be particularly troublesome if there is inadequate smoothing because of insufficient volumes or mixing. These loops tend to be dead-time dominant, and they exhibit abrupt responses (i.e., no smoothing by a time constant). Thus, you should reduce the gain setting for loops on pipelines, desuperheaters, plug flow reactors, heat exchangers, static mixers, conveyors, spinning (fibers), and sheets (webs).
19
Rule 6 - For residence time control and for material balance control, use as high a gain for level control as possible, such as 5.0, that does not wear out the valves or upset other loops. Continuous reactors, evaporators, crystallizers, and thermosyphon reboilers often need to maintain a level accurately, particularly if they are being pushed beyond nameplate production rates. Level control also needs to be tight when it manipulates a reflux flow for a column or a reactant makeup flow for a recycle tank.
The Ziegler-Nichols (J. G. Ziegler and N. B. Nichols, Optimum Settings for Automatic Controllers, Transactions of the ASME, vol. 64, Nov. 1942, p. 759) tuning method depicts a goal of quarter-amplitude response where each subsequent peak in an oscillatory response of the PID controller is one-fourth of the previous peak. This goal will generally provide a minimum peak error, but the controller is too close to the edge of instability. An increase of just 25 percent in the process gain or dead time can cause severe oscillations. By simply cutting the controller gain in half you will make Ziegler-Nichols tuning sufficiently robust. You will also make it look more like Internal Model Control (IMC) tuning for stirred reactors, evaporators, crystalBEST OF THE BASICS
21
lizers, and columns. If the controller manipulates a control valve instead of a flow set point, you need to reduce the gain for the steepest part of the installed valve characteristic curve. For loops that will reach a steady state when put in manual, decreasing the gain will always improve their stability. For exothermic reactors where a runaway condition can develop, there is a window of allowable gains in which instability can be caused by a gain that is too small or too large. For level loops with reset action, there is also a window in which a gain that is too small can cause slow, nearly sustained oscillations.
Rule 7 If you have a quarteramplitude response, you should decrease the gain to promote stability. Generally, halving the controller gain is sufficient. This assumes that the reset action is not excessive (i.e., integral or reset time is too small). If the manipulated variable is a control valve and the operating point moves from the flat to the steep portion of the installed characteristic, you may need to cut the gain by a factor of three or four. Figure 4 shows the effect of reset setting on a set point response. If the reset action is too small (i.e., the reset time too large), it takes a long time 22
BEST OF THE BASICS
23
to eliminate the remaining error or offset. Whereas insufficient gain slows down the initial approach, inadequate reset action slows down the final approach to set point. If the reset action is too large (reset time is too small), there is excessive overshoot. The addition of reset action reduces controller stability and is dangerous for exothermic reactor temperature loops. Polymerization reactors often use proportional-plusderivative temperature controllers (i.e., no integral action). For level loops, using a reset time of fewer than 3,000 seconds per repeat makes it necessary to use relatively high gains (5.0 for large volumes) to prevent slow, nearly sustained oscillations. Both reset and gain can cause oscillations, and a high gain setting can aggravate an overshoot caused by reset action. For this reason, checking the ratio of the reset time to the oscillation period can help you distinguish the main culprit. You will need to decrease the reset action (i.e., increase the reset time) of the loop if the ratio is much less than 0.5 for vessel or column temperature, level, and gas pressure control or if it is much less than 0.1 for flow, liquid pressure, pipeline, spin-line, conveyor, or sheet (web) control.
24
25
26
1 2 3 1 - low derivative (rate) 2 - medium derivative (rate) 3 - high derivative (rate)
Rate can be used whenever there is a smooth and slow open-loop process response. Rate cannot be used where there is excessive noise, chatter, inverse response, or an abrupt response. It can be used primarily on temperature loops that manipulate heating or cooling where there is a temperature transmitter with a narrow calibration span (large spans cause analog/digital [A/D] chatter). Analyzers that have a cycle time (sample and hold) have signals that are too noisy and abrupt for derivative action. Continuous concentration measurements made by electrodes or inline devices (such as capacitance, conductivity, density, microwave, mass spectrometry, pH, and viscosity for mixed volumes) may allow you to use derivative mode if you add a filter to attenuate the high-frequency measurement noise. If the measurement is continuous but is used for pipeline control, the control response is too abrupt. This is because the loop dead time is large compared to the largest time constant. There is noise in every process variable. If the noise is greater than the measurement resolution limit, the loop sees it. If it causes an output change greater than the final element or control valve resolution limit, loop variability will be worse in auto than in manual, particularly if there is any rate action. While it is true that
BEST OF THE BASICS
27
increasing the measurement and valve resolution limit reduces the loops sensitivity to noise, it also degrades its ability to recover from load upsets. If the measurement doesnt see or correct an upset because the control error is smaller than a resolution limit, the control loop performance deteriorates. Poor control valve resolution is a problem for any loop. If the valve doesnt move, there is no correction. On the other hand, poor measurement resolution is primarily a problem for PID temperature loops. The large-span ranges found in computer input cards or transmitter calibration can result in a resolution limit of 0.25F or more. It is impractical to expect control that is tighter than twice the resolution limit or 0.5F. Also, for a change of 0.25F per minute, an additional minute of dead time is introduced into the loop. Short scan times also introduce chatter because the actual temperature change is small compared to the noise (i.e., the signal-to-noise ratio is too small). The scan time for most temperature loops is too short. Poor measurement resolution and fast scan times are the main reasons why rate cannot be used in temperature loops. Constrained Multivariable Predictive Controllers (CMPC) are much less sensitive to measurement resolution because the scan time is large and the move in the manipulated variable 28
BEST OF THE BASICS
is based on the complete trajectory and not the current measurement like the PID controller. Poor valve resolution is as much a problem for the CMPC as for the PID, unless you set the minimum size of a move to exceed the resolution limit. The resolution limit is unfortunately a function of direction and position.
29
other time constants are undesirable and create additional dead time. The major time constant can be approximated as follows: it is the time it takes to reach about 63 percent of the final value after the dead time. It takes one dead time and four time constants for a response to reach 98 percent of its final value. The open-loop steady-state gain is the percentage change in the process variable for a percentage change in output after all transients have died out. The controller is in manual. A high steady-state gain is both a curse and blessing. It can improve the control of the true process variable by making the measurement more sensitive. This is particularly important for inferring composition from temperature or concentration from pH. However, a high steady-state gain can make it more difficult--and sometimes impossible--to control the measured variable. For example, excessive oscillation can result from a small amount of stick and slip in a reflux valve for an acrylonitrile and water distillation or in a reagent valve for sulfuric acid and sodium hydroxide neutralization. A low steady-state gain often results when a throttle position is on the excessively flat portion of the installed valve characteristic. The process variable will often wander and respond to the conditions of a related loop more than from the manipulated variable.
BEST OF THE BASICS
31
32
Figure 6 Loop Block Diagram
KL FL Kmv MV Fr TDp1 TCp1 TDp2 TCp2 FR Ki Kpv PV
TDL
TLL
Load Upset
TDv
TCv
Valve
Set Point
TCc1 Kai TCm2 TDm2
Process
AO
PID
Kc
Ti
Td
TCc2
TDc1
Controller
Measurement
Open Loop - loop is in manual (PID algorithm is suspended) Closed Loop - loop is in auto (PID algorithm is active)
The block diagram in Figure 6 shows all the dead times, time constants, and steady-state gains in a control loop. Feedback control corresponds to the signal making one complete circle around the block diagram. The total dead time is approximately the sum of all the pure dead times and small time constants as you traverse the loop. The dead time from valve dead band is inversely proportional to the rate of change of the controller output, and the dead time from transportation delays is inversely proportional to throughput. The diagram in Figure 6 has many uses--including preventing guests from overstaying their welcome. Just show this slide and start talking about dead time and you will be amazed at how quickly the place empties. There is a safety issue, however, in that guests can get trampled in the rush for the door. The following list summarizes the three key variables and their relationship to loop performance: 1. Dead Time or Time Delay (TD) The most important of the three key loop variables Delays controllers ability to see and react to upset
33
Perfect control is possible for zero dead time Nonlinearities become less important as the dead time decreases 2. Time Constant (TC) Better control is possible for a large process time constant Time constants in series create dead time Measurement time constants give the illusion of providing better control Steady-State Gain (K) The valve and process steady-state gains are usually nonlinear High steady-state gain causes overreaction and oscillations Low steady-state gain causes loss of sensitivity and wandering
3.
The controller gain is inversely proportional to the open-loop gain for all types of loops. For loops that are dead-time dominant (i.e., dead time is much greater than the largest time constant), the controller gain can be simply set as one-fourth of the inverse of the open-loop gain. For these same loops the reset time can be set as one-fourth of the dead time. The result is a smooth stable response similar to what you would get from Lambda tuning, which will be discussed (see Section 2.5) as one of the preferred tuning methods for dead-time dominant loops. For loops with a healthy time constant, the controller gain is also proportional to the ratio of the time constant to the dead time. For these loops, the smooth response that is provided by a large time constant (i.e., residence time) of a mixed volume enables you to use a higher controller gain for tighter concentration, gas pressure, and temperature control. If the loop time constant is much larger than the dead time (TC / TD >> 1), then the controller gain is proportional to this ratio besides the inverse of the open loop again: Kc 0.25 TC / (TD Ko) If the loop is dead-time dominant (TC/TD<< 1), then the controller gain is proportional to just the inverse of the open loop gain:
BEST OF THE BASICS
35
Kc = 0.25 1 / Ko The manipulated variable gain is linear for a variable speed drive (VSD). For a control valve it is the slope of the installed characteristic curve and is typically very nonlinear. For operating points on the upper part of the installed characteristic curve of a butterfly valve, the slope can be so flat that the valve gain approaches zero. Note that for concentration and pressure loops, the process variable should be plotted against a flow ratio (e.g., column temperature versus distillate-to-feed ratio, heat exchanger temperature versus coolant-to-feed ratio, and pH versus reagent-to-feed ratio). The process gain is the slope of this curve and is highly nonlinear. At high flow ratios, the slope can be so flat that the process gain approaches zero. The open-loop gain has a flow ratio gain that is inversely proportional to the feed flow, which is an additional source of nonlinearity for pipeline, desuperheater, static mixer, and exchanger temperature or concentration control. In these applications, an equal-percentage valve characteristic is desirable since the valve gain is proportional to flow and cancels out the flow ratio gain. However, for loops on agitated vessels and columns the controller gain is proportional to the process time constant (residence time), which is inversely pro36
BEST OF THE BASICS
portional to feed flow. Since, as we mentioned previously, the controller gain is also inversely proportional to the open-loop gain, the introduction of an equal-percentage valve characteristic is bad news because the flow ratio gain was cancelled out by the process time constant for the controller gain. The process gain for flow loops is 1. For pressure loops downstream of a compressor, fan, or pump, the process gain is the slope at the operating point on the characteristic curve of the compressor, fan, or pump. At low flows, the slope can be so flat that the process gain approaches zero. The analog input gain is the inverse of the calibration span for the controlled variable. It is linear except when a square root extractor is not used on a differential head meter.
Rule 12 For dead-time-dominant loops, set the gain equal to about one-fourth of the inverse of the open-loop gain and the reset time (seconds per repeat) equal to about one-fourth of the dead time. Rate action is not used. This provides a smooth stable response similar to Lambda tuning.
37
and no flow ratio gain (Kfr omitted and Kpv = curve slope): Ko = Kmv Kpv Kai For level loops, the open-loop gain is a ramp rate and uses Ki instead of Kpv to denote an integrator gain. Ki is the inverse of the product of fluid density and the vessels cross-sectional area. There is no flow ratio gain (Kfr omitted): Ko = Kmv Ki Kai 1 K i = --------------------------------density area Where: Ff Ki Ko Kmv Kfr Kpv = feed flow (pph) = level loop integrator gain (ft/lb) = overall open-loop gain (one per hour for level, otherwise dimensionless) = manipulated variable (valve or VSD) steady-state gain (pph/%) = flow ratio steady-state gain (inverse of feed flow) (1/pph) = process variable steady-state gain (wtfrac/%) (degC/%) (psi/%)
39
Kai AO AI PV FR MV
= analog input steady-state gain (%/wtfrac) (%/degC)(%/psi) (%/pph)(%/ft) = change in the controllers analog output (%) = change in the controllers analog input (%) = change in the process variable (wtfrac) (degC) (psi) (pph) (ft) = change in the flow ratio (pph/pph) = manipulated variable or valve flow (pph)
Figure 7 shows the dead time, time constant, and steady-state gain for a process that reaches a steady state (i.e., self-regulating) and for an integrator such as level. In both cases, the process variable response is to change the controller output with the loop in manual (open-loop response). Figure 7 also shows the equations used to approximate an integrator gain as equal to the initial ramp rate of a self-regulating response. This initial ramp rate is approximately the steady-state gain divided by the dominant time constant. Auto tuners that compute settings from an open-loop response use this approximation to convert an integrator into an equivalent
40
%PVo Ko = %AO
%PVo
0 TDo TCp
T98
Time (min)
41
time constant and steady-state gain because they cannot handle integrator gain. This method works well when the dead time is small compared to the ramp rate. The dead time is the time required for the PV to get out of the noise band.
42
43
number that can be used for a download or for a guess if nothing is known about the loop and no test can be performed. The numbers within the parentheses represent a range of typical values. If your tuning setting falls outside the suggested range, this doesnt necessarily mean the tuning setting is wrong. It does suggest that the loop is unusual or has some problems such as interaction, noise, a coated sensor, or a sticky control valve. The last column shows the tuning methods that generally give the best results. The general-purpose tuning method logic shown in Figure 8 is the closed-loop method (CLM), which is referenced in Tables 2 and 3. While this method is best for gas pressure, reactor, and level loops, it can be used for most other loops as well, particularly if the loops set point is being driven for advanced, batch, cascade, or sequence control and there are no interaction issues.
44
Table 2 Default and Typical PID Settings (scan in sec, reset in rep/min, and rate in minutes; = Lambda, CLM = Closed-loop method; SCM = Shortcut method)
Scan (seconds)
1 (0.2-2) 5 (1.0-30) 0.2 (0.02-1) 5.0 (0.5-20) 2 (1.0-5) 2 (1.0-5) 1 (0.2-2) 5.0 (1.0-15) 0.2 (0.1-0.3) 2 (1-4) 0.1 (0.001-10) 0.2 (0.1-1.0) 1.0 (0.001-50) 0.5 (0.1-1.0) 0.5 ( 0.1- 2.0) 1.2 (0.1-2.0) 0.0 (0.0-0.05) 0.2 (0.1-1.0) 0.05 (0.0-0.5) CLM SCM SCM CLM 0.2 (0.2-1.0) 0.2 (0.05-0.5) 1.2 (0.5-10) SCM 5.0 (0.5-25)* 0.1 (0.0-0.5) 0.0 (0.0-1.0) CLM 0.3 (0.2-0.8) 10 (5-50) 0.0 (0.0-0.02)
Application Type
Gain
Reset (repeats)
Rate (minutes)
Method
Liquid Flow/Press
Reactor pH
Neutralizer pH
Inline pH
Inline Temperature
* An error/square algorithm or gain scheduling should be used for level loops with gains < 5
45
46
Scan (seconds)
1 (0.2-2) 5 (1.0-30) 0.2 (0.02-1) 5.0 (0.5-20) 2 (1.0-5) 2 (1.0-5) 1 (0.2-2) 5.0 (1.0-15) 0.5 (0.2-2.0) 0.5 (0.1-10) 0.2 (0.1-0.3) 30 (15-60) 300 (300-3000) 60 (12-120) 300 (300-3000) 0.1 (0.001-10) 300 (60-600) 1.0 (0.001-50) 120 (60-600) 30 ( 6-30) 70 (6-120) 0 (0-3) 70 (30-300) 12 (12-60) 70 (30-600) 300 (60-600) 3 (0-30) CLM SCM SCM CLM SCM 5.0 (0.5-25)* 600 (120-6000) 0 (0-60) CLM 0.3 (0.2-0.8) 6 (1-12) 0 (0-2)
Table 3 Default and Typical PID Settings (scan in sec, reset in sec/rep, and rate in sec; = Lambda, CLM = Closed-loop method, SCM = Shortcut method)
Gain Reset (seconds) Rate (seconds) Method
Application Type
Liquid Flow/Press
Reactor pH
Neutralizer pH
Inline pH
Inline Temperature
* An error/square algorithm or gain scheduling should be used for level loops with gains < 5
2. 3. 4. 5.
47
6.
It facilitates the tuning of the master (outer) loop of a cascade system for an oscillating inner (slave) loop.
This closed-loop procedure uses rapidly decaying oscillations as shown in Figure 9 instead of the sustained oscillations proposed by the original Ziegler-Nichols method. The measured period will be larger for damped oscillations in industrial applications mostly because of valve dead band, but the error will be in the safe direction in terms of a larger, more stable reset time setting. The closed-loop procedure should also result in about half of the gain estimated by the Ziegler-Nichols method.
Rule 14 Use the general-purpose closed-loop method if the loop must stay in auto or if it is particularly important to maximize the gain for tight control and a fast set point response. However, for deadtime-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 pressure loops on exothermic reactors, it is especially important to use this method to prevent a runaway. 48
TUNING SETTINGS AND METHODS
49
50
Figure 9 Slight Oscillation
PV (%) Offset
Oscillation Period To
Set Point
Time (secs)
A list of steps for the Closed Loop Method is as follows: 1. Put the controller in automatic at normal set point. If it is important not to make big changes in the manipulated variable (analog output), narrow the controller output limits to restrict valve movement. For level, gas pressure, and reactor loops decrease the reset action (i.e., increase the reset time) by a factor of ten if possible and trend-record the process variable (PV) and analog output (AO). Add a PV filter to keep output fluctuations within the dead band of valve caused by noise. Bump the set point and increase the controller gain if necessary to get a slight oscillation. Stop increasing the gain when the loop starts to oscillate or the gain has reached your comfort limit. Then note the period. For gain settings greater than 1, the oscillation will be more recognizable in the analog output (AO). Make sure AO stays on scale within the valves good throttle range. 51
2.
3.
4.
5.
6. 7.
Reduce the gain until the oscillation just disappears so recovery is smooth. For a temperature loop with a smooth response (no chatter, inverse, square wave, or interaction), use rate action. If the gain is larger than 10, reset and rate action are not needed. If the manipulated flow will upset other loops, decrease the gain or use errorsquared control. If a high gain is used, set a velocity limit for the set point and configure the set point so it tracks the PV in manual and DDC (ROUT). This will enable the loop to restart. If rate action is used, set the rate time equal to one-tenth (1/10) of the period and set reset time equal to half the period. If rate action is not used, cut the gain by 50 percent. If the loop is clearly dead-time dominant, increase the reset action so the reset time is about one-eighth (1/8) of the loop period. Make another set point change and adjust the gain to get a smooth response. Do not become any more aggressive than a slight oscillation. If you select gains smaller than 5 for level, decrease the reset action (i.e., increase the reset to more than 3,000 seconds), add feedTUNING SETTINGS AND METHODS
8.
9.
52
53
54
t %PV1 %PV2
TDo
Time (min)
particularly if the oscillations develop into a limit cycle after being bounced back and forth 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 controller gains. A list of steps for the Shortcut Method are as follows: 1. Adjust the measurement filter to keep the controller output fluctuations caused by noise within the valve dead band. Note the magnitude of output change for each reaction to typical upsets. With the controller in manual near set point, make a step change in the controller analog output (%AO) of about the same magnitude as the output change you noted, but larger than twice the valve dead band. Note the observed dead time and the change in ramp rates. If the process was lined out before the test, then the starting ramp rate is zero (%PV1 / t = 0). Divide the change in ramp rate by the change in valve position to get the pseudo
2.
3.
4.
55
integrator gain (Ki). Then compute the dead time from the dead band. 5. Use the following equations. For a master or supervisory loop, omit TDv. ( %PV 2 t ) ( %PV 1 t ) K i = --------------------------------------------------------------------------- %AO Kx K c = ---------------------K i TD o DB - TD o TD v = -------------------------------K x %AVP DB %AVP = %AO -------2 T i = c i ( TD v + TD 0 ) T d = c d ( TD v + TD 0 )
56
Where: %AVP=change in actual valve position (%) %AO= change in the controller analog output (%) DB = dead band from valve hysteresis (%) = controller gain (dimensionless) Kc cd = rate time coefficient (1.0 for backmixed and 0.0 for plug flow volumes) = reset time coefficient (4.0 for backci mixed and 0.5 for plug flow volumes) Kx = gain factor (1.0 for Ziegler-Nichols, 0.5 for IMC, and 0.25 for Lambda) Ko = open-loop gain (dimensionless) = pseudo integrator open-loop gain Ki (1/sec) %PV = change in process variable (%) t = change in time (sec) TC = largest loop time constant (sec) TDo = dead time seen in open-loop test (sec) TDv = dead time from control valve dead band (sec) Td = derivative (rate) time setting (seconds) = integral (reset) time setting Ti (seconds/repeat)
57
%AO
Signal (%)
%PVo
T98
Time (min)
59
tuning is only suitable for self-regulating processes. EnTech has expanded the actual Lambda tuning rules to cover a wide variety of processes. The following is a list of steps for the Simplified Lambda Tuning Method: 1. Adjust the measurement filter to keep the controller output fluctuations caused by noise within the valve dead band. Note the magnitude of output change to determine the reaction to typical upsets. With the controller in manual near set point, make a step change in the controller analog output (%AO) of about the same magnitude as the output change you noted, but larger than twice the valve dead band. Note the observed dead time as the time it took to reach the first change in the process variable (%PV) outside of the noise band. Note the open-loop gain (the percentage change in measurement divided by the percentage change in controller output). Note the response time (the time from the bump to 98 percent of the final value).
2.
3.
4.
5.
60
6.
The reset setting (repeats/minute) is set equal to the inverse of one-fourth of the response time. The controller gain is adjusted to be onefourth of the inverse of the open-loop gain ( = 4).
7.
The equation for reset time setting is as follows: Ti = T98 / 4 = TDo/ 4 + TC (seconds/repeat) The equation for gain setting is as follows: Kc = ( %AO / %PV ) ( 1/ ) ( is a tuning factor that is increased to provide a slower and smoother response.)
Rule 16 Use the Lambda tuning method for dead-time-dominant or fast loops that can be left in manual. You should repeat the test for both directions and use the most conservative tuning.
61
decrease to speed up the controllers response to upsets and set point changes (minimize PV) and increase to slow down the response and reduce loop interaction (minimize %AO). This simplifies tuning to a single knob.
62
63
dead time and chatter from the analog/digital converter (A/D). For level measurements, you should minimize sensitivity to bubbles, sloshing, and coating.
dead band
Stroke (%)
Stick-Slip
0
dead band
Signal (%)
65
worse for piston actuators and rotary valves. Most valve manufacturers will choose a valve position and step size that is near the minimum shown in Figures 13 and 14. For large step sizes, the time required to move large amounts of air into or out of the actuator increases the response time. Another problem with rotary valves is that the feedback to the positioner is from the actuator shaft. What might seem to be minor gaps in keylock connections and twisting in long shafts actually means that the butterfly disk or ball may not move, even though the positioner sees a movement of the actuator shaft. To minimize this problem, you should use splined connections and short large-diameter shafts, and you should conduct actual flow tests on all rotary valves. All tests on control valves should use step sizes that approximate what is expected to occur as changes in the controller output from one scan to another (< 0.5%). You should also use very large step sizes for pressure-relief valves and for compressor antisurge valves. There is nothing in a valve specification that requires that the valve will actually move. To ensure that a valve will respond to meet the needs of a control loop, you should add the dynamic classes in Table 4 to the valve specification sheet when purchasing a control valve. 66
MEASUREMENTS AND VALVES
Figure 13 Dramatic Rise in Response Time as You Approach the Resolution Limit
Guess what step size the vendor will choose to determine the response time of the valve
400 dead time from dead band prestroke dead time lag from stroking time
40.0
4.0
67
68
400
5 4
Figure 14 Response Time Depends upon the Valve, Shaft, Size and Connections, Actuator, and Positioner
40.0
3 6 7 2 1
Response Time (sec) 4.0 0.4 0.1 1.0 10.0 Step Size (%) 100
1 - sliding stem valve with diaphragm actuator and digital postioner with pulse width modulated solenoids. 2 - sliding stem valve with diaphragm actuator and digital positioner with nozzle flapper 3 - sliding stem valve with diaphragm actuator and pneumatic positioner 4 - rotary valve with piston actuator and digital positioner 5 - rotary valve (tight shutoff) with piston actuator and pneumatic positioner 6 - very large rotary valve (>6) with any type of positioner 7 - sliding stem valve with a digital positioner
Table 4 Dynamic Classes of Control Valves (Four classes A D for each of the four categories 1 4) 1-Minimum Step Classes Class A - 3.0% 0.3% Class B - 1.0% 0.1% Class C - 0.5% 0.1% Class D - 0.2% 0.1% 3-Response Time Classes Class A - 15 sec Class B - 5 sec Class C - 2 sec Class D - 1 sec 2-Maximum Step Classes Class A - 5% 0.5% Class B - 10% 1.0% Class C - 20% 2.0% Class D - 50% 2.0% 4-Minimum Position Classes Class A - 30% Class B - 20% Class C - 10% Class D - 0%
Note: The response time is the time it takes the trim (not the actuator) to stay within 10 percent of step or within 0.1 percent of span, whichever is largest. (Overshoot is OK if recovery is within this offset from the desired position of the trim)
Referring to Table 4, consider a DACB class control valve. It will respond to signals larger than 0.2 percent and smaller than 5.0 percent in less than 2 seconds above a position of 20 percent. If you dont care about how well a valve responds, specify class AAAA--almost any valve will meet it. A general-purpose application would be BAAB. Examples of other classes for various types of
MEASUREMENTS AND VALVES
69
control loops are given in the following list. To choose a typical class, use the loop type that actually throttles the control valve. For cascade loops, you should use the slave loop. Vessel or Column Temperature Control => CABC Exchanger Temperature Control => CACC Pipeline Temperature Control => CCCC Liquid Pressure or Flow Control => CACC Vessel Level Control => CABC Gas or Steam Pressure Control => CBDC Compressor Surge Control => CCCD Vessel pH Control => DABD Pipeline pH Control => DBCD Pressure Relief => BCCD For split range, use class D for last category (minimum throttle position)
The best way to see if the flow actually changed for a small change in controller output is to make a sensitive flow measurement with very low noise. This is particularly important for rotary valves or pneumatic positioners. Another clue that the valve has a problem is if the control loop oscillations are smaller in manual than in auto (this assumes you have tuned the controller). If it is a critical rotary valve and there is no flow measurement, you need to take the valve 70
MEASUREMENTS AND VALVES
out of the pipeline. In the shop, you need to then attach a travel indicator to the butterfly disk or ball to check whether they track the changes in the actuator shaft. Finally, the change in the flow measurement for a change in controller output will also show if the control valve is on a portion of the installed characteristic that is too steep or flat. If there is no flow measurement, ask the valve manufacturer to generate an installed valve characteristic for your piping system. Signal characterization to linearize the valve will decrease valve dead time from its resolution limit for the flat portion of the curve, but it will increase this dead time for the steep portion of the curve. Figure 15 summarizes the maintenance tests for a good or bad valve. The change in PV can be any process variable, but it works best if it is a fast measurement such as flow or pressure. Slow process variables such as temperature and level respond much too slowly, especially for small changes in controller output, to make it practical to determine valve dead band.
71
72
fast process response ? (loop tuning is assumed to be OK) true (actuator shaft position reflects trim position) poor valve false poor valve Step response test OK? true (valve dynamics are OK) sliding stem throttling valve? false false false true PV for AO OK? true good valve installed curve* slope OK? true good valve false *Check slope on actual curve that includes the variation in pressure drop available to the poor control valve due to changes valve in system drop and pump head
critical valve ?
true
false
true
false
true
false
poor valve
Rule 21 If you must operate on the flat portion of an installed valve characteristic, use signal characterization to make the valve 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 dont eliminate an equal-percentage characteristic used to compensate for a flow ratio gain.
73
4.0Control Considerations
4.1 Auto Tuners
The relay method auto tuner shown in Figure 16 is effective and simple. It keeps the loop under control by constantly forcing the PV back and forth across the starting point of the test. Its effectiveness depends upon the noise band being set correctly so that fluctuations from noise are not measured as loop oscillations. Figure 17 shows a single step in controller output that uses the shortcut tuning method to provide an estimate of tuning settings and then a series of successive steps to provide an automatic identification of valve dead band.
75
76
Ultimate Gain Ultimate Period 4d Tu Ku = e
n
Measurement (%) a
Set Point
CONTROL CONSIDERATIONS
Measurement (%)
Ramp time identification and shortcut estimate of controller tuning settings
CONTROL CONSIDERATIONS
TDo TDmax DB/2
valve dead band identification
Initial PV
AO
Time (secs)
77
coated (velocity > 5 fps) and that the signal is fast (minimum transportation delay) and smooth (no noise). For pH loops with an operating point on a steep titration curve, the greatest need is for an exceptionally precise control valve (dead band < 0.15%). Characterizing the signal of the process variable according to the titration curve can help reduce the oscillations.
have Scotty and warp drive, you are stuck with the dead time caused by equipment, piping, instrumentation, and control valves in your loop. A dead-time compensator is very sensitive to an overestimate of the dead time. A dead time that is 25 percent larger than actual can cause instability. A major source of dead time is a transportation delay, which can be computed for a pipeline as the volume divided by the flow or for a sheet as the distance divided by the speed. Overestimates of the process gain and underestimates of the time constant are also problems but to a lesser degree. To derive the full advantage of a Smith Predictor, you should increase the controller gain and the reset action. For a negligible time constant, the reset time can be set equal to one-fourth of the uncorrected dead time to provide a reset action that is an order of magnitude greater. A dead-time compensator is most effective on dead-time-dominant loops where the dead time can be accurately calculated and updated in the predictor. Most dead-time compensators can be reduced to some form of the Smith Predictor shown in Figure 18. The PID controller output passes
CONTROL CONSIDERATIONS
79
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 process 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 output are concerned. Note that the controlled variable is no longer the actual process variable.
Rule 22 To maximize the stability of a dead-time compensator, update the dead time as quickly and accurately as possible and make sure you always underestimate the dead time and process gain and overestimate the time constant. You should include 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.
80
CONTROL CONSIDERATIONS
CONTROL CONSIDERATIONS
Smith Predictor Ks TCs
TDs
measurement
81
82
CONTROL CONSIDERATIONS
PV
CONTROL CONSIDERATIONS
not enough! Time PV Time too much! Time Time
PV
too late!
PV
too early!
83
You can greatly improve a loops set point response by adding the percentage change in set point into the controller output as a feedforward signal that has a gain of about half of the controller gain, an action opposite to the control action, and a slight filter. This provides the kick you would normally get from a high gain setting. The loop can then rely on reset action to make the rest of the transition to the new set point.
Rule 25 Add a feedforward signal of a set point in percent to the controller output with a gain about half of the controller gain, an action opposite of the controller action, and a small filter. The feedforward action is opposite the controller action because the controller action works on error, which is the measurement minus the set point. For nonlinear valves, you may need to add signal characterization. 84
CONTROL CONSIDERATIONS
85
for concentration, level, and temperature control. The flow loop is not generally recommended for liquid pressure control because the speed of response of the liquid pressure and flow are about the same. Another type of cascade control that should be used more frequently is the cascade control of still, reactor, or evaporator temperature to steam pressure control. In this kind of control, the steam pressure loop compensates not only for steam supply pressure upsets but also for changes in the condensing rates (heat load and transfer) as reflected in the steam coil or jacket pressure. You should tune the secondary loop for an immediate response before tuning the primary loop. An offset in the secondary loop is usually of no consequence since the sole purpose of the secondary loop is to meet the demands of a primary loop. You should tune the secondary loop with maximum gain action and minimum reset action and use a feedforward of the set point. This is particularly important for cascade control of gas pressure control to flow. If the abrupt changes in the secondary loop output upset another important loop, then you may need to use Lambda tuning to make the secondary loop response smoother and more gradual.
86
CONTROL CONSIDERATIONS
The most common mistake is to forget to properly set the output limits of the primary loop. You must set the output limits on the primary loop so they match the set point limits on the secondary loop. Also, the primary loop must not wind up when the secondary loop output is at its output limits.
Rule 27 You must tune the secondary loop first and use gain and/or set point feedforward action in it so the secondary loop can immediately respond to the set point changes from the primary loop. Reset action is too slow to be the major source of control action in the secondary loop. If you use a feedforward of the set point, make sure it is scaled properly. If the secondary loop fights with other important loops, use Lambda tuning to minimize the interaction.
CONTROL CONSIDERATIONS
87
88
CONTROL CONSIDERATIONS
5.0Troubleshooting
5.1 Patience, Heck, I Need to Solve the Problem
Figures 20 and 21 show some diagnostics for loops in manual and auto. In these diagrams, reset action (repeats per minute) is referenced rather than reset time (seconds per repeat). If there are fewer oscillations with the loop in manual, the problem is either a poor control valve or controller tuning. If there are also fewer oscillations in other loops, then they are probably caused by an interaction between this loop and other loops. If the oscillations persist and are fast, they are probably due to electromagnetic interference (EMI), sensor noise, pressure waves, or resonance. If the oscillations persist and are slow, then they are periodic upsets from other loops that have poor tuning or valves or are caused by on-off actions (level switches), steam traps, pressure regulators, burps (column flooding), or flashing. If the oscillations dissipate when the valve is closed, the oscillations were caused by pressure fluctuations at the valve. With a loop in manual, you can find the valve dead band by making a step change of 0.25 perTROUBLESHOOTING
89
cent in the valve and then waiting more than the dead time to see if the actual process variable responds to the change in the controller output. For slow processes or in situations where you are reasonably sure the valve is really lousy, you can increase the step size to 0.5 percent or even 1.0 percent. This will allow the test to be completed before your patience wears thin. If there is no response, repeat the step. The steps should all be in the same direction until there is response of the process variable that is outside of the noise band. Then repeat test for the opposite direction. The absolute magnitude of the total number of step changes needed to get a response in both directions is a measure of the valve dead band.
90
TROUBLESHOOTING
91
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 oscillation significantly faster by using more rate and gain action. This will get the controller output through the dead band more quickly. If the period of an upset is near the natural period of the loop, which is two to four times the dead time, then the loop will amplify the disturbance, and the oscillation will be worse when the loop is in automatic. If the period is much less than the natural period it is uncontrollable noise. For a loop to have a chance of attenuating the upset, the period of the upset must be more than twice as large as the natural period of the loop. Note that on Figures 20 and 21 reset too hi means the reset action is too high, which means the reset time is too small.
true
TROUBLESHOOTING
PV jumps for AOs =1% Most upsets start out as a pressure change false true valve slips liquid pressure or flow loops false Take out the reset! gain too lo reset too hi rate too lo false osc. less in other loops true true gain too hi reset too lo rate too hi Lambda Tuning gain too hi reset too lo rate too hi
false
true
false
true
false
93
94
false periodic upsets false osc period < 4 sec true true sensor noise, pressure waves, or resonance osc period increases if gain decreases true Most upsets start out as a pressure change false valve sticks osc period much less than reset time false Take out the reset ! gain too lo reset too hi rate too lo false liquid pressure or flow loops true Lambda Tuning gain too hi reset too lo rate too hi true on-off actions, traps, regulators, burp and flash
true
false
true
true
PV overshoots set pt
false
TROUBLESHOOTING
The oscillation can be made much faster and tighter by using higher gain and rate action. Figure 22 is a spectrum analysis for a level, which shows that the predominant frequency is 0.08 cycles per minute. By analyzing the power spectrum of process variables in the application depicted in the figure, Walsh Automation was able to find the source of a cycle with a twelveminute period in a series of distillation columns. It was an oscillation in the feed, which was caused by level switches on a feed tank that turned pumps on and off. This power spectrum analysis tool can quickly point to common periodic oscillations that noise and upsets would make it difficult to spot in trend recordings.
Rule 33 A power spectrum analyzer 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 processes, 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
TROUBLESHOOTING
95
96
TROUBLESHOOTING
scan time (50 milliseconds or less) that is directly connected to the analog input terminals.
97
ing process with a small dead-time-to-time-constant ratio, the reset time should be between 0.5 and 1.0 times the loop period. For pure deadtime processes, the reset time can be one quarter () of the dead time. Since the natural period is twice the dead time for a dead-time-dominant loop, the reset time ends up being about oneeighth (1/8) of the loop period. If a dead-time compensator is added to this loop, the reset time can be set to be about one quarter of the uncompensated dead time. If the dead time is underestimated by 10 percent, the reset time can be as low as one eightieth (1/80) of the loop period for a dead-time compensator. To make it even more interesting, the rule of thumb to set the reset time greater than ten times the loop period for integrating and runaway processes is designed to essentially eliminate the possibility of oscillations due to reset action. There is a gain window for such non selfregulating processes. If the gain is below the low limit or above the high limit, there is a loss of control. The closer the controller is to the low gain limit, the more sensitive it is to reset action. Proportional action makes the response more self-regulating and thus, more tolerant of reset action. Some consultants recommend proportional-only controllers for level loops and proportional plus derivative controllers for 98
TROUBLESHOOTING
exothermic reactor temperature loops to protect against instability caused by reset. In practice, some reset is useful to eliminate offset and facilitate startup. For level loops, it has been found that to prevent oscillations, the product of the controller gain and reset time must be greater than 4 times the fastest time for the level to ramp full scale. While the actual minimum product of gain and reset that triggers oscillations will change depending upon the amount of loop dead time and valve dead band, the relationship is useful to determine how to simultaneously adjust the gain and reset for level loops. If the loop response is smooth and the controller gain is doubled, the reset time can be halved and still keep the product of the two adjustments the same. It is critical to note that the opposite is true (the reset time must be doubled) if the loop is approaching the upper gain limit. If you are confused, dont feel alone. It is safe to say that 99% of users who dont carry this guide dont even have a clue that this strange twist of the rule on tuning reset even exists. The following equation by Harold Wade shows how to eliminate oscillations near the low gain limit for a level controller if the dead time and valve dead band are negligible: KC * TI > 4 * TL
TROUBLESHOOTING
99
TL = VS / F Where: F KC TI TL VS = maximum difference between inlet and outlet flows (gpm) = controller gain = controller reset time (minutes/repeat) = fastest level full scale ramp time (minutes) = volume for level measurement span (gals)
Finally, in order to tune the loop you need to be able to see the response. If the update time is too slow, the period of an oscillation and any time measurements will appear longer than actual. If 10% accuracy is desired, then the update time must be less than one tenth of the dead time or time constant. The scan times of any devices that supply data should be twice as fast as the trend update time to ensure sufficient over sampling. In order to get good accurate estimates of gains, the compression (value for exception reporting) should be smaller than the measurement or valve resolution. Otherwise the gains will be in error to the degree that the compression approaches the step size.
100
TROUBLESHOOTING
TROUBLESHOOTING
101
Index
A
abrupt responses 19, 27 accuracy auto tuner 1 measurement (see measurement resolution) tuning 1 action control 26 direct 26 fail-open 26 gain 7, 14, 16, 22, 86, 87, 91, 92, 95 on-off 89, 91, 97 process 26 rate 8, 14, 37, 52, 85, 87, 91, 92, 95 reset 7, 14, 16, 20, 22, 24, 51, 52, 75, 78, 79, 84, 86, 87 reverse 36 valve 26 actual valve position 57 actuator 66, 71 advanced control tuning 8, 16, 44 algorithm error-squared 20, 52 PID 9, 47 update time 95, 100, 101 aliasing signal 95 analog output function blocks 4, 12 PID 4, 12, 40, 51, 55, 57, 60 analog to digital converter (A/D) 27, 29 analog to digital converter signal 63 analyzer cycle time 27 auto mode 6 auto tuner accuracy 1 identification of dead band 75 integrator gain 40 pretest 77 relay method 75, 76 automatic mode 1, 6
B
back-calculate function blocks 4, 7 ball valve 66, 71 batch control tuning 8, 16, 44 blending (see pipeline and static mixer) bump 43, 51, 53, 60 butterfly valve 12, 36, 66, 71
C
calibration 64 calibration span 11, 27, 37 cas (cascade) mode 6 cascade control 3, 8, 9, 16 cascade control tuning 44, 48, 8588
INDEX
103
characteristic valve 12, 22, 31, 36, 37, 71, 73, 85 characterization signal 71, 73, 84 chatter 27, 28 closed loop 6, 7, 44, 47, 48, 53, 58 closed loop method tuning 5157 coating of sensor 63, 64, 75 column control tuning 14, 19, 21, 22, 24, 36, 53, 82 column control valve 70 compression 95, 100, 101 compressor control tuning 37, 38 compressor control valve 66, 70 concentration control tuning 27, 29, 38, 75, 86 constrained multivariable predictive controllers (CMPC) 28 control bump 43, 51, 53, 60 cascade 3, 6, 8, 9, 16, 19 constrained multivariable predictive controllers (CMPC) 28 disturbance (see also upset) 30, 78, 82, 85 error 7, 8, 11, 28 feedback 2, 33, 78 feedforward 52, 8284, 86 interaction 16, 20, 44, 52, 53, 58, 62, 85, 87, 89, 90
limit cycle 55 material balance 21 offset 12, 24, 86, 99 oscillations 16, 2125, 34, 4855, 58, 70, 75, 78 overshoot 8, 14, 24, 25, 91 performance 28, 33, 82, 85, 101 residence time 35, 36 resonance (loops) 89, 91 set point 8, 14, 16, 17, 18, 20, 23 split-ranged 14 stability 22, 24 upset (see also disturbance) 30, 52, 53, 55, 60, 82, 85, 86, 89, 91, 95, 97 variability 1, 2, 16, 19, 27, 97 control action 26 controlled variable 11, 37, 80 conveyor control tuning 19, 24, 58 crystallizer control tuning 14, 21 current-to-pneumatic transducer (I/P) 4 cycle time analyzer 27
D
dead band valve 2, 19, 20, 29, 33, 47, 48, 51, 53, 55, 60, 64, 71, 73
104
INDEX
dead time of valve 47, 53, 55, 56, 58, 60, 71, 73 dead time or time delay response 3034, 5357, 78, 79, 80, 82, 85, 87 dead time to time constant ratio 16, 35 dead-time compensator tuning 78, 79, 8082, 98 dead-time dominant response 16, 19, 35, 52, 58, 91, 98 delay from transportation 33, 78, 79 derivative action (see rate) derivative mode 8, 10 desuperheater control tuning 19, 36, 38, 58 digital positioner 64, 71 direct action 26 direct digital control (DDC) 7 distillation (see column control) disturbance control (see also upset) 30, 78, 82, 85 drift sensor 63, 64 dynamic classes valve 66, 69
F
faceplate PID 14 fail-open valve 4, 5, 6 falter or hesitate response 16, 91 feedback control 2, 33, 78 feedforward control 52, 82 84, 86 fieldbus function blocks 4, 9, 88 fieldbus mode 6, 7 filter 8, 12, 19, 27, 51, 55, 60, 84, 85, 87 flow (feed) ratio 3640 flow control tuning 19, 38, 52, 75, 79, 85 fluctuations or waves pressure 89, 90 function blocks analog output 4, 12 back-calculate 4, 7 fieldbus 4, 9, 88 PID 4
G
gain action 7, 14, 16, 22, 86, 87, 91, 92, 95 gain tuning 711, 1924, 35, 47, 48, 51, 52, 55, 57, 60, 61, 92, 99, 100 general-purpose method tuning 4448
E
error control 8, 28 error control 7, 8, 11, 28 error-squared algorithm 20, 52
INDEX
105
H
heat exchanger control tuning 19, 36, 38 historian compression 95 update time 95
I
identification of dead band 75 increase-to-close valve 36 initialization manual (IMan) mode 7 integral action (see reset) integral mode 7, 1011 integrating response 47, 98 integrator gain for auto tuner 40 integrator response 39, 40, 41 interaction 85, 87 interaction control 16, 20, 44, 52, 53, 58, 62, 89, 90 inverse response 27, 52, 53, 61, 80, 82, 84
set point range 87, 88 set point velocity 8, 19, 52 local mode 6 local override mode 6 loop closed 6, 7, 44, 47, 48, 53, 58 master (also known as primary) 8, 56 open 6, 47, 53, 58 primary (also known as master) 8, 56 secondary (also known as slave) 8, 48, 8588 slave (also known as secondary) 8, 48, 8588 troubleshooting 89101
M
maintenance of valve 64, 71, 72 manipulated variable 3, 9, 11, 22, 28, 31, 36, 39, 40 manual (Man) mode 6 master loop (also known as primary) 8, 56, 8588 material balance control 21 measurement resolution 27, 28, 100, 101 methods tuning 1, 16 mode auto 6 automatic 1, 6 cascade (Cas) 6 derivative 8, 10
L
lag thermowell 29 lag (see time constant) Lambda tuning 35, 37, 57, 5862, 86, 87 level control valve 63, 70, 71 level switches 89, 95, 97 level tuning 19, 20, 21, 24, 25, 29, 44, 51, 52 limit cycle 55 limits output 51, 87, 88
106
INDEX
direct digital control (DDC) 7 fieldbus 6, 7 initialization manual (IMan) 7 integral 7, 1011 local (see auto) 6 local override (LO) 6 manual (Man) 6 operational 6 output tracking 6 proportional 7, 912 remote (see cascade) 6 remote cascade (RCas) 7 remote output (ROut) 7 remote set point (RSP) 6 supervisory 7 model predictive control (see constrained multivariable predictive control)
P
patterns of response 82 performance control and tuning 28, 33, 82, 85, 101 pH control tuning 27, 29, 31, 36, 53 pH control valve 70, 78 PID analog output 4, 12, 51, 55, 57, 60 faceplate 14 function blocks 4 scan time 11, 28, 29, 45, 46, 53, 63, 75, 85, 87, 97, 100 PID algorithm 9, 47 PID analog output 12, 40 pipeline control tuning 19, 24, 27, 38, 58, 79 positioner digital 64, 71 pneumatic 64, 70 smart (see digital positioner) valve 4, 6471 power spectrum signal 95, 96 pressure fluctuations or waves 89, 90 pressure control tuning 16, 24, 35, 36, 37, 44, 48, 51, 75, 86, 90 pressure control valve 66, 71
N
noise signal 19, 20, 27, 30, 42, 44, 51, 55, 60, 63, 70 nonlinearity response 1, 36, 47, 58, 84, 85
O
offset control 12, 24, 86, 99 on-off action 89, 91, 97 open loop 6, 47, 53, 58 open-loop gain response 34 42, 57, 60, 61 operational mode 6 oscillations 16, 21, 24, 25, 34, 4855, 58, 70, 75, 78 control and response 16 output limits 51, 87, 88
INDEX
107
pressure waves 89, 91 pretest auto tuner 77 primary loop (also known as master loop) 8 primary loop (also known as master) 56, 8588 process action 26 process variable 2, 3, 8, 9, 11, 14, 16, 19, 27, 31, 36, 39, 51, 57, 58, 60, 78, 80 proportional action (see gain) proportional band tuning 9, 11, 20 proportional mode 7, 912 pulp and paper control tuning 20 pump control tuning 37, 38
Q
quarter-amplitude response 21, 22
R
ramp rate 39, 40, 41, 53, 54, 55, 97, 99, 100 rate tuning 8, 10, 11, 2527, 47, 58 rate action 8, 14, 27, 37, 52, 85, 87, 91, 92, 95 rate time to dead time ratio 52 ratio dead time to time constant 16, 35, 98 flow (feed) 3640 rate time to dead time 52
reset time to oscillation period 24, 48, 52 signal-to-noise 63 reactor control tuning 14, 16, 21, 22, 44, 48, 51, 86, 99 relay method auto tuner 75, 76 remote cascade mode 7 remote mode (see cascade) 6 remote output (ROut) mode 7 remote set point (RSP) 6 reset action 7, 14, 16, 20, 22, 24, 51, 52, 75, 78, 79, 84, 86, 87 reset time to oscillation period ratio 24, 48, 52 reset tuning 10, 11, 14, 2235, 47 residence time control 35, 36 resistance temperature detectors 63 resolution measurement 27, 28, 100, 101 valve 27, 28, 29, 64 resolution valve 71 response abrupt 19, 27 analyzers 27 chatter 28 dead time or time delay 5357, 78, 79, 80, 82, 85, 87 dead-time dominant 16, 18, 19, 35, 52, 58, 91, 98 falter or hesitate 16, 91
108
INDEX
integrating 47, 98 integrator 39, 40, 41 inverse 27, 52, 53, 61, 80, 82, 84 nonlinearity 1, 36, 47, 58, 84, 85 open-loop gain 57, 60, 61 oscillations 70 patterns 82 quarter-amplitude 21, 22 runaway 47, 48, 98 self-regulating 40 sensor 63 set point 44, 48, 51, 52, 55, 60 smooth 19, 20, 35, 78, 86 staircase 25, 91 steady-state gain 80 time constant 8, 16, 20, 27, 36, 40, 79, 80, 85, 87 time constants (TC) 57 time to steady state 58 62, 66, 67, 68, 69 trajectory 14, 29 reversal of signal 36 rotary valve 66, 70, 71 runaway response 47, 48, 98 response runaway 22
S
scan time 28, 29, 45, 46, 53 PID 11, 63, 75, 85, 87, 97, 100 secondary (also known as slave) 8588
secondary loop (also known as slave) 8, 48, 8588 self-regulating response 40 sensitivity of valve (see valve resolution) sensitivity to measurement (see measurement resolution) sensor coating 63, 64, 75 drift 63, 64 response 63 sequence control tuning 19, 44 set point control 8, 14, 16, 17, 18, 20, 23 set point range limits 87, 88 set point response 44, 48, 51, 52, 55, 60 set point velocity 8, 19 set point velocity limits 52 settings for tuning 43, 45, 51, 53 shaft of valve 66, 68, 71, 73 sheet (web) control tuning 19, 20, 24, 58 shortcut tuning 75 signal aliasing 95 analog to digital converter (A/D) 27, 29, 63 current-to-pneumatic transducer (I/P) 4 filter 8, 12, 19, 27, 51, 55, 60, 84, 85, 87
INDEX
109
noise 19, 20, 27, 30, 42, 44, 51, 55, 60, 63, 70 power spectrum 95, 96 signal characterization 71, 73, 84 signal reversal 36 signal-to-noise ratio 63 size step 43, 53, 58, 66, 69, 90, 100, 101 slave loop (also known as secondary) 8, 48, 70, 85 88 sliding stem (globe) valve 71 smart positioner (see digital positioner) smart transmitter 63, 64 smooth response 19, 20, 35, 78, 86 response smooth 27 span calibration 11, 27, 37 span time 69 specification valve 66 spinning (fibers) control tuning 19 split range valve 70 split-ranged control 14 stability 22, 24 staircase response 25, 91 startup control tuning 16 static mixer control tuning 19, 36, 38 steady-state gains 3042, 80 steam traps 89, 91
step size 43, 53, 58, 66, 69, 90, 100, 101 stick-slip valve 31, 64, 92, 97 stroking time (see valve response time) supervisory control tuning 7 supervisory mode 7
T
temperature control tuning 14, 24, 27, 28, 29, 35, 38, 48, 52 temperature control valve 70, 71 temperature detectors 63 thermowell lag 29 time constant response 8, 16, 20, 27, 3037, 40, 57, 79, 80, 85, 87 time delay (see dead time) time to steady state response 5862 trajectory of response 14, 29 transmitter smart 63, 64 transportation delay 33, 78, 79 trend recording compression 95, 101 update time 95, 101 troubleshooting loop 89101 tuning accuracy 1 advanced control 8, 16, 44 batch control 8, 16, 44 cascade control 44, 48, 8588
110
INDEX
closed loop method 51 57 column control 14, 19, 21, 22, 24, 36, 53, 82 compressor control 37, 38 concentration control 27, 29, 38, 75, 86 conveyor control 19, 24, 58 crystallizer control 14, 21 dead-time compensator 78, 79, 8082, 98 desuperheater 36 desuperheater control 19, 38, 58 evaporator control 14, 21, 86 flow control 19, 38, 52, 75, 79, 85 gain 35, 47, 48, 51, 52, 55, 57, 60, 61, 92, 99, 100 general-purpose method 4448 heat exchanger control 19, 36, 38 Lambda 35, 37, 57, 58 62, 86, 87 level 19, 20, 21, 24, 25, 29, 44, 51, 52 pH control 27, 29, 31, 36, 53 pipeline control 19, 24, 27, 38, 58, 79 pressure control 16, 24, 35, 36, 37, 44, 48, 51, 75, 86, 90
proportional band 9, 11, 20 pulp and paper control 20 pump control 37, 38 rate 8, 10, 11, 47, 58 reactor control 14, 16, 21, 22, 44, 48, 51, 86, 99 reset 10, 11, 14, 2235, 47 sequence control 19, 44 settings 43, 45, 51, 53 sheet (web) control 19, 20, 24, 58 shortcut 75 slave loop 8, 48, 70, 85 88 spinning (fibers) control 19 startup control 16 static mixer control 19, 36, 38 supervisory control 7 temperature control 14, 24, 27, 28, 29, 35, 38, 48, 52 web control 19, 24, 58 window of allowable gains 22, 47 Ziegler-Nichols 21, 48 tuning methods 1, 16, 4762
U
update time of algorithm 95, 100, 101 upset control (see also disturbance) 52, 53, 55, 60, 82, 85, 86, 89, 91, 95, 97
INDEX
111
V
valve actual position 57 actuator 66, 71 ball 66, 71 butterfly 12, 36, 66, 71 column control 70 compressor control 66, 70 dead band 2, 19, 20, 29, 33, 47, 53, 60, 64, 71, 73 dead time 47, 53, 55, 56, 58, 60 deadband 48, 51, 55 dynamic classes 66, 69 fail-open 4, 5, 6 level control 63, 70, 71 maintenance 64, 71, 72 pH control 70, 78 positioner 6471 pressure control 66, 71 resolution 27, 29, 71 response time 66, 67, 68, 69 rotary 66, 70, 71 shaft design 66, 68, 71, 73 sliding stem (globe) 71 split range 70 stick-slip 31, 64, 92, 97 temperature control 70, 71 valve characteristic 12, 22, 31, 36, 37, 71, 73, 85 valve dead time 71, 73 valve positioner 4, 6471 valve resolution 28, 64 valve size 11
valve specification 66 variability 1, 2, 16, 19, 27, 97 variable controlled 11, 37, 80 manipulated 3, 9, 11, 22, 28, 31, 36, 39, 40 process 2, 3, 8, 9, 11, 14, 16, 19, 27, 31, 36, 39, 51, 57, 58, 60, 78, 80 variable speed drive (VSD) 3, 36
W
waves pressure 89, 91 web control tuning 19, 24, 58 window of allowable gains tuning 22, 47, 99, 100
Z
Ziegler-Nichols tuning 21, 48
112
INDEX