« August 2008 | Main | October 2008 »

September 2008 Archives

September 5, 2008

Gone Fishin - Back Sept 18

by Greg McMillan

Technorati Tags:

September 20, 2008

Tips-N-Techniques (TNT) – Resetting Reset Time

by Greg McMillan

A couple of rules of thumb come to mind from tuning loops over the last 40 years for the chemical process industry on how you might want to reset the reset time.

The Lambda tuning rule reveals the nature of the problem people get into for loops with vastly different speeds of response. Per Lambda tuning the reset time should be set equal to the largest open loop time constant in the loop for self-regulating processes. For fast loops, the time constant is on the order of a few seconds. For many important slow processes in the chemical industry, the time constant can be thousands of seconds (2 to 3 orders of magnitude larger).

For fast loops such as liquid flow and pressure and inline composition control, I found the reset time was usually too high (repeats per sec too small) and the controller gain was too large (proportional band too small). The result was a hesitation in the approach to set point. The largest time constant is normally not in the actual process response but in the sensor, transmitter, valve, and DCS filters. Consequently the reset time in fast loops depends more upon the dynamics of the automation system. From another perspective, more reset than gain action is desirable for fast loops to smooth out the likely presence of noise due to a lack of an appreciable time constant in the process itself.

For slow loops such as vessel pH and reactor or column temperature and pressure control and integrating loops such as level and batch composition control, I found the reset time was usually too low (repeats per sec too large) and the controller gain was too low (proportional band too large). The result was an overshoot in the set point. For integrating loops, you can also get slow rolling oscillations from the double whammy of too low a reset time and too low of a controller gain (see TNT on Level). For runaway reactors, the combo can be downright dangerous (see TNT on Runways). From another perspective, more gain than reset action is beneficial to provide preemptive action that is cognizant of the direction of the change in error.

Even though I was keenly aware of these rules of thumb, I was embarrassed one time by my colleague when he suggested the plant first increase the reset time by a factor of ten or more on a pH loop before they go to the trouble of implementing an advanced control technique in a PLC (not a pleasant experience). The increase in reset time improved the loop response so much that the linear reagent demand control technique I proposed was not needed. This was a hard reminder that you should always tune the loop before advocating more sophisticated controls.

If a loop is not keeping up with a load disturbance, you need to increase the reset action. However, this can be achieved by an increase in the controller gain rather than a decrease in the reset since the reset mode is the result of both tuning settings (e.g. reset action is proportional to the controller gain divided by the reset time). This is particularly important for integrating loops where the product of the controller gain and reset time should not go below a low limit that is 4 divided by the integrating process gain to prevent slow rolling oscillations. In other words, unless you are sure you are at or above this limit, you should preferentially increase the controller gain for integrating process to increase reset action. If there is noise or a stepped response from an analyzer, the measurement filter should be increased to prevent an overzealous kick from proportional action and a feedforward signal be actively pursued to help deal with the shifting load.

For integrating loops, the Lambda tuning rule sets the reset time equal to twice Lambda (closed loop arrest time) plus the loop dead time. This rule maintains the product of the controller gain and reset time at the optimum low limit. Assuming you know the integrating process gain, load rejection is optimally increased by decreasing Lambda, which simultaneously increases the controller gain and decreases the reset time.

Technorati Tags: | | | |

September 26, 2008

Tips-N-Techniques (TNT) – Reset Has No Sense of Direction

by Greg McMillan

We live in a digital world but don’t stare at digital values of process variables.

If a reactor temperature is below set point as shown in the Good Tuning Pocket Guide Figure 2 for a PID loop faceplate, should the steam or water valve be open? After looking at a faceplate or the digital value for temperature on a graphic display, most people think the steam valve should be open when the temperature is below set point. Reset provides a direction of action that is consistent with this human expectation. However, the proper direction for a change in controller output and the split-ranged control valve depends upon the trajectory of the process variable (PV). If the temperature is sharply increasing or is closing in on the set point, the coolant valve should be opening. Gain and rate action will recognize that a set point is being approached and position the valves correctly to prevent overshoot. In contrast, reset has no sense of direction and sacrifices future results for immediate satisfaction. Reset won’t try to open the coolant valve until the temperature is above set point. In two separate applications in chemical plants, it was reported that the PID controller was seriously malfunctioning because the wrong valve was supposedly open, when in reality it was just gain and rate doing their job to prevent overshoot. View image

The sign of the delta in a PID controller output for the proportional and rate modes depend upon the direction of the change in the process variable (PV). In other words for reverse action, an increase in the PV will cause a decrease in the controller output. However, for reset action from the integral mode, the direction of the change depends upon the sign of the error. Thus, for the reverse action controller, if the PV is below set point, the contribution from the integral mode is an increase in the controller output even if the PV is rising. To see how deltas rule in process control and why an automation engineer would make a great president, check out the September Control Talk column. http://www.controlglobal.com/articles/2008/312.html

Note that in this column, Stan is misquoted. The last sentence of the 3rd dialog by Stan should read “The delta in output from the rate mode also depends on these same deltas.”

All of the faceplates and operator graphic displays I have seen in my 40 year career show digital values or indicating bars that are a snapshot. Operators, technicians, and engineers staring at these operator interfaces will come to the wrong conclusion as to what the PID controller output should do, particularly for slow and integrating loops. Most manual tuning is done based on staring at these interfaces, which is one of the main reasons slow loops have too much reset action. People don’t have the patience or ability to visualize the trajectory. You need a trend chart with the proper PV and time scaling. For temperature, the scale should narrow for the PV due to low noise tight control and wide for the time due to the slow response. The trend chart with proper scaling should pop up whenever a person wants to inspect or tune a loop. Even better would be a trend of the future prediction of the process variable similar to what is provided by the operator interface to model predictive control packages. With new adaptive control software that automatically identifies process dynamics such as DeltaV Insight the trend of the future trajectory could be added based on the model used for tuning. This would be valuable for slow loops and particularly for integrating, and runaway processes.

Technorati Tags: | | | | | |

Subscribe

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-2008 Greg McMillan and Terry Blevins. All rights reserved.