You are on page 1of 150

Effective Use of Measurements, Valves, and PID Controllers

ISA Edmonton Conference 4-18-2012


Standards Certification Education & Training Publishing Conferences & Exhibits

Presenter
Greg is a retired Senior Fellow from Solutia/Monsanto and an ISA Fellow. Greg was an adjunct professor in the Washington University Saint Louis Chemical Engineering Department 2001-2004. Presently, Greg contracts as a consultant in DeltaV R&D via CDI Process & Industrial and is a part time employee of Experitec and MYNAH. Greg received the ISA Kermit Fischer Environmental Award for pH control in 1991, the Control Magazine Engineer of the Year Award for the Process Industry in 1994, was inducted into the Control Process Automation Hall of Fame in 2001, was honored by InTech Magazine in 2003 as one of the most influential innovators in automation, and received the ISA Life Achievement Award in 2010. Greg is the author of 20 books on process control, his most recent being Advanced Temperature Measurement and Control. Greg has been the monthly Control Talk columnist for Control magazine since 2002 and has started a Control Talk Blog. Gregs expertise is available on the Control Global and Emerson modeling and control web sites: http://community.controlglobal.com/controltalkblog http://modelingandcontrol.com/author/Greg-McMillan/

Resources

2005

2010

2011

Top Ten Concepts

(1) - Delay
Without deadtime I would be out of a job Fundamentals

Goals

A more descriptive name would be total loop deadtime. The loop deadtime is the amount of time for the start of a change to completely circle the control loop and end up at the point of origin. For example, an unmeasured disturbance cannot be corrected until the change is seen and the correction arrives in the process at the same point as the disturbance. Process deadtime offers a continuous train of values whereas digital devices and analyzers offer non continuous data values at discrete intervals, these delays add a phase shift and increase the ultimate period (decrease natural frequency) like process deadtime.

Sources

Minimize delay (the loop cannot do anything until it sees and enacts change)
Pure delay from process deadtimes and discontinuous updates
Piping, duct, plug flow reactor, conveyor, extruder, spin-line, and sheet transportation delays (process deadtimes set by mechanical design - remaining delays set by automation system design) Digital device scan, update, reporting, and execution times (0.5T) Analyzer sample processing and analysis cycle time (1.5T) Sensitivity-resolution limits Backlash-deadband Mixing, column trays, dip tube size and location, heat transfer surfaces, and volumes in series (process lags set by mechanical design - remaining lags set by automation system design) Thermowells Electrodes Transmitter damping Signal filters

Equivalent delay from lags


Top Ten Concepts

(2)- Speed
Speed kills - (high speed processes and disturbances and low speed control systems can kill performance) Fundamentals
The rate of change in 4 deadtime intervals is most important. By the end of 4 deadtimes, the control loop should have completed most of its correction. Thus, the short cut tuning method (near-integrator) is consistent with performance objectives. Make control systems faster and make processes and disturbances slower Control system
PID tuning settings (gain, reset, and rate) Slewing rate of control valves and velocity limits of variable speed drives Steps - Batch operations, on-off control, manual actions, SIS, startups, and shutdowns Oscillations - limit cycles, interactions, and excessively fast PID tuning Ramps - reset action in PID Degree of mixing in volumes due to agitation, boiling, mass transfer, diffusion, and migration

Goals

Sources
Disturbances

Process

Top Ten Concepts

(3) - Gain
All is lost if nothing is gained Fundamentals
Gain is the change in output for a change in input to any part of the control system. Thus there is a gain for the PID, valve, disturbance, process, and measurement. Knowing the disturbance gain (e.g. change in manipulated flow per change in disturbance) is important for sizing valves and feedforward control.

Goals

Sources

Maximize control system gains (maximize control system reaction to change) and minimize process and disturbance gains (minimize process reaction to change).

PID controller gain Inferential measurements (e.g. temperature change for composition change in distillation column) Slope of control valve or variable speed drive installed characteristic (inherent characteristic & system loss curve) Measurement calibration (100% / span). Important where accuracy is % of span Process design Attenuation by upstream volumes (can be estimated) Attenuation by upstream PID loops (transfer of PV variability to controller output)

For a discussion of unifying concepts check out Deminar #9 Process Control Improvement Primer Sept 8, 2010 Recording
Go to Deminars under Archives heading on top of web page

http://modelingandcontrol.com/author/Greg-McMillan/

Top Ten Concepts

(4) - Resonance
Dont make things worse than they already are Fundamentals
Oscillation period close to ultimate period can be amplified by feedback control

Goals
Make oscillation period slower or control loop faster

Sources
Control loops in series with similar loop deadtimes (e.g. multiple stage pH control) Control loops in series with similar tuning and valve stiction and backlash Day to night ambient changes to slow loops (e.g. column temperature control)

Top Ten Concepts

(4) - Resonance
For all of you frequency response and Bode Plot Fans

Log of Ratio of closed loop amplitude to open loop amplitude

resonance (amplification) of disturbances amplitude ratio is proportional to ratio of break frequency lag to disturbance period
1 1

no attenuation of disturbances

Faster Tuning

Ultimate Period 1 no better than manual worse than manual

Log of ratio of disturbance period to ultimate period improving control

Top Ten Concepts

(5) Attenuation
If you had a blend tank big enough you would not need control Fundamentals
Attenuation increases as the volume of the blend tank increases and the ultimate period of the control loop decreases.

Goals
Maximize attenuation by increasing volume and mixing and making loops faster

Sources
Mixed volume size and degree of mixing Control loop speed

Top Ten Concepts

(5) Attenuation

The attenuation of oscillations can be estimated from the expression of the Bode plot equation for the attenuation of oscillations slower than the break frequency where (f) is the filter time constant, electrode or thermowell lag, or a mixed volume residence time

Af = Ao *

to 2 f

Equation is also useful for estimating original process oscillation amplitude from filtered oscillation amplitude to better know actual process variability (measurement lags and filters provide a attenuated view of real world)

Top Ten Concepts

(6) Sensitivity- Resolution


You cannot control what you cannot see Fundamentals
Minimum change measured or manipulated - once past sensitivity limit full change is seen or used but resolution limit will quantize the change (stair step where the step size is the resolution limit). Both will cause a limit cycle if there is an integrator in the process or control system.

Goals
Improve sensitivity and resolution

Sources
In measurements, minimum change detected and communicated (e.g. sensor threshold and wireless update trigger level) and quantized change (A/D & D/A) Minimum change that can be manipulated (e.g. valve stick-slip sensitivity and speed resolution)

Top Ten Concepts

(6) Sensitivity- Resolution


Sensitivity
1.00% 0.09% 0.08% 0.07% Process Variable and Measurements

x o o x o x

0.06% 0.05% 0.04% 0.03%


True Process Variable

o o x x

o x o o x
Actual Transmitter Response

0.02% 0.01%

o x o x
1 2

o 0.00% x 0

4 6 5 Digital Updates

10

Top Ten Concepts

(6) Sensitivity- Resolution


Resolution
1.00% 0.09% 0.08% 0.07% Process Variable and Measurements 0.06% 0.05% 0.04% 0.03% 0.02% 0.01%
True Process Variable

x o o x o x o x o x

x o o x o o x
1

Actual Transmitter Response

o x

x
2 3 4 6 5 Digital Updates 7

o 0.00% x 0

10

Top Ten Concepts

(7) Hysteresis-Backlash
No problem if you dont ever change direction Fundamentals
Hysteresis is the bow in a response curve between full scale traverses in both directions. Normally much smaller and less disruptive than backlash Backlash (deadband) is minimum change measured or manipulated once the direction is changed - once past backlash-deadband limit you get full change Both Hysteresis and backlash will cause a limit cycle if there are 2 or more integrators in the process or control system.

Goals
Minimize backlash and deadband

Sources
Pneumatic instrument flappers, links, and levers (hopefully these are long gone) Rotary valve and damper links, connections, and shaft windup Variable speed drive setup parameter to eliminate hunting and chasing noise

Top Ten Concepts

(7) Hysteresis-Backlash
Hysteresis
100%

x 0 x x x x x x
True Process Variable x

90% 80% 70% 60% 50% 40% 30% 20% 10% 0% x 0 0

Process Variable and Measurements

x
Actual Transmitter Response

x
0

4 6 5 Digital Updates

10

Top Ten Concepts

(7) Hysteresis-Backlash
Backlash (Deadband)
Deadband is 5% - 50% without a positioner ! Deadband

Pneumatic positioner requires a negative % signal to close valve

Stroke (%)

Digital positioner will force valve shut at 0% signal

Signal (%)

Top Ten Concepts

(8) Repeatability-Noise
The best thing you can do is not react to noise Fundamentals
Noise is extraneous fluctuations in measured or manipulated variables Repeatability is difference in readings for same true value in same direction Often repeatability is confused with noise

Goals
Minimize size and frequency of noise and do not transfer noise to process

Sources
Noise
Bubbles Concentration and temperature non-uniformity from imperfect mixing Electromagnetic interference (EMI) Ground loops Interferences (e.g. sodium ion on pH electrode) Velocity profile non-uniformity Velocity impact on pressure sensors

Repeatability
Sensitivity and resolution

Top Ten Concepts

(8) Repeatability-Noise
Official definition of repeatability obtained from calibration tests
100% 90% 80% Process Variable and Measurements 70% 60% 50% 40% 30% 20% 10% 0% 0 0 0 0
True Process Variable

0 0 0 0 0 0 0
Actual Transmitter Response

Repeatability

4 6 5 Digital Updates

10

Top Ten Concepts

(8) Repeatability-Noise
Practical definition of repeatability as seen on trend charts
100% 90% 80% 70% Process Variable and Measurements 60% 50% 0 40% x 30% 20% 10% 0% 0
True Process Variable

0 x
Actual Transmitter Response

0 x

x x x Repeatability

4 6 5 Digital Updates

10

Top Ten Concepts

(8) Repeatability-Noise
Noise as seen on trend charts
100% 90% 80% 70% Process Variable and Measurements 60% 50% 0 x 40% 30% 20% 10% 0%
True Process x Variable

x 0
Actual Transmitter Response

x 0

x 0 Noise

0 x

x 0

0 x

x 0

0 x

4 6 5 Digital Updates

10

Top Ten Concepts

(9) Offset-Drift
There is always an offset and drift, it is matter of size and consequence Fundamentals
The deviation of the peak in the distribution of actual values from true value Drift shows up as a slowly changing offset Minimize offset and nonlinearity by smart transmitters and sensor matching and smart tuned digital positioners with accurate internal closure member feedback Manufacturing tolerance, degradation, de-calibration, and installation effects (process and ambient conditions and installation methods and location)

Goals

Sources

Top Ten Concepts

(9) Offset-Drift
Offset (Bias)
100% 90% 80% 70% Process Variable and Measurements 60% 50% 40% 30% 20% 10% 0% 0 0 0 0
True Process Variable

0 0 0 0 0 0 0 0

x
Bias

x
Actual Transmitter Response

x
2 3 4 6 5 Digital Updates 7 8 9 10

x
1

Top Ten Concepts

(9) Offset-Drift
Drift (Shifting Bias)
100% 90% 80% Process Variable and Measurements 70% 60% x 50% 0 40% 30% 20% 10% 0% 0 x
True Process Variable

0 x

0 0 0 Drift = 1% per month x

Actual Transmitter Response

5 Months

10

Top Ten Concepts

(10) Nonlinearity
Not a problem if the process is constant, but then again if the process is constant, you do not need a control system Fundamentals
While normally associated with a process gain that is not constant, in a broader concept, a nonlinear system occurs if a gain, time constant, or delay changes anywhere in the loop. All process control systems are nonlinear to some degree. Goals Minimize nonlinearity by process and equipment design (e.g. reagents and heat transfer coefficients), smart transmitters and sensor matching, valve selection, signal characterization, and adaptive control

Sources
Control valve and variable speed drive installed characteristics (flat at high flows) Process transportation delays (inversely proportional to flow) Digital and analyzer delays (loop delay depends upon when change arrives in discontinuous data value update interval) Inferred measurement (conductivity or temperature vs. composition plot is a curve) Logarithmic relationship (glass pH electrode and zirconium oxide oxygen probe) Process time constants (proportional to volume and density)

Top Ten Concepts

(10) Nonlinearity
100% 90% 80% 70% Process Variable and Measurements 60% 50% 40% 30% 20% 10% 0% x 0 0 0
True Process Variable

