Você está na página 1de 5

instrumentation

When is PID Not the Answer?


Social media group member posits the question: How come PID is the answer to so many applications? Is it because advanced control is rarely needed or that control engineers are not pushing the envelope?
David Greenfield Control Engineering

ID has long been one of the more popular topics covered at Control Engineering, and for good reason our subscribers see it as an integral component of their work. The popularity of the topic among control engineers worldwide does not appear to be waning either. Looking back over the past two years, loop tuning and PID-related articles are consistently among the most popular articles visited on the Control Engineering Website. So when Parasar Kodati, application support engineer at the MathWorks, posted this question on the Automation & Control Engineering LinkedIn site: When PID is not the answer: What

Standard PID algorithm

is Advanced Control good for? a high level of response was assured. Kodati noted that, while a graduate student, he was amazed by the subject of control and couldnt wait to see the applications of the theory applied in industry. Three years after graduation, however, he began to wonder why PID seemed to be the answer for so many applications. Members of the social media group quickly responded, and continued to do so for months after the initial post. Their responses largely broke out along three lines: why PID is right for so many applications, when advanced control is more suitable, and how to analyze a situation to determine if PID or advanced control is the best option.

Disturbances

1
Setpoint + -Error

Kp Td

1 Ti
d dt

+ +

Process

Controller

Process variable

Source: Control Engineering

The standard or ISA standard form of the PID algorithm allows a user to simultaneously adjust the contributions of all three terms by means of a single tuning parameter (Kp). The proportional, integral, and derivative actions all depend on the value of Kp; hence the alternative label dependent or dependent ideal PID. This arrangement is occasionally labeled the academic algorithm even though academicians rarely use it. Source: Control Engineering, Sorting Out PID Controller Differences by Vance VanDoren, February 2009.
54

When PID is enough From my experience, a great many systems have very simple dynamics, and in these situations PID is often sufficient to provide the performance needed, said Doug Harriman, senior mechatronics engineer at Hewlett-Packard. PID controllers can be more intuitive to tune. Its easier to reason out the expected behavior when changing one of the PID gains than it is to think about pole placement. He also noted that, since most engineers never take any advanced control theory, this could be another reason behind PIDs popularity. Kareem Suhwail, systems engineer at RoviSys, says that, from an automation perspective, PID is more than enough for 99% of control situations. Realize that, while

MARCH 2010 CONTROL ENGINEERING www.controleng.com

studying advanced controls, you are often given transfer functions, block diagrams, state equations, etc., it is virtually impossible to model a running production line with these and it is unrealistic to perform an expensive advanced control analysis for the small gains it would give you over PID, he said. Most control loops in the chemical industry, while non-linear to some degree, are linear enough in the normal control region near setpoint for which PID works fine, said Joseph Alford, a consultant with Automation Consulting Services. It may not be not optimal control, but its good enough. Alford also echoed Harrimans comments that most engineers typically do not take more than one undergraduate control course and so have only been trained on PID and a few related simple control configurations (e.g., cascade). Add to the education factor PIDs simplicity and off-the-shelf availability, and you have three very big reasons for PIDs dominance in control applications. In another part of his comment, Alford referred to a survey he had seen which indicated that audits of many industrial control loops using model-based or other complex control strategies often had the loops set in manual mode. Alford said this was often the case after the engineer who designed the advanced control strategy had moved on to another assignment. This indicates that, for most engineers, it is difficult to maintain continuous support of complex control loops when new support people are not familiar with the control algorithm. There are probably also validation issues regarding complex control algorithms in highly regulated industries such as pharmaceutical, biotech, medical devices, and nuclear, said Alford. Though many industrial processes are becoming more challenging, Thomas Swift, an industrial automation and control professional, says that PID remains his tool of choice for most of the control issues he encounters. Even in many advanced applications, classical methods such as feed forward and cascaded feedback are, in my experience, much preferred to increasing the complexity of the core control algorithm, he said. The secret to the success of PID-based control architectures (such as ratio control, cascade control, and feedforward control), according to Massimiliano Veronesi, product marketing manager at Yokogawa, are the low cost/high benefit ratio they provide. It is not always easy to measure the performance improvement provided by

Automation & Control social media forums


