What you’ll learn in this article:
- Proper tuning requires understanding process characteristics, including time constants, deadtime, and open-loop gain.
- Load disturbances often originate from process inputs, not outputs. Effective tuning should prioritize disturbance rejection.
- Integrating, runaway and self-regulating processes require different tuning approaches, emphasizing the need for tailored methods.
- Poor tuning can contribute to safety risks, especially in exothermic reactions or pressure control scenarios where slow responses can lead to catastrophic failures.
- What are the best practices for tuning?
- The top 10 ‘uffdas’ you may encounter.
This year I am helping us laugh and possibly learn by making one of my humorous books available to download for free in this year’s first six columns. The fourth book is Logical Thoughts at 4:00 am. Humor can open minds and it can be fun to be silly. People didn’t realize that the knowledge was truthful and G.S. McWeiner was a humorous attempt to combine the authors Greg McMillan and Stan Weiner.
Greg: Now, let’s get serious and attempt to deal with the extreme differences in PID tuning that has led to several hundred different tuning rules. There is controversy and a lack of consensus so the contributors to the ISA-TR5.9-2023 Technical Report “Proportional-Integral-Derivative (PID) Algorithms and Performance” decided against including the topic of controller tuning methods. I am going to take on this considerable task with Michel Taube, principal consultant at S&D Consulting Inc., who offers his perspective on how tuning must improve process operation and safety. I hope we can put our emotions aside and seek some common ground.
I have all of Greg Shinskey’s books and greatly appreciated how he focused on improving PID control to improve process performance by understanding process dynamics. He worked mostly in the time domain, revealing the process response from material and energy balances and evaluating the time response seen on trend charts.
I initially used Bode plots for self-regulating processes and Nyquist plots for integrating and runaway processes to develop equations to estimate the effect of primary process time constant and loop deadtime on ultimate period and ultimate gain. However, I graduated to focus on the time domain. I learned how to write the ordinary differential equations (ODE) for material and energy balances that I could use in dynamic simulations to explore, develop, prototype and test process control improvements (PCI). I appreciate the additional guidance offered by Bode plots for self-regulating processes and the computation of gain margin and phase margin. I rarely see the use of Nyquist plots required for integrating and runaway (positive feedback) processes.
There are some disruptive mistakes. There are PIDs in a few programmable logic controllers (PLCs) and some academic publications that have the PID algorithm working in engineering units instead of percents resulting in more dire consequences. For example, changing flow measurement units for a PID algorithm working in engineer units while keeping the same flow span from a flow rate per second to flow rate per hour requires changing the PID gain settings by a factor of 3,600. The PID algorithm in industry nearly all work in percentages using the specification in engineering units for the measurement, setpoint and output spans in the PID configuration to convert these values to percents.
Some PIDs use the parallel form where the PID gain only affects the proportional mode and an integral gain instead of a reset time and a derivative gain instead of a rate time. Most modern controllers use a standard PID form but older controllers may be hanging on to the series form with a reset setting in repeats per minute. It is critical that you know the PID form and the units of the PID settings before you start tuning. ISA-TR5.9-2023 details the different forms and conversion of tuning settings.
Much of the control literature mistakenly shows disturbances as being on the process output rather than on a process input. This leads to false conclusions that a slow primary process time constant is detrimental and tuning for setpoint response with a low PID gain and little to no rate setting is best. Process output disturbances are rare and are usually associated with a process measurement problem. Process input disturbances from changes in stream flow, composition, temperature and pressure are frequent due to changes in raw materials, recycle streams, catalyst activity, equipment conditions (e.g., fouling) and controller outputs. Many changes in stream composition and equipment conditions are not measured.
The PID algorithm has been proven through applications and by intensive academic study to be the best algorithm for rejecting unmeasured process input disturbances termed load disturbances. More than 70 years of academic work has been wasted on attempts to develop an alternative to the PID algorithm without realizing the rejecting load disturbances better than a well-tuned PID is not real.
Often, literature leads one to believe there is one process time constant. In fact, there are many process time constants due to mixing, mass transfer and heat transfer. In addition, many instrumentation time constants are due to sensor lags, damping settings, signal filters and valve response time. Hopefully, the primary time constant is in the process and large so it slows download disturbances and enables a large PID gain especially when response is computed as near integrating. The ultimate limit to the peak and integrated error is inversely proportional to the primary process time constant. While a large process time constant does slow down a setpoint response, setpoint feedforward and a setpoint lead-lag can significantly help. Also, setpoint changes in primary loops are occasional while load disturbances are frequent.
Another misdirection is the unconditional goal of making a gradual transition to controller output’s final resting value (FRV), which can be an offshoot of thinking the disturbances are on the process output and the process is self-regulating and not dominated by a large process time constant. I saw this touted as essential in a series of articles about five years ago by a well-known consultant. For integrating and runaway processes, the controller output must overshoot its FRV to return to an existing setpoint for a load disturbance or reach a new setpoint.
Also, for pressure and exothermic reactor temperature control, the overshoot needs to be large even approaching an output limit, to provide a fast approach to the setpoint that is safe and efficient. For temperature control, a larger utility flow increases the heat transfer coefficient reducing the utility flow. If the process variable excursion rate is not mitigated by immediate and proactive change in controller output, pressure relief and safety instrumented systems (SIS) are activated. For highly exothermic reactors, the runaway response can reach a point of “no return” when controller output changes are not fast and large enough. I have personally been in a control room when this happened. I was asked to put on a face mask and stay sheltered in place because the reactor temperature had reached a point of “no return” resulting in reactor contents blowing over to a flare stack.
Self-regulating processes with a large time constant are termed “near-integrating” and use tuning rules and settings that provide aggressive FRV overshoot. If there must be some limitation as to the controller output rate of change, up and down rate limits can be configured in configuration to provide directional move suppression, a feature found to be very useful in model predictive control. Simple turning on external reset-feedback (ERFB) eliminates the need to re-tune the PID. Tuning should first be tested without the rate limits. Intelligent directional moves suppression is effectively used to prevent unnecessary crossings of the split range point and prevent the common substantial persistent oscillations caused by large stiction, installed valve characteristic nonlinearity, discontinuity, and transitions in masses and energy as valves try to open and close.
A rate limit is only imposed to slow down a reversal of manipulated valve direction after crossing the split range point. A valve position controller (VPC) is commonly used to optimize operator conditions but they are often tuned to provide very slow action to allow process loops to catch up but this slow action may interfere with correction for fast load disturbances.
Get your subscription to Control's tri-weekly newsletter.
Directional move suppression in VPC can provide a slow approach to a more optimum operating condition and a fast getaway for protection against fast load disturbances. See ISA-TR5.9-2023 for more details on the many advantages offered by ERFB to provide smooth and aggressive changes as needed and to prevent oscillations from slow valves and slow secondary loops.
Often not recognized is the integrated error for load disturbances is proportional to PID reset time and inversely proportional to PID gain setting. The peak error is slightly reduced by a decrease in PID reset time but is more reduced by an increase in PID rate setting and greatly reduced by an increase in PID gain setting. Studies that do not minimize reset setting and maximize gain and rate settings can be misleading. For example, the effect of a proactive significant decrease in measurement deadtime (e.g., decrease in sensor fouling or increase wireless update rate), will not show the benefit until the PID is tuned with a larger PID gain and smaller reset time.
Better tuning rules, procedures, objective and tests
The best strategy is to identify the open-loop dynamics that consists of total loop deadtime, open-loop gain, and primary and possibly secondary time constants. For integrating processes, the open-loop gain is integrating gain and for runaway processes, the primary time constant is a positive feedback time constant. My March article “Fundamentals to better understand process dynamics” helps deal with the many misunderstandings about dynamics often proliferated by conflicting terminology.
Dynamic simulations that include all the process dynamics (e.g., mixing delays, transportation delays, heat and mass transfer lags), valve or variable frequency drive dynamics, measurement location, sensor and transmitter dynamics, and digital control dynamics also able to run faster than real time are an excellent way of getting started. For greenfield projects and runaway processes, it is essential. The inclusion of the dynamic simulation in a digital twin with the actual controller configuration is the best approach.