x 0
0 0

x x
0 0 0 0

x
Nonlinearity

x
Actual Transmitter Response

x
0 x

x x

4 6 5 Digital Updates

10

Top Ten Concepts

Accuracy and Precision

Bias

Frequency of Measuremen ts

True Value Measured Values

Frequency of Measurements

Bias

Measured Values

True Value

True and Measured Good Accuracy and Good Precision Values


2-Sigma 2-Sigma

True and Good Accuracy and Poor Precision Measured Values


2-Sigma 2-Sigma Bias

Frequency of Measurements

Measured Values

True Value

Frequency of Measurements

Bias

Measured Values

True Value

True and Measured Poor Accuracy and Good Precision Values


2-Sigma2-Sigma

True and Measured Poor Accuracy and Poor Precision Values


2-Sigma 2-Sigma

Measurements

Sensor Selection Objectives


Maximize threshold sensitivity, resolution, and repeatability reducing undetected and extraneous changes over the whole operating range. The sensitivity of RTDs is more than an order of magnitude better than TCs. The sensitivity of Coriolis meters are more than an order of magnitude greater than vortex meters. Differential head meters may have good repeatability but suffer from noise plus uncertainty from pipe inside diameter and roughness and orifice edge wear. Minimize nonlinearity that cannot be corrected by a smart transmitter. RTDs can be consistently linearized by the use of Callendar-Van Dusen equation eliminating the error when sensors are changed. The interchangeability error for TCs is much greater than RTDs due to greater nonlinearity and unpredictability. Minimize maintenance by eliminating drift by the use of the aforementioned advances in smart transmitters and sensors and by eliminating impulse (sensing) lines, sample lines, wires, and terminations. In-line flow meters, close coupled differential pressure and pressure transmitters, in-situ probes, retractable insertion pH electrodes, and wireless transmitters greatly reduce the time spent analyzing real or perceived problems. Analyzer shelters should be used for sophisticated atline analyzers. For maximum on-stream time and reliability use middle signal selection of 3 measurements that is capable of inherently riding out a single failure of any type and eliminating unnecessary maintenance by recognition of relative performance. The use of middle signal selection is particularly important for pH.
27

Measurements

Sensor Selection Objectives


Minimize drift eliminating loss of process knowledge, running at the wrong operating point, and the need for recalibration. Drift results in an offset of the measured value from the true value. An offset can be automatically corrected by upper level loop in cascade or model predictive control. Thus loops with a cascade or remote cascade setpoint are less affected by drift. However, knowledge of the process is degraded. For example, while the offset in a flow measurement is corrected by a setpoint change in a cascade loop, the error messes up material balances (process flows), energy balances (utility flows), and online process metrics for process analysis. Flow ratio control must be corrected by a composition loop for flow measurement drift. For custody flow meters, an offset is unacceptable. Smart transmitters and advances in sensor design have in many cases reduced drift and the effect of extraneous process and ambient conditions on installed accuracy by an order of magnitude. Drift in analytical, temperature, or pH is particularly troublesome because these are upper level loops often closely related to product quality. Operations may have adjusted setpoints to compensate for offsets in upper level loops but such adjustments are ad hoc and undone by the replacement of a sensor or transmitter. The drift of TCs is unpredictable and can be one to two orders of magnitude larger than the drift of RTDs. The drift of new pH electrode designs from sterilization and high temperature exposure has been greatly reduced. Solid state pH reference electrodes tend to drift for hours to days after installation due slow equilibration of the reference and high reference junction potential.
28

Measurements

Sensor Location Objectives


Maximize the detection of changes in the process from disturbances and setpoint changes. For composition, pH, and temperature choose the location that shows the largest change in both directions for a positive and negative change in the ratio of the manipulated flow to the feed flow realizing there are cross sectional and longitudinal temperature and concentration profiles in pipes and equipment. Areas behind baffles or near the surface or bottom of an agitated vessel or at the outlet of inline equipment may not be as well mixed. Temperature and pH sensor and analyzer sample tip should be near the center of pipe and extend well past equipment walls. Packed and fluidized bed equipment may have uneven composition and temperature distribution from channeling of flow. A series of temperature sensors across a fluidized bed at several longitudinal distances is often necessary with averaging and signal selection to get a representative measurement and prevent hot spots. The insertion length of the thermowell should be more than 5 times the diameter of the thermowell to minimize thermal conduction errors from heat conduction along the thermowell wall between the tip and process connection. Calculations should be run with program supplied by manufacturer on the allowable maximum length in terms of preventing vibration failure from wake frequencies. Resistance temperature detectors (RTDs) are more prone to vibration failure than thermocouples (TCs). Programs today may only be looking at thermowell failure. The tip of a pH electrode must be pointed down at a 30 to 60 degree angle to prevent the internal bubble in the glass electrode from lodging in the tip.
29

Measurements

Sensor Location Objectives


Minimize noise over the whole operating range reducing extraneous changes. The real definition of measurement rangeability must take into consideration the increase of noise at extremes of the range. Noise at low flow is the principle limitation to the rangeability of a differential head meter. Sufficient straight runs upstream and downstream have a critical effect. Purging can cause transients from changes in the process pressure and purge flow. A location with good mixing and a single phase will minimize fluctuations in temperature and concentration and the disruption of bubbles or solids in liquids and liquid droplets in gasses hitting temperature or pH sensors or getting into sample lines for analyzers or into impulse lines for pressure and level measurements. Pressure probes in high velocity gas streams and furnaces must be designed to minimize momentum and vacuum effects. Sensors and sample probes tips should not be on pump suctions. The spikes from ground potentials and electromagnetic interference (EMI) can be eliminated by wireless transmitters. RTDs are less susceptible to EMI than TCs. Minimize sensor deadtime and lag by reducing transportation delays and increasing velocities. The transportation delay in a pipe or sample line is the volume divided by the flow rate or the distance divided by the velocity. The lag time of temperature and pH sensors decreases with velocity by an increase in the heat transfer and mass transfer coefficient. Fouling also decreases with velocity. A liquid velocity of 5 to 7 fps has been shown to greatly reduce fouling of probes. Velocities less than 1 fps significantly increase the lag time of sensors.
30

Measurements

Inline Flow Meter Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for inline meters (Coriolis, magnetic, turbine, and vortex meters). The following list assumes the materials of construction have been properly specified and that the meter will work safely and reliably with acceptable accuracy for the maximum possible temperature. For more information on flow measurement see the March 2012 Control Talk column Going with the Flow http://www.controlglobal.com/articles/2012/mcmillan-wienergoing-with-flow.html For a detailed understanding see Chapters 4 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm&P roductID=10764 Do the meters threshold sensitivity, repeatability, and drift meet application requirements? Does the meters rangeability and permanent pressure loss meet application requirements?
Maximum rangeabiblity:15:1 vortex, 50:1 turbine, 100:1 magmeter, 200:1 Coriolis (actual rangeability depends sizing)

Is the permanent pressure loss for the meter size acceptable? Do O-rings and gaskets meet worst case corrosive and temperature operating conditions? Are gaskets not projecting into flow stream? Is meter centerline concentric with piping centerline? Do the upstream and downstream straight run lengths for vortex meters meet the ASME guideline for 0.8 beta ratio flow tubes (e.g. 20 pipe diameters upstream for long bends)? Do the upstream and downstream straight run lengths for turbine meters meet the ASME guideline for 0.6 beta ratio flow tubes (e.g. 10 pipe diameters upstream for long bends)? Do the upstream and downstream straight run lengths for magnetic flow meters meet the ASME guideline for 0.4 beta ratio flow tubes (e.g. 5 pipe diameters upstream for long bends)?

31

Measurements

Inline Flow Meter Checklist


Have asymmetric profiles and swirling been minimized by piping design and straightening vanes by special conditioners for profile distortion for turbine and vortex meters? Is the maximum kinematic viscosity less than the maximum for vortex meters? Is the maximum and minimum velocity within limits for magnetic, turbine, and vortex meters? Is the minimum Reynolds number greater than the minimum for vortex meters? Are flow meters in vertical lines installed with flow up? Is maximum vacuum (e.g. after steam cleaning) less than maximum for lined magnetic meters? Is the minimum fluid conductivity (e.g. low water) greater than minimum for magnetic meters? Are there no bubbles in magnetic, turbine, and vortex meters? Is maximum % bubbles and solids less than maximum permitted by Coriolis meter software? Is particle abrasion negligible for U-tube Coriolis, magnetic, turbine, and vortex meters? Is particle concentration high enough to require a straight tube Coriolis meter? Is the minimum fluid lubricating effect greater than minimum for turbine meter bearings? Is the fluid always a liquid (e.g. no flashing) for magnetic meter? Are Coriolis and magnetic flow meters completely full at zero flow? Is signal grounded to zero when no flow to prevent sloshing errors? Is maximum piping vibration less than the maximum permitted by Coriolis and vortex meters (e.g. is there a vibration damper for isolation)? Are bubbles or solids not trapped in U-tube Coriolis, magnetic, turbine, and vortex meters? Are magnetic meters properly grounded to earth and for lined pipe are there ground straps? Do electrical connections and enclosure meet electrical area classification and codes in plant?
32

Measurements

Effect of Transmitter Damping or Filter for Surge

m m

Measurements

Pressure and DP Measurement Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for automation component. The following list assumes the materials of construction have been properly specified and that the sensor will work safely and reliably with acceptable accuracy for the maximum possible temperature. For a detailed understanding see Chapters 3-5 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm&P roductID=10764 and the Control Global Knowledge Centers Flow Forum http://www.controlglobal.com/knowledge_centers/flow_forum/index.html?DCMP=ILCmainnav_to_ffkc For gas, is transmitter mounted above process connection to prevent accumulation of liquids? For liquid, is the transmitter below process connection to prevent trapping gases? Do impulse lines have vent and drain valves? Do impulse lines have a continuous slope with no bends or smooth long radius bends? Does a DP have an equalization valve? Does process pressure connection and probe design prevent appreciable velocity head? Do transmitter and impulse lines need freeze protection? If heat tracing is used, are high temperatures prevented that could alter fluid composition in impulse lines or transmitter (e.g. vaporization, reactions, or formation of tars and polymers)? For plugging services, can impulse lines be purged or eliminated?

34

Measurements

Pressure and DP Measurement Checklist


For purged impulse lines is purge flow and pressure high enough? For purged impulse lines is purge flow and pressure adjustable and indicated? For purged impulse lines is liquid purge needed to eliminate transients from compressibility of purge during fast static pressure disturbances and to prevent solids build-up at bubbler tip? Can impulse lines be eliminated by direct mount of transmitter or use of capillary system? Should an extended diaphragm be used to minimize fouling of a direct mounted level DP? Does diaphragm area need to be increased to increase threshold sensitivity? Does diaphragm area need to be decreased to increase speed of response? Is capillary length minimized to increase speed of response? Are the capillary systems at the same temperature (e.g. sun versus shade)? For DP measurement with low static pressure, can DP be computed from dual transmitters? Can a smart transmitter be used to detect plugged impulse lines? Can wireless transmitters be used to provide portability for process troubleshooting? Do electrical connections and enclosure meet electrical area classification and codes in plant?

35

Measurements

Radar Level Measurement Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for non-contacting and guide wave radar. The following list assumes the materials of construction have been properly specified and that the sensor will work safely and reliably with acceptable accuracy for the maximum possible temperature. For more information see the Chemical Processing July 2011 article Making the most of Radar http://www.chemicalprocessing.com/articles/2011/make-the-most-of-radar.html and the Control magazine February 2012 Control Talk Column Radar Love http://www.controlglobal.com/articles/2012/level-measurement-radar-love.html For a detailed understanding see Chapters 5 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm&P roductID=10764 Is the dielectric constant of the liquid too low for even guided wave radar? Is software available to improve signal strength and ignore false echos? If foam is present, do you want to detect surface of foam or surface of liquid? Is a stilling well needed to reduce turbulence and foam? Will the return signal be affected by gaps/holes in the stilling well? Will tank bottom reflect signals causing false returns? Is the non-contacting beam or guided wave radar probe located away from vessel center, agitator, coils, and inlet streams? Is the path open enough for non-contacting radar?

36

Measurements

Radar Level Measurement Checklist


