Editor's Choice


Loop signature 23: Tuning Part 2.

August 2024 Editor's Choice System Integration & Control Systems Design

It is my opinion that most tuning methods are very crude. They do of course also offer a starting point for tuning if one is not fortunate enough to have a sophisticated tuning package like a Protuner around.

SWAG tuning assumptions

• The model is a first order lag, deadtime, self-regulating process.

• Any other process must be approximated to this model. However, in reality these simplified methods will not work on processes with complex dynamics.

• DT<TC.

• Tuning formulae are for a series controller algorithm. However, for P+I-only tuning they will also work for the ideal ISA algorithm. Note that I am only giving formulae for P+I tuning, as any processes where the D term will help in control will have dynamics that are far too complex to be tuned by SWAG methods. You really need a sophisticated tuning packet for these.

• Most tuning is for ¼ amplitude damped response, which we believe is undesirable. This is shown in the section at the end of this article.

Ziegler Nichols ultimate sensitivity tuning

• Turn off I and D action.

• Start with a small P gain (wide PB%).

• Make a setpoint change and observe the response.

• Increase the P gain (decrease PB%) in small increments until the loop cycles continuously.

• Note the P setting Ku (ultimate gain), and the period of oscillation UP in seconds (ultimate period).

• Controller gain: KP = 0,45 x Ku.

• Controller integral: I = UP/1,2 seconds/repeat.

This method is one of the first tuning methods ever developed. It could effectively be called a simplified frequency response method because only one frequency is used, which is the ultimate frequency. Although not perfect, it actually works quite well on simple

self-regulating processes. The big disadvantage with it is that you have to put the process into an ultimate cycle, which may not be allowable on many processes. It gives an insight into the genius of Ziegler and Nichols, when one thinks that their work was mostly carried out empirically, using very low-accuracy pneumatic measuring instrumentation and pneumatic circular chart recorders.

There are probably hundreds of different SWAG tuning methods. Why so many? The reason is obvious. If any single method had worked properly, then it would have been universally adapted. Why reinvent the wheel? As none of them did work well universally, people have kept on trying to come up with new ways. Even in the past 10 years, new SWAG methods have appeared.

The vast majority of SWAG tuning methods are model-based. See the last Loop Signature article for a description of model-based tuning methods. Most of them try to determine the process gain (PG), the dead time (DT), and the dominant first order lag (TC) by making a step change in the process. They then plug these values into a formula to calculate the tuning parameters. Our experience has been that model-based tuning methods are not good. There are various reasons for this, but the main one is that it is extremely difficult to obtain a good model, as small changes in the process dynamics continuously occur in a real operating plant.

Several more sophisticated methods that try and make a far more sophisticated model than a simple first order lag, deadtime model have appeared in recent years. One in particular was developed by the research arm of a large South African chemical company. It was so sophisticated that the model was effectively tested and improved every time a change occurred in the process. The company hailed this as a breakthrough in controller tuning, and there was a great fanfare about it. Eight years after the development, it was withdrawn. Basically, although the idea was good in principle, it did not work well under actual plant conditions. One of the designers sadly told me that although it worked brilliantly in laboratory conditions, it just could not cope with all the various problems encountered in a real plant.

When modelling from a step test, one must be very careful when choosing which step to model from. The following precautions should be taken:

• Tune on only ONE step.

• Tune in manual.

• PV must be constant at start and end of window.

• Avoid steps with possible valve problems, for example the first step and steps after valve reversals.

• Tune on the step with the highest PG, longest DT and fastest TC.

• Add controller scan rate to DT for SWAG tuning.

• Step size of the PV should preferably be 10 times bigger than noise amplitude.

After choosing a step, graphically determine PG, DT, and TC. These dynamics were described in earlier articles in this Loop Signature series. However, a diagram showing how to determine them is given in Figure 1 as a reminder.

Please note that the controller scan rate also adds deadtime into the loop, so for safety’s sake this should be added to the process deadtime.

Two sets of step response tuning formulae are given:

• Lambda model based tuning

Controller gain: KP = 1/PG

Controller integral: I = TC + DT/4 seconds/repeat.

• IMC tuning

where τC is the larger of 0,1 x TC and 0,8 x DT.

Of the two sets of formulae, I would suggest that the second (IMC) is the better, but that the integral formulae in the first (Lambda model) are better for deadtime dominant processes.

In the next part of this tuning series, we will look at the results of tuning a simple self-regulating process with the three methods given above, and also with a couple of other tuning methods.

Problems with quarter wave response

In most control courses one is taught that optimum tuning results in a quarter amplitude damped response, also called quarter wave damping, to a step change in setpoint. This is because it can be proved that this response gives effectively minimum integrated error. This is sometimes referred to as ISAE tuning. This response is shown in Figure 2.

In reality, optimum tuning for a particular loop depends on all sorts of different criteria. For example, the faster you tune a loop, the quicker you wear out the valve. Is this necessary on that particular process, or should the valve be sacrificed for the process? Sometimes you may deliberately wish to have a very slow response for process reasons. A future Loop Signature article will cover the various things that should be taken into account when tuning.

It is our belief that quarter wave damping is not practical or desirable for the following reasons:

• It is not safe enough, as it does not allow enough gain margin for process dynamic changes, which could result in instability.

