Professional Documents
Culture Documents
Faculty of Engineering
Chemical Engineering Department
Lecture (2)
PID Controller Tuning
2 References
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
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
4
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.
To evaluate the control performance, the goals and the scenario(s) under
5 which the controller operates need to be defined. These definitions are
summarized in table below:
6 DETERMINING GOOD TUNING
CONSTANT VALUES
The "best" tuning constants are those values that satisfy the control
performance goals.
the optimum tuning gives the minimum IAE, for the selected plant (with
variations in model parameters), when the manipulated variable observes
specified bounds on its dynamic behavior.
The dynamic response of the control system with a complex process model
including dead time cannot be determined analytically, but it can be
evaluated using a numerical solution of the process and controller
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.
7 Introduction
Many procedures exist for estimating optimum settings for controllers. One
of the usual bases employed is that the response of the controlled variable
to a change in load or set point should have a decay ratio of 1/4.
There is no direct mathematical justification for this but it is a compromise
between a rapid initial response and a short response time.
The response time (settling time or line-out time) is the time required for
the absolute value of the system response
to come within a small specified amount
of the final value of the response (±5%).
8 On line Trial and Error Tuning Method
All the components in the control loop, excepting the controller, is plotted
and the cross-over frequency determined. If the amplitude ratio at 𝜔𝑐 is
(𝐴𝑅)𝑐 then, the gain of a proportional controller which would cause the
system to be on the verge of instability will be:
1
𝐾𝑢 =
(𝐴𝑅)𝑐
The ultimate period is defined as that period of sustained cycling which
would occur if a proportional controller of gain 𝐾𝑢 were used, thus:
2𝜋
𝑃𝑢 =
𝜔𝑐
12
Using the values of 𝐾𝑢 and 𝑃𝑢 , Ziegler and Nichol recommended the
following controller parameter setting formulae:
The Ziegler-Nichols settings are derived from 𝐾𝑢 , and 𝑃𝑢 , on the basis of gain
and phase margins of 2 and 30°, respectively, for proportional control
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.
13 Example: The three-tank mixing process
From the results in the table, the ultimate gain and period can be
2𝜋 1
determined to be 𝑃𝑢 = 𝜔 = 17.9 𝑚𝑖𝑛 and 𝐾𝑢 = (𝐴𝑅) = 208. The tuning
𝑐 𝑐
constants for P,PI, and PID controllers according to the Ziegler-Nichols
correlations are:
15 Process Reaction Curve Method:
The Cohen-Coon Procedure:
The controller is placed on manual control (i.e. effectively removing it from
the control loop) and the response of the measured variable to a small step
change in the manipulated variable is recorded as shown in figure (a). This
response is called the process reaction curve.
A tangent is drawn to this curve at the point of inflexion figure (b). The
16 intercept of this tangent on the abscissa is termed the (𝜏𝑎𝑑 ) apparent dead
time of the system. The gradient of the tangent is given by:
𝐾𝑟
𝑚=
𝜏𝑎
Where: 𝐾𝑟 the steady state gain of the response and
𝜏𝑎 is the apparent time constant
The relevant controller settings are given in table below:
17
The Cohen-Coon settings are based on the assumption that the open-loop
system behaves in the same manner as the transfer function:
𝐾𝑟 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.
University of Khartoum
Faculty of Engineering
Chemical Engineering Department
18
A system is stable if all output variables are bounded when all input
variables are bounded.
A variable is bounded when it does not increase in magnitude to ±00 as
time increases. Typical bounded inputs are step changes and sine waves;
an example of an unbounded input is a ramp function.
a chemical reactor would be stable according to the definition if a step
increase of 1°C in its inlet temperature led to a new steady-state outlet
temperature that was 100°C higher. Thus, systems that are very sensitive
can be stable as long as they attain a steady state after a step change.
20 STABILITY OF LINEAR SYSTEMS:
The response of the non-self-regulating level process in figure below to a
step change in the inlet flow is to be determined for a case with
proportional-only control.
The linear models for the process and the controller are:
𝑑𝐿
𝐴 = 𝐹𝑖𝑛 − 𝐹𝑜𝑢𝑡
𝑑𝑡
𝐹𝑜𝑢𝑡 = 𝐾𝑐 𝑆𝑃 − 𝐿 + 𝐹𝑜𝑢𝑡 𝑠
𝑚3
Change in flow 20 ℎ
Determine the stability of the variable T(t) from the following model.
𝑑2𝑇 𝑑𝑌
− 1.23 − 1.38𝑇 = 0
𝑑𝑡 2 𝑑𝑡
𝑠 2 − 1.23 𝑠 − 1.38 𝑇 𝑠 = 0
𝑠 2 − 1.23 𝑠 − 1.38 = 0
Characteristic equation:
125 𝑠 3 + 75 𝑠 2 + 15 𝑠 + (1 + 0.039𝐾𝑐 ) = 0