Is the nozzle large enough for the cone (horn) antenna preferred for non-contacting radar? Will the nozzle neck be too long interfering with the horn antenna? For tall tanks and low dielectric, is the antenna large enough to handle the range and dielectric? Is the antenna size matched to stilling well size? Is high frequency radar needed for the non-contacting beam to be narrow enough for a tall tank and to avoid vessel internals? Is high frequency radar needed for recessed antenna or full port valve in nozzle? Is there too much vapor, foam, or condensation for high frequency radar? Will highest level including foam and swell be sufficiently below the radar antenna? Is the fluid too viscous, sticky, abrasive, or corrosive for guided wave radar? Is the dielectric constant so low guided wave radar is needed? Is the signal to noise ratio so low guided wave radar is needed? Is the surface so slanted a reflected signal to a non-contact device is unlikely requiring the use of guided wave radar? Is the minimum clearance between guided-wave probe and vessel internals > 4 inches? Is the stilling well diameter > 4 inches for guided wave radar? Do coatings and deposits require the use of a single lead guided wave probe? Do obstructing objects require the use of coaxial guided wave probes? Does a low dielectric constant require the use of coaxial guided wave probes? Does a viscous non-coating fluid require twin guided wave probes?
37

Measurements

Radar Level Measurement Checklist


Is the vessel so tall, flexible guided wave probes are needed for level measurement range? Does the guided wave radar probe need to be anchored to vessel bottom to reduce sway? Does a DP need to be used for low level measurement due to erratic surface when vessel is nearly empty (e.g. voids and vortexes)? Any need for separate lightning arresters on top of the tank? Is tank properly grounded to minimize noise and transformer effect? If an electronic calibration simulation is prepared for installation, will it match actual conditions? Does the electronic housing allow removal of components for repairs while in service? Do electrical connections and enclosure meet electrical area classification and codes in plant?

38

Measurements

Sensor Accuracy, Range, Output, and Size


Criteria Repeatability (oC) Drift (oC/year) Sensitivity (oC) Temperature Range (oC) Signal Output (volts) Power (watts at 100 ohm) Minimum Diameter (mm) Thermocouple 1-8 1 - 20 0.05 200 - 2000 0 - 0.06 1.6 x 10-7 0.4 Platinum RTD 0.02 - 0.5 0.01 - 0.1 0.001 200 850(1) 1-6 4 x 10-2 2 Thermistor 0.1 - 1 0.01 - 0.1 0.0001 100 - 300 1-3 8 x 10-1 0.4

(1) RTD sensor sheath insulation errors can be significant for temperatures above 400oC Operations may change a setpoint to account for the offset from drift. However the drift is unpredictable and the replacement of the sensor causes a error in operating point.

39

Measurements

Bare Element Speed of Response

Bare Sensing Element Type Thermocouple 1/8 inch sheathed and grounded Thermocouple 1/4 inch sheathed and grounded Thermocouple 1/4 inch sheathed and insulated Single Element RTD 1/8 inch Single Element RTD 1/4 inch Dual Element RTD 1/4 inch

Time Constant (seconds) 0.3 1.7 4.5 1.2 5.5 8.0

40

Measurements

Thermowell Speed of Response


Process Fluid Type Gas Gas Gas Gas Gas Gas Liquid Liquid Liquid Liquid Liquid Liquid Liquid Fluid Velocity (feet per second) 5 50 150 150 150 150 0.01 0.1 1 10 10 10 10 Annular Clearance (inches) 0.04 0.04 0.04 0.04 0.02 0.005 0.01 0.01 0.01 0.01 0.01 0.055 0.005 Annular Fill Type Air Air Air Oil Air Air Air Air Air Air Oil Air Air Time Constants (seconds) 107 and 49 93 and 14 92 and 8 22 and 7 52 and 9 17 and 8 62 and 17 32 and 10 26 and 4 25 and 2 7 and 2 228 and 1 4 and 1

41

Measurements

Thermocouple Advantages - Real or Perceived?


There are many stated advantages for thermocouples, but if you examine them closely you realize they are not as important as perceived for industrial processes. Thermocouples are more rugged than RTDs. However, the use of good thermowell or protection tube design and installation methods makes an RTD sturdy enough for even high-velocity stream and nuclear applications. Thermocouples appear to be less expensive until you include cost of extension lead wire and cost of process variability from less sensor sensitivity and repeatability.

42

Measurements

Thermowell Assembly and Mounting

43

Measurements

Thermowell Conductivity & Length Effect on Error

44

Measurements

Length and Velocity Effects on Vibration Failure

45

Measurements

Fluid Heat Transfer & Mixing Effect on Error

Higher velocity increases heat transfer coefficient

Thermowell tip should be in center of pipe to reduce cross sectional temperature profile error from wall and mixing with enough length to reduce conduction error

46

Measurements

Heat Exchanger and Static Mixer Installation

flush

elbow Heat Exchanger or Static Mixer TE 1-1

25 pipe diameters drain

An optimum location provides good velocity, sufficient mixing, and minimal time delay Transportation delay is volume between outlet of equipment and sensor divided by flow

47

Measurements

Desuperheater Installation
For Desuperheaters, the distance from the outlet to the thermowell depends upon the performance of the Desuperheater, process conditions, and the steam velocity. To give a feel for the situation there are some simple rules of thumb for the straight piping length (SPL) to the first elbow and the total sensor length (TSL). Actual SPL and TSL values depend on quantity of water required with respect to the steam flow rate, temperature differential between water and steam, water temperature, pipe diameter, steam velocity, model, type, etc. and are computed by software programs. SPL (feet) = Inlet steam velocity (ft/s) * 0.1 (seconds residence time) TSL (feet) = Inlet steam velocity (ft/s) * 0.2 (seconds residence time) Typical values for the inlet steam velocity, upstream of the Desuperheater range from 25350 ft/s (7.6 to 107 m/sec). Below 25 ft/s there is not enough motive force to keep water suspended in steam. Velocities higher than 350 ft/s cause the Desuperheater to vibrate and damage the unit to the point where it breaks apart

48

Measurements

Temperature Measurement Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for resistance temperature detectors (RTD) and thermocouples (TC). The following list assumes the materials of construction have been properly specified and that the sensor will work safely and reliably with acceptable accuracy for the maximum possible temperature. For more info see Chapters 1-2 in the ISA book Advanced Temperature Measurement and Control http://www.isa.org/Template.cfm?Section=Find_Books1&template=/Ecommerce/ProductDisplay.c fm&ProductID=10880 Is the distance from the equipment outlet (e.g. heat exchanger exit) and sensor at least 25 pipe diameters for single phase to promote mixing (recombination of outlet streams) Is the transportation delay (distance/velocity) from the equipment outlet (e.g. heat exchanger exit) to the sensor less than 3 seconds? Does the distance from the desuperheater outlet to the first elbow provide a residence time (distance/velocity) that is greater than 0.1 sec? Does the distance from the desuperheater outlet to the sensor provide a residence time (distance/velocity) that is greater than 0.2 sec? Is a RTD used for temperatures below 400 degC to improve threshold sensitivity, drift, and repeatability by more than a factor of ten compared to TC if vibration is not excessive? For RTDs operating at temperatures above 400 degC, is length minimized and sheath diameter maximized reduce insulation error? For RTDs operating at temperatures above 600 degC, is sensing element hermitically sealed and dehydrated to prevent increase in platinum resistance from oxygen and hydrogen dissociation
49

Measurements

Temperature Measurement Checklist


For TCs above 600 degC is decalibration error from changes in composition of TC minimized by choice of sheath and TC type? For TCs above 900 degC is sheath material compatible with TC type? For TCs above the temperature limit of sheaths, is the ceramic material with best conductivity and design used to minimize measurement lag time? For TCs above the temperature limit of sheaths with gaseous contaminants or reducing conditions, is primary (outer) and secondary (inner) protection tubes designed to prevent contamination of TC element and still provide a reasonably fast response? In furnaces and kilns does location and design minimize radiation and velocity errors? Is the immersion length long enough to minimize heat conduction error (e.g. L/D > 5)? Is the immersion length short enough to prevent vibration failure (e.g. L/D < 20)? Is the velocity fast enough to minimize coatings (e.g. > 5 fps) Is the velocity fast enough to provide a fast response (e.g. > 0.5 fps) For pipes, is the tip near the centerline? For vessels, does the tip extend sufficiently past the baffles (e.g. L/D > 5)? For columns, does the tip extend sufficiently into tray or packing (e.g. L/D > 5)? For TC, is it more important to minimize noise by using ungrounded junction or to minimize sensor element lag time by grounded junction?

50

Measurements

Temperature Measurement Checklist


To increase RTD reliability, are dual RTD elements used except when vibration failure is more likely due to smaller gauge? To increase TC reliability, does the sensor have dual isolated junctions? For maximum reliability, are 3 separate thermowells with middle signal selection used? Does sensor fit tightly in thermowell to minimize measurement lag from air gap (e.g. annular clearance < 0.01 inch)? Is an oil fill used that will not form tars or sludge at high temperature in thermowell with tip pointed down to minimize measurement lag? Is premium TC extension wire used to minimize measurement uncertainty? Is 4 wire RTD lead wire used to minimize measurement uncertainty? Are head mounted temperature transmitters used for accessible locations to eliminate extension wire and lead wire errors and reduce noise? Are wireless head mounted transmitters used to provide portability of measurement for process control improvement and to reduce wiring installation and maintenance costs? Are proper linearization tables used in transmitter? Do electrical connections and enclosure meet electrical area classification and codes in plant?

51

Measurements

Top Ten Signs of a Rough pH Startup


Food is burning in the operators kitchen The only loop mode configured is manual An operator puts his fist through the screen You trip over a pile of used pH electrodes The technicians ask: what is a positioner? The technicians stick electrodes up your nose The environmental engineer is wearing a mask The plant manager leaves the country Lawyers pull the plugs on the consoles The president is on the phone holding for you

52

Measurements

Extraordinary Sensitivity and Rangeability


