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:

Cutting-edge robotics and smart manufacturing solutions
Yaskawa Southern Africa Editor's Choice
Yaskawa Southern Africa made a compelling impact at this year’s Africa Automation and Technology Fair.

Read more...
A cure for measurement headaches in contract manufacturing
VEGA Controls SA Editor's Choice
A contract manufacturing organisation provides support to pharmaceutical and biotechnology companies in the manufacturing of medications, formulations and substances. VEGA’s measurement solutions offer accuracy and reliability for monitoring levels and pressures during the manufacturing process.

Read more...
PC-based control for a food capsule and pod packaging machine
Beckhoff Automation Editor's Choice
For TME, a machine builder specialising in the packaging of powdered foods, Beckhoff’s PC-based control technology offers unlimited opportunities when it comes to performance and innovative capacity in terms of flexibility, scalability and openness.

Read more...
Simple and efficient level measurement in the mining, minerals and metals industries
Endress+Hauser South Africa Editor's Choice Level Measurement & Control
Measuring devices in the mining, minerals and metals industries face the challenge of varying material states and long distances in measurement height. Endress+Hauser’s answer to these challenges is the new Micropilot family.

Read more...
PC-based control for fertiliser
Beckhoff Automation Editor's Choice Fieldbus & Industrial Networking
On a farm in the USA, valuable ammonia is extracted from slurry and processed into ammonium sulphate. NSI Byosis has transformed this complex process into a flexible modular system. This modular approach requires an automation solution with flexible scalability in both hardware and software, which this Dutch company has found in PC-based control from Beckhoff.

Read more...
Loop signature 28: Things to consider when tuning.
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
I was giving a course at a remote mine in the middle of the Namibian desert. We were discussing tuning responses, and as I always do on my courses, I mentioned that in my opinion ¼ amplitude damped tuning is not desirable, and is in fact not good.

Read more...
Control without complexity
Editor's Choice Motion Control & Drives
In an era where precision, performance and smart control define industrial success, the right driver can make all the difference. At Axiom Hydraulics, we’ve seen firsthand how the Sun Hydraulics XMD series transforms hydraulic systems, from mining and construction to agriculture and automation.

Read more...
The thermal combustion balancing act
Editor's Choice
From carbon taxes to export tariffs, and cost containment to security of supply and sustainability, companies are under increasing pressure to switch to greener fuel sources. Associated Energy Services warns that this pivotal change has some potentially serious knock-on effects.

Read more...
What’s driving the IE3 motor revolution?
WEG Africa Editor's Choice
The International Efficiency 3 (IE3) motor standard will soon become South Africa’s legal minimum standard, mandating that local suppliers offer more efficient electric motors. What is driving this change, and how does it affect the many industries that rely on these modern electric workhorses?

Read more...
Unlocking the smart factory
ElectroMechanica Editor's Choice Motion Control & Drives
At ElectroMechanica, we recognise that transitioning to smart automation isn’t just about adopting new technology; it’s about solving real challenges. Labour shortages, rising costs and downtime due to outdated machinery make digital transformation essential for long-term competitiveness.

Read more...