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:

Connecting every transport node
RJ Connect Editor's Choice Data Acquisition & Telemetry
Stockholm's bus system strategically links urban mainline, suburban mainline, non-mainline routes, community service buses and night buses. To acquire and process data from multiple sources and analyse onboard information on their moving buses, Transdev sought a dependable and powerful onboard computer. It teamed up with CatAB, Moxa’s local representative, known for delivering top-notch industrial data communication boards and equipment since 1988.

Read more...
Local range of planetary units
SEW-EURODRIVE Editor's Choice Motion Control & Drives
As SEW-EURODRIVE South Africa actively extends its offerings to customers, the SEW PPK and SEW P2.e industrial gearbox ranges are good examples of solutions that are well suited to the local business environment.

Read more...
Case History 195: Unstable reboiler steam flow
Michael Brown Control Engineering Editor's Choice
A high-pressure steam flow control in a reboiler on a column in a petrochemical refinery continually cycled when placed in automatic. Several attempts had been made to tune the controller, but these had been unsuccessful.

Read more...
Open control system for retrofit of conveyor control system
Beckhoff Automation Editor's Choice
For every online retailer, warehouse logistics is part of the critical infrastructure. An Australian office equipment supplier has retrofitted the warehouse logistics installation of its central warehouse, and replaced the proprietary decentralised controllers of the conveyor lines with PC-based control from Beckhoff, based on powerful EtherCAT communication.

Read more...
Digital industrial platforms and why they are important
Editor's Choice
One of the most significant trends driving digital transformation is the emergence of digital industrial platforms. This article will briefly explore what digital industrial platforms are, why they are important, and how they might shape the future of industrial automation.

Read more...
Celebrating 65 years: rebuilding and redefining its legacy
Editor's Choice News
Founded in 1959 by Neill Simpson, Axiom Hydraulics has grown into one of South Africa’s elite hydraulic companies. Over the past six and a half decades they’ve weathered many challenges, but none as devastating as the fire of 2023.

Read more...
Young robotics team takes world title
igus Editor's Choice News
In an inspiring demonstration of innovation and teamwork, Texpand, a young South African robotics team, recently made history by winning the 2024 FIRST Tech Challenge World Championships.

Read more...
SAIMC: It’s not black and white
SAIMC Editor's Choice SAIMC
Grey imports are a problem worldwide, not least in the automation industry in South Africa. The Supplier Advisory Council (SAC) operates under the umbrella of SAIMC, and is tackling this problem head-on.

Read more...
Loop signature 25: Tuning part 3 - Results of tuning a particular simple self-regulating process by several different methods.
Michael Brown Control Engineering Editor's Choice
A couple of SWAG methods of tuning were given in the previous Loop Signature article. I have tuned a simple self-regulating process using those methods, and two other tuning methods, one of them being the sophisticated Protuner tuning package, which is the system I employ. The tests were performed on a very accurate and powerful simulation package, and the results are compared below.

Read more...
PC-based control for advanced hydrogen storage technology
Beckhoff Automation Editor's Choice PLCs, DCSs & Controllers
The proportion of renewable energies from solar, wind and water is rising continuously. However, sufficient storage options are of the essence to use these energies as efficiently as possible. GKN Hydrogen offers a particularly compact and safe option, low-pressure metal hydride hydrogen storage systems with PC-based control from Beckhoff.

Read more...