March 16, 2007

Back to the Future of Tuning

By Greg McMillan

New adaptive controllers are coming soon to your control room to individually schedule the tuning as a function of any variable. So given all the choices, what process variable generally works best taking into account what we have recently learned about mixing and process dynamics?

The short answer is controller output for continuous processes and level for batch processes. Of course this is just a best guess and doesn't replace the need to test any variable or calculation used to set controller tuning.

If you are curious as to how I arrived at the above conclusions, read on.

Let's consider first the flow loop. Nothing complicated here, we just need to remember that the controller gain is inversely proportional to the product of the valve gain, process gain, and measurement gain for a control loop. The valve gain is generally nonlinear since it is the slope of the installed characteristic of the valve. For flow, the process gain is one (how lucky can one be). Just like for other loops, the measurement gain is simply 100% divided by the scale span of the PID. So the only nonlinearity in a flow loop (barring a missing square root extractor for a head meter) is the valve. A good choice for the controller gain would be to schedule it as a function of controller output (position on the installed characteristic of the valve). The reset time is set equal to the largest time constant in the loop. For liquid flow, the process time constant is only 50 to 100 milliseconds, which is generally smaller than the effective time constant associated with the valve, measurement or DCS. Thus, the reset time depends upon on the slowest part of the automation system. If a signal filter in the DCS becomes the largest time constant in the loop, the reset time is approximately the filter time setting. For aggressively tuned flow loops or big valves, it is a good idea to enable the Dynamic Reset Limit and use the read back of actual valve position as the external reset to prevent the PID reset action from outrunning the speed of the valve.

Let's further consider that we put this flow loop to good use as a secondary controller for cascade control where the primary loop is level, temperature, or concentration. A secondary flow loop removes the control valve nonlinearity from the primary loop and makes the primary loop ready, willing, and able to use flow feedforward (e.g. a flow ratio corrected by the output of the primary loop).

Finally, let's focus on volumes with different types of mixing. The two major types are inline (e.g. pipeline) volumes that have only some radial mixing from bafflis or pipe fittings and vessel (tank) volumes that have axial mixing as the result of an agitator, eductor, and/or sparger. The inline systems have a uniform composition and temperature in a cross section but not along the length of the pipeline. The process dead time is much larger than the process time constant. These inline volumes provide little to no smoothing with respect to time and are called "plug flow." Well mixed vessel volumes have a uniform composition and temperature throughout the vessel volume. The process dead time is much smaller than the process time constant. These vessel volumes provide maximum smoothing with respect to time and are called "back mixed." For batch operations, these "back mixed" volumes have an integrating response. The following figures show the self-regulating response for "plug flow" and "back mixed" volumes for continuous processes and the integrating response for batch operations.

Mixing Effect on Open Loop Responses

For plug flow volumes, the residence time (volume/flow) becomes a process dead time making the dead time inversely proportional to flow. The process gain is also inversely proportional to flow. As a result, the primary controller gain for composition control is proportional to flow and flow squared, if the Lambda is set equal to a factor of the integral time and dead time, respectively. Since most applications set Lambda equal to multiple of the integral time, controller output would be a good choice again for gain scheduling. Examples of plug flow systems are pipelines, static mixers, desuperheaters, sheet lines, web lines, extruders, and sheet lines. The process dead time is larger than the process time constant in these primary composition loops. Like the secondary flow loop, the integral time depends upon the valve, measurement, or filter time lag.

One word of caution, these primary loops may not be much faster than the flow loop, so the primary loop may have to be tuned to be slower than expected to avoid violating the cascade rule (primary loop should be at least 4 times slower than the secondary loop). Using gain scheduling in the flow loop helps makes make the flow loop faster, which reduces the need to make the primary loop slower.

For back mixed volumes, the residence time (volume/flow) almost entirely becomes a process time constant for composition control. If the primary loop's integral time is set to be a factor of the time constant, it is then inversely proportional to flow. This assumes the injection delay associated with the dip tube or pipeline feed is small (not a good assumption for small additive or reagent flows). The process gain is also inversely proportional to flow. The process dead time is the turn over time and is relatively fixed for a constant agitator speed. Good gosh, controller output is again a good choice for scheduling tuning settings. Examples of back mixed volumes are agitated reactors and fermentors (except mammalian cell). Most agitated blend tanks, crystallizers, and evaporators behave more like a stirred reactor than a pipeline. The dynamics can be approximated by splitting the total volume into a small plug flow volume combined with a large back mixed volume.

For pH, I would use signal characterization to translate the controlled variable from pH to reagent demand based on the titration curve. This makes it just a reagent concentration loop whose process gain like other composition loops is inversely proportional to flow, which means I can again schedule the controller gain as a function of controller output.

Hmm, I wonder what the default variable will be for scheduling controller tuning for these self-regulating loops. Could it be controller output?

Composition loops of large back mixed volumes and batches have a "near" and true integrating response, respectively. The process gain is inversely proportional to liquid volume. For liquid temperature, the change in heat transfer surface area covered by liquid may cancel this effect out. For gas pressure, the process gain increases as the liquid level decreases. So for integrating loops, the variable for scheduling tuning is often level.



71 Comments

Hey, Your Blog is excellent, found while in search for parts online info on yahoo and it has very related information on it. Will be sure to come back again and bookmark, thanks

Very good post. I've found your site via Bing and I'm really glad about the information you provide in your articles. Btw your blogs layout is really broken on the Chrome browser. Would be cool if you could fix that. Anyhow keep up the great work!

Hi just thought i'd tell you some thing. This is the 2nd time now i've landed on your weblog within the last 4 days hunting for completely unrelated things. Spooky or what?

