classical pid controllers1
TRANSCRIPT
-
8/22/2019 Classical Pid Controllers1
1/79
Classical PID Controllers
Eng R. L. NkumbwaSchool of Technology
Copperbelt University
2010
-
8/22/2019 Classical Pid Controllers1
2/79
8/6/20132
PID Controllers
This note examines a particular control structure that has becomealmost universally used in industrial control.
It is based on a particular fixed structure controller family, the so-called PID controller family.
These controllers have proven to be robust and extremelybeneficial in the control of many important applications.
PID stands for:
P (Proportional)
I (Integral)
D (Derivative)
-
8/22/2019 Classical Pid Controllers1
3/79
8/6/20133
General Control System Arrangement
http://upload.wikimedia.org/wikipedia/commons/4/43/PID_en.svg -
8/22/2019 Classical Pid Controllers1
4/79
8/6/20134
What is Classical Control?
Classical control involves the choice of a
suitable controller in the transfer functionGc(s) so that closed performance meets the
specifications as in figure on the previous
slide.
-
8/22/2019 Classical Pid Controllers1
5/79
8/6/20135
Historical Note
Early feedback control devices implicitly or explicitly
used the ideas of proportional, integral, and
derivative action in their structures. However, it was
probably not until Minorskys work on ship steering
published in 1922, that rigorous theoretical
consideration was given to PID control.
This was the first mathematical treatment of the typeof controller that is now used to control almost all
industrial processes.
-
8/22/2019 Classical Pid Controllers1
6/79
8/6/20136
The Current Situation
Despite the abundance of sophisticated
tools, including advanced controllers, theProportional, Integral, Derivative (PID
controller) is still the most widely used in
modern industry, controlling more that 95%
of closed-loop industrial processes.
-
8/22/2019 Classical Pid Controllers1
7/79
8/6/20137
So, what is a Controller?
A controller is a device that generates an
output signal based on the input signal itreceives.
The input signal is actually an error signal,
which is the difference between the
measured variable and the desired value, orset point.
See figure below for the Controller.
-
8/22/2019 Classical Pid Controllers1
8/79
8/6/20138
Heat Exchanger Control System
-
8/22/2019 Classical Pid Controllers1
9/79
8/6/20139
Structure of a Controller
-
8/22/2019 Classical Pid Controllers1
10/79
8/6/201310
Structure of a Controller
This input error signal represents the amountof deviation between where the processsystem is actually operating and where theprocess system is desired to be operating.
The controller provides an output signal tothe final control element, which adjusts theprocess system to reduce this deviation.
The characteristic of this output signal isdependent on the type, or mode, of thecontroller.
-
8/22/2019 Classical Pid Controllers1
11/79
8/6/201311
Modes of Controllers
The mode of control is the manner in which a controlsystem makes corrections relative to an error that
exists between the desired value (set point) of acontrolled variable and its actual value.
The mode of control used for a specific applicationdepends on the characteristics of the process beingcontrolled. For example, some processes can beoperated over a wide band, while others must bemaintained very close to the set point.
Deviationis the difference between the set point of aprocess variable and its actual value. This is a key
term used when discussing various modes of control.
-
8/22/2019 Classical Pid Controllers1
12/79
8/6/201312
Four Modes of Controllers
Four modes of control commonly used for
most applications are: Proportional (P)
Proportional plus Reset (PI)
Proportional plus Rate (PD)
Proportional plus Reset plus Rate (PID)
Other Authors state it differently as follows
-
8/22/2019 Classical Pid Controllers1
13/79
8/6/201313
Four Modes of Controllers
-
8/22/2019 Classical Pid Controllers1
14/79
8/6/201314
Proportional Controllers (P)
Each mode of control has characteristicadvantages and limitations.
The modes of control are discussed in thisand the next several sections of this module.
In theproportional (throttling) mode, there is
a continuous linear relation between value ofthe controlled variable and position of thefinal control element.
In other words, amount of valve movement is
proportional to amount of deviation.
-
8/22/2019 Classical Pid Controllers1
15/79
8/6/201315
Proportional Controllers
Three terms commonly used to describe the
proportional mode of control areproportional
band, gain and offset.
Proportional band, (also called throttling range), is
the change in value of the controlled variable that
causes full travel of the final control element.
Gain, also called sensitivity, compares the ratio ofamount of change in the final control element to
amount of change in the controlled variable.
Mathematically, gain and sensitivity are reciprocal to
proportional band.
-
8/22/2019 Classical Pid Controllers1
16/79
8/6/201316
Proportional Controllers
Offset, also called droop, is deviation that
remains after a process has stabilized. Offset isan inherent characteristic of the proportional
mode of control. In other words, the proportional
mode of control will not necessarily return a
controlled variable to its set point. Proportional control is also referred to as
throttling control.
-
8/22/2019 Classical Pid Controllers1
17/79
8/6/201317
Reset or Integral Controller (I)
Integral control describes a controller in whichthe output rate of change is dependent on themagnitude of the input.
Specifically, a smaller amplitude input causes aslower rate of change of the output.
This controller is called an integral controllerbecause it approximates the mathematicalfunction of integration.
The integral control method is also known as
reset control.
-
8/22/2019 Classical Pid Controllers1
18/79
8/6/201318
Definition of Integral Control
A device that performs the mathematical
function of integration is called an integrator. The mathematical result of integration is called
the integral.
The integrator provides a linear output with a
rate of change that is directly related to theamplitude of the step change input and a
constant that specifies the function of
integration.
-
8/22/2019 Classical Pid Controllers1
19/79
8/6/201319
Example of an Integral Output for a
Fixed Input
-
8/22/2019 Classical Pid Controllers1
20/79
8/6/201320
Integral Flow Rate Controller
-
8/22/2019 Classical Pid Controllers1
21/79
8/6/201321
Integral Flow Rate Controller
-
8/22/2019 Classical Pid Controllers1
22/79
8/6/201322
Properties of Integral Control
The major advantage of integral controllers is that they
have the unique ability to return the controlled variable
back to the exact set point following a disturbance.
Disadvantages of the integral control mode are that it
responds relatively slowly to an error signal and that it
can initially allow a large deviation at the instant the
error is produced. This can lead to system instability and cyclic operation.
For this reason, the integral control mode is not normally
used alone, but is combined with another control mode.
-
8/22/2019 Classical Pid Controllers1
23/79
8/6/201323
Proportional Plus Reset Control (PI)
Proportional plus reset control is a
combination of the proportional and integralcontrol modes.
This type control is actually a combination of
two previously discussed control modes,
proportional and integral. Combining the two modes results in gaining
the advantages and c o m p e n s a t i n g f o r
t h e disadvantages of the two individual
modes.
-
8/22/2019 Classical Pid Controllers1
24/79
8/6/201324
Characteristics of the PI
The main advantage of the proportional control mode
is that an immediate proportional output is produced
as soon as an error signal exists at the controller asshown in Figure below.
The proportional controller is considered a fast-acting
device.
This immediate output change enables the proportionalcontroller to reposition the final control element within a
relatively short period of time in response to the error.
See below figure for the response of the PI Control
-
8/22/2019 Classical Pid Controllers1
25/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology25
-
8/22/2019 Classical Pid Controllers1
26/79
8/6/201326
Disadvantages of the
Proportional Control
The main disadvantage of the proportional control mode
is that a residual offset error exists between the
measured variable and the set point for all but one set ofsystem conditions.
The main advantage of the integral control mode is that
the controller output continues to reposition the final
control element until the error is reduced to zero. This results in the elimination of the residual offset error
allowed by the proportional mode.
-
8/22/2019 Classical Pid Controllers1
27/79
8/6/201327
Disadvantages of the
Proportional Control
The main disadvantage of the integral mode is
that the controller output does not immediately
direct the final control element to a new position
in response to an error signal.
The controller output changes at a defined rate
of change, and time is needed for the finalcontrol element to be repositioned.
-
8/22/2019 Classical Pid Controllers1
28/79
8/6/201328
PI Equations
-
8/22/2019 Classical Pid Controllers1
29/79
8/6/201329
PI Characteristics
-
8/22/2019 Classical Pid Controllers1
30/79
8/6/201330
Characteristics of the PI
The combination of the two control modes is
called the proportional plus reset (PI) control
mode.
It combines the immediate output characteristics
of a proportional control mode with the zero
residual offset characteristics of the integralmode.
-
8/22/2019 Classical Pid Controllers1
31/79
8/6/201331
Example of the PI for the Plant
Heat Exchanger
-
8/22/2019 Classical Pid Controllers1
32/79
8/6/201332
Effects of Disturbance on Reverse
Acting Controller
-
8/22/2019 Classical Pid Controllers1
33/79
8/6/201333
Effects of Disturbance on Reverse
Acting Controller
By adding the reset action to the proportional
action the controller produces a larger output
for the given error signal and causes a greater
adjustment of the control valve.
This causes the process to come back to the
set point more quickly. Additionally, the resetaction acts to eliminate the offset error after a
period of time.
-
8/22/2019 Classical Pid Controllers1
34/79
8/6/201334
Reset Wind-Up
Proportional plus reset controllers act to eliminate the offset errorfound in proportional control by continuing to change the outputafter the proportional action is completed and by returning thecontrolled variable to the set point.
An inherent disadvantage to proportional plus reset controllers isthe possible adverse effects caused by large error signals.
The large error can be caused by a large demand deviation orwhen initially starting up the system.
This is a problem because a large sustained error signal willeventually cause the controller to drive to its limit, and the result iscalled "reset windup."
Because of reset windup, this control mode is not well-suited forprocesses that are frequently shut down and started up.
-
8/22/2019 Classical Pid Controllers1
35/79
8/6/201335
Proportional plus Rate control (PD)
Proportional plus rate control is a control mode in which a
derivative section is added to the proportional controller.
Proportional plus rate describes a control mode in which
a derivative section is added to a proportional controller.
This derivative section responds to the rate of change of
the error signal, not the amplitude; this derivative action
responds to the rate of change the instant it starts.
This causes the controller output to be initially larger in
direct relation with the error signal rate of change.
-
8/22/2019 Classical Pid Controllers1
36/79
8/6/201336
PD Controller
-
8/22/2019 Classical Pid Controllers1
37/79
8/6/201337
PD Controller
-
8/22/2019 Classical Pid Controllers1
38/79
8/6/201338
Proportional plus Rate control (PD)
The higher the error signal rate of change, thesooner the final control element is positioned to
the desired value. The added derivative action reduces initial
overshoot of the measured variable, andtherefore aids in stabilizing the process sooner.
This control mode is called proportional plus rate(PD) control because the derivative sectionresponds to the rate of change of the errorsignal.
-
8/22/2019 Classical Pid Controllers1
39/79
8/6/201339
Definition of the Derivative Control
A device that produces a derivative signal iscalled a differentiator. Figure below shows the
input versus output relationship of adifferentiator.
The differentiator provides an output that isdirectly related to the rate of change of the input
and a constant that specifies the function ofdifferentiation.
The derivative constant is expressed in units ofseconds and defines the differential controlleroutput.
-
8/22/2019 Classical Pid Controllers1
40/79
8/6/201340
Derivative Output for a Constant Rate
of change
-
8/22/2019 Classical Pid Controllers1
41/79
8/6/201341
Rate Control Output
-
8/22/2019 Classical Pid Controllers1
42/79
8/6/201342
Rate Control Output
The differentiator acts to transform a changing
signal to a constant magnitude signal as shown
in Figure above.
As long as the input rate of change is constant,
the magnitude of the output is constant.
A new input rate of change would give a newoutput magnitude.
-
8/22/2019 Classical Pid Controllers1
43/79
8/6/201343
Rate Control Output
Derivative cannot be used alone as a controlmode.
This is because a steady-state input produces azero output in a differentiator.
If the differentiator were used as a controller, theinput signal it would receive is the error signal.
As just described, a steady-state error signalcorresponds to any number of necessary outputsignals for the positioning of the final controlelement.
-
8/22/2019 Classical Pid Controllers1
44/79
8/6/201344
Rate Control Output
Therefore, derivative action is combined with
proportional action in a manner such that the
proportional section output serves as the
derivative section input.
Proportional plus rate controllers take advantage
of both proportional and rate control modes.
-
8/22/2019 Classical Pid Controllers1
45/79
8/6/201345
Proportional Action
As seen in Figure below, proportional action
provides an output proportional to the error.
If the error is not a step change, but is slowly
changing, the proportional action is slow.
Rate action, when added, provides quick
response to the error.
-
8/22/2019 Classical Pid Controllers1
46/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology46
-
8/22/2019 Classical Pid Controllers1
47/79
8/6/201347
Example of the Proportional Plus rate
Control
To illustrate proportional plus rate control, we will
use the same heat exchanger process that has
been analyzed in previous chapters (see Figure
below).
For this example, however, the temperature
controller used is a proportional plus ratecontroller.
-
8/22/2019 Classical Pid Controllers1
48/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology48
Proportional Plus rate Control for the
Heat Exchanger
-
8/22/2019 Classical Pid Controllers1
49/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology49
Effects of Disturbance
-
8/22/2019 Classical Pid Controllers1
50/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology50
Industrial Applications
Proportional plus rate control is normally used with largecapacity or slow-responding processes such astemperature control.
The leading action of the controller output compensatesfor the lagging characteristics of large capacity, slowprocesses.
Rate action is not usually employed with fast respondingprocesses such as flow control or noisy processesbecause derivative action responds to any rate of changein the error signal, including the noise.
Proportional plus rate controllers are useful withprocesses which are frequently started up and shut downbecause it is not susceptible to reset windup.
-
8/22/2019 Classical Pid Controllers1
51/79
8/6/201351
Proportional Plus Integral Plus
Derivative Control (PID)
Proportional plus reset plus rate controllers combineproportional control actions with integral and derivativeactions.
For processes that can operate with continuous cycling,the relatively inexpensive two position controller isadequate.
For processes that cannot tolerate continuous cycling, aproportional controller is often employed.
For processes that can tolerate neither continuouscycling nor offset error, a proportional plus resetcontroller can be used.
For processes that need improved stability and cantolerate an offset error, a proportional plus rate controlleris employed.
-
8/22/2019 Classical Pid Controllers1
52/79
8/6/201352
Proportional Plus Integral Plus
Derivative Control (PID)
However, there are some processes that
cannot tolerate offset error, yet need good
stability.
The logical solution is to use a control mode
that combines the advantages of proportional,
reset, and rate action. This chapter describes the mode identified as
proportional plus reset plus rate, commonly
called Proportional-Integral-Derivative (PID).
-
8/22/2019 Classical Pid Controllers1
53/79
8/6/201353
Controller Action
When an error is introduced to a PID controller,
the controllers response is a combination of the
proportional, integral, and derivative actions, as
shown in Figure below.
-
8/22/2019 Classical Pid Controllers1
54/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology54
-
8/22/2019 Classical Pid Controllers1
55/79
8/6/201355
Controller Action
Assume the error is due to a slowly increasing measuredvariable. As the error increases, the proportional action ofthe PID controller produces an output that is proportionalto the error signal.
The reset action of the controller produces an outputwhose rate of change is determined by the magnitude ofthe error.
In this case, as the error continues to increase at asteady rate, the reset output continues to increase its rateof change.
The rate action of the controller produces an outputwhose magnitude is determined by the rate of change.When combined, these actions produce an output as
shown in Figure above.
-
8/22/2019 Classical Pid Controllers1
56/79
8/6/201356
Controller Action
As you can see from the combined action
curve, the output produced responds
immediately to the error with a signal that is
proportional to the magnitude of the error
and that will continue to increase as long as
the error remains increasing.
-
8/22/2019 Classical Pid Controllers1
57/79
8/6/201357
PID Controller Response Curves
-
8/22/2019 Classical Pid Controllers1
58/79
8/6/201358
PID Response Curves
Figure above demonstrates the combinedcontroller response to a demand disturbance.
The proportional action of the controller stabilizesthe process.
The reset action combined with the proportionalaction causes the measured variable to return tothe set point.
The rate action combined with the proportionalaction reduces the initial overshoot and cyclicperiod.
-
8/22/2019 Classical Pid Controllers1
59/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology59
PID Controller
-
8/22/2019 Classical Pid Controllers1
60/79
8/6/201360
PID Controllers Equations
-
8/22/2019 Classical Pid Controllers1
61/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology61
PID Controller Characteristics
-
8/22/2019 Classical Pid Controllers1
62/79
8/6/201362
Design of PID Controllers
Based on the knowledge of P, I and D
trial and error manual tuning
simulation
-
8/22/2019 Classical Pid Controllers1
63/79
8/6/201363
Tuning of PID Controllers
Because of their widespread use in practice, we
present below several methods for tuning PID
controllers. Actually these methods are quite old and date back
to the 1950s.
Nonetheless, they remain in widespread use today.
In particular, we will study Ziegler-Nichols Oscillation Method
Ziegler-Nichols Reaction Curve Method
Cohen-Coon Reaction Curve Method
-
8/22/2019 Classical Pid Controllers1
64/79
8/6/201364
Ziegler-Nichols Method
Ziegler-Nichols method
based on a open-loop process based on a critical gain
-
8/22/2019 Classical Pid Controllers1
65/79
8/6/201365
Ziegler-Nichols (Z-N)
Oscillation Method
This procedure is only valid for open loop stable
plants and it is carried out through the following
steps:
Set the true plant under proportional control, with a
very small gain.
Increase the gain until the loop starts oscillating.
Note that linear oscillation is required and that it
should be detected at the controller output.
-
8/22/2019 Classical Pid Controllers1
66/79
8/6/201366
Ziegler-Nichols (Z-N)
Oscillation Method
Record the controller critical gain Kp = Kcand the
oscillation period of the controller output, Pc.
Adjust the controller parameters according to nextslide; there is some controversy regarding the PID
parameterization for which the Z-N method was
developed, but the version described here is
applicable to the parameterization of standardform PID.
-
8/22/2019 Classical Pid Controllers1
67/79
8/6/201367
Ziegler-Nichols tuning using the
oscillation method
-
8/22/2019 Classical Pid Controllers1
68/79
8/6/201368
Reaction Curve
-
8/22/2019 Classical Pid Controllers1
69/79
8/6/201369
Reaction Curve Based Methods
A linearized quantitative version of a simple
plant can be obtained with an open loop
experiment, using the following procedure:
1. With the plant in open loop, take the plant
manually to a normal operating point. Say that
the plant output settles at y(t) = y0 for a constant
plant input u(t) = u0.
2. At an initial time, t0, apply a step change to
the plant input, from u0 to u
(this should be in
the range of10 to 20% of full scale).
-
8/22/2019 Classical Pid Controllers1
70/79
8/6/201370
Reaction Curve Based Methods
3. Record the plant output until it settles to the
new operating point. Assume you obtain the curve
shown on the next slide. This curve is known astheprocess reaction curve.
In the figure on next page, m.s.t. stands for
maximum slope tangent.
4. Compute the parameter model as follows
-
8/22/2019 Classical Pid Controllers1
71/79
8/6/201371
Plant Response
-
8/22/2019 Classical Pid Controllers1
72/79
8/6/201372
Plant Response
-
8/22/2019 Classical Pid Controllers1
73/79
8/6/201373
Z-N Tuning Using Reaction Curve
-
8/22/2019 Classical Pid Controllers1
74/79
8/6/201374
PI Z-N Tuned Reaction Curve
-
8/22/2019 Classical Pid Controllers1
75/79
8/6/201375
Observation
We see from the previous slide that the
Ziegler-Nichols reaction curve tuning method
is very sensitive to the ratio of delay to timeconstant.
-
8/22/2019 Classical Pid Controllers1
76/79
8/6/201376
Cohen-Coon Reaction
Curve Method
Cohen and Coon carried out further studies
to find controller settings which, based on the
same model, lead to a weaker dependenceon the ratio of delay to time constant.
-
8/22/2019 Classical Pid Controllers1
77/79
8/6/2013
Eng R. L. Nkumbwa, Copperbelt
University, School of Technology77
Cohen-Coon Tuning Reaction Curve
-
8/22/2019 Classical Pid Controllers1
78/79
8/6/201378
Lead-Lag Compensators
Closely related to PID control is the idea of
lead-lag compensation. The transfer function
of these compensators is of the form:
-
8/22/2019 Classical Pid Controllers1
79/79