Professional Documents
Culture Documents
Relay-Based PID Tuning: Difficulties of Loop Tuning
Relay-Based PID Tuning: Difficulties of Loop Tuning
output
0.5
ing scheme, we tried that and the plant oscillated itself into 0.2 0
oblivion — bad strategy. Moreover when it did work, the
0
responses are overly oscillatory’ −0.01
ℑ {G(iω)}
−0.2
−0.84 −0.82 −0.8
So given the tedious and possibly dangerous plant trials −0.4
that result in poorly damped responses, it behoves one to −0.6
speculate why it is often the only tuning scheme many in-
−0.8
strument engineers are familiar with, or indeed ask if it has
any concrete redeeming features at all. −1
−1.2
−1 −0.5 0 0.5 1 1.5
In fact the ZN tuning scheme, where the controller gain ℜ {G(iω)}
is experimentally determined to just bring the plant to the
(b) An open-loop Nyquist diagram of a stable plant with some
brink of instability is a form of model identification. All deadtime.
tuning schemes contain a model identification component,
but the more popular ones just streamline and disguise that Figure 1. Characteristics of a plant to be controlled.
part better. The entire tedious procedure of trial and error
is simply to establish the value of the gain that introduces
half a cycle delay when operating under feedback. This is
known as the ultimate gain Ku and is related to the point the PID controller in the feedback loop. This was first pro-
where the Nyquist curve of the plant in Fig. 1(b) first cuts posed in the early 1990s, and a very readable summary of
the real axis. PID control in general, and relay based tuning in specific,
is given in [1].
The problem is of course, is that we rarely have the lux-
ury of the Nyquist curve on the factory floor, hence the As it turns out, under relay feedback, most plants os-
experimentation required. cillate with a modest amplitude fortuitously at the critical
frequency. The procedure is now the following:
10
Automation & Control Feb/March, 2005
observed amplitude,
4d
Ku = (1)
πa
Relay (active)
Having established the ultimate gain and period with a
single succinct experiment, we can use the ZN tuning rules -
(or equivalent) to establish the PID tuning constants. Inci- setpoint
dentally, the modified values given in Table 1 are improved -+ - Y - Plant - output
versions of the original constants given in most textbooks 6− - PID
which have been found to be excessively oscillatory.
Specification Kc τi τd 6
Original 0.6Ku Pu /2 Pu /8
6
Little overshoot 0.33Ku Pu /2 Pu /3 output 2a
No overshoot 0.2Ku Pu /2 Pu /3
?
The entire procedure of inserting the relay, providing a -
slight incentive for the system to oscillate, the amplitude 6
and period measurement, and the subsequent computation input, u 6 2d
of controller tuning constants can be reliably automated. - ?
Indeed commercial PID controllers such as the ECA series time, t
P -
from ABB offer relay based auto-tuning as an option.
period
11
Automation & Control Feb/March, 2005
than I would like, and exhibits a nasty spike in the manip- Next time you need to re-tune a control loop, try the relay-
ulated variable. These attributes however are due to the based scheme, you need only a stopwatch, a ruler, a calcu-
simplistic way I have implemented the derivative compo- lator, and of course a relay.
nent of the PID controller, and not due to the tuning proce-
dure. In fact it is surprising just how good the ZN tuning
scheme performs in general given that it relies on only a References
single point in the Nyquist diagram.
[1] Karl-Johan Åström and Tore Hägglund. PID Con-
Since the development of relay-based autotuners in the trollers: Theory, Design and Tuning. Instrument So-
1990s, there have been many proposed extensions. One ciety of America, 2 edition, 1995.
of the more fruitful was the realisation that by varying the
hystersis in the relay, it is possible to generate more points
on the Nyquist curve. With more points, better tuning for
Reflect on this 0
1
Good tuning methods are simple tuning methods. Loop
tuning using relay feedback has three big advantages,
Input
namely: 0.5
0
1. We avoid a tedious trial and error search for the ulti- 0 10 20 30 40 50 60
mate gain. time (s)
2. We avoid operating near the instability limit. Figure 4. Response of the tuned PID controller to a setpoint
3. The procedure is easy to automate. step change.
12