PID Tuning
PID Tuning
University of Khartoum
Faculty of Engineering 2 DEFINING THE TUNING PROBLEM
Chemical Engineering Department
The entire control problem must be completely defined before the tuning
constants can be determined and control performance evaluated.
Naturally, the physical process is a key element of the system that must be
defined.
the form of the PID controller used here is:
1 𝑡 𝑑𝐶𝑉(𝑡)
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 + න 𝐸 𝑡 ′ 𝑑𝑡 ′ − 𝑇𝑑 +𝐼
𝑇𝐼 0 𝑑𝑡
Next, carefully defining control performance by specifying several goals to
1 PID Controller Tuning be balanced concurrently. This definition provides a comprehensive
specification of control performance that is flexible enough to represent
most situations. The three goals are the following:
1) Controlled-variable performance: The well-tuned controller should provide
satisfactory performance for one or more measures of the behavior of the
controlled variable, e.g. minimize the integral of absolute value of the error:
∞
𝐼𝐴𝐸 = න 𝑆𝑃 𝑡 − 𝐶𝑉(𝑡) 𝑑𝑡
0
To evaluate the control performance, the goals and the scenario(s) under
3 4 which the controller operates need to be defined. These definitions are
summarized in table below:
2) Model error: Linear dynamic models always have errors, because the plant is
nonlinear and its operation changes. Since the tuning will be based on these
models, the tuning procedure should account for the errors, so that acceptable
control performance is provided as the process dynamics change. The changes
are defined as ± percentage changes from the base-case or nominal model
parameters. The ability of a control system to provide good performance when
the plant dynamics change is often termed robustness.
3) Manipulated-variable behavior: We shall choose the common goal of
preventing "excessive" variation in the manipulated variable by defining limits on
its allowed variation.
The dynamic response of the control system with a complex process model the absolute value of the system response
including dead time cannot be determined analytically, but it can be to come within a small specified amount
evaluated using a numerical solution of the process and controller
of the final value of the response (±5%).
equations. The dynamic equations are solved from the initial steady state to
the time at which the system attains steady state after the input change.
The result is a set of tuning (𝐾𝑐 , 𝑇𝐼 , 𝑇𝑑 ) that gives the best performance for a
specific plant, model uncertainty, and control performance definition.
1
30/10/2022
9 Ziegler–Nichol’s Method: 10
Ziegler and Nichol method, presented the controller setting formulae for (P), The ultimate period is defined as that period of sustained cycling which
(PI), and (PID) controllers based on continuous cycling experiment carried would occur if a proportional controller of gain 𝐾𝑢 were used, thus:
2𝜋
on the close loop process. The sustained oscillatory condition is to be 𝑃𝑢 =
obtained by the way as described above after having the controller turned 𝜔𝑐
to manual with only the proportional mode remaining active. Their
objective function was that the tuned close loop system would produce an
under damped oscillatory response in the disturbed condition, with quarter
decay ratio(DR = 0.25) character.
The Ziegler-Nichols settings are derived from 𝐾𝑢 , and 𝑃𝑢 , on the basis of gain Use trial-and-error procedure to determine
and phase margins of 2 and 30°, respectively, for proportional control The critical frequency:
alone. The addition of integral action introduces more phase lag at all
frequencies, and hence a lower value of proportional gain 𝐾𝑐 is required to
maintain the same phase margin. Adding derivative action introduces
phase lead and thus a greater value of 𝐾𝑐 can be tolerated.
2
30/10/2022
A tangent is drawn to this curve at the point of inflexion figure (b). The
15 intercept of this tangent on the abscissa is termed the (𝜏𝑎𝑑 ) apparent dead 16
time of the system. The gradient of the tangent is given by:
𝐾𝑟
𝑚=
𝜏𝑎
Where: 𝐾𝑟 the steady state gain of the response and
The Cohen-Coon settings are based on the assumption that the open-loop
𝜏𝑎 is the apparent time constant system behaves in the same manner as the transfer function:
The relevant controller settings are given in table below: 𝐾𝑟 exp(−𝜏𝑎𝑑 𝑠)
𝐺 𝑠 =
1 + 𝜏𝑎𝑑 𝑠
Cohen and Coon determined the relationships in table above so as to give
responses having large decay ratios, minimum offset and minimum area
under the closed-loop response curve.