ISA Interchange

Welcome to the official blog of the International Society of Automation (ISA).

This blog covers numerous topics on industrial automation such as operations & management, continuous & batch processing, connectivity, manufacturing & machine control, and Industry 4.0.

The material and information contained on this website is for general information purposes only. ISA blog posts may be authored by ISA staff and guest authors from the automation community. Views and opinions expressed by a guest author are solely their own, and do not necessarily represent those of ISA. Posts made by guest authors have been subject to peer review.

All Posts

Simple Enhancement of PID Control

 

This guest blog post was written by Rick Slaugenhaupt, a senior engineer for MAVERICK Technologies. This is part one of a two-part series. Click this link to read Part 2.

 

The venerable PID is assuredly the most widely used algorithm in industrial process control. Its simplicity, reliability and familiarity make it a staple for closed-loop control throughout the industrialized world. Many control engineers apply this tool to every process or system requiring closed-loop control. Despite this default status as the "go-to" solution for feedback control, it isn’t always the right choice. Some processes simply aren’t well-suited for PID control, and force-fitting this tool into the wrong set of conditions can have far-from-ideal results. The PID was developed for linear first-order response systems, and when a system exhibits non-linear or a higher-than-first-order response, applying PID can be a frustrating experience.

Simple Enhancement of PID Control

This long-established limitation has given birth to some useful variations of PID that fall into a category of automation described as advanced regulatory control. Some simple techniques from this category can solve many incompatibility issues through external compensation or the application of feedforward. Though technically defined as advanced, these methods are not very difficult to implement, and are supported by existing features or readily available add-in components. This first blog post in a two-part series will focus on the aspect of non-linear behavior.

The PID algorithm assumes certain conditions

Linear first-order response If you read many articles about PID tuning, you’ll quickly detect an unstated assumption about the target system’s open-loop transient response. Time constant, dead-time and system gain are important aspects of the response which are nearly always described by examples of first-order systems having a step response of the form:

step response equationwhere A = step amplitude, k = system gain, τ = time constant, t = elapsed time

This simple decay-related function is quite common, and is revealed in systems which contain a single energy storage element – like a discharging capacitor or the cooling of a fluid in a container. Not all systems are this simple, however, and there are also many complex systems which are higher-order or exhibit a variable system gain. Non-linear and non-first-order systems are not easily handled by the PID algorithm, and tuning one of these can be challenging at best.

Timely and accurate PV measurement Another basic requirement for effective PID application is proper measurement of the process variable (PV) being controlled. A noisy or delayed measurement of the PV can also wreak havoc on the tuning process.

Directly controlled Yet another assumed condition is that the system is actually being controlled by the algorithm. This may seem like an obvious requirement, but is still overlooked quite frequently in real life. A system which controls temperature by modulating a valve works fine until the valve is overridden by an operator. This will often happen when an operator becomes impatient with a system’s response to a setpoint change, or conversely, wants to slow or hold that response. When the PID has a substantial integral component, this situation can cause a control upset requiring a substantial recovery time.

Non-linear response can be solved with a linearizing compensator

Non-linear actuator Some otherwise normal systems can exhibit non-linearity because the final control element is inherently non-linear. One such example is improper selection of valve trim. Another can result from applying the wrong type of valve – such as using a butterfly or ball valve for flow control.

Non-linear system Some systems are inherently non-linearity because the energy driving the system is not constant. An example of this is an otherwise linear valve controlling flow from a draining tank. As the level in the tank changes, the changing pressure head correspondingly affects the system gain.

The external compensator Non-linear systems can be "linearized" through the use of a compensator. In either of the cases described above, the variable flow characteristics can be calculated or empirically measured. The resulting matrix of valve position vs. flow can be inverted and used as a compensating function to re-establish linear response for the system. Implementing this inverse lookup method can be even accomplished through use of off-the-shelf components. One such component is the strapping table function (P_StrapTbl) from Rockwell’s PlantPAx object library.

Though specifically intended for converting a tank’s level to its corresponding volume, the instruction is useful for this more generic application as well. Simple enhancements like those described above can expand the range of effectiveness for the already ubiquitous PID controller. Even though the algorithm assumes a linear first-order response, non-linear systems can be addressed with a compensator. Where more complicated effects must be solved, other techniques can be combined with the feedforward capability of most standard PID functions to achieve a highly functioning result. That method will be covered in Part 2 of this blog series.

 

About the Author
Rick Slaugenhaupt is a consultant for MAVERICK Technologies with more than 30 years of industrial controls experience. Prior to joining MAVERICK, he served as a plant engineer, software designer and independent consultant for small and large companies alike. His work has involved all aspects of engineering design & construction of production equipment, processes and systems  for continuous and discrete manufacturing, metals, powders, chemicals, water treatment, facilities management and security.

 

Connect with Rick
LinkedIn

 


Related Posts

IoT Solutions World Congress: Why Barcelona is the Place to Be in May

A century ago, automation solutions arrived to transform manual industrial tasks. This century, the digit...
Renee Bassett Apr 2, 2024 7:00:00 AM

3 Ways Industry 4.0 Can Upgrade Industrial Water Treatment Methods

Industrial water treatment methods must evolve to remain relevant and efficient. Many decision-makers hav...
Emily Newton Mar 12, 2024 7:38:26 PM

ISA Business Academy: A Mini-MBA For Automation Industry Leaders

The ISA Business Academy is a 10-week fully digital program beginning 28 March for both current and aspir...
Ashley Ragan Mar 11, 2024 10:08:24 AM