To become a part of the conversation or merely follow the Automation & Control discussions in real-time, access the forums on Facebook and LinkedIn via the following links: Automation & Control Engineering group on LinkedIn: http://tinyurl.com/y8tckah Automation & Control group on Facebook: http://tinyurl.com/yk43xmf

[advanced] control strategies and translate it into a real return on investment.

Alternate options While most respondents agree that PID is good enough for most control applications, what about those instances when its not good enough? What then are the best options engineers should learn more about in order to consider them for application? PID only, in its simplest form, is not enough for position control for extremely dynamic or second order systems, said Richard Meyerhoefer, sales manager at Delta Computer Systems Inc. Advanced algorithms are available that will create a system model and automatically calculate additional gains such as velocity feed forwards, acceleration and deceleration feed forwards, jerk feed forwards, and double derivatives. These advanced gains are based upon natural frequencies. PID is used to correct for non-linearity. Feed forwards should be able to correct for 90% of the error. In these cases, [only using] PID leads to very unstable systems. Meyerhoefer adds that it is often a lack of understanding on the part of many engineers that lead them to abandon closed loop control options in favor of more mechanical options. Unfortunately, in many instances, these options often lead to a lack of repeatability, lower resolution, and increased down time. PID coupled with Smith Predictor can address simple transport delays easily, according to Sergei Kuznetsov, principal control systems engineer at The Automation Group. He noted that he has seen Smith Predictor used for a wood chip level control that had been working in manual mode for more than 20 years. The client ended up saving $1.5 million dollars in raw material costs annually (about 7%), Kuznetsov said. Model-based control is clearly a superior approach, from the standpoint of responsiveness, following errors and settle time, in those situations where it can be applied, said Michael Thompson, principal development analyst at The
www.controleng.com

ONLINE
To access all Control Engineering PID-related content, input PID into the search box atop any page at www.controleng.com.

CONTROL ENGINEERING MARCH 2010 55

instrumentation

The ideal form of the PID formula

There are also many situations where non-linear gain scheduling can be effectively employed in a PID control-loop without additional sensors or significant complexity, according to Thompson. In such cases, the gain-scheduling may simply be a transfer function that maps a non-linear variable to a more linear one. In these cases, the PID controller would act the same.

CO(t) is the controllers current output; e(t) = SP - PV (t) is the error between the set point (SP) and the process variable PV(t); P is the controller gain; T1 is the integral time TD is the derivative time. Source: Control Engineering, Loop Tuning Fundamentals, by Vance VanDoren, July 2003.

Timken Co. However, model-based control often requires additional terms in the feedback loop. For example, if I am trying to change the temperature of a volume of liquid in a storage container, it definitely helps to know how much liquid is present in addition to the temperature of the liquid. Charging a battery is a similar problem. It helps to know how much charge it already has. Sometimes that information is not so easy to determine from the available sensors.

Dont forget advanced control basics


While its tempting to apply any number of advanced control methods to optimize a given process to its ultimate in performance, the reality is that most processesand process ownersdo not require that level of control. If the control method cant deliver in terms of cost and quality improvements, its usually not the answer you need. To keep your control method decisions as useful as possible, George Buckbee, vice president of marketing and product development at ExperTune Inc., offers these four checkpoints: Realize that the control hardware in an existing plant is often in bad condition. A typical process plant can expect about 30% of control valves to have mechanical issues, says Buckbee. If you have sticky control valves, noisy instrumentation, or poor installations, then it doesnt really matter what type of controller you have. You will still have poor performance. Have reasonable expectations. If a loop has large dead time, then you wont get great control from any feedback controller because feedback control is like driving your car by looking in the rearview mirror. Most plant personnel dont know how well their existing controls are performing. Ive personally been in hundreds of plants, and typically 30% of PID loops are running in manual mode, and nobody knew it, said Buckbee. He adds that control loop monitoring software can be used to diagnose and give visibility to instrument, valve, and control performance. Focus on the root cause of process upsets. I have seen many plants installing model predictive control on distillation columns, when the fundamental problem is process upsets coming from utilities. Youll often get a better return on investment from stabilizing the boiler plant operations, he said. The trick is to be able to analyze the data for root cause.

