3
InTech magazine—CONTROL FUNDAMENTALS This articl e first app eared in InTech, May, 1999 Tuning process controllers starts in manual By Joh n Gerry  Fi nding t he lag and dead times and th e process gai n opens t he door t o PID cont rol, efficiency, and higher profits. PID controller s are designed to automatical ly control a process varia ble li ke flow, temperature, or pressure. A c ontroller does this by changing process i nput so t hat a process output agrees with a desir ed result: the set p oint. An exampl e w ould be changing the heat around a tank so that w ater coming out o f that tank always measures 100° C. Usual ly adj usting a val ve cont rols the process vari abl e. How the controller adj usts the val ve to keep t he process vari able at the set point depends on process parameters ent ered into t hree mathematical functions: proportional (P), integ ral (I) and deriva tive (D). Se e InTech's Januar y 1999 T utorial for the det ails on t he mathematics involv ed in P, I, and D c ontrol. So, how does one set the parameters so that the controller does its job? Some pro cesses are unruly Fir st, know that t here is more to tuning a PID loop than just setting t he tu ning par ameters. The process has to be cont roll abl e. Y ou won' t be able to get good t emperature in a hot showe r if there is no hot wate r or if the adjusti ng valv e is too small or too la rge.  Assuming the process can be conquered, then you can begin tuning it. The goal for good tuning is to have the fastest response possi ble without causi ng instabil ity. One o f the best t ools for measur ing response is integrated absolute error (IAE). Honing in on th e set po int  A con trol scheme's goal is to mini miz e t he t ime and magni tude that the process var ia ble strays fr om the set point when an upset occurs. T o calcula te the IAE, simpl y add up t he absolute value of t he error during each digi tal controller sa mple.  Adding the se values toget her yields a number. Adjusting the PID par ameters to mini miz e t his number is known as mini mum integrated absol ute error (MI AE) t uning. Gra phical ly the IAE is the area i n the graph betw een t he set point and t he process vari able. In Fi gure 1, this area is colored blue. Figure 1. The error measurement is the area in blue. Minimizing this area maximizes the process's economic benefits.  A poorly tuned proce ss r esults i n sending a ri cher product t han necessary out the door and with it, p rofits. Or, i t causes off specifi cation product, which requires r ewo rk and i ncreased cost. W ith bett er tuning one c an giv e away less whil e staying on spec. For exampl e, met hyl tertiary butyl ethylene (MTBE) added to inexpensi ve gasoli ne increases the oc tane number. Bec ause MTBE is expensive, you want to add just enough to reach the target octane level. Add too much MTBE and you give away unnecessarily strong gas. Add too little and the gasoline won't reach the regulated octane level. Ideally, you want to control the added MTBE to give the octane level close to the regulated level without going below it. Bring in baseline parameters To perform the t uning chore, ce rtain fundamental measurements must be taken. Spec ifi call y the process's l ag time, dead t ime, and gain must be determined. To do this, set the controller on manual. Set its output to somewhere between 10 and 90%. Then, wait for the process to reach steady state. Next, change t he cont roll er output quickl y in a s tepw ise fashion. T he process vari able wil l begin to change t oo, afte r a peri od of t ime. This period of time is call ed t he process dead t ime. The process la g time is how long it takes for the process var iabl e (PV ) to go 63% of the w ay to w here it event uall y ends up. T his would mean that if the temperature increased from 100° to 200°, the lag time would be the time it took to go from 100° to 163°. Home Search Contact Us  LIBRAR Y MENU Table of Contents Performance Supervision PID Loop Optimization Basic PID Tutorials  MORE RESOURCES Webinars Training Newsletter  "Excellent video! Very nice! I remember how surpr is ed I w as the fir st t ime I encount ered a dramatic disparity between the load response and the setpoint response. It’s not at all obvi ous that that could happen." Vance Van Doren, Consulting Editor, Control Engineering Performance Improvement Software Industrie s Products Case Studie s Libra ry Trai ning About Us 7/26/2010 Tuning Process Controllers Starts in Ma… expertune.com/ArtInTechMay99.html 1/3

Tuning Process Controllers Starts in Manual