• A quarter wave response consists of approximately four cycles. This effectively means that the valve has to reverse eight times every time there is a control error change. Is this really desirable? Do you really want to work your valves so hard?

• As mentioned earlier in this Loop Signature series, most valves suffer from a certain amount of hysteresis. This means that on each reversal of the valve, the controller output has to ramp through the hysteresis band under the command of the controller’s integrator. This slows down the control, and increases variance. On a slow process, like temperature, it can take hours before the process finally settles out. This means that, in reality, on many loops quarter amplitude damped tuning probably results in much worse control variance than even critical damping, where no valve reversals at all are made on a control error change. Figure 3 shows the first part of the response on a step change in setpoint on a flow loop with quarter wave damping. There is 5% hysteresis on the valve. Note, the loop is still trying to get to setpoint after about 20 minutes. Figure 4 shows the same loop with critical damping. It settles out in a few seconds.

• As can be seen in Figure 2, it would be very hard to judge a quarter amplitude damped response in real control equipment, where the screens normally do not have great resolution on the tuning trends.

• In real life, in nearly every plant I have been in, at least 85% of the loops are tuned at least a magnitude slower than quarter amplitude damping.

This would indicate to me that in fact quarter amplitude damping is unrealistic and impractical. If a fast response is required on a loop, I normally tune it to give a single overshoot. This increases the gain margin by over 100% from quarter amplitude damped responses, which makes it much safer. In general, I find the new response is generally anything from about four to 2000 times faster than the ‘as found’ tuning.


About Michael Brown


Michael Brown.

Michael Brown is a specialist in control loop optimisation, with many years of experience in process control instrumentation. His main activities are consulting and teaching practical control loop analysis and optimisation. He now presents courses and performs optimisation over the internet. His work has taken him to plants all over South Africa and also to other countries. He can be contacted at: Michael Brown Control Engineering CC, +27 82 440 7790




Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Smart e-mobility solutions
Schneider Electric South Africa Editor's Choice Electrical Power & Protection
While electric vehicles are gaining traction in many international markets, uptake of this green form of transport is still lagging somewhat in South Africa. Even so, local demand is growing, as more environmentally conscious motorists are seeking cleaner alternatives to internal combustion engines.

Read more...
Pushing technological boundaries with Festo Electric Automation solutions
Festo South Africa Editor's Choice
In the ever-evolving landscape of Industrial Automation, Festo Electric Automation solutions are at the forefront of a revolution, fundamentally reshaping production paradigms. As a global leader in automation, Festo focuses on intelligent connectivity to reduce costs, save time, and increase efficiency and convenience for customers.

Read more...
Top 10 emerging technologies
Editor's Choice News
The World Economic Forum (WEF) has identified ten technologies likely to make a significant positive impact in the next three to five years. These are detailed in the ‘Top 10 Emerging Technologies’ report, which explains each technology’s potential for addressing global challenges and the factors that will shape the future and revolutionise connectivity still further.

Read more...
Hack-proof measurement technology
VEGA Controls SA Editor's Choice IT in Manufacturing
Users in the process industry have not prioritised cyber security. This might be because they assume the IT department’s responsibility, or they don’t feel directly threatened. However, both attitudes are neglectful, and here’s why: IT security should always be a joint task between IT and OT.

Read more...
Into the future with green hydrogen
Pepperl+Fuchs Editor's Choice Electrical Power & Protection
German company, Pepperl+Fuchs is a pioneer and innovator in explosion protection and industrial sensor technology. SA Instrumentation & Control’s editor caught up with Marc Van Pelt, managing director of Pepperl+Fuchs South Africa, to find out more about the company’s involvement in sustainable manufacturing, and especially green hydrogen.

Read more...
A green hydrogen economy
Editor's Choice Electrical Power & Protection
Hydrogen is an important feedstock in processes ranging from steel, ammonia and fuel production to energy generation and storage. Traditional hydrogen processes generate large amounts of carbon, but green hydrogen has emerged as an important contribution in the global shift towards sustainable energy.

Read more...
Emission-free mobility with hydrogen
Editor's Choice Motion Control & Drives
We are now used to cars powered by electricity; but in the quest for zero carbon emissions, hydrogen cars, or hydrogen fuel cell electric vehicles (FCEVs), could be the next big thing in the automotive industry.

Read more...
Navigating the energy crossroads
Editor's Choice Electrical Power & Protection
In South Africa, industry is at an energy crossroads, caught between optimising energy usage to contain costs, and reducing carbon footprints in line with global sustainability and compliance legislation, and in line with global parent companies’ best practice standards. It is a juggling act to emulate the rest of the world in reducing carbon emissions, while still needing cost-effective, higher carbon fuels simply to keep operating; but there are solutions.

Read more...
2024 global energy outlook
Schneider Electric South Africa Editor's Choice
Schneider Electric’s 2024 Global Energy Outlook highlights five key trends shaping the future of the global energy market.

Read more...
Five steel producers taking action to decarbonise steel production
Editor's Choice IT in Manufacturing
Steel is crucial for engineering, construction and the energy transition. There is rising demand, but it produces 7% of global greenhouse gas (GHG) emissions. However, by 2030, near-zero emission steel at scale can be achieved by using ambitious, innovative technologies, and collaboration between steel purchasers, producers and companies providing enabling technologies.

Read more...