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:
• 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
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 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,
© Technews Publishing (Pty) Ltd | All Rights Reserved