Embed Size (px)

Citation preview

Page 1: Tuning Process Controllers Starts in Manual

8/8/2019 Tuning Process Controllers Starts in Manual

http://slidepdf.com/reader/full/tuning-process-controllers-starts-in-manual 1/3

InTech magazine—CONTROL FUNDAMENTALS

This article first app eared in InTech, May, 1999

Tuning process controllers starts in manual

By Joh n Gerry 

Finding t he lag and dead times and th e process gain opens t he door t o PID cont rol, efficiency, and higher profits.

PID controllers are designed to automatically control a process variable like flow, temperature, or pressure. A controller does this bychanging process input so t hat a process output agrees with a desired result: the set point. An example would be changing the heataround a tank so that w ater coming out o f that tank always measures 100° C.

Usually adjusting a valve cont rols the process variable. How the controller adjusts the valve to keep t he process variable at the set pointdepends on process parameters ent ered into t hree mathematical functions: proportional (P), integ ral (I) and derivative (D). SeeInTech's January 1999 Tutorial for the det ails on t he mathematics involved in P, I, and D control.

So, how does one set the parameters so that the controller does its job?

Some pro cesses are unruly

First, know that t here is more to tuning a PID loop than just setting t he tuning parameters. The process has to be cont rollable. Y ouwon' t be able to get good t emperature in a hot showe r if there is no hot wate r or if the adjusting valve is too small or too large.

 Assuming the process can be conquered, then you can begin tuning it. The goal for good tuning is to have the fastest responsepossible without causing instability. One o f the best t ools for measuring response is integrated absolute error (IAE).

Honing in on th e set po int

 A con trol scheme's goal is to minimize t he t ime and magnitude that the process variable strays from the set point when an upsetoccurs. To calculate the IAE, simply add up t he absolute value of t he error during each digital controller sample.

 Adding the se values toget her yields a number. Adjusting the PID parameters to minimize t his number is known as minimum integratedabsolute error (MIAE) t uning. Graphically the IAE is the area in the graph between t he set point and t he process variable. In Figure 1,this area is colored blue.

Figure 1. The error measurement is the area in blue. Minimizing this areamaximizes the process's economic benefits.

 A poorly tuned proce ss results in sending a richer product t han necessary out the door and with it, p rofits. Or, it causes off specification product, which requires rewo rk and increased cost. W ith bett er tuning one can give away less while staying on spec.

For example, methyl tertiary butyl ethylene (MTBE) added to inexpensive gasoline increases the oc tane number. Because MTBE isexpensive, you want to add just enough to reach the target octane level. Add too much MTBE and you give away unnecessarilystrong gas. Add too little and the gasoline won't reach the regulated octane level. Ideally, you want to control the added MTBE togive the octane level close to the regulated level without going below it.

Bring in baseline parameters

To perform the t uning chore, ce rtain fundamental measurements must be taken. Spec ifically the process's lag time, dead t ime, andgain must be determined. To do this, set the controller on manual. Set its output to somewhere between 10 and 90%. Then, waitfor the process to reach steady state.

Next, change t he cont roller output quickly in a stepw ise fashion. The process variable will begin to change t oo, afte r a period of t ime.This period of time is called t he process dead t ime.

The process lag time is how long it takes for the process variable (PV ) to go 63% of the w ay to where it event ually ends up. Thiswould mean that if the temperature increased from 100° to 200°, the lag time would be the time it took to go from 100° to 163°.

 

Home Search Contact Us

 

LIBRAR Y MENU

Table of Contents

Performance Supervision

PID Loop Optimization

Basic PID Tutorials

 

MORE RESOURCES

Webinars

Training

Newsletter 

"Excellent video! Very nice! Iremember how surprised I was thefirst t ime I encount ered a dramaticdisparity between the loadresponse and the setpointresponse. It’s not at all obvious thatthat could happen." Vance VanDoren, Consulting Editor, Control Engineering 

Performance Improvement Software

  Industries Products Case Studies Libra ry Training About Us

7/26/2010 Tuning Process Controllers Starts in Ma…

expertune.com/ArtInTechMay99.html 1

Page 2: Tuning Process Controllers Starts in Manual