Application advice Regardless of whether PID is adequate for most applications or not, the only thing that really matters from an engineering perspective is which control method will provide the optimal result for the particular application the engineer happens to be working on at the time. This next set of advice from practicing engineers addressed just that. As a starting point, Igor Begelfor, instrument package engineer at AMEC, suggests that when PID does not work, start looking at the field measurement and control devices, as they have likely been misapplied. Once youve eliminated these as the problem and concluded that PID may not provide the optimal control for your project, its time to start looking closely at the application. Recalling work on systems with extensive higher order dynamics that needed to meet stringent stability and tracking requirements, Hai Ho, vice president of engineering and product development at HID Global, noted his use of multi-variable state space, adaptive, and learning control methods rather than PID. The systems requiring this advanced level of control were: a digital flight control system for satellite missiles; and controlling the position of a magnetic read/ write head to the micro-inch accuracy under wind disturbance conditions equivalent to a category 4 hurricane. Offering a more practical example using nonlinear gain scheduling, consider the problem of a scanning CMM (coordinate measuring machine), suggested Michael Thompson, principal development analyst at The Timken Co. During scanning of the surfaces, the axes of the machine are controlled using feedback from a probe. However, most probes only provide feedback over a very narrow range. A contact-based probe cannot provide useful feedback when it is not in contact with the surface or when it is over deflected. Also, these machines generally try to scan the surface with minimal probing forces (for reduced wear, less deformation of the surface, and greater accuracy). So the control problem is highly asymmetric, he said. Near the target force/deflection (when error is nearly zero), acceptable and stable control can be achieved with linear gains and standard PID

56

MARCH 2010 CONTROL ENGINEERING www.controleng.com

Tank Gauging Problems?


control. But when the probe is undeflected, the error signal is low (because of the low target force) so you must rely on heavy integral gain in order to achieve a reasonable approach velocity, Thompson said. That heavy integral control is not necessarily desirable once the probe is in contact with the part. In fact, the integrator wind up in such a case can lead to over-deflection of the probe during overshoot after the probe makes contact. Likewise, if the probe approaches an overdeflection condition, it is desirable to drive it much harder than normal in order to avoid the over-deflection. One technique that Thompson said he has used to address these problems is to apply control action that is proportional to the cube of the error term in addition to the normal (linear) proportional control. The cube is used to maintain the sign of the error term. To address the asymmetry, I chose to toggle the gain sets depending on whether the probe was minimally deflected or not, but a quadratic term could also be used to create asymmetry. One reason why I have preferred to toggle the gain sets is due to the fact that the damping of the probe changes when it is in contact with the surface. Ultimately, Thompson says the gains are chosen so that there is a linear region around zero error. Via non-linearity (cubic and quadratic for example), the transfer function is made much stronger than normal when the probe approaches an undeflected or over-deflected condition, he said. The stronger response in these regions would not be stable if it was applied linearly throughout the range of probe deflection. Therefore, the zero-error condition becomes a region of stability where gains are sufficiently low to avoid instability.

LIQUID LEVEL COMPUTERS


The LevelCom 100 uses pulsed bubbler depth sensing technology, which resolves many of the problems long associated with continuous flow bubblers and reduces air consumption.

Final analysis Helping to encapsulate this wide-ranging discussion, one post in particular got to the core of the issue as it pertains to the day-to-day duties of a control engineer. Thomas Stevic, a controls engineer at DMAX, said that when designing a solution to a problem, he finds that he typically has two masters to serve. The first master is the person who is responsible for the output of his design. This is often the person who pays the bills, Stevic said. These people usually do not care how a machine or process works. Their concern is: Does the machine make what it is supposed to make? While exotic solutions may increase quality, decrease production time, make better use of resources and, from an engineering viewpoint, be very cool to use and inch closer to perfection, their use is not often a benefit to the first master. The second master is described by Stevic as the person or people who will maintain the system after I am gone. Ultimately, my designs have to address the least capable people who may be required to maintain or modify my design. Given the requirements of the second master, Stevic says that, given a choice between using adaptive neural network control or a thermostat, if the thermostat will work, that is what he will choose. If neural nets or fuzzy logic are required to produce the desired result, I will use them, but only after examining the simpler solutions, he said. ce
David Greenfield is editorial director. Reach him at david. greenfield@reedbusiness.com.

