Lecture 2
Lecture 2
Control requirements:
- Measuring the level (h)
- Generating a command
(c) depending on the error
A 1st order system is one whose output is modelled by a 1st order differential eq.:
𝑑𝑦 𝑡 𝜏𝑝 Time constant
𝜏𝑝 + 𝑦 𝑡 = 𝐾𝑝 𝑓 𝑡
𝑑𝑡 𝐾𝑝 (Static) gain
First order processes are characterized by their capacity to store material or energy and the resistance
associated with the flow of mass or energy in reaching the capacity
𝑑ℎ 𝑡 𝜌𝑔ℎ 𝑡 8𝜂𝐿
𝐹 𝑡 𝐴 =𝐹 𝑡 − 𝑅=
𝑑𝑡 𝑅 𝑆𝐸𝐶 2
𝒉(𝒕) A 𝐴𝑅 𝑑ℎ 𝑡 𝑅
R +ℎ 𝑡 = 𝐹 𝑡
𝜌𝑔 𝑑𝑡 𝜌𝑔
𝑑𝑇 𝑡
𝑻(𝒕) 𝑚𝑐𝑝 = 𝑈𝐴 𝑇𝑣𝑎𝑝 − 𝑇(𝑡)
𝑑𝑡
UA
𝑚
𝑚𝑐𝑝 𝑑𝑇 𝑡
+ 𝑇(𝑡) = 𝑇𝑠𝑡
steam
𝑈𝐴 𝑑𝑡
LCCP Laboratory of Catalysis and Catalytic Processes
4
Dynamic behaviour of first-order systems
𝑡
𝑚𝑐𝑝
𝑈𝐴
LCCP Laboratory of Catalysis and Catalytic Processes
5
Dynamic behaviour of pure-capacitive system
A 2nd order system is one whose output is modelled by a 2nd order differential eq.:
𝑑 2
𝑦 𝑡 𝑑𝑦 𝑡 𝜏 Natural period of oscillation
2
𝜏 + 2𝜉𝜏 + 𝑦 𝑡 = 𝐾𝑝 𝑓 𝑡 𝜉 Damping factor
𝑑𝑡 2 𝑑𝑡
𝐾𝑝 (Static) gain
Multicapacitive processes: Inherently second
𝐹 𝑡 2nd-order systems obtained order systems
by the in-series combination
of two 1st order capacitive
ℎ1(𝑡) A1
systems
R1
𝒉𝟐(𝒕) A2
R2
𝒉𝟐(𝒕) A2
R2
These systems can bring to OVERDAMPED responses (if the dumping factor is > 1) or
UNDERDAMPED responses (if the dumping factor is response is < 1).
UNDERDAMPED responses are faster than OVERDAMPED responses at the beginning, reaches
the ultimate value quickly, but then it does not stay there, but it starts oscillating with progressively
decreasing amplitude.
Assumptions: 𝐹𝑖 = 𝑐𝑜𝑛𝑠𝑡. = 𝐹 (volumetric flowrates) and 𝑇𝑠𝑡 = 𝑐𝑜𝑛𝑠𝑡.. 𝑻𝒊 varies along with time.
𝑑𝑇 𝑡
𝑚𝑐𝑝 = 𝐹𝜌𝑐𝑝 𝑇𝑖 𝑡 − 𝑇 𝑡 +𝑄 (1)
𝑑𝑡
𝑑 𝑇 𝑡 − 𝑇𝑠
𝑚𝑐𝑝 = 𝐹𝜌𝑐𝑝 𝑇𝑖 𝑡 − 𝑇𝑖,𝑠 − 𝑇 𝑡 − 𝑇𝑠 + 𝑄 − 𝑄𝑠 (3)
𝑑𝑡
P Controller 𝑐 𝑡 = 𝛼 𝜀 𝑡 + 𝑐𝑠
𝑑 𝑇 𝑡 − 𝑇𝑠
𝑚𝑐𝑝 = 𝐹𝜌𝑐𝑝 𝑇𝑖 − 𝑇𝑖,𝑠 − 𝑇 𝑡 − 𝑇𝑠 − 𝛼 𝑇 𝑡 − 𝑇𝑠
𝑑𝑡
𝑐 𝑡 = 𝐾𝑐 𝜀 𝑡 + 𝑐𝑠 𝐾 c Proportional gain
A similar behaviour is observed when we consider how a first order reacts to a step change in
the set-point.
Imagine the set-point for our variable (y) is initially 0. At t = 0 we suddenly change the set-point
from 0 to 2. How does a first-order system, equipped with a P controller, react?
From this moment on, we will only consider the responses to a step change in the set-point.
The system response to a step change in the load is always equivalent.
Imagine the set-point for our variable (y) is initially 0. At t=0 we suddenly change the set-point
from 0 to 2. How does a second-order system, equipped with a P controller, react?
• For high values of Kc, second order systems may become unstable (oscillating)
I Controller 𝑐 𝑡 = 𝛽 න 𝜀 𝑡 𝑑𝑡 + 𝑐𝑠
0
𝑡
Integral control: 𝑸 = −𝛽 0 𝑻 − 𝑻𝒔 𝑑𝑡 + 𝑸𝒔 (4)
𝑡
𝐾c 𝐾 c Proportional gain
𝑐 𝑡 = න 𝜀 𝑡 𝑑𝑡 + 𝑐𝑠
𝜏𝑖 𝜏i Integral time
0
• I control is slow: the weaker the integral action is (small ti), the slower the response
is.
• For high values of Kc or low values of ti, even first order systems may become
unstable (oscillating)
𝑡
𝐾c 𝐾 c Proportional gain
𝑐 𝑡 = 𝐾c 𝜀 𝑡 + න 𝜀 𝑡 𝑑𝑡 + 𝑐𝑠
𝜏𝑖 𝜏i Integral time
0
𝑑𝜀 𝑡 𝐾 c Proportional gain
𝑐 𝑡 = 𝐾 c𝜏 𝑑 + 𝑐𝑠
𝑑𝑡 𝜏d Derivative time
The purpose of derivative action is to anticipate where the process is going by looking at
the rate of change of error, de/dt.
Disadvantage: it does not do anything when the error is constant → it makes sense only if
used in combination with P or PI actions
𝑑𝜀 𝑡 𝐾 c Proportional gain
𝑐 𝑡 = 𝐾 c 𝜀 𝑡 + 𝐾 c𝜏 𝑑 + 𝑐𝑠
𝑑𝑡 𝜏d Derivative time
The presence of the D action, does not help in eliminating the main drawabacks of the P
control: an off-set exists
𝑡 𝐾 c Proportional gain
𝐾c 𝑑𝜀 𝑡
PID control 𝑐 𝑡 = 𝐾c 𝜀 𝑡 + න 𝜀 𝑡 𝑑𝑡 + 𝐾c𝜏𝑑 + 𝑐𝑠 𝜏i Integral time
𝜏𝑖 𝑑𝑡
0 𝜏d Derivative time
Note 1:
Note 2:
1. PROPORTIONAL (P)
𝑐 𝑡 = 𝛼 𝜀 𝑡 + 𝑐𝑠
2. PROPORTIONAL-INTEGRAL (PI)
𝑡
𝑐 𝑡 = 𝛼 𝜀 𝑡 + 𝛽 න 𝜀 𝑡 𝑑𝑡 + 𝑐𝑠
0
3. PROPORTIONAL-INTEGRAL-DERIVATIVE (PID)
𝑡
𝑑𝜀 𝑡
𝑐 𝑡 = 𝛼 𝜀 𝑡 + 𝛽 න 𝜀 𝑡 𝑑𝑡 + 𝛾 + 𝑐𝑠
𝑑𝑡
0
Video P vs PID
LCCP Laboratory of Catalysis and Catalytic Processes
29
How to select the most appropriate control type?
- Readiness (P)
- Accuracy (I)
- Stability (D)
Textbook plot used to show the
response of a system to a unit 2. What about the dynamics of the process to
step change in the load with no control?
control and P, PI and PID control.
- Velocity
- Noiseness
Case 1: Large cross section of the tank Case 2: Small cross section of the tank
The level evolves slowly The level evolves quickly
The accuracy is not fundamental; The accuracy is fundamental;
→P → PI
Note:
D action is usually not adopted for level control, especially when the free surface is
rough/agitated (for example because the liquid is boiling)
→ PI
D action is not used, not to damage the valve (quick opening and closing)
→P → PI or PID
→ PID
Controlling the composition often requires long analyses → composition is not used as
measured varibale in designing control loops.
The closed loop representation of the process represents the same process, when:
1) a measuring device is used to measure the output variable (ym)
2) a comparison is made between ym and the desired value (ysp), calculating the error (aka
deviation)
3) the value of the error is used by the controller to generate a command c, which is sent to
the final control element /usually a control valve) to affect the manipulated variable
Example: Exothermic reaction occurring in a CSTR, cooled with a coolant flowing in the jacket.
GOAL: Keeping T constant
SISO MIMO
SISO reacts well to changes in Tfeed, but it’s rather slow to compensate changes in Tcoolant
MIMO (CASCADE CONTROL) improve the response to changes in Tc, because it doesn’t wait
that the effect of a variation of the coolant temperature has been felt by the reacting mixture. The
loop measuring T is dominant (primary), the loop measuring Tc is secondary (slave)
Process I (primary) has as its output the variable we want to control (in the previous example,
the reaction in the tank and the temperature T).
Process II (secondary) has an output we are not interested in controlling but which affects the
output we want to control (in the previous example, the reactor jacket and its output Tc).
SISO
SISO
MIMO
CASCADE
MIMO
CASCADE:
Single Input Multiple Output
From a process perspective
Multiple Input Single Output
From a controller perspective
Heat exchanger
Furnace
In chemical
LCCP processes,
Laboratory flow-rate
of Catalysis control Processes
and Catalytic loops are very often cascaded with other control loops.
43
OVERRIDE Control (Single Input, Multiple Output)
During the normal operation of a plant or during its startup/shutdown, dangerous situations
may arise which may lead to destruction of equipment. In such cases it is necessary to change
from the normal control action. This can be achieved through the use of special switches.
OVERRIDE:
Single Input Multiple Output
From a process perspective
Multiple Input Single Output
From a controller perspective
Example 1: protection of a boiler system. The LSS prevents that the liquid level in the boiler
falls below the allowable limit (the heating coil must remain immersed in water not to burn out)
Example 2: protection of a steam distribution system. The HSS prevents that the high
pressure steam line is excessively pressurized.
Example 3: protection of a compressor system. The HSS prevents that discharge pressure
from the compressor exceeds an upper limit. FC and PC are cascaded to the speed control of
the compressor’s motor.
SC = Speed Control
ST = Speed Transducer
Such a control configuration select among several similar measurements the one with the
highest value and feed it to the controller (several measured outputs, one manipulated input).
AUCTIONEERING:
Single Input Multiple Output
From a process perspective
Multiple Input Single Output
From a controller perspective
Example: catalytic tubular reactor with highly exothermic reactions. The Auctioneering
system allows to control the coolant flowrate depending on the hot-spot temperature.
Such a control splits the controlled output into several parts, each affecting one of the available
manipulated variables affecting this output
Example: control of the pressure in a steam header (collecting steam from several parallel
boilers). The control must keep constant the pressure in the steam header when the steam
demand changes.