pH 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ` Hydrogen Ion Concentration 1.0 0.1 0.01 0.001 0.0001 0.00001 0.000001 0.0000001 0.00000001 0.000000001 0.0000000001 0.00000000001 0.000000000001 0.0000000000001 0.00000000000001 Hydroxyl Ion Concentration 0.00000000000001 0.0000000000001 0.000000000001 0.00000000001 0.0000000001 0.000000001 0.00000001 0.0000001 0.000001 0.00001 0.0001 0.001 0.01 0.1 1.0

Hydrogen and Hydroxyl Ion Concentrations in a Water Solution at 25oC aH = 10


pH

pH = - log (aH) aH = cH cH cOH = 10


pKw

aH = hydrogen ion activity (gm-moles per liter) cH = hydrogen ion concentration (gm-moles per liter) cOH = hydroxyl ion concentration (gm-moles per liter) = activity coefficient (1 for dilute solutions) pH = negative base 10 power of hydrogen ion activity pKw = negative base 10 power of the water dissociation constant (14.0 at 25oC)

53

Measurements

Effect of Water Dissociation (pKw) on Solution pH

pH 8

pH 9

pH 10

Measured pH

pH 7.5 pH 7 pH 6.5 pH 6

pH 5

54

Measurements

Effect of Sensor Drift on Reagent Calculations


10 pH
Feedforward pH Error

Influent pH

pH Set Point

Sensor Drift

4
Reagent to Feed Flow Ratio

The error in a pH feedforward calculation increases for a given sensor error as the slope of the curve decreases. This result Combined with an increased likelihood of Errors at low and high pH means feedforward Could do more harm than good when going from the curves extremes to the neutral region.

Flow feedforward (ratio control of reagent to influent flow) works well for vessel pH control if there are reliable flow measurements with sufficient rangeability
Feedforward Reagent Error

Feedforward control always requires pH feedback correction unless the set point is on the flat part of the curve, use Coriolis mass flow meters and have constant influent and reagent concentrations

55

Measurements

Double Junction Combination pH Electrode


Em W Er R4 solution ground silver-silver chloride internal electrode E4 W R5 second junction potassium chloride (KCl) electrolyte in salt bridge between junctions R6 E5 E3 R2 E2 R1 E1 R9 W Ii W R8 R7 R10 W W W primary junction silver-silver chloride internal electrode 7 pH buffer Process ions try to migrate into porous reference junction while electrolyte ions try to migrate out W W R3

Measurement becomes slow from a loss of active sites or a thin coating of outer gel

Nernst Equation assumes inside and outside gel layers identical

inner gel layer outer gel layer Process Fluid

High acid or base concentrations can affect glass gel layer and reference junction potential Increase in noise or decrease in span or efficiency is indicative of glass electrode problem Shift or drift in pH measurement is normally associated with reference electrode problem

56

Measurements

High Today Low Tomorrow

Most calibration adjustments chase the short term errors shown below that arise from concentration gradients from imperfect mixing, ion migration into reference junction, temperature shifts, different glass surface conditions, and fluid streaming potentials. With just two electrodes, there are more questions than answers.

A B pH

B A

A B

time

57

Measurements

Middle Signal Selection Advantages


Inherently ignores single measurement failure of any type including the most insidious PV failure at set point Inherently ignores slowest electrode Reduces noise and spikes particularly for steep curves Offers online diagnostics on electrode problems
Slow response indicates coated or aged measurement electrode Decreased span (efficiency) indicates aged or dehydrated glass electrode Drift or bias indicates coated, plugged, or contaminated reference electrode or high liquid junction potential Noise indicates dehydrated measurement electrode, streaming potentials, velocity effects, ground potentials, or EMI

Facilitates online calibration of a measurement

For more Information on Middle Signal Selection see Feb 5, 2010 post http://www.modelingandcontrol.com/2010/02/exceptional_opportunities_in_p_11.html
58

Measurements

Life Depends Upon Process Conditions


Months

>100% increase in life from new glass designs for high temperatures

25 C

50 C 75 C Process Temperature

100 C

High acid or base concentrations (operation at the extremes of the titration curve) decrease life for a given temperature. A deterioration in measurement accuracy (e.g. electrode efficiency) and response time often accompanies a reduction in life.

59

Measurements

New High Temperature Glass Stays Fast

Glass electrodes get slow as they age. High temperatures cause premature aging

60

Measurements

New Design Eliminates Drift after Sterilization

New

Old #1

Old #2

61

Measurements

Horizontal Piping Arrangements

AE

flush throttle valve to adjust velocity

pressure drop for each branch must be equal to keep the velocities equal

drain

AE

AE

20 to 80 degrees
20 pipe diameters static mixer or pump

5 to 9 fps to minimize coatings 0.1 to 1 fps to minimize abrasion

The bubble inside the glass bulb can be lodged in tip of a probe that is horizontal or pointed up or caught at the internal electrode of a probe that is vertically down

AE

10 OD

AE

10 OD

AE

flush

throttle valve to adjust velocity

20 pipe diameters drain

Series arrangement preferred to minimize differences in solids, velocity, concentration, and temperature at each electrode!

62

Measurements

Vertical Piping Arrangements


throttle valve to adjust velocity throttle valve to adjust velocity

Orientation of slot in shroud coating 5 to 9 fps abrasion 0.1 to 1 fps

AE

AE

AE

AE

Series arrangement preferred to minimize differences in solids, velocity, concentration, and temperature at each electrode!
63

AE

10 OD

AE

10 OD

hole or slot

Measurements

Options for Maximum Accuracy


A spherical or hemi-spherical glass measurement and flowing junction reference offers maximum accuracy, but in practice maintenance prefers:
A refillable double junction reference to reduce the complexity of installation and the need to adjust reference electrolyte flow rate This electrode is often the best compromise between accuracy and maintainability. A solid reference to resist penetration and contamination by the process and eliminate the need to refill or replace reference particularly for high and nasty concentrations and pressure fluctuations This electrode takes the longest time to equilibrate and is more prone to junction effects but could be right choice in applications where accuracy requirements are low and maintenance is high.

Select best glass and reference electrolyte for process Use smart digital transmitters with built-in diagnostics Use middle signal selection of three pH measurements
Inherent auto protection against a failure, drift, coating, loss in efficiency, and noise (February 5, 2010 entry on http://modelingandcontrol.com/author/Greg-McMillan//)

Allocate time for equilibration of the reference electrode Use in place standardization based on a sample with the same temperature and composition as the process. If this is not practical, the middle value of three measurements can be used as a reference. The fraction and frequency of the correction should be chosen to avoid chasing previous calibrations Insure a constant process fluid velocity at the highest practical value to help keep the electrodes clean and responsive
64

Measurements

Symptoms and Causes


Slow measurement
Coated glass, aged glass, dehydrated glass, thick glass, high temperature, low pH, low velocity Dehydrated glass, pure water, low water, low temperature, poor mixing, high velocity, EMI pKa or pKw decrease with temperature (missing solution temperature compensation) Horizontal shift to right of Isopotential point due to measurement electrode type or problem Nernst MV decrease with temperature (missing electrode temperature compensation) Horizontal shift to left of Isopotential point electrode type or problem Decrease in activity of hydrogen ion from increase in ionic strength or decrease in water content Broken glass, broken wires, protective caps still on electrodes Dehydrated glass or aged glass Coated reference junction Slow equilibration of reference electrode Poisoned reference electrode or high solvent concentration
65

Noisy measurement pH decreases with temperature pH increases with temperature pH increases with salt or solvent concentration Constant 7 pH measurement Decrease in measurement range (decrease in electrode efficiency) Daily drift in measurement (change in electrode offset) Hourly drift in measurement Off-scale pH measurement

Measurements

Wireless pH Transmitters Eliminate Ground Spikes

Incredibly tight pH control via 0.001 pH wireless resolution setting still reduced the number of communications by 60% Temperature compensated wireless pH controlling at 6.9 pH set point

Wired pH ground noise spike

66

Measurements

Wireless Bioreactor Adaptive pH Control

67

Measurements

Calibration History in Probe

68

Measurements

pH Measurement Checklist
The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for automation component. The following list assumes the materials of construction have been properly specified and that the sensor will work safely and reliably with acceptable accuracy for the maximum possible temperature and pressure. For a detailed understanding see Chapter 6 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm &ProductID=10764 Do O-rings and gaskets meet worst case corrosive and temperature operating conditions? Is the best glass used for the worst case temperature, pH, and chemicals that can attack glass (e.g. general purpose, high pH, high temperature, sterilizable, and HF resistant)? For pH < 1 or > 12 would conductivity or density give a better concentration measurement? Is the best reference design and fill used for the accuracy and speed requirement and worst case temperature, low water or pure water solutions that have low conductivity, salts and chemicals concentrations that change junction potential, plug junction, and poison reference Flowing junction offers the most constant reference potential, has the fastest junction equilibration, and eliminates plugging-poisoning, but requires pressurized reservoir Aperture junctions tiny hole has lowest junction potential but is susceptible to plugging Double and triple junction references can slow down internal contamination rate Replaceable junction can fix electrode before plugging -poisoning is problem Large surface solid reference can essentially eliminate plugging, contamination , and poisoning but the junction potential may be large and slow to equilibrate
69

Measurements

pH Measurement Checklist
Is the chemical attack, premature aging from high temperature, or dehydration (non-aqueous solvents or low water concentrations) so severe that automated retractable insertion needed? Is the solution conductivity so low (e.g. condensate, boiler feedwater, deionized water) a special assembly is needed to provide low sample flow, diffuser, and electrolyte reservoir ? Can a VP connector be used to quickly locally disconnect electrode cable eliminating the need to disconnect transmitter and retract cable through conduit or flex to prevent twisting of cable? Is a smart electrode with stored calibration record available for selected electrode? Is a smart transmitter to detect glass and reference problems available? Is solution pH temperature compensation needed besides Nernst temperature compensation? Is a solution ground needed for impedance diagnostics and ground potential elimination? Can a wireless transmitter be used to get latest features and enable portability of measurement to test the best electrode and location (least deadtime and least noise-bubbles)? Is the electrode installed with tip pointing down at a 30-60o angle to prevent bubble inside tip? Are electrodes always wetted even for batching and during shutdown of continuous operations? Is middle signal selection needed to eliminate response to single failure and noise? Is stream velocity and electrode protective shroud design the best for process conditions? Velocity 5-10 fps and exposure of glass to flow helps prevent coatings Velocity 0.1-1 fps and shroud reducing flow impingement helps decrease abrasion Does the electrode tip extend into the center line of pipe and past baffles in vessel?

70

Measurements

pH Measurement Checklist
Is electrode location free from flashing (e.g. not on pump suction or valve discharge)? Are electrodes sufficiently downstream from pump or static mixer to reduce concentration and pressure fluctuations but not so far as to increase deadtime by more than 3 sec? Are insertion electrodes in series used to ensure same velocity and composition? Are electrode and transmitter connections always dry? Do electrical connections and enclosure meet electrical area classification and codes in plant?

71

Final Control Elements

Deadly and Sticky Situations


Deadband is 5% - 50% without a positioner ! Deadband

Pneumatic positioner requires a negative % signal to close valve

Stroke (%)

Digital positioner will force valve shut at 0% signal Stick-Slip is worse near closed position 0 Signal (%)

dead band

The dead band and stick-slip is greatest near the closed position Plugging and laminar flow can occur for low Cv requirements and throttling near the seat Consider going to reagent dilution. If this is not possible checkout out a laminar flow valve for an extremely low Cv and pulse width modulation for low lifts

Final Control Elements

pH Control Valve Rangeability and Resolution


pH

8 Set point 6
Control Band

B Er = 100% Fimax Frmax Frmax = A Fimax B Er = A Ss = 0.5 Er

Influent pH
B A

Reagent Flow Influent Flow

Where: A = distance to center of reagent error band on abscissa from influent pH B = width of allowable reagent error band on abscissa for control band Er = allowable reagent error (%) Frmax = maximum reagent valve capacity (kg per minute) Fimax = maximum influent flow (kg per minute) Ss = allowable stick-slip (resolution limit) (%)

73

Final Control Elements

Direct Connection Piston Actuator

Less backlash but wear of piston O-ring seal from piston pitch is concern

Final Control Elements

Link-Arm Connection Piston Actuator

Significant backlash from link pin points 1 and 2

Final Control Elements

Rack & Pinion Connection Piston Actuator

Stick-slip from rack and gear teeth - particularly bad for worn teeth

Final Control Elements

Scotch Yoke Connection Piston Actuator

Lots of backlash from slot

Final Control Elements

Diaphragm Actuator with Solenoid Valves

Terminal Box

Port A Supply Port B

Control Signal

SV

Must be functionally tested before commissioning!

ZZZZZZZ

Digital Valve Controller

Final Control Elements

Piston Actuator with Solenoid Valves


Terminal Box

Must be functionally tested before commissioning!


Port A Supply Port B

Piston

SV SV

Digital Valve Controller

W Check Valve

Air Supply

Volume Tank

Final Control Elements

Size of Step Determines What you See


4 " S e g m e n te d B a ll V a lv e s w ith M e ta l S e a ls , D ia p h ra g m A c tu a to r s a n d S ta n d a r d P o s itio n e r s
70 65 60

F is h e r V 1 5 0 H D /1 0 5 2 ( 3 3 )/3 6 1 0 J

(% )

55 50 45 40 0 .5 % S te p s 0 .5 % S te p s 1 % S te p s 1 % S te p s 2 % S te p s 2 % S te p s 5 % S te p s 5 % S te p s 1 0 % S te p s 1 0 % S te p s

65 60

N e le s R 2 1 /Q P 3 C /N P 7 2 3

(% )

55 50 45 40 35

In p u t S ig n a l A c tu a to r P o s itio n F lo w R a te ( F ilte r e d ) 0 50 100 150 200 250 300 350 400 450

T im e ( s e c o n d s )

Maintenance test of 25% or 50% steps will not detect dead band - all valves look good for 10% or larger steps

Final Control Elements

Effect of Step Size Due to Sensitivity Limit

Final Control Elements

Response to Small Steps (No Sensitivity Limit)

0.5 0.45 0.4 0.35 0.3


Stroke (%)

0.25 0.2 0.15 0.1 0.05 0 0 1 2 3 4 5


Time (sec)

10

Final Control Elements

Response to Large Steps (Small Actuator Volume)


50 45 40 35
Stroke (%)

30 25 20 15 10 5 0 0 1 2 3 4 5
Time (sec)

10

Final Control Elements

Installed Characteristic (Linear Trim)


100 90 80 70 60 50 40 30 20 10 0 0 10 20 30 40 50 60 70 80 90 100 Inherent Characteristic Installed Characteristic 1 Installed Characteristic 2 Installed Characteristic 3 Installed Characteristic 4
Valve pressure drop ratio (PR) for installed characteristic: Characteristic 1: PR = 0.5 Characteristic 2: PR = 0.25 Characteristic 3: PR = 0.125 Characteristic 4: PR = 0.0625

Final Control Elements

Installed Characteristic (Equal Percentage Trim)

100 90 80 70 60 50 40 30 20 10 0 0 10 20 30 40 50 60 70 80 90 100 Inherent Characteristic Installed Characteristic 1 Installed Characteristic 2 Installed Characteristic 3 Installed Characteristic 4
Valve pressure drop ratio (PR) for installed characteristic: Characteristic 1: PR = 0.5 Characteristic 2: PR = 0.25 Characteristic 3: PR = 0.125 Characteristic 4: PR = 0.0625

Final Control Elements

Installed Characteristic (Modified Parabolic Trim)

Valve pressure drop ratio (PR) for installed characteristic: Characteristic 1: PR = 0.5 Characteristic 2: PR = 0.25 Characteristic 3: PR = 0.125 Characteristic 4: PR = 0.0625

Final Control Elements

Limit Cycle in Flow Loop from Valve Stick-Slip

Process Variable (kpph) Square Wave Oscillation

Controller Output (%) Saw Tooth Oscillation

Final Control Elements

Limit Cycle in Level Loop from Valve Deadband

Level (%)

Controller Output (%) Rounded Oscillation

Manipulated Flow (kpph) Clipped Oscillation

Final Control Elements

Real Rangeability
Minimum fractional flow coefficient for a linear trim and stick-slip:

C x min =

Sv X v max
[ Sv X v max 1]

Minimum fractional flow coefficient for an equal percentage trim and stick-slip:

C x min = R
Q x min =

Minimum controllable fractional flow for installed characteristic and stick-slip:

C x min PR + (1 PR ) C x min
2

Rv =

1 Q x min

Cxmin = minimum flow coefficient expressed as a fraction of maximum (dimensionless) Pr = valve pressure drop ratio (dimensionless) Qxmin = minimum flow expressed as a fraction of the maximum (dimensionless) Rv = rangeability of control valve (dimensionless) R = range of the equal percentage characteristic (e.g. 50) Xvmin = maximum valve stroke (%) Sv = stick-slip near closed position (%)

Final Control Elements

Best Practices to Improve Valve Performance


Actuator, valve, and positioner package from a control valve manufacturer Digital positioner tuned for valve package and application Diaphragm actuators where application permits (large valves and high pressure drops may require piston actuators) Sliding stem (globe) valves where size and fluid permit (large flows and slurries may require rotary valves)
Next best is Vee-ball or contoured butterfly with rotary digital positioner

Low stem packing friction Low sealing and seating friction of the closure components Booster(s) on positioner output(s) for large valves on fast loops (e.g., compressor anti-surge control) Valve sizing for a throttle range that provides good linearity [4]: o 5% to 75% (sliding stem globe), o 10o to 60o (Vee-ball) o 25o to 45o (conventional butterfly) o 5o to 65o (contoured and toothed butterfly) Online diagnostics and step response tests for small changes in signal Dynamic reset limiting using digital positioner feedback [2]

Final Control Elements

Volume Booster with Integral Bypass (Furnace Pressure and Surge Control)
Signal from Positioner Adjustable Bypass Needle Valve

Air Supply from Filter-Regulator

Air Loading to Actuator

Final Control Elements

Booster and Positioner Setup (Furnace Pressure and Surge Control)


Open bypass just enough to ensure a non-oscillatory fast response
Terminal Box

Bypass
Increase air line size Port A Supply Port B Control Signal

1:1
Increase connection size

Volume Booster

High Capacity Filter Regulator

Must be functionally tested before commissioning!

ZZZZZZZ

Digital Valve Controller

Air Supply

Final Control Elements

Control Valve Misconceptions


There are a lot of misconceptions from sales pitches that lack an understanding of the need for a valve to have minimum backlash and maximum resolution and sensitivity. Most of this stems (pun intended) from using step sizes that are way too large. Today, the smallest step change commonly cited is 0.5%. Maybe I should be happy because the step size was 25% until we had smart positioners that could tell us how much the valve shaft actually moved. What I really want are 0.1% steps over the entire throttle range to sort fact from fiction. Common misconceptions: Rotary valves provide tighter control than sliding stem valves Stated rangeability takes into account pressure drop, backlash, and stiction High Performance Valves (tight shutoff valves) provide high performance Piping valves and on-off actuators can be used for control valves Piston actuators provide tighter control than diaphragm actuators Step tests at 50% open tell the whole story

93

Final Control Elements

Rotary Valve Watch Outs


Rotary valves tend not to have as large a throttle range where the gain (sensitivity) of the installed characteristic is acceptable. Rotary valves that are High Performance Valves and piping valves have markedly reduced throttle range. If you consider the effect of increased backlash and stick-slip of these valves especially near the seat, the actuator shaft used for positioner feedback may not be representative of actual internal flow element (disc, ball, or slotted plug) due to shaft windup, and a poor inherent flow characteristic, you understand these valves are not really control valves. Similarly, the scotch yoke, rack and pinion, and link arm on-off actuators have excessive backlash or insufficient resolution for throttling service. A diaphragm actuator has the best threshold sensitivity. Higher pressure diaphragm actuators have been developed extending their thrust and torque capability. The next best actuator is a double acting piston. All should have smart positioners with 2-stage or high gain pneumatic relays. High volume spool positioners used on dampers and piping valve posing as control valves have an extremely poor threshold sensitivity requiring step changes of 2%. To learn more about what really is important about control valves and variable speed drives read Chapter 7 on Final Element Fundamentals in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries, http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm &ProductID=10764 Article Improve Control Loop Performance, Chemical Processing, Oct, 2007 http://www.chemicalprocessing.com/articles/2007/200.html Key Design Components of Final Control Elements, InTech, March-April, 2011 http://www.isa.org/InTechTemplate.cfm?Section=Control_Fundamentals1&template=/Content Management/ContentDisplay.cfm&ContentID=81679
94

Final Control Elements

Control Valve Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for automation component. The following list assumes the materials of construction have been properly specified and that the sensor will work safely and reliably with acceptable accuracy for the maximum possible temperature and pressure. For a detailed understanding see Chapters 7 and 8 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm&P roductID=10764 The use of digital positioners has improved the precision of control valves to 0.1% if the positioner is tuned and the rest of the valve package does not pose limitations. The threshold sensitivity of pneumatic positioners ranged from 0.1% for two stage relay to 1% to spool type positioners. Pneumatic positioners did not sufficiently hold their calibration and did not provide a readback of valve positioner. Consequently, the low output limits of controllers needed to be 10% to ensure the valve was closed and problems with the dynamic response of control valves were hidden and test step sizes of 10% or larger were used. Digital positioners are the first step but not the only step for a good valve response. Except for pH control, a precision of 0.1% and deadband of 0.2% is normally sufficient since the amplitude of a limit cycle is within the noise band or control band. The sliding stem globe valve with low friction packing and diaphragm actuators can achieve a 0.1% precision. However, rotary valves are advantageous for large lines sizes and streams with solids. Rotary valves can achieve a precision of 0.2% if a diaphragm actuator is used, the connection between the actuator shaft and valve stem is splined instead of pinned, there are no linkages introducing backlash, the friction of sealing surfaces and shaft length and size does not cause shaft windup, and the valve stem is cast with the internal flow element.
95

Final Control Elements

Control Valve Checklist


Piping valves original designed as isolation valves posing as control valves are the biggest culprit. A precision of 4% and a deadband of 8% have been observed for butterfly valves and ball valves designed for tight shutoff. Furthermore, the positioner feedback was actuator shaft instead of flow element position. Tests results from the digital positioner indicated a precision and deadband 10 times smaller than actual. Flow measurements and travel gages on internal flow element revealed the true response capability of the valve. Thus, putting the best digital positioner on a poor valve and actuator design does not eliminate the problem and in fact may give a false assurance from invalid response trends and diagnostics. This problem occurs frequently because leakage but not precision and deadband are on the control valve specification and the digital positioner is thought to solve all problems with valve response. Does sizing software have the fluid physical properties for worse case operating conditions? Does location and valve type eliminate or reduce damage from flashing and erosion? Did you include swage effect from piping reducer? Did you compute and plot installed valve characteristic for worse case operating conditions? Is actuator sized to deliver 1.5x max torque or thrust required? Is actuator threshold sensitivity better than 0.1%? Is positioner threshold sensitivity better than 0.1%? Is smart positioner tuned for application (otherwise you have a dumb positioner)? Is total valve assembly deadband less than 0.4% over the entire throttle range? Is total valve assembly resolution better than 0.2% over the entire throttle range? Is installed characteristic slope > 0.5% max flow per % signal over the entire throttle range? Is installed characteristic slope < 2.0% max flow per % signal over the entire throttle range?
96

Final Control Elements

Variable Frequency Drive Checklist


The following checklist is not intended to cover all the specification requirements but some of the major application details to be addressed for automation component. The following list assumes the prime mover (e.g. pump or fan) materials of construction have been properly specified and will work safely and reliably with acceptable pump discharge pressure for the maximum possible temperature and static head. For a detailed understanding see Chapter 7 in the ISA book Essentials of Modern Measurements and Final Elements in the Process Industries http://www.isa.org/Template.cfm?Section=Books3&template=/Ecommerce/ProductDisplay.cfm&P roductID=10764 Is Pulse Width Modulation (PWM) drive used to reduce torque pulsation (cogging) at low speeds? Is a totally enclosed fan cooled (TEFC) motor with constant speed fan or booster fan as necessary with class F insulation (inverter duty) and 1.15 service factor to prevent overheating? Is a totally enclosed water cooled (TWEC) motors for high temperatures to prevent overheating? Is a NEMA frame B motor used to prevent steep torque curve? Is pump sized to prevent operation on flat part of pump curve? Is a recycle valve to keep pump discharge pressure well above static head at low flow and low speed limit prevents reverse flow for highest possible destination pressure? (see article "Watch out for variable speed pumping") http://www.chemicalprocessing.com/articles/2008/069.html Are signal input cards > 12 bit to improve resolution limit of signal to 0.05% or better? For tachometer control, does the number of gear teeth for magnetic pickups and discs with holes or bands with mirrors on the shafts for optical pickups provide enough pulses per revolution? For tachometer control, is the speed control in the VFD to prevent violation of the cascade rule where the secondary flow loop should be 5 times faster than the primary (flow)?
97

PID Controllers

Contribution of Each PID Mode


Proportional (P mode) - increase in gain increases P mode contribution
Provides an immediate reaction to magnitude of measurement change to minimize peak error and integrated error for a disturbance Too much gain action causes fast oscillations (close to ultimate period) and can make noise and interactions worse Provides an immediate reaction to magnitude of setpoint change for P action on Error to minimize rise time (time to reach setpoint) Too much gain causes falter in approach to setpoint Provides a ramping reaction to error (SP-PV) to minimize integrated error if stable (since error is hardly ever exactly zero, integral action is always ramping the controller output) Too much integral action causes slow oscillations (slower than ultimate period) Too much integral action causes an overshoot of setpoint (no sense of direction) Provides an immediate reaction to rate of change of measurement change to minimize peak error and integrated error for a disturbance Too much rate action causes fast oscillations (faster than ultimate period) and can make noise and interactions worse Provides an immediate reaction to rate of change of setpoint change for D action on Error to minimize rise time (time to reach setpoint) Too much rate causes oscillation in approach to setpoint

Integral (I mode) - increase in reset time decreases I mode contribution


Derivative (D mode) - increase in rate time increases D mode contribution


PID Controllers

Contribution of Each PID Mode


bump from filtered derivative mode
Signal (%)

kick from proportional mode CO1

seconds/repeat

CO2 = CO1 repeat from integral mode

SP

Time (seconds)

Contribution of Each PID Mode for a Step Change in the Set Point Structure of PID on error (=1 and =1)

PID Controllers

Reset Gives Operations What They Want


Should steam or water valve be open ?
TC-100 Reactor Temperature IVP PV SP temperature

steam valve opens 50% water valve opens PV

set point

48

52

time

PID Controllers

Open Loop Time Constant (controller in manual)


Signal (%)

%CO

Controller is in Manual

Open Loop Error Eo (%) 0.63Eo

%PV

SP

o Open Loop (process) Time Constant (Time Lag)

Time (seconds)

Dead Time (Time Delay)

PID Controllers

Closed Loop Time Constant (controller in auto)


Signal (%) Controller is in Automatic SP

%CO

SP (%) 0.63SP

%PV

c Closed Loop Time Constant (Time Lag) Lambda ()

Time (seconds)

Dead Time (Time Delay)

PID Controllers

Conversion of Signals for PID Algorithm


Final Element

SP

SCLR

SUB

% %

PID

% %CO

SCLR

%PV SCLR PV (e.u.)

OUT (e.u.)

AO

Control Valve

MV (e.u.)

Process Equipment

PID
AI
PV - Primary Variable SV - Second Variable* TV - Third Variable* FV - Fourth Variable* * - additional HART variables

Sensing Smart Transmitter PV Element (e.u.)


Measurement

DCS

The scaler block (SCLR) that convert between engineering units of application and % of scale used in PID algorithm is embedded hidden part of the Proportional-Integral-Derivative block (PID)
To compute controller tuning settings, the process variable and controller output must be converted to % of scale and time units of deadtimes and time constants must be same as time units of reset time and rate time settings!

PID Controllers

Fed-Batch and Startup Time Reduction - 1


PID on Error Structure
Maximizes the kick and bump of the controller output for a setpoint change. Overdrive (driving of output past resting point) is essential for getting slow loops, such as vessel temperature and pH, to the optimum setpoint as fast as possible. The setpoint change must be made with the PID in Auto mode. SP track PV will generally maximize the setpoint change and hence the kick and bump (retaining SP from last batch or startup minimizes kick and bump) For low controller gains (controller gain less than inverse of process gain), a setpoint feedforward is particularly useful. For this case, the setpoint feedforward gain is the inverse of the dimensionless process gain minus the controller gain. For slow self-regulating (e.g. continuous) processes and slow integrating (e.g. batch) processes, even if the controller gain is high, the additional overdrive can be beneficial for small setpoint changes that normally would not cause the PID output to hit a limit. If the setpoint and controller output are in engineering units the feedforward gain must be adjusted accordingly. The feedforward action is the process action, which is the opposite of the control action, taking into account valve action. In other words for a reverse control action, the feedforward action is direct provided the valve action is inc-open or the analog output block, I/P, or positioner reverses the signal for a inc-close.

SP Feedforward

PID Controllers

Fed-Batch and Startup Time Reduction - 2


Full Throttle (Bang-Bang Control) - The controller output is stepped to it output limit to maximize the rate of approach to setpoint and when the projected PV equals the setpoint less a bias, the controller output is repositioned to the final resting value. The output is held at the resting value for one deadtime. For more details, check out the Control magazine article Full Throttle Batch and Startup Response. http://www.controlglobal.com/articles/2006/096.html
A deadtime (DT) block must be used to compute the rate of change so that new values of the PV are seen immediately as a change in the rate of approach. If the total loop deadtime (o) is used in the DT block, the projected PV is simply the current PV minus the output of the DT block (PV) plus the current PV.
If the PV rate of change (PV/t) is useful for other reasons (e.g. near integrator or true integrating process tuning), then PV/t = PV/o can be computed.

If the process changes during the setpoint response (e.g. reaction or evaporation), the resting value can be captured from the last batch or startup If the process changes are negligible during the setpoint response, the resting value can be estimated as:
the PID output just before the setpoint change for an integrating (e.g. batch) process the PID output just before the setpoint change plus the setpoint change divided by the process gain for a self-regulating (e.g. continuous) process

For self-regulating processes such as flow with the loop deadtime (o) approaching or less than the largest process time constant (p ), the logic is revised to step the PID output immediately to the resting value. The PID output is held at the resting value for the T98 process response time (T98 = o + 4 p ).

PID Controllers

Structure, SP Feedforward, & Bang-Bang Tests

Structure 3 Rise Time = 8.5 min Settling Time = 8.5 min Overshoot = 0%

Structure 1 Rise Time = 1.6 min Settling Time = 7.5 min Overshoot = 1.7%

Structure 1 + Bang-Bang Structure 1 + SP FF Rise Time = 0.5 min Rise Time = 1.2 min Settling Time = 6.5 min Settling Time = 0.5 min Overshoot = 0.2% Overshoot = 1.3%

PID Controllers

Fed-Batch and Startup Time Reduction - 3


Output Lead-Lag
A lead-lag on the controller output or in the digital positioner can kick the signal though the valve deadband and stiction, get past split range points, and make faster transitions from heating to cooling and vice versa. A lead-lag can potentially provide a faster setpoint response with less overshoot when analyzers are used for closed loop control of integrating processes When combined with the enhanced PID algorithm (PIDPlus) described in:
Deminar #1 http://www.screencast.com/users/JimCahill/folders/Public/media/5acf213538c9-422e-9eb9-33ee844825d3 White paper http://www.modelingandcontrol.com/DeltaV-v11-PID-Enhancements-forWireless.pdf

Deadtime Compensation
The simple addition of a delay block with the deadtime set equal to the total loop deadtime to the external reset signal for the positive feedback implementation of integral action described in Deminar #3 for the dynamic reset limit option http://www.screencast.com/users/JimCahill/folders/Public/media/f093eca1-958f4d9c-96b7-9229e4a6b5ba . The controller reset time can be significantly reduced and the controller gain increased if the delay block deadtime is equal or slightly less than the process deadtime as studied in Advanced Application Note 3 http://www.modelingandcontrol.com/repository/AdvancedApplicationNote003.pdf

PID Controllers

Deadtime Compensator Configuration

Must enable dynamic reset limit ! Insert deadtime block

PID Controllers

Deadtime Myths Busted


Deadtime is eliminated from the loop. The smith predictor, which created a PV without deadtime, fools the controller into thinking there is no deadtime. However, for an unmeasured disturbance, the loop deadtime still causes a delay in terms of when the loop can see the disturbance and when the loop can enact a correction that arrives in the process at the same point as the disturbance. The ultimate limit to the peak error and integrated error for an unmeasured disturbance are still proportional to the deadtime, and deadtime squared, respectively. Control is faster for existing tuning settings. The addition of deadtime compensation actually slows down the response for the existing tuning settings. Setpoint metrics, such as rise time, and load response metrics, such as peak error, will be adversely affected. Assuming the PID was tuned for a smooth stable response, the controller must be retuned for a faster response. For a PID already tuned for maximum disturbance rejection, the gain can be increased by 250%. For deadtime dominant systems where the total loop deadtime is much greater than the largest loop time constant (hopefully the process time constant), the reset time must also be decreased or there will be severe undershoot. If you decrease the reset time to its optimum, undershoot and overshoot are about equal. For the test case where the total loop deadtime to primary process time constant ratio was 10:1, you could decrease the reset time by a factor of 10. Further study is needed as to whether the minimum reset time is a fraction of the underestimated deadtime plus the PID module execution time (0.5 sec) where the fraction depends upon the dead time to time constant ratio

For access to Deminar 10 ScreenCast Recording or SlideShare Presentation go to http://www.modelingandcontrol.com/2010/10/review_of_deminar_10_-_deadtim.html

PID Controllers

Deadtime Myths Busted


Compensator works better for loops dominated by a large deadtime. The reduction in rise time is greatest and the sensitivity to per cent deadtime modeling error particularly for an overestimate of deadtime is least for the loop that was dominated by the process time constant. You could have a deadtime estimate that was 100% high before you would see a significant jagged response when the process time constant was much larger than the process deadtime. For a deadtime estimate that was 50% too low, some rounded oscillations developed for this loop. The loop simply degrades to the response that would occur from the high PID gain as the compensator deadtime is decreased to zero. While the magnitude of the error in deadtime seems small, you have to remember that for an industrial temperature control application, the loop deadtime and process time constant would be often at least 100 times larger. For a 400 second deadtime and 10,000 second process time constant, a compensator deadtime 200 seconds smaller or 400 seconds larger than actual would start to cause a problem. In contrast, the deadtime dominant loop developed a jagged response for a deadtime that was high or low by just 10%. I think this requirement is unreasonable in industrial processes. A small filter of 1 second on the input to the deadtime block in the BKCAL path may have helped. An underestimate of the deadtime leads to instability. In tuning calculations for a conventional PID, a smaller than actual deadtime can cause an excessively oscillatory response. Contrary to the effect of deadtime on tuning calculations, a compensator deadtime smaller than actual deadtime will only cause instability if the controller is tuned aggressively after the deadtime compensator is added. An overestimate of the deadtime leads to sluggish response and greater stability. In tuning calculations for a conventional PID, a larger than actual deadtime can cause an excessively slow response. Contrary to the effect of deadtime on tuning calculations, a compensator deadtime greater than actual deadtime will cause jagged irregular oscillations.

PID Controllers

Fed-Batch and Startup Time Reduction - 4


Feed Maximization
Model Predictive Control described in Application Note 1 http://www.modelingandcontrol.com/repository/AdvancedApplicationNote001.pdf Override control (next slide) is used to maximize feeds to limits of operating constraints via valve position control (e.g. maximum vent, overhead condenser, or jacket valve position with sufficient sensitivity per installed characteristic). Alternatively, the limiting valve can be set wide open and the feeds throttled for temperature or pressure control. For pressure control of gaseous reactants, this strategy can be quite effective. For temperature control of liquid reactants, the user needs to confirm that inverse response from the addition of cold reactants to an exothermic reactor and the lag from the concentration response does not cause temperature control problems. All of these methods require tuning and may not be particularly adept at dealing with fast disturbances unless some feedforward is added. Fortunately the prevalent disturbance that is a feed concentration change is often slow enough due to raw material storage volume to be corrected by temperature feedback. If you have a have batch measurement that should increase to a maximum at the batch end point (e.g. maximum reaction temperature or product concentration), the slope of the batch profile of this measurement can be maximized to reduce batch cycle time. For application examples checkout Direct Temperature Rate of Change Control Improves Reactor Yield in a Funny Thing Happened on the Way to the Control Room http://www.modelingandcontrol.com/FunnyThing/ and the Control magazine article Unlocking the Secret Profiles of Batch Reactors http://www.controlglobal.com/articles/2008/230.html .

Profile Control

PID Controllers

Effect of Slow Secondary Tuning (cascade control)

Secondary loop slowed down by a factor of 5 Secondary CO

Primary PV

Secondary SP Secondary SP Secondary CO Primary PV

PID Controllers

Triple Cascade Loop Block Diagram

DCS Process SP Flow SP

Valve Positioner Drive Signal

PID
PV

PID
PV

Out

AO

PID*

I/P

Relay

Control Valve

Flow Meter

Process

Position (Valve Travel)

AI

AI

Position Loop Feedback

* most positioners use proportional only


Secondary (Inner) Loop Feedback

Process Sensor

Primary (Outer) Loop Feedback

PID Controllers

Feedforward Applications
Feedforward is the most common advanced control technique used - often the feedforward signal is a flow or speed for ratio control that is corrected by a feedback process controller (Flow is the predominant process input that is manipulated
to set production rate and to control process outputs (e.g. temperature and composition))
Blend composition control - additive/feed (flow/flow) ratio Column temperature control - distillate/feed, reflux/feed, stm/feed, and bttms/feed (flow/flow) ratio Combustion temperature control - air/fuel (flow/flow) ratio Drum level control - feedwater/steam (flow/flow) ratio Extruder quality control - extruder/mixer (power/power) ratio Heat exchanger temperature control - coolant/feed (flow/flow) ratio Neutralizer pH control - reagent/feed (flow/flow) ratio Reactor reaction rate control - catalyst/reactant (speed/flow) ratio Reactor composition control - reactant/reactant (flow/flow) ratio Sheet, web, and film line machine direction (MD) gage control - roller/pump (speed/speed) ratio Slaker conductivity control - lime/liquor (speed/flow) ratio Spin line fiber diameter gage control - winder/pump (speed/speed) ratio

Feedforward is most effective if the loop deadtime is large, disturbance speed is fast and size is large, feedforward gain is well known, feedforward measurement and dynamic compensation are accurate Setpoint feedforward is most effective if the loop deadtime exceeds the process time constant and the process gain is well known
For more discussion of Feedforward see May 2008 Control Talk http://www.controlglobal.com/articles/2008/171.html

PID Controllers

Feedforward Implementation - 1
Feedforward gain can be computed from a material or energy balance ODE * & explored for different setpoints and conditions from a plot of the controlled variable (e.g. composition, conductivity, pH, temperature, or gage) vs. ratio of manipulated variable to independent variable (e.g. feed) but is most often simply based on operating experience
* http://www.modelingandcontrol.com/repository/AdvancedApplicationNote004.pdf Plots are based on an assumed composition, pressure, temperature, and/or quality For concentration and pH control, the flow/flow ratio is valid if the changes in the composition of both the manipulated and feed flow are negligible. For column and reactor temperature control, the flow/flow ratio is valid if the changes in the composition and temperature of both the manipulated and feed flow are negligible. For reactor reaction rate control, the speed/flow is valid if changes in catalyst quality and void fraction and reactant composition are negligible. For heat exchanger control, the flow/flow ratio is valid if changes in temperatures of coolant and feed flow are negligible. For reactor temperature control, the flow/flow ratio is valid if changes in temperatures of coolant and feed flow are negligible. For slaker conductivity (effective alkali) control, the speed/flow ratio is valid if changes in lime quality and void fraction and liquor composition are negligible. For spin or sheet line gage control, the speed/speed ratio is valid only if changes in the pump pressure and the polymer melt quality are negligible.

Dynamic compensation is used to insure the feedforward signal arrives at same point at same time in process as upset
Compensation of a delay in the feedforward path > delay in upset path is not possible

PID Controllers

Feedforward Implementation - 2
Feedback correction is essential in industrial processes
While technically, the correction should be a multiplier for a change in slope and a bias for a change in the intercept in a plot of the manipulated variable versus independent variable (independent from this loop but possibly set by another PID or MPC), a multiplier creates scaling problems for the user, consequently the correction of most feedforward signal is done via a bias. The bias correction must have sufficient positive and negative range for worst case. Model predictive control (MPC) and PID loops get into a severe nonlinearity by creating a controlled variable that is the ratio. It is important that the independent variable be multiplied by the ratio and the result be corrected by a feedback loop with the process variable (composition, conductivity, gage, temperature, or pH) as the controlled variable.

Feedforward gain is a ratio for most load upsets. Feedforward gain is the inverse of the process gain for setpoint feedforward.
Process gain is the open loop gain seen by the PID (product of manipulated variable, process variable, and measurement variable gain) that is dimensionless.

Feedforward action must be in the same direction as feedback action for upset. Feedforward action is the opposite of the control action for setpoint feedforward. Feedforward delay and lag adjusted to match any additional delay and lag, respectively in path of upset so feedforward correction does not arrive too soon. Feedforward lead is adjusted to compensate for any additional lag in the path of the manipulated variable so the feedforward correction does not arrive too late. The actual and desired feedforward ratio should be displayed along with the bias correction by the process controller. This is often best done by the use of a ratio block and a bias/gain block instead of the internal PID feedforward calculation.

PID Controllers

Linear Reagent Demand Control (PV is X axis of Titration Curve)


Signal characterizer converts PV and SP from pH to % Reagent Demand
PV is abscissa of the titration curve scaled 0 to 100% reagent demand Piecewise segment fit normally used to go from ordinate to abscissa of curve Fieldbus block offers 21 custom space X,Y pairs (X is pH and Y is % demand) Closer spacing of X,Y pairs in control region provides most needed compensation If neural network or polynomial fit used, beware of bumps and wild extrapolation

Special configuration is needed to provide operations with interface to:


See loop PV in pH and signal to final element Enter loop SP in pH Change mode to manual and change manual output

Set point on steep part of curve shows biggest improvements from:


Reduction in limit cycle amplitude seen from pH nonlinearity Decrease in limit cycle frequency from final element resolution (e.g. stick-slip) Decrease in crossing of split range point Reduced reaction to measurement noise Shorter startup time (loop sees real distance to set point and is not detuned) Simplified tuning (process gain no longer depends upon titration curve slope) Restored process time constant (slower pH excursion from disturbance)
117

PID Controllers

Open Loop Backup Configuration


SP_Rate_DN and SP_RATE_UP used to insure fast getaway and slow approach

Open Loop Backup Configuration

Open loop backup used for prevention of compressor surge and RCRA pH violation

PID Controllers

Open Loop Backup Disturbance Response

Open Loop Backup

PID Controllers

Conductivity Kicker for Evaporator

Top Ten Reasons Why an Automation Engineer Makes a Great Spouse or at Least a Wedding Gift
(10) Reliable from day one (9) Always on the job (8) Low maintenance (minimal grooming, clothing, and entertainment costs (7) Many programmable features (6) Stable (5) Short settling time (4) No frills or extraneous features (3) Relies on feedback (2) Good response to commands and amenable to real time optimization (1) Readily tuned

121

PID Controllers

Enhanced PID Algorithm Originally Developed for Wireless


TD

+
Kc

PID integral mode is restructured to provide integral action to match the process response in the elapsed time (reset time set equal to process time constant) PID derivative mode is modified to compute a rate of change over the elapsed time from the last new measurement value PID reset and rate action are only computed when there is a new value If transmitter damping is set to make noise amplitude less than communication trigger level, valve packing and battery life is dramatically improved Enhancement compensates for measurement sample time suppressing oscillations and enabling a smooth recovery from a loss in communications further extending packing -battery life

Elapsed Time

TD

+
Kc

Elapsed Time

Link to Enhanced PID White Paper


http://www2.emersonprocess.com/siteadmincenter/PM%20DeltaV%20Documents/ Whitepapers/WP_DeltaV%20PID%20Enhancements%20for%20Wireless.pdf 122

PID Controllers

Loop Block Diagram (First Order Approximation)


Delay Lag Gain

KL

Load Upset
Delay Lag Gain Secondary Delay Fv Secondary Lag

Delay <=> Dead Time Lag <=>Time Constant


Primary Delay Primary Lag

Gain

Kv

p2

p2

p1

p1

Kp
PV

Valve

Hopefully p1 is the largest lag in the loop For integrating processes: Ki = Kv (Kp / p1) Km 100% / span

Process

%CO

Local Set Point


of Wireless Default Update Rate

PID Kc Ti Td
% %PV

% Delay Lag Gain Lag Delay Lag

c2
Lag

c1

Km

m2

m2

m1

m1
Delay

Controller

Measurement

First Order Approximation: o v + p1 + p2 + m1 + m2 + c + v + p2 + m1 + m2 + c1 + c2 (set by automation system design for flow, pressure, level, speed, surge, and static mixer pH control)

123

PID Controllers

Open Loop Response of Self-Regulating Process


% Controlled Variable (%PV) or % Controller Output (%CO)
For CSTR o >> o process response appears to ramp for 10 o and is termed a near-integrating process For plug flow reactor and the manipulation of feed

Response to change in controller output with controller in manual


%PV

Ko = %PV / %CO
Self-regulating process gain (%/%)

%CO Maximum speed in 4 deadtimes is critical speed %CO %PV 0.63%PV

o >> o process response

is a transport delay and is termed deadtime dominant

Noise Band

observed total loop deadtime

ideally

p1

Time (seconds)

Self-regulating process open loop negative feedback time constant

124

PID Controllers

Open Loop Response of Integrating Process


Response to change in controller output with controller in manual % Process Variable (%PV) or % Controller Output (%CO)
%PV

Ki = { [ %PV2 / t2 ] [ %PV1 / t1 ] } / %CO


Integrating process gain (%/sec/%)

%CO

Maximum speed in 4 deadtimes is critical speed %CO

Wireless Trigger Level > Noise

Wireless Default Update Rate ramp rate is %PV1 / t1 ramp rate is %PV2 / t2

observed total loop deadtime

Time (seconds)
Wireless default update rate must be fast enough that excursion for maximum ramp rate is less than wireless trigger level that is set just larger than measurement noise

125

PID Controllers

Open Loop Response of Runaway Process


Response to change in controller output with controller in manual % Process Variable (%PV) or % Controller Output (%CO)

Ko = %PV / %CO
Runaway process gain (%/%)

Acceleration

Wireless presently not advisable for runaway Tests are terminated before a noticeable acceleration leading to characterization as an integrating process %CO

For safety reasons, tests are terminated after 4 deadtimes Maximum speed in 4 deadtimes is critical speed

1.72%PV

%PV

Noise Band

observed total loop deadtime

must be

1 p

Time (seconds)

runaway process open loop positive feedback time constant

126

PID Controllers

Near Integrator Gain Approximation


For Near Integrating gain approximation use maximum ramp rate divided by change in controller output The maximum ramp rate is found by passing filtered process variable (PV) through a deadtime (DT) block to create an old process variable. The deadtime block uses the total loop deadtime (o) for the time interval (t ). The old process variable is subtracted from the new process variable and divided by the time interval to get the ramp rate. The maximum of a continuous train of ramp rates updated each module execution over A period of 3 or more deadtimes is selected to compute the near integrating process gain. For an inverse response or large secondary time constant, the computation may need to continue for 10 or more deadtimes.

Ki =

Ko

= Max( % PV / t ) / %CO

The above equation can be solved for the process time constant by taking the process gain to be 1.0 or for more sophistication as the average ratio of the controlled variable to controller output Tuning test can be done for a setpoint change if the PID gain is > 2 and the PID structure is PI on Error D on PV so you see a step change in controller output from the proportional mode

127

PID Controllers

Reduction in Identification Test Time


The near integrating test time (3 deadtimes) as a fraction of the self-regulating test (time to steady state is taken as 98% response time TSR = T98 = o + 4 ) is:

3 o TNI = TSR o + 4 o
If the process time constant is greater than 6 times the deadtime

o 6 o
Then the near integrating tuning test time is reduced by > 90%:

TNI 0.1 TSR


For example:

o = 100 sec o = 4 sec


The near integrator tuning time is reduced by 97%!

TNI 0.03 TSR

128

PID Controllers

Rapid Process Modeling Opportunity


o = Ko / Ki negative feedback time constant o = Ko / Ki positive feedback time constant
Methodology extends beyond loops to any process variable that can be measured and any variable that can be changed Ko = PV0 / CO0 process gain approximation

4 Ko

Ko

o
PV PV Sum
PV0 Initial Controlled Variable at time 0

CO

SUB

CO

Ki

PV

Switch

PV

CO0 Initial Controller Output at time 0

1 ODE (Ki)

PV

First Principle Parameters = f (Ki) For the manipulation of jacket temperature to control vessel temperature, the near integrator gain is

K i = (U A ) / (C p M o )
Since we generally know vessel volume (liquid mass), heat transfer area, and process heat capacity, We can solve for overall heat transfer coefficient (least known parameter) to provide a useful ordinary differential equation (ODE) for a first principle model (1).
129

PID Controllers

Loop Performance Ultimate Limit


Peak error is proportional to the ratio of loop deadtime to 63% response time
(Important to prevent SIS trips, relief device activation, surge prevention, and RCRA pH violations)
Total loop deadtime that is often set by automation design

Ex =

(o + o )

Eo
Largest lag in loop that is ideally set by large process volume

Integrated error is proportional to the ratio of loop deadtime squared to 63% response time
(Important to minimize quantity of product off-spec and total energy and raw material use)

o2 Ei = Eo (o + o )
Wireless default update rate affects ultimate performance limit because of default update rate is additional loop deadtime

130

PID Controllers

Loop Performance Practical Limit


Peak error decreases as the controller gain increases but is essentially the open loop error for systems when total deadtime >> process time constant

1 Ex = Eo (1 + Ko Kc )

Open loop error for fastest and largest load disturbance

Integrated error decreases as the controller gain increases and reset time decreases but is essentially the open loop error multiplied by the reset time plus signal delays and lags for systems when total deadtime >> process time constant

Ei =

Ti + tx + f Ko K c

Eo

Rise time (time to reach a new setpoint) is inversely proportional to controller gain

Tr =

SP + o ( K i min(| COmax |, SPff + K c SP )


131

PID Controllers

Fastest Controller Tuning (Reaction Curve Method*)


For self-regulating processes:

Kc = 0.4

Ko o

* - Ziegler Nichols method closed loop modified to be more robust and less oscillatory

Ti = 4 o

Td = p 2 = 0.5 o

Near integrator (o >> o):

Deadtime dominant (o << o):

1 Kc = 0.4 Ki o 1 Ki o

1 Kc = 0.4 Ko

Ti = 0.5 o

Td = 0

For integrating processes:

1.0 for Enhanced PID if Wireless Default Update Rate > Process Response Time !

Kc = 0.5

Ti = 4 o

Td = p 2 = 0.5 o Td = 2 p 2 = o

For runaway processes:

Kc = 0.6

Ko o

'o

Ti = 40 o

Near integrator (o >> o):

1 Kc = 0.6 Ki o

These tuning equations provide maximum disturbance rejection but will cause some overshoot of setpoint response
Wireless default update rate affects fastest controller tuning because of default update rate is additional loop deadtime

132

PID Controllers

Effect of Wireless Measurement Update Time and Interval on Performance


Ex =

o + w + v
T63

Eo

(o + w + v )2 Ei = Eo T63

T63 = o + w + o

w = Min( T , S )

T = 0.5 Tw

0.5 Sm S = ( % PV / t ) max
Eo

( % PV / t ) max = Ki ( Eo / Ko )

Ki =

Ko

( % PV / t ) max =

S =

0.5 Sm o Eo
133

PID Controllers

Additional Deadtime from Valve Stick-Slip, Resolution, or Deadband


0.5 Sv ( %CO / t ) max

v =

( %CO / t ) max = K c ( % PV / t ) max

K Sv K c = min x o , K o o max[( N m S m ),0.002]

( % PV / t ) max =

Eo

( %CO / t ) max =

K x Eo Ko o

v =

0.5 Sv Ko o K x Eo

Increase in process gain from elimination of controller reaction to noise by wireless trigger level or PID threshold sensitivity setting decreases deadtime from valve stick-slip, resolution, or deadband

134

PID Controllers

Nomenclature (Process Dynamics & Performance)


CV = change in controlled variable (change in process variable in % of scale) %CO = change in controller output (%)

Kc = controller gain (dimensionless) Ki = integrating process gain (%/sec/% or 1/sec) Kp = process gain (dimensionless) also known as open loop gain L = change in load (engineering units) Fv = change valve flow (engineering units) %PV = change in process variable (%) SP = change in setpoint (engineering units) SPff = setpoint feedforward (engineering units) t = change in time (sec) tx = execution or update time (sec) o = total loop dead time (sec) f = filter time constant or well mixed volume residence time (sec) m = measurement time constant (sec) p2 = secondary (small) self-regulating process time constant (sec) p1 = primary (large) runaway process time constant (sec) p1 = primary (large) process time constant (sec) Ti = integral (reset) time setting (sec/repeat) Td = derivative (rate) time setting (sec) Tr = rise time for setpoint change (sec) to = oscillation period (sec) = Lambda (closed loop time constant or arrest time) (sec) f = Lambda factor (ratio of closed to open loop time constant or arrest time)

135

PID Controllers

Nomenclature (Wireless Dynamics & Performance)


Ei = integrated error for unmeasured load disturbance (% sec) Ex = peak error for unmeasured load disturbance (%) Eo = open loop error (loop in manual) for unmeasured load disturbance (%) Ki = near integrator process gain (% per % per sec) Ko = open loop gain (product of valve, process, and measurement gains) (dimensionless) Kx = detuning factor for controller gain (dimensionless) Nm = measurement noise (%) %CO/t = rate of change in PID % controller output (% per sec) %PV/t = rate of change in PID % process variable (% per sec) Tw = wireless default update rate (update time interval) (sec) Sm = wireless measurement trigger level (threshold sensitivity) (%) Sv = valve stick-slip, resolution, or deadband (%) T63 = 63% process response time (sec) o = original loop deadtime (sec) t = additional deadtime from default update rate (sec) s = additional deadtime from wireless trigger level (sec) v = additional deadtime from valve (sec) w = additional deadtime from wireless measurement (sec) o = self-regulating open loop time constant (largest time constant in loop) (sec) o = runaway open loop time constant (largest time constant in loop) (sec)
136

PID Controllers

Liquid Reactants (Jacket CTW) Liquid Product Optimization


ratio calc
FY

ZC1-4 OUT

FC

CAS

LC

ZC1-4 is an enhanced PID VPC


PT PC

1-1

1-8 1-5 1-5


FT

1-6 reactant A
LY FT

FC 1-1 CAS vent


TC

ZC

1-4

1-1 1-8 residence time calc CAS


FC LT TT

1-5 1-3

1-8

1-3

1-2
TT TC

reactant B

FT

1-4

1-4 return

1-2

Valve position controller (VPC) setpoint is the maximum throttle position. The VPC should turn off integral action to prevent interaction and limit cycles. The correction for a valve position less than setpoint should be slow to provide a slow approach to optimum. The correction for a valve position greater than setpoint must be fast to provide a fast getaway from the point of loss of control. Directional velocity limits in AO with dynamic reset limit in an enhanced PID that tempers integral action can achieve these optimization objectives.

AT

AC

1-6

1-6

makeup CTW
FC

1-7

FT

product

1-7

137

PID Controllers

Liquid Reactants (Jacket BFW) Liquid Product Optimization


ratio calc
FY

ZY1-1 OUT

FC

CAS

LC

1-1

1-8
PT PC

1-6 reactant A
LY FT

1-5
FT

1-5 1-5 vent

1-1 1-8 residence time calc CAS


FC LT TT

TC

1-8

1-3

1-3

1-2
PT PC

1-4 reactant B
FT

1-4

1-2 steam low signal selector FC1-1 CAS


ZY

1-1

ZC

LC

1-9

1-9

AT

AC

1-6

1-6

LT

1-9 BFW
FT

1-9

FC

1-7
ZC

1-4

ZC1-4 & ZC-9 are enhanced PID VPC

FT

product

1-7

138

PID Controllers

Examples of Optimization by Valve Position Control (VPC)


Optimization Minimize Prime Mover Energy Minimize Boiler Fuel Cost Minimize Boiler Fuel Cost Minimize Chiller or CTW Energy Minimize Purchased Reagent or Fuel Cost Minimize Total Reagent Use Maximize Reactor Production Rate Maximize Reactor Production Rate Maximize Column Production Rate Maximize Ratio or Feedforward Accuracy VPC PID PV Reactor Feed Flow PID Out Steam Flow PID Out Equipment Temperature PID Out Equipment Temperature PID Out Purchased Reagent or Fuel Flow PID Out Final Neutralization Stage pH PID Out Reactor or Condenser Temperature PID Out Reactor Vent Pressure PID Out Reboiler or Condenser Flow PID Out Process Feedback Correction PID Out VPC PID SP Max Throttle Position Max Throttle Position Max Throttle Position Max Throttle Position Min Throttle Position Min Throttle Position Max Throttle Position Max Throttle Position Max Throttle Position 50% (Zero Correction) VPC PID Out Compressor or Pump Pressure SP Boiler Pressure SP Boiler Pressure SP Chiller or CTW Temperature SP Waste Reagent Or Fuel Flow SP First Neutralization Stage pH PID SP Feed Flow or Reaction Temperature SP Feed Flow or Reaction Temperature SP Feed Flow or Column Pressure SP Flow Ratio or Feedforward Gain

139

PID Controllers

Key PID Features for Valve Position Control

Valve position control should minimize interactions with temperature loop, oscillations from valve backlash and stick-slip, and prevent saturation of temperature control valve for large disturbances

Feature Direction Velocity Limits Dynamic Reset Limit Adaptive Tuning Feedforward Enhanced PID

Function Limit VPC Action Speed Based on Direction Limit VPC Action Speed to Process Response Automatically Identify and Schedule Tuning Preemptively Set VPC Out for Upset Suspend Integral Action until PV Update

Advantage 1 Prevent Running Out of Valve Direction Velocity Limits Eliminate Manual Tuning Prevent Running Out of Valve Eliminate Limit Cycles from Stiction & Backlash

Advantage 2 Minimize Disruption to Process Prevent Burst of Oscillations Compensation of Nonlinearity Minimize Disruption Minimize Oscillations from Interaction & Delay

140

PID Controllers

Gas Reactants (Jacket BFW) Gas Product Optimization


PT PC

1-5
AC AT FT

1-5 product 1-5

1-6

1-6

Fast reaction, short residence time, and high heat release prevents inverse response in manipulation of reactant feed rate for temperature control.
BFW steam

average bed temperatures


TT

1-3a
TT

high signal selector


TY TC

FC FY

BFW

steam

1-3b
TT

1-3

1-3

ratio calc gas reactant A

1-1 BFW
FT

1-6 1-1 CA S
FC

steam Fluidized Bed Catalytic Reactor

1-3c

1-2

gas reactant B

FT

Temperature controller inherently maximizes reactant feed rate to amount permitted by the number of BFW coils in service
141

1-2

PID Controllers

Material Balance Type 1 (Direct)

V
FC LC FC

FC

TC

Change in temperature controller output does not affect column until level controller output changes so high level PID gain or feedforward is needed The level control of reflux provides some internal reflux control by decreasing reflux for an decrease in vapor flow from cold weather or rain storm
LC FC

FC

142

PID Controllers

Material Balance Type 2 (Indirect)

V
FC LC FC

FC

TC

FC

LC FC

143

PID Controllers

Material Balance Type 3 (Indirect)

V
FC LC FC

D
If the distillate flow (D) was on auto with a local set point instead of cascade with a remote set point from level, the material balance would be fixed and we would have separation control rather material balance control. Separation control is not recommended because it requires much larger adjustments to the V/F, energy per unit feed to control composition severely limiting the range of control (size of upsets and set point changes handled before low and high V causes weeping and flooding)
FC

FC

TC

FC

LC

144

PID Controllers

Material Balance Type 4 (Direct)

V
FC LC FC

FC

TC

steam level

FC

Inverse Response
LC FC

145

PID Controllers

Control Stage Location

+1%D/F

-1%D/F

146

PID Controllers

Temperature Sensitivity
100 99.8 99.6 99.4

DISTILLATE PRODUCT

COMPOSITION, wt%

99.2 99 98.8 98.6 98.4 98.2 98 85 90 95 100 105 110

BOTTOM PRODUCT

CONTROL STAGE TEMPERATURE, degF 147

PID Controllers

Disturbance Analysis

148

PID Controllers

PID Controller Option Checklist


The following checklist is not intended to cover all the configuration requirements but some of the major application details to be addressed for PID controllers. If you dont get the valve action and control action right, nothing else matters. The controller output will ramp off to an output limit. The valve action (inc-open and inc-close) can be set in many different places, such as the PID block, analog output (AO) block, splitter block, signal characterizer block, current to pneumatic (I/P) transducer, or the positioner. Make sure the valve signal is not reversed in more than one location for an inc-close (fail open) valve. Once the valve action is set properly, the control action is set to be the opposite of the process action. The control action is reverse and direct if a change in the PID output causes the PID process variable (PV) to increase or decrease, respectively. Verify with process engineer the valve action, process action, and resulting control action required. The setting of all options and parameters must be verified as applicable. Simulations representative of the dynamic behavior of the process and the field automation system along with the actual configuration to form a virtual plant is advisable for testing and confirmation plus training and opening the door to process control improvement (see Exceptional Opportunities in Process Control Virtual Plants) http://modelingandcontrol.com/2010/01/exceptional_opportunities_in_p_8/ Does measurement scale cover entire operating range including abnormal conditions? Is valve action correct (inc-open for fail close and inc-close for fail open)? Control action correct (direct for reverse process and reverse for direct process if valve action set)?

149

PID Controllers

PID Controller Option Checklist


Is PID Form ISA standard? Is output limits set to obey setpoint limits in cascade and remote cascade mode? Is back calculate correctly connected for bumpless transfer (PV for back calculate in secondary)? Is PID Structure correct for application (PI action on error, D action on PV for most loops)? Does setpoint track PV in manual unless setpoint must be inherently saved in PID? Do setpoint limits to match process, equipment, and valve constraints? Do output limits to match process, equipment, and valve constraints? Do anti-reset windup (ARW) limits to match output limits? Is execution time less than 10% of minimum reset time? Is signal filter less than 10% of minimum reset time? Is PID tuned with auto tuner or adaptive tuner? Is rate Time less than deadtime (typically zero except for temperature loops)? Is dynamic reset limit enabled for cascade, AO velocity limits, and slow valve? Are AO velocity limits set for blending, valve position control, and surge control? Is integral deadband > limit cycle PV amplitude from deadband and resolution?

150

You might also like