Applications can be in a vented or pressurized tank the liquid must be able to tolerate air or nitrogen injection. Typical applications include oils, fuel, potable water, viscous fluids, slurries, acids, wastewater and foaming liquids.
Features include: Field configurable with multiple set points and specific gravity corrections Integrates with third party controllers, DCS, data acquisition systems, and software Modbus connectivity standard with DeviceNet and Profibus available Diagnostic capabilities detect leaks, plugged lines, pressure problems, and hardware errors.

6040 N. Cutter Circle, Suite 302 Portland, OR 97217

TMS

www.levelcom.net

P: 503.285.8947 F: 503.285.1379

www.controleng.com

CONTROL ENGINEERING MARCH 2010 57

AU

TO

TIVE MO

AERO SP A

CE
M

FRESH IDEAS ON INTEGRATING MECHANICAL SYSTEMS, ELECTRONICS, CONTROL SYSTEMS AND SOFTWARE IN DESIGN

CO

S CT NSU MER PRODU

Analogies Give Engineers Insight


Insight based on fundamentals is the key to innovative multidisciplinary problem solving
A person trying to explain a difficult concept will often say Well, the analogy is The use of analogies in everyday life aids in understanding and makes everyone better communicators. Mechatronic systems depend on the interactions among mechanical, electrical, magnetic, fluid, thermal and chemical elements, and most likely combinations of these. They are truly multidisciplinary and the designers of mechatronic systems are from diverse backgrounds. Knowledge of physical system analogies can give design teams a significant competitive advantage. Consider the exhaust system of a motorcycle and its heat shield. Temperatures have to be controlled through design for performance but also to protect the rider. Being able to model this system as a network of thermal resistances and capacitances, just like an electrical circuit, is a powerful design tool. It allows the engineer to visualize the flow of heat and the storage of thermal energy, and specify key temperatures by selection of materials and geometries that vary the network thermal resistances (conduction, convection and radiation) and capacitances. Improving performance happens with understanding not by trial and error and quickly. To explore in some depth the nature of physical system analogies, lets use the common electrical-mechanical analogy. These systems are modeled using combinations of pure (only have the characteristic for which they are named) and ideal (linear in behavior) elements: resistor (R), capacitor (C) and inductor (L) for electrical systems, and damper (B), spring (K) and mass (M) for mechanical systems. The variables of interest are voltage (e) and current (i) for electrical systems and force (f ) and velocity (v) for mechanical systems. Refer to the figure, below, that shows the model structures for these systems. The analogy is obvious!
Model Structure for Electrical Systems e
=e dt e=iR

We can use this analogy to explain the flow of current and the changes in voltages in a LC (inductor-capacitor) electrical circuit difficult to envision for most mechanical engineers and even for some electrical engineers by comparing it to a spring-mass mechanical system. The figure, below left, shows this comparison. The BY KEVIN CRAIG diagram, below right, is color-coded: Kevin C. Craig, Ph.D., green, blue, purple and orange diaRobert C. Greenheck grams for each system correspond to each other. By comparing the motion Chair in Engineering Design & Professor of of the mass its changing potential energy corresponding to energy stored Mechanical Engineering, College of Engineering, in the electric field of the capacitor and its changing kinetic energy corre- Marquette University. sponding to energy stored in the magnetic field of the inductor one can better understand how electrical capacitors and inductors function.
i=0 L eL i L eL imax L eL=0 i L C eC eL L C eC=0 eL=0 i C eC L C eC eL imax C eC=0 M v = max x=0 M v = max x=0 L C eC eL i C eC L i=0 K C eC M v=0 x = +max M v=0 x = -max K

Model Structure for Mechanical Systems f fp=f dt


f=Bv

eL

e=

q C

=Li

f=Kx

p=Mv

For enhanced multidisciplinary engineering system design and better communication and insight among the design team members, the use of analogies is a powerful addition to an engineers toolbox.
Visit the Mechatronics Zone for the latest mechatronics news, trends, technologies and applications: www.mechatronicszone.com

q=i dt

x=v dt

30

MARCH 2010 CONTROL ENGINEERING www.controleng.com

U
N

FA

MECHATRONICS IN DESIGN

ES

Control Systems
Digital Control Systems

IC
A

M AT E R I ALS PR OC

Control Electronics

RAPHY ROG XE

Software

mechatronics
Mechanical CAD Electromechanics

Electronic Systems

Mechanical Systems

TU
S

NS FE DE
E
Y
S

RI NG

Você também pode gostar