Process Control-Lecture 09
Process Control-Lecture 09
CE 560 / MT 580
Process control
Lecture 09
Integral, derivative and PID controls
C. Botha (Mr.)
Contacts: Chemical Engineering Department
Email: [email protected]
Alt. Email: [email protected]
January, 2024
Integral (I) control
o Where
𝜀 𝑡 = 𝑦𝑠𝑝 − 𝑦𝑚 𝑡 𝑜𝑟 𝜀 𝑡 = 𝑆𝑃 − 𝑃𝑉 9.3
Controlled variable is at steady state if the controller output ( and hence the
manipulated variable) is constant.
Adjustment only stops when the controller output reaches a value required to
make the error zero.
The controlled variable will attain its new equilibrium value with P-control.
However, when integral action is added, it will continue to sum-up the error, no
matter how small.
Integral (I) control
Thus, controller output and hence steam flow are continuously adjusted.
Adjustments continue until controller output attains a value required to make
the steady state error or offset zero.
That is, when exit temperature reaches desired value of the temperature.
This desirable situation always occurs with integral action unless the final control
element or controller saturates.
Proportional plus integral control
o Despite eliminating offset, integral control is rarely used by itself.
o Consider the system’s response shown in Fig 9.1.
Integral (I) control
o I.e. immediately process variable changes or in case of Fig. 9.1 set point changes.
o Hence, little integral control action takes place until the error exists for some time.
o Thus integral action takes some time before having a significant impact on the
process response.
o This is because the integral (summation) of the error must be significant before
integral control can produce a reasonable corrective action.
Proportional plus integral control
o Since P-control takes immediate corrective action i.e., as soon as the error is detected.
o Integral control is typically used in conjunction with proportional control.
o This forms proportional plus Integral (PI) control for which the control law is
𝑡
𝐾𝐶
𝐶𝑂 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜀 𝑡 + න 𝜀 𝑡 𝑑𝑡 9.4
𝜏𝐼
0
𝑡
1
𝐶𝑂 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜀 𝑡 + න 𝜀 𝑡 𝑑𝑡 9.5
𝜏𝐼
0
o That is controller output depends on the error itself and the time integral of the error.
Proportional plus integral control
o Thus, integral action makes the same contribution to the controller output as
proportional control.
o Repetition takes place every 𝝉𝑰 minutes hence the name repeats per minute or
reset time.
Drawbacks of I or PI control
o One limitation of integral control is the lack of immediate response to disturbances.
o Other limitation arises from the dependence of integral action on the time integral of
the error.
Proportional plus integral control - drawbacks
o A sustained error results in large integral term leading to a large +ve or –ve controller
output.
o Such a controller output may be meaningless e.g., may require valve opening of 150%
or -20%.
o That is values that are outside the final control element range, a condition known as
controller saturation.
o Further build up of the integral term while the controller is saturated is known as reset
wind-up or integral wind-up.
o Repetition of integral action ceases when this occurs.
Proportional plus integral control - drawbacks
o Integral wind-up occurs when a PI and PID controller experiences a sustained error.
o E.g., when starting-up of a unit, or after a large set-point change or a large sustained
disturbance occurs.
o This limits the contribution of the integral term after controller saturation.
o This may produce oscillatory response, especially where the error persists.
o Proper tuning or including derivative action can reduce the effects of integral term.
Tuning guidelines
o Fig. 9.1 depicts the dependence of the response on the tuning parameters 𝐾𝐶 and
𝜏 𝐼 for a PI-controller.
o Controller tuning implies arriving at the best combination of the tuning parameters
that result in the desirable response.
o 𝐾𝐶 and 𝜏 𝐼 are interacting and makes tuning a PI controller challenging.
PI - control – tuning guidelines
2Kc
Kc
Kc /2
o In derivative (D) control, the controller output varies proportionally to the rate of change
of the error, therefore;
𝑑𝜀 𝑡
𝐶𝑂 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 9.7
𝑑𝑡
o Where 𝝉𝑫 is the derivative time, in units of time and is another tuning parameter.
o Derivative control depends on the rate of change of error.
o I.e., considers current rate of change of the error to anticipate future behaviour of the
error.
Control action was referred to as rate action or anticipatory control.
It contributes to controller output as soon as there is a change in error.
Derivative control
o Its action is similar to P-control with high gain for rapidly changing measured variable
and low gain for a change that is not as rapid.
o Consider an increase in furnace temperature; 10℃, say, in 1 min, and 30℃ in 30 min.
Increase in temperature in the first case is more rapid than in the second case.
o Manual control, operator observes how quickly the temperature is rising.
Anticipates how large the deviation in temperature will be and its consequences.
Appropriate control action is then taken by the operator to correct the temperature.
Action depends on how quickly the temperature is rising and the anticipated
deviation.
Derivative control
o Controller output, in this case, equals its nominal value since 𝑑𝜀(𝑡)Τ𝑑𝑡 = 0.
o Hence, derivative control is always combined with P-control or PI-control and never
used by itself.
o When used with P-control, the result is PD-control whose control law is as
𝑑𝜀(𝑡)
𝐶𝑜 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜀 𝑡 + 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜏𝐷 9.8
𝑑𝑡
𝑑𝜀(𝑡)
𝐶𝑜 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜀 𝑡 + 𝜏𝐷 9.9
𝑑𝑡
Proportional plus derivative control
o Furthermore, derivative control action requires pure error signal for it to be accurate.
o It also has a tendency to reduce settling time, i.e., time taken for response to attain
steady state.
o Ideal proportional plus derivative algorithm (Eq. 9.9) is not physically realizable.
That is, it cannot be implemented in its exact form in analog or digital controllers.
PID control is essentially a combination of all the three basic control modes (P, I & D).
Proportional plus integral plus derivative (PID) control
o It provides the best option that retains all positive attributes of each basic control mode in
one final control algorithm.
o That is, PID control, combines the advantages of all three control algorithms.
o Offset is eliminated by the presence of the integral control action.
o Derivative action on the other hand reduces maximum deviation or overshoot, and
o duration for which oscillations occur in a systems response, i.e., settling time.
o Proportional control provides for immediate action thus PID control law is
𝑡
1 𝑑𝜀(𝑡)
𝐶𝑜 = 𝐶𝑂𝑏𝑖𝑎𝑠 + 𝐾𝐶 𝜀 𝑡 + න 𝜀 𝑡 𝑑𝑡 + 𝜏𝐷 9.10
𝜏𝐼 𝑑𝑡
0
Proportional plus integral plus derivative control
No control
Controlled variable
Offset
PID PI PD P
0 Time
0
Fig.10.1 Response of a controlled variable to a step change in disturbance for different control modes
On-off control
o With on-off control, the controller output signal has only two possible states and can be
expressed as follows:
𝐶𝑂𝑚𝑎𝑥 𝑖𝑓 𝜀 ≥ 0
𝐶𝑂 = ൜ 9.11
𝐶𝑂𝑚𝑖𝑛 𝑖𝑓 𝜀 ≤ 0
o The controller outputs 𝑪𝑶𝒎𝒂𝒙 and 𝑪𝑶𝒎𝒊𝒏 are the on and off values.
o Therefore, with on-off control, when 𝑪𝑶 = 𝑪𝑶𝒎𝒂𝒙 there is an action from the
controller.
o And when 𝑪𝑶 = 𝑪𝑶𝒎𝒊𝒏 there is an opposite or no action from the controller, e.g.
switch off the heat supply to a process.
On-off control
o For a digital signal such as used in computer, 𝑪𝑶𝒎𝒂𝒙 = 𝟏𝟎𝟎% and 𝑪𝑶𝒎𝒊𝒏 = 𝟎%.
o On the other hand for analog controller whose output signal is a current,
o Since on-off control has only two-states, it is also known as two-position control.
o That is, when the error is infinitesimal, the output of a controller is zero (off-position)
o and when the error is significant, the output jumps to a large value (on-position).
On-off control
o On-off controllers are commonly used as thermostats in furnaces and heating systems.
o Furthermore, they are also used in non-critical industrial applications such as some
level control switches.
o But they are not as widely used as PID controllers since they are not as versatile
or as effective.
o Although, this is only significant when the final control element is a control valve and
not so when a solenoid valve is used.