8/8/2019 Tuning Process Controllers Starts in Manual

http://slidepdf.com/reader/full/tuning-process-controllers-starts-in-manual 2/3

The process gain, or merely the gain, is found by dividing the tot al change in the PV divided by the change in the cont roller output .

Dead time dictates

 A process t hat consists only of lag is easy to control. Simply use a P-only controller with lots of gain. It w ill be stable and fast.Unfortunately the se processes are rare because of another dynamic element of most real processes: dead time.

Sometimes overlooked, dead time is the real limiting factor in process control. Dead time is the time it takes for the PV to just start tomove after a change in the controller's output. During the dead time, nothing happens to the pV.

So, you w ait. A cont rol loop simply cannot respond faster t han the de ad time. Hopefully, the process is designed to make dead time assmall as possible.

With dead time in t he proce ss, gain can be increased to get a faster response, but this will cause loop oscillation. If gain is increasedeven more, t he process will become unstable.

Some like it simple

From the process gain, lag and dead times, we can build a simple tuning table for bot h PI and PID controllers. Table 1 comes from acontroller design method called internal model cont rol (IMC). Each cell yields a numerical setting t hat an operator plugs into a controller.

ControllerType

ControllerGain (no

units)

In tegral Time(seconds)

DerivativeTime

(seconds)

PI control not applicable

PID control

process dead time (seconds)

process lag time (seconds)

K = process gain (dimensionless)

used for aggressive but less robust tuning

used for more robust tuning

Some controller mechanisms use proportional band instead o f gain. Proportional band is equal to 100 divided by gain.

The values in the table are for an ideal type cont roller. The controller comput es cont roller gain, integral time, and derivative time usingthe fo rmulas shown. Other tables and computational methods, of which there are many, are needed for other systems.

Compare the methods fo r fun

Figure 2 compares the IMC tuning method outlined above to a more sophisticated method, t he MIAE, which uses performance criteriadeveloped using expert systems.

The process described was found to have a 30-second lag time, a 10-second dead time, and gain of 1. The more aggressive sett ing (

was used for the IMC method.

Figure 2. The red line is IMC tun ing and yields an IAE of 42. The blue line show s anadvanced tuning method w hich yields an IAE of 8.

The IMC does produce a nice smooth response and it provides a starting place for optimizing the cont rol loop. However, tuning w ith amore advanced algorithm aimed at minimizing IAE gives an IAE t hat's bet ter by a fact or of 5. The advanced tuning method was muchfaster as well.

Further, the minimum IAE tuning ensures the minimum amount of excessively rich product product ion while staying close to andexceeding specifications. Thus, an improvement in IAE is directly proportional to the dollars saved. In t his example, t he IAE tuning savesthe user 500% ove r the simpler IMC.

Start at ground zero

7/26/2010 Tuning Process Controllers Starts in Ma…

expertune.com/ArtInTechMay99.html 2

Page 3: Tuning Process Controllers Starts in Manual

8/8/2019 Tuning Process Controllers Starts in Manual

http://slidepdf.com/reader/full/tuning-process-controllers-starts-in-manual 3/3

 Assuming a given process and cont roller are of a specific type, a simple t uning method can get you started in setting PID parameters.Using more advanced opt imization methods w ill enable increased p rocess efficiency and higher profits.

Behind the byline

John Gerry holds a M.S. in chemical engineering from the University of Texas and he's a P.E. He has worked fo r Foxboro Company,Eastman Kodak, Eli Lilly, and S.C. Johnson. His article on power spectral density analysis appeared in InTech's August 1998 issue. Hefounded and is the president of Expe rTune Inc, located in Hartland, WI.

Credits

Simulations, figures, and IAE tuning provided by ExperTune Inc.

Simulations were done using ExperTune's PID Loop Simulator 

© 1999–2010 ExperTune Inc. Lake Count ry Research Center 1020 James Drive, Suite A Hartland WI 53029-8305 USA Telephone +1 (262) 369 7711 • Fax +1 (262) 369 7722

7/26/2010 Tuning Process Controllers Starts in Ma…

expertune.com/ArtInTechMay99.html 3