Well, the article is actually the best on this noteworthy topic. I fit in with your conclusions and will thirstily look forward to your upcoming updates. Saying thanks will not just be sufficient, for the exceptional lucidity in your writing. I will right away grab your rss feed to stay informed of any updates. Good work and much success in your business endeavors!

Easily, the article is in reality the sweetest on this noteworthy topic. I concur with your conclusions and will eagerly look forward to your future updates. Just saying thanks will not just be enough, for the great clarity in your writing. I will immediately grab your rss feed to stay abreast of any updates. Genuine work and much success in your business efforts!

Good stuff. Nice to read some well written articles. A long way between them.

I've been into blogging for quite some time and this is definitely a effective and well written post. I signed up for your newsletter and shared it with my other blogger friends, so please keep up the informative posts!

Good luck on your blog, and feel free to comment and subscribe to my blog as well when you get a chance: Make Money Online with Dino Vedo.

Thanks so much, and lets stay connected and maybe share some ideas, do some guest posts, and get us both some more traffic and backlinks!

All the best,
Dino Vedo

I am the first time on this site and am really enthusiastic about and so many good articles. I think it¡¯s just very good.

It looks like one-of-a-kind. Thank you for the information and a present on top of that! I love it! A round of applause to everyone ...I am so grateful for this.

Ashley Tankersley

If you’re still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you’ll know which is right for you.

Hi, I can?t understand how to add your site in my rss reader. Can you Help me, please

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

Very Interesting Information! Thank You For Thi Blog!

I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

Should I buy steel golf clubs or graphite ?

Which golf clubs will be the best for beginner ?

I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

Awesome work. I continuously discover highly one of a kind threads here in your blog.

Should I buy steel golf clubs or graphite ?

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

Which golf clubs will be the best for beginner ?

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material.

Very informative post. Thanks for taking the time to share your view with us.

I just book marked your blog on Digg and StumbleUpon.I enjoy reading your commentaries.

Which Golf Clubs Are Better - Steel or Graphite ?

Very informative post. Thanks for taking the time to share your view with us.

I just book marked your blog on Digg and StumbleUpon.I enjoy reading your commentaries.

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

I just book marked your blog on Digg and StumbleUpon.I enjoy reading your commentaries.

Which golf clubs will be the best for beginner ?

Which golf clubs will be the best for beginner ?

Should I buy steel golf clubs or graphite ?

Should I buy steel golf clubs or graphite ?

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

Very Interesting Post! Thank You For Thi Information!

I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

Awesome Blog. I add this Post to my bookmarks.

You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material.

Thank You For This Post, was added to my bookmarks.

I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

Which Golf Clubs Are Better - Steel or Graphite ?

Should I buy steel golf clubs or graphite ?

Should I buy steel golf clubs or graphite ?

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

Very Interesting Information! Thank You For Thi Information!

Should I buy steel golf clubs or graphite ?

You certainly have some agreeable opinions and views. Your blog provides a fresh look at the subject.

I just read through the entire article and it was good…thanks for the share! Have you thought of adding some videos to your posts to keep the visitors more entertained?

Wow this takes me back. Like your blog design too.

WOWZAA!! Great post, i think blog posts like this add so much value to the marketing community,i have learnt some valuable nuggets from you. Keep it Up! ;) me and my friend Rob B teach all my students shocking secrets on how to cash in using their blogs on auto-pilot and make few hundred dollars a day. i teach them basic hiddent tactics from blogging, Catch ya later - Julie 'Pro Blogger' J.

WOWZAA!! Great post, i belive blog posts like this add so much value to the marketing community,i have learnt some valuable info from you. Keep it Up! ;) me and my friend Rob B teach all my students shocking secrets on how to cash in using their blogs on auto-pilot and make few hundred dollars a day. i teach them basic hiddent tactics from blogging, Catch ya later - Julie 'Pro Blogger' J.

WOWZAA!! Great post, i belive blog posts like this add so much value to the marketing community,i have learnt some valuable nuggets from you. Keep it Up! ;) me and my friend Rob B teach all my students shocking secrets on how to cash in using their blogs on auto-pilot and make few hundred dollars a day. i teach them basic hiddent tactics from blogging, Catch ya later - Julie 'Pro Blogger' J.

This article really good! I enjoyed reading it. Thanks for sharing a nice info.I came across your web site and it really is Beautiful for my situation. It covers Fine and beneficial posts. I read just about all of them and got so much from them. If you ask me, you are Carry through an excellent work. Keep on! I would like to thank you for making a Wonderful Network station .

Topics from here helped me a lot. really admire your work, keep it up!

Bookmarking now cheers, please consider a follow up post.

Very good article! I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.This is to be honest a Great knowledge gaining post and all thanks to bing search engine get me on here. I loved reading your writing and added to the favorites.Thanks again!

Isn't that you in the main pic on this page. Didn't you go to Cairns for a holiday?

I am sure that the MacBook Pro had it's share of quirks when it was first produced as well.

Good post cheers, found you through Google.

Exceptional write-up man, I highly like the look plus the feel of this valuable blogging site. You write totally well, you have to be a aware guy. Will unquestionably come back

Adding to my bookmarks cheers, please consider a follow up post.

I liked seeing this, like your blog design too. Must be Joomla?

Super web page you have got here.


Leave a comment


Subscribe

Subscribe to site RSS Feed


Or, subscribe by email:

Archives

The opinions expressed here are the personal opinions of Greg McMillan and Terry Blevins. Content published here is not read or approved by Emerson before it is posted and does not necessarily represent the views and opinions of Emerson. © 2006-2010 Greg McMillan and Terry Blevins. All rights reserved.