RT Skript 2024
RT Skript 2024
Frühlingssemester 2024
Lecturer:
Prof. Robert N. Grass HCI E 111 Tel. 36 344 E-Mail: [email protected]
Assistant:
Andreas Gimpel HCI E 106 Tel. 32909 E-Mail: [email protected]
Recommended Reading:
J. Lunze
Regelungstechnik 1
10.Auflage, 2007, Springer, Berlin
ISBN 978-3-642-53908-4
These lecture notes are intended to support students in learning for the exams in Process Control. They are
not understood as a complete and self-explanatory scriptum, and therefore are only useful in connection to
visiting the actual course.
Students willing to learn without visiting the course are advised to follow one of the books mentioned above,
or the online course by Prof. Manfred Morari published on YouTube: http://tinyurl.com/jshqba8
Chemical Process Control, Prof. Robert N. Grass |1
Table of Content
1 INTRODUCTION .............................................................................................................................. 3
ENGINEER’S VIEW OF THE WORLD .................................................................................................. 3
WHAT IS CONTROL? ......................................................................................................................... 3
BASIC ELEMENTS OF PROCESS CONTROL ........................................................................................ 4
HISTORY OF PROCESS CONTROL ...................................................................................................... 5
PROCESS CONTROL IN CHEMICAL INDUSTRY .................................................................................. 6
2 REPRESENTATION OF SYSTEMS ............................................................................................... 7
FEEDFORWARD CONTROL ................................................................................................................ 7
FEEDBACK CONTROL ....................................................................................................................... 8
3 SYSTEM MODELLING ................................................................................................................. 10
4 DIFFERENTIAL EQUATIONS ..................................................................................................... 15
NOMENCLATURE ............................................................................................................................ 15
NUMERICAL SOLUTION .................................................................................................................. 16
ANALYTICAL SOLUTION ................................................................................................................. 16
LINEARIZATION .............................................................................................................................. 17
SUPERPOSITION .............................................................................................................................. 19
CONVOLUTION................................................................................................................................ 20
5 LAPLACE TRANSFORMATION ................................................................................................. 21
LAPLACE TRANSFORMATION ......................................................................................................... 21
INVERSE LAPLACE TRANSFORMATION........................................................................................... 21
IMPORTANT LAPLACE TRANSFORMATIONS ................................................................................... 22
PROPERTIES OF LAPLACE TRANSFORMATIONS .............................................................................. 23
INITIAL CONDITIONS ...................................................................................................................... 25
6 BLOCK DIAGRAM ALGEBRA .................................................................................................... 26
SERIES OF BLOCKS ......................................................................................................................... 26
PARALLEL BLOCKS......................................................................................................................... 26
FEEDBACK CONTROL LOOP ............................................................................................................ 27
EQUIVALENT DIAGRAMS ................................................................................................................ 28
7 SYSTEM RESPONSE...................................................................................................................... 29
1ST ORDER SYSTEMS ....................................................................................................................... 29
2ND ORDER SYSTEMS....................................................................................................................... 32
SPECIFICATIONS WITHIN THE TIME DOMAIN.................................................................................. 35
8 SYSTEM STABILITY ..................................................................................................................... 36
9 SENSITIVITY .................................................................................................................................. 38
10 DYNAMIC BEHAVIOR .................................................................................................................. 40
2| Chemical Process Control, Dr. Robert N. Grass
P-CONTROLLER .......................................................................................................................... 40
STEADY STATE ERROR OF SYSTEMS WITH P-CONTROLLER ...................................................... 43
11 IMPROVED CONTROLLERS ...................................................................................................... 44
INTEGRAL-CONTROLLER............................................................................................................ 44
DIFFERENTIAL CONTROLLER ..................................................................................................... 46
COMPARISON OF CONTROLLER RESPONSES .............................................................................. 46
PID-CONTROLLER ...................................................................................................................... 47
DESIGN OF PID CONTROLLERS .................................................................................................. 48
12 FREQUENCY RESPONSE ............................................................................................................. 52
BODE DIAGRAM ......................................................................................................................... 54
NYQUIST DIAGRAM .................................................................................................................... 62
TIME DELAY ............................................................................................................................... 65
13 PROBLEMS WITH CURRENT CONTROL LOOPS ................................................................. 68
FEED FORWARD CONTROL ......................................................................................................... 68
CASCADE CONTROL ................................................................................................................... 69
MULTIVARIABLE CONTROL ....................................................................................................... 69
MODEL PREDICTIVE CONTROL .................................................................................................. 71
Chemical Process Control, Prof. Robert N. Grass |3
1 Introduction
Changes of state can be described by differential equations that transform the current steady state, that
depends on certain input variables and some additional external variables into another steady state.
What is Control?
Do T=170°C!
Output
Process (in general) = machine/system equipment + actuators (servomotors) + measuring device (sensors)
Chemical Process Control, Prof. Robert N. Grass |5
Machine Nature
Process Control
Design Dynamic
2 Representation of Systems
Systems in process control are represented by block representation:
System
𝑦(𝑡) = 𝑔(𝑢(𝑡))
Feedforward Control
Feedforward control is also called open loop control (deutsch: Steuerung). The controller produces a
signal u(t), which is independent of the current value of y(t).
Feedback Control
The controller produces u(t) based on feedback of the real value of the controlled variable y(t) and
comparison with the desired value r(t).
ym(t)
Sensor
It is given that:
10 𝑚𝑝ℎ 𝑐ℎ𝑎𝑛𝑔𝑒 𝑜𝑓 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦
1° 𝑡ℎ𝑟𝑜𝑡𝑡𝑙𝑒 𝑎𝑛𝑔𝑙𝑒 𝑐ℎ𝑎𝑛𝑔𝑒
And:
0.5 𝑚𝑝ℎ 𝑐ℎ𝑎𝑛𝑔𝑒 𝑜𝑓 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦
1 % 𝑟𝑜𝑎𝑑 𝑔𝑟𝑎𝑑𝑒 𝑐ℎ𝑎𝑛𝑔𝑒
0.5
-
r(t) u(t) y(t)
∑ Controller ∑ 10
+ +
In the case of open loop control only the black part is relevant (Controller = 1/10). For the velocity
you get:
This means that on a road with no grade (w = 0): 𝑦𝑜𝑙 = 55 𝑚𝑝ℎ = 𝑟. But on a road where w = 1:
𝑦𝑜𝑙 = 50 𝑚𝑝ℎ ≠ 𝑟 this are already 10 % error.
In the case of closed loop control also the green arrows have to be considered (assume controller
gain= 100). For the velocity you get:
𝑦𝑐𝑙 = 10𝑢 − 5𝑤
𝑢 = 100(𝑟 − 𝑦𝑐𝑙 )
And combined:
𝑦𝑐𝑙 = 1000𝑟 − 1000𝑦𝑐𝑙 − 5𝑤
1001 𝑦𝑐𝑙 = 1000𝑟 − 5𝑤
𝑦𝑐𝑙 = 0.999𝑟 − 0.005𝑤
For a grade where w = 1 and r = 55 mph 𝑦𝑜𝑙 = 54.94 𝑚𝑝ℎ (0.1% error). For w = 0,
𝑦𝑜𝑙 = 54.945 𝑚𝑝ℎ → there will be also an error for flat roads = remaining steady state error.
Problems
• Feedback gain cannot be randomly chosen (stability problems)
• Steady state error remains
10 | Chemical Process Control, Dr. Robert N. Grass
3 System Modelling
Why should the systems be modelled? → understanding of the problem/system
→ enable manipulation and control of the system
Mathematical description:
𝑚𝑥ሷ = 𝐹𝑚𝑜𝑡𝑜𝑟 − 𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛
For air resistance it holds that the friction force is proportional to the velocities and you have two
different regimes:
If v small 𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛 = 𝑏1 𝑥ሶ
If v high: 𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛 = 𝑏2 𝑥 2ሶ
Therefore, we can write for small v:
𝑏1 𝐹𝑚𝑜𝑡𝑜𝑟
𝑥ሷ + 𝑥ሶ =
𝑚 𝑚
Chemical Process Control, Prof. Robert N. Grass | 11
The throttle valve is what should be controlled with the controlling system.
Throttle valve
Air
Cylinder
Fuel
Road grade
Manipulated Actuator Process
variable
Controller Engine Auto body
Desired Throttle Actual
speed speed
Sensor
Speedometer
Measured
speed
Figure 3-3. Control cycle of the acceleration system in a car with cruise control.
r(t) G y(t)
(transfer function)
𝑇𝑐 G ϴ
(transfer function)
(t)
Figure 3-7. Block description of a pendulum with external
torque.
Chemical Process Control, Prof. Robert N. Grass | 13
Problem parameters:
Thermocouple
Energy balance:
𝑑𝐸
= 𝐸𝑖𝑛 − 𝐸𝑜𝑢𝑡
𝑑𝑡
𝑑(𝑀𝐶𝑝 𝑇 ′ )
= ℎ𝐴(𝑇 − 𝑇 ′ )
𝑑𝑡
𝑦 𝑦 = 𝛾𝑇 ′
𝑑 (𝑀𝐶𝑝 𝛾 ) 𝑦
= ℎ𝐴 ൬𝑇 − ൰
𝑑𝑡 𝛾
𝐶𝑝 𝑀 𝑑𝑦
+ 𝑦 = 𝛾𝑇
ℎ𝐴 𝑑𝑡
𝐶𝑝 𝑀
Where is the time constant 𝜏 of the Thermocouple, i.e. high A and low M desired.
ℎ𝐴
The measured temperature is time dependent no matter how good the sensor. It will approach
the true temperature only asymptotically but with a speed proportional to 1/τ.
𝑑𝐸 𝑑𝑇𝐿 𝑇𝐿 − 𝑇𝑊
= 𝑚𝐿 𝑐𝐿 = 𝑤𝐿 𝑐𝐿 𝑇𝐿′ − 𝑤𝐿 𝑐𝐿 𝑇𝐿 −
𝑑𝑡 𝑑𝑡 𝑅
𝑑𝐸 𝑑𝑇𝑊 ′
𝑇𝐿 − 𝑇𝑊
= 𝑚𝑊 𝑐𝑊 = 𝑤𝑊 𝑐𝑊 𝑇𝑊 − 𝑤𝑊 𝑐𝑊 𝑇𝑊 +
𝑑𝑡 𝑑𝑡 𝑅
Where 𝑐 is the heat capacity and 𝑇 the temperature of the liquid and water, 𝑤 is the mass flux
and 𝑅 the resistance to heat transfer. This is a MIMO system and already quite complicated. It
can be simplified when we look only at one in- and outlet and keep the other two constant so
we can treat it like a SISO.
4 Differential Equations
General scheme of how you can deal with differential equations:
Nonlinear differential
equations
Linear differential
Solve numerically
equations
Nomenclature
Example: 𝑑2 𝑢
𝑑𝑡
+ 𝜔0 𝑢 =0 linear second order
𝑑𝑢
𝑑𝑡
= 𝑢2 non-linear system
16 | Chemical Process Control, Dr. Robert N. Grass
Numerical Solution
𝑑𝑥 Δ𝑥
𝑥ሶ = 𝑓(𝑥) = ≈ ≈ 𝑓(𝑥)
𝑑𝑡 Δ𝑡
𝑥𝑖+1 − 𝑥𝑖
𝑥𝑖+1 ≈ 𝑓(𝑥)
Δ𝑡
𝑥𝑖
tangent in Forward Euler Equation:
ti 𝑥𝑖+1 = 𝑥𝑖 + Δ𝑡 𝑓(𝑥𝑖 )
slope = f(xi)
∆t
If Δ𝑡 → 𝑑𝑡 → No error
ti ti+1 t
Analytical Solution
Homogeneous 𝑥ሶ = 𝐴𝑥
𝑥(𝑡) = 𝐶𝑒 𝐴𝑡 𝐶 = 𝑐𝑜𝑛𝑠𝑡.
Inhomogeneous 𝑥ሶ = 𝐴𝑥 + 𝐵𝑢
Linearization
Assume for small Δx: f(x) is linear, this is only valid in the near neighborhood of x.
d𝑓
𝑓(𝑥) ≈ 𝑓(𝑥̅ ) + | (𝑥 − 𝑥̅ )
d𝑥 𝑥̅
In vector format:
𝑓1 𝑥1
𝑓 𝑥2
𝑓 = ( 2) 𝑥 = (…)
…
𝑓𝑛 𝑥𝑛
d𝑓1 d𝑓1
…
d𝑓 d𝑥1 d𝑥2
J= =
d𝑥 𝑇 d𝑓2
…
(d𝑥1 )
For DGL-Systems:
𝑢 input 𝑢 𝑥ሶ = 𝑓(𝑥, 𝑢) 𝑦
𝑦 output 𝑦 = 𝑔(𝑥, 𝑢)
𝑥 state
𝑥ሶ , 𝑦 transfer Linearization
functions
∆𝑢 ∆𝑥ሶ = 𝐴 Δ𝑥 + 𝐵 Δ𝑢 ∆𝑦
Δ𝑦 = 𝐶 Δ𝑥 + 𝐷 Δ𝑢
Linearization of 𝑥ሶ gives:
𝑥ሶ = 𝑓(𝑥, 𝑢)
d𝑓 d𝑓
𝑥ሶ ≈ 𝑓(𝑥̅ , 𝑢̅) + | (𝑥 − 𝑥̅ ) + | (𝑢 − 𝑢̅)
d𝑥 𝑥̅ d𝑢 𝑢̅
≈ 0 + 𝐴(𝑥 − 𝑥̅ ) + 𝐵(𝑢 − 𝑢̅)
→ 𝑥ሶ = 𝐴 Δ𝑥 + 𝐵 Δ𝑢 = Δ𝑥ሶ
Same with y gives:
𝑦 = 𝑔(𝑥, 𝑢)
d𝑔 d𝑔
𝑦 ≈ 𝑔(𝑥̅ , 𝑢̅) + | (𝑥 − 𝑥̅ ) + | (𝑢 − 𝑢̅)
d𝑥 𝑥̅ d𝑢 𝑢̅
≈ 𝑦̅ + 𝐶(𝑥 − 𝑥̅ ) + 𝐷(𝑢 − 𝑢̅)
→ Δy = 𝐶 Δ𝑥 + 𝐷 Δ𝑢
18 | Chemical Process Control, Dr. Robert N. Grass
Nonlinear in h h
𝑑ℎ A0
=𝑓
𝑑𝑡
𝜕𝑓 𝜕𝑓 Ag
𝑓 ≈ 𝑓𝑠𝑠 + | Δℎ + | Δ𝑤𝑖𝑛 Figure 4-3. Problem description.
𝜕ℎ 𝑠𝑠 𝜕𝑤𝑖𝑛 𝑠𝑠
Steady state:
𝑑ℎ 1
0= = (𝑤 𝑠𝑠 − 𝐴0 𝜌ඥ2𝑔ℎ 𝑠𝑠 )
𝑑𝑡 𝐴𝜌 𝑖𝑛
𝑠𝑠 2
1 𝑤𝑖𝑛
ℎ 𝑠𝑠 = ቆ ቇ
2𝑔 𝜌𝐴0
Linearization:
𝐴0 ඥ2𝑔ℎ 𝑠𝑠 1
𝑓 ≈0− Δℎ + Δ𝑤
𝐴 2ℎ 𝑠𝑠 𝐴𝜌 𝑖𝑛
𝑑Δℎ 𝑑(ℎ − ℎ 𝑠𝑠 ) 𝑑ℎ 𝑑ℎ 𝑠𝑠 𝑑ℎ
= = − =
𝑑𝑡 𝑑𝑡 𝑑𝑡 𝑑𝑡 𝑑𝑡
𝑑ℎ 𝑑Δℎ
𝑓= = 𝐴′Δℎ + 𝐵′Δ𝑤𝑖𝑛 =
𝑑𝑡 𝑑𝑡
Superposition
If an input signal is complex, you could split the complex input into multiple additive simpler inputs. If
the system is linear, the output of the complex input can be calculated by summing up the outputs of the
simpler inputs.
u1 y1
Linear Transfer
u2 Function y2
𝑦ሶ + 𝑘𝑦 = 𝑢
1) 𝑦1ሶ + 𝑘𝑦1 = 𝑢1
2) 𝑦2ሶ + 𝑘𝑦2 = 𝑢2
3) 𝑢3 = 𝑎𝑢1 + 𝑏𝑢2
𝑦3ሶ + 𝑘𝑦3 = 𝑢3
Demonstrate that 𝑦 = 𝑦1 + 𝑦2
and 𝑢 = 𝑢1 + 𝑢2
Because 𝑦ሶ + 𝑘𝑦 − 𝑢 = 0 ▪
20 | Chemical Process Control, Dr. Robert N. Grass
Convolution
Input Output
𝑢(𝑡) 𝑦(𝑡)
+∞
𝑦(𝑡) = ∫ 𝑢(𝜏)𝑔(𝑡 − 𝜏)𝑑𝜏
−∞
𝑦=𝑢 ∗𝑔
then +∞
𝑦(𝑡) = ∫ 𝑢(𝜏)𝑔(𝑡 − 𝜏)𝑑𝜏
0
then 𝑡
𝑦(𝑡) = ∫ 𝑢(𝜏)𝑔(𝑡 − 𝜏)𝑑𝜏
0
Chemical Process Control, Prof. Robert N. Grass | 21
5 Laplace Transformation
Laplace Transformation
∞
∫ 𝑓(𝑡)𝑒 −𝑠𝑡 𝑑𝑡 = 𝐹(𝑠) = ℒ{𝑓(𝑡)}
0
∞
(Which is equivalent to the “continuous power series” ∫0 𝑓(𝑡)𝑥 𝑡 𝑑𝑡 with 𝑠 = −ln(𝑥).
It exists for all functions, which fulfill the condition of Dirichlet:
∞
∫ |𝑓(𝑡)|𝑒 −𝜎𝑡 𝑑𝑡 < ∞
0
For a large enough 𝜎
𝑡=𝐴
∞
𝑒 −𝑠𝑡 𝑒 −𝑠𝐴 1 1
𝐹(𝑠) = ∫ 1 𝑒 −𝑠𝑡 𝑑𝑡 = lim − | = lim ቆ + ቇ=
0 𝐴→∞ 𝑠 𝑡=0 𝐴→∞ 𝑠 𝑠 𝑠
If 𝐹(𝑠) is a fraction, the easiest way to find 𝑓(𝑡) is the partial fraction expansion of 𝐹(𝑠) and the
use of table (5.3) of simple functions.
𝑝(𝑠) p(s), q(s) are polynomials; order of p(s) ≤ order of q(s) (true for all
ℒ −1 {𝑞(𝑠)};
physical systems).
𝑛
𝑝(𝑠) 𝐴𝑖 𝐴1 𝐴2 𝐴𝑛
= ∑ = + + ⋯+
𝑞(𝑠) 𝑠 − 𝑠𝑖 𝑠 − 𝑠1 𝑠 − 𝑠2 𝑠 − 𝑠𝑛
𝑖=1
𝒇(𝒕) 𝑭(𝒔)
𝛿(𝑡) 1
𝛿(𝑡 − 𝑎) 𝑒 −𝑎𝑠
1
1 𝑠
1
𝑡
𝑠2
1
𝑒 −𝑎𝑡
𝑠+𝑎
1
𝑡𝑒 −𝑎𝑡 (𝑠 + 𝑎)2
1 −𝑎𝑡 1
𝑒 sin 𝑏𝑡
𝑏 (𝑠 + 𝑎)2 + 𝑏 2
𝑎
1 − 𝑒 𝑎𝑡
𝑠(𝑎 − 𝑠)
𝑛!
𝑡𝑛
𝑠 𝑛+1
𝑎
sin(𝑎𝑡)
𝑠2 + 𝑎2
𝑠
cos(𝑎𝑡)
𝑠2 + 𝑎2
Chemical Process Control, Prof. Robert N. Grass | 23
1) Time shift
𝑓(𝑡 − 𝜏) ↔ 𝐹(𝑠) 𝑒 −𝜏𝑠
2) Superposition
𝑎𝑓1 (𝑡) + 𝑏𝑓2 (𝑡) ↔ 𝑎𝐹1 (𝑠) + 𝑏𝐹2 (𝑠)
3) Convolution
𝑓1 (𝑡) ∗ 𝑓2 (𝑡) ↔ 𝐹1 (𝑠) ⋅ 𝐹2 (𝑠)
𝑡
∫ 𝑓1 (𝑡) 𝑓2 (𝑡 − 𝜏)𝑑𝜏
0
6) Differentiation
7) Integral:
𝑡 𝐹(𝑠)
∫ 𝑓(𝜏)𝑑𝜏 ↔ 𝑠
0
d𝑦
+ 𝑎𝑦 = 0
d𝑡
𝑠⏟𝑌(𝑠) − 1 + 𝑎𝑌(𝑠) = 0
𝑠(𝑌(0)−𝑓(0))
1
𝑌(𝑠) = → 𝑦(𝑡) = 𝑒 −𝑎𝑡
𝑠+𝑎
24 | Chemical Process Control, Dr. Robert N. Grass
d 𝑦(𝑡)
𝜏 + 𝑦(𝑡) = 𝛾 𝑇(𝑡)
d𝑡
𝜏(𝑠 𝑌(𝑠) − 𝑦(0)) + 𝑌(𝑠) = 𝛾𝑡(𝑠)
𝛾 𝜏(𝑦(0))
𝑌(𝑠) = 𝑇(𝑠) +
𝜏𝑠+1 𝜏𝑠 + 1
→ REMEMBER: the final value theorem can only be used if the finite final value exists.
Easy example:
3(𝑠 + 2)
𝑌(𝑠) =
𝑠(𝑠 2
+ 2𝑠 + 10)
3(𝑠 + 2) 3∙2
𝑦(𝑡 → ∞) = lim 𝑠 2
= = 0.6
𝑠→0 𝑠(𝑠 + 2𝑠 + 10) 10
But if there is no finite final value, the final value theorem does not work, even though you might get a
solution:
3
𝑌(𝑠) =
𝑠(𝑠 − 2)
→ with the final value theorem you would get:
3
𝑦(𝑡 → ∞) = −
2
But actually:
3
𝑦(𝑡) = (−1 + 𝑒 2𝑡 ) → lim 𝑦(𝑡) = ∞
2 𝑡→∞
In this case you cannot use the final value theorem because the function diverges.
Initial Conditions
In process control we are often looking at the system behavior relative to a reference state. We start in the
steady state (𝑥𝑠𝑠 . 𝑦𝑠𝑠 , 𝑢𝑠𝑠 ) and look at the deviation variables (𝛥𝑥, 𝛥𝑦, 𝛥𝑢), which represent the deviation
from it. This is useful as we obtain a simple transfer function that expresses changes from the steady state.
dΔy Δ𝑦(0) = 0
𝜏 + Δ𝑦 = 𝛾Δ𝑇
dt Δ 𝑇(0) = 0
𝛾
̅̅̅̅̅̅
𝑌(𝑠) = ̅̅̅̅̅̅
𝑇(𝑠)
𝜏𝑠 + 1
Series of Blocks
𝑌1 = 𝐺1 ∙ 𝑈1
𝑌2 = 𝐺1 ⋅ 𝐺2 ⋅ 𝑈1
𝑌2 (𝑠)
= 𝐺1 ⋅ 𝐺2
𝑈1 (𝑠)
Parallel Blocks
𝑌 = 𝑌1 + 𝑌2
𝑌 = (𝐺1 + 𝐺2 ) ⋅ 𝑈
𝑌(𝑠)
= 𝐺1 + 𝐺2
𝑈(𝑠)
Chemical Process Control, Prof. Robert N. Grass | 27
Y1(s)
Figure 6-3. Control cycle of Feedback control.
Equivalent Diagrams
For the representation of more complex systems, rearranging and the use of the formulas above can be used
to simplify and obtain the transfer function. Additional rules are listed below.
• Nodes can be moved by introducing blocks with the inverse of the block:
• Blocks can be moved in front of a sum by introducing this block to all contributing inputs:
• The feedback loop block diagram can be rearranged in the following way (more suitable for certain
applications):
7 System Response
U(s) Y(s)
G(s)
Systems described by a first order ODE have a first order response, e.g. a CSTR without reaction.
The transfer function 𝐺(𝑠) reads:
𝑘
𝐺(𝑠) =
𝜏𝑠 + 1
As was introduced in the previous chapter, the transfer function can be used to express the dependence of
the output signal 𝑌(𝑠) on the input signal U(s):
𝑘
𝑌(𝑠) = ∙ 𝑈(𝑠)
𝜏𝑠 + 1
Pulse Input
The back transformation (using the table on p.20) of Y(s) gives the output signal as a function of time y(t):
𝑘 𝑡
𝑦(𝑡) = ∙ 𝑒 −𝜏
𝜏
And the slope at t = 0:
𝑑𝑦 𝑘
| = − 2
𝑑𝑡 𝑡=0 𝜏
𝑘 𝑘
Initial value theorem 𝑦(𝑡 = 0) = lim 𝑠 ⋅ 𝑌(𝑠) = lim 𝑠 ⋅ =
𝑠→∞ 𝑠→∞ 𝜏𝑠 + 1 𝜏
𝑘
Final value theorem 𝑦(𝑡 → ∞) = lim 𝑠 ⋅ 𝑌(𝑠) = lim 𝑠 ⋅ =0
𝑠→0 𝑠→0 𝜏𝑠 + 1
30 | Chemical Process Control, Dr. Robert N. Grass
u(t) y(t)
k/τ
t/τ t/τ
Figure 7-2. Input (left) and output (right) signal of a pulse input.
Step Input
𝑘 1
Initial value theorem 𝑦(𝑡 = 0) = lim 𝑠 ⋅ ⋅ =0
𝑠→∞ 𝜏𝑠 + 1 𝑠
𝑘 1
Final Value Theorem 𝑦(𝑡 → ∞) = lim 𝑠 ⋅ ⋅ =𝑘
𝑠→0 𝜏𝑠 + 1 𝑠
𝑘 1 𝑘
Initial slope 𝑦ሶ (𝑡 = 0) = lim 𝑠 ⋅ 𝑠 ⋅ 𝑌(𝑠) = lim 𝑠 ⋅ 𝑠 ⋅ =
𝑠→∞ 𝑠→∞ 𝜏𝑠 + 1 𝑠 𝜏
u(t) y(t)
k
t/τ t/τ
Figure 7-3. Input and output signal of a step input.
Chemical Process Control, Prof. Robert N. Grass | 31
The process signal does not respond immediately to the change in input. The response is delayed and
approaches the new steady state value only asymptotically. After a time equal to the time constant 𝜏 it has
reached 63.2% of the input value.
How does the signal change by varying the parameters k and τ? Note that the axes are no more normalized.
y(t) y(t)
t t
Figure 7-4. Left: Change of output signals with varying parameter k (gain).
Right: Change of output signals with varying parameter τ (time constant).
If k increases: If τ increases:
𝑦(𝑡 ∞) multiplied y(t) increases slower to asymptote
By changing the gain, the new steady state which the system approaches can be altered. It increases with
increasing gain. When we vary the time constant, the speed with which the system approaches the new
steady state changes. The higher the time constant, the slower the system evolves.
Ramp Input
y(t)
kτ
t/τ
Figure 7-5. Input and output signal in case of a ramp input.
Note: If you plot the input and output signal in non-normalized axes, then the difference between the two
signals would be the time constant τ.
Most mechanical systems or two coupled systems of 1st order are 2nd order systems. All systems with 2nd
order derivatives have a second order response, e.g. pendulum and many other mechanical systems (𝐹 =
𝑚𝑥ሷ ).
where 𝑘 is the gain, 𝜏 the time constant, 𝜔𝑛 the natural frequency and 𝜉 the damping factor.
𝜏 2 𝑠 2 + 2𝜏𝜉𝑠 + 1
𝜏 2 𝑠 2 + 2𝜏𝜉𝑠 + 1 = 0
Chemical Process Control, Prof. Robert N. Grass | 33
1
𝑠1,2 = − (𝜉 ± ඥ𝜉 2 − 1)
𝜏
We can describe the shape of the solution of these systems by looking at the damping factor 𝜉:
Step input
The output signal Y(s) of a step function of a second order system looks as follows:
𝑘 1
𝑌(𝑠) = ⋅
𝜏 2 𝑠 2 + 2𝜏𝜉𝑠 + 1 𝑠
For a graphical representation of the different cases of damping for a second order system see Figure 7-6.
y(t)
t/τ
Figure 7-6. Step response of a second order system with different damping values and 𝒌 = 𝟏.
Step inputs for higher order systems can be formulated analogously (see Figure 7-7). This also models the
transition of a CSTR to a PFR as a cascade of infinite CSTRs.
𝑛
𝑘 1
𝑌(𝑠) = ൬ ൰ ⋅
𝜏𝑠 + 1 𝑠
34 | Chemical Process Control, Dr. Robert N. Grass
𝑛
1 ℒ −1
lim ( ) = 𝑒 −𝜏𝑠 → time shift 𝑓(𝑡 − 𝜏)
𝑛→∞ 𝜏 𝑠 + 1
𝑛
Remember that exponential functions in the Laplace space are just time shifts in the time space.
In this case the time constant of the total system would be equal to the sum of the time constants of the
individual systems. For 𝑛 = ∞ we would again have a plot in the form of the initial pulse but with a delay,
like for a PFR.
y(t)
t/ n τ
Figure 7-7. Step response of nth order systems.
Chemical Process Control, Prof. Robert N. Grass | 35
For a damped second order system without roots the following holds:
1.8
Rise time: 𝑡𝑟 ≅
𝜔𝑛
5% 𝜉 = 0.7
𝜋𝜉
Overshoot: 𝑀𝑝 = exp( ) ≅ { 16 % 𝜉 = 0.5
ඥ1−𝜉 2
35 % 𝜉 = 0.3
4.6
Settling time: 𝑡𝑠 ≅ 𝜔
𝑛𝜉
𝜋
Peak time: 𝑡𝑝 =
𝜔𝑛 ඥ1−𝜉 2
• We can find the peak time and the overshoot if we set the derivative of the function zero and look
for the maximum
• An additional root in the left half plane (LHP) enforces the overshoot if the root is less then factor
4 distant from the real part of the poles.
• An additional root in the right half plane (RHP) inhibits overshooting and can even lead to
undershooting.
• An additional pole extends the rise time, if the additional pole is less then factor 4 distant from the
complex part of the complex poles.
Figure 7-8. Specifications within the time domain. Figure from [FrPE06]
36 | Chemical Process Control, Dr. Robert N. Grass
8 System Stability
A system is asymptotically stable, if there are no ‘internal’ state variables that go towards infinity but all
go to zero when t → ∞. When perturbed slightly the system will go back into the steady state.
𝑝(𝑠) 𝑝(𝑠)
𝐺(𝑠) = = 𝑛
𝑎𝑛 𝑠𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑎0 ∏𝑖=1(𝑠 − 𝑝𝑖 )
𝑎𝑛 𝑠 𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑎0 = 0
are distinct (einfach). A differential equation with this characteristic equation has a solution of the form:
𝑦(𝑡) = ∑ 𝐾𝑖 𝑒 𝑝𝑖 𝑡
𝑖=1
In other words:
If all poles are zero, these simple rules can’t be applied to predict system behavior. This is due to the fact
that the linearization introduces an error into the calculation. It is therefore highly unlikely that all roots
are truly zero and a different approach would be needed or more terms included into the linearization.
If there are complex conjugate poles 𝑝𝑖 , the solution would be given by an oscillatory response:
.
Chemical Process Control, Prof. Robert N. Grass | 37
By looking at the location of the poles one can get a feeling of the system behavior and analyze the stability.
A pole to the right of the imaginary axis, with positive real part is called RHP (right-half plane pole). Such
a pole will lead to an unstable system as it results in a system response which grows without bound. The
term of a LHP (left-half plane pole) in contrast will go to zero and the system will approach the stable steady
state.
Roots on the right hand side of the figure lead to unstable systems which are not desirable for process control
applications. The more on the left, the faster the system evolves towards its steady state. When we compare
the evolution speed of two roots (with roots with purely negative real parts), we must look at the rightmost
root (the one closest to zero) as this one governs the speed. The system with the more negative right root
will approach its steady state faster.
Figure 8-1. Root Locus Impulse responses as a function of the position of the roots.
38 | Chemical Process Control, Dr. Robert N. Grass
9 Sensitivity
With a sensitivity analysis we can determine the effect of changes in 𝐴 or due to uncertainties (if 𝐴 is not
known precisely).
𝐾𝐴 = 𝑇𝑜𝑙
𝐾(𝐴 + 𝛿𝐴) = 𝑇𝑜𝑙 + 𝛿𝑇𝑜𝑙
Hendrik W. Bode named this ratio the Sensitivity of the transfer behavior on changes of A.
𝛿𝑇/𝑇 𝐴 𝑑𝑇
𝑆𝐴𝑇 = ≈
𝛿𝐴/𝐴 𝑇 𝑑𝐴
When a relative change in 𝐴 occurs, for an open loop, it will translate into a change in 𝑇 of equal size. Thus,
if the engine gains 5%, the velocity will also rise by 5%.
U(s) Y(s)
K A
(𝐴 + 𝛿𝐴)𝐾
= 𝑇𝑐𝑙 + 𝛿𝑇𝑐𝑙
1 + (𝐴 + 𝛿𝐴)𝐾
𝑇 𝐴 (1 + 𝐴𝑘)𝑘 − 𝑘(𝐴𝑘) 1
𝑆𝐴 𝑐𝑙 = =
𝐴𝑘 (1 + 𝐴𝑘)2 1 + 𝐴𝑘
1 + 𝐴𝑘
Therefore, for closed loops:
𝑇 1
𝑆𝐴 𝑐𝑙 =
1 + 𝐴𝑘
This illustrates the advantage of feedback control. Sensitivity to changes is usually smaller than 1 and closed
loop control reduces the effect of changes in the gain factor 𝐴 by a factor of 1 + 𝐴𝑘 when compared with
open loop control. By choosing 𝑘 large, sensitivity and the effect of disturbances on the system can be
reduced.
1 + 𝐴𝑘 = 100
we can calculate the sensitivity
𝑇 1
𝑆𝐴 𝑐𝑙 = = 0.01
1 + 𝐴𝑘
a 10% change in A
𝛿𝐴
= 0.1
𝐴
The change in steady state gain in a closed loop would thus be 0.1%. When compared with the change
for an open loop under the same conditions, which would be 10% as the sensitivity is one, the closed
loop is much less sensitive.
One of the main reasons for the use of feedback control is not that it can respond easier to changes but the
fact that the system is not precisely known. In order to compensate for such uncertainties a low sensitivity
is desirable as it will reduce the effects of changes in the transfer function.
40 | Chemical Process Control, Dr. Robert N. Grass
10 Dynamic Behavior
P-Controller
• A static k does not change the dynamics of an open loop control system
• A static k changes the dynamics of closed loop control systems
This system for example could represent two stirred tanks in series with residence times 𝜏1 and 𝜏2 .
𝑌(𝑠) 𝑘𝐴
= with 𝐴>0
𝑅(𝑠) (𝜏1 𝑠 + 1)(𝜏2 𝑠 + 1) + 𝑘𝐴
The dynamics of the system can be understood by looking at the roots of the transfer function.
(𝜏1 𝑠 + 1)(𝜏2 𝑠 + 1) + 𝐴𝑘 = 0
𝜏1 𝜏2 𝑠 2 + (𝜏1 + 𝜏2 )𝑠 + 1 + 𝐴𝑘 = 0
• at some point the discriminant becomes zero and there will be a multiple root
• further increasing k results in a negative discriminant and complex conjugate poles and thus in an
oscillating response
• if 𝑘 is big there is a “trade-off” between low stationary error (low sensitivity, see previous
chapter) and bad dynamic behavior.
→ complex controllers with more degrees of freedom are required (see next chapter)
Plotting the behavior of the roots as a function of the parameter k gives the so called root locus:
(𝜏1 −𝜏2 )2
In the range of 0 < 𝑘 < the roots are both real and negative, the system is thus stable and non-
4𝐴𝜏1 𝜏2
oscillating.
(𝜏1 −𝜏2 )2
For 𝑘 > 4𝐴𝜏1 𝜏2
the roots are a complex conjugate pair and the system is oscillating.
From this analysis, k is chosen as large as possible without creating imaginary roots:
→ the more left the rightmost root, the faster the response (see Chapter 8)
42 | Chemical Process Control, Dr. Robert N. Grass
In steady state:
0 = 𝑇𝑐 − 𝑚𝑔𝑙 sin 𝜃
If there is no external force 𝑇𝑐 = 0
0 = −𝑚𝑔𝑙 sin 𝜃
𝑠𝑠
𝜃 = 0 and 𝜃 𝑠𝑠 = 𝜋
→ two steady states exist
Linearization
𝜕𝑓 𝜕𝑓
𝑓 ≈ 𝑓 𝑠𝑠 + | Δ𝑇𝑐 + | Δ𝜃
𝜕𝑇𝑐 𝑠𝑠 𝜕𝜃 𝑠𝑠
𝐼Δ𝜃ሷ = Δ𝑇𝑐 − 𝑚𝑔𝑙 cos 𝜃 𝑠𝑠 Δ𝜃
Laplace Transformation
̅ = 𝑇̅𝑐 − 𝑚𝑔𝑙 cos 𝜃 𝑠𝑠 Θ
𝐼𝑠 2 Θ ̅
̅
Θ 1
= 2
𝑇̅𝑐 𝐼𝑠 + 𝑚𝑔𝑙 ⋅ cos 𝜃 𝑠𝑠
For 𝜃 𝑠𝑠 = 0 (pendulum)
𝑚𝑔𝑙 𝑚𝑔𝑙
𝑠2 = − cos 0 = −
𝐼 𝐼
𝑚𝑔𝑙
𝑠1/2 = ±𝑖√
𝐼
Imaginary roots, oscillating response (constant, stable), 𝑅𝑒(𝑠) = 0.
𝑚𝑔𝑙
𝑠1/2 = ±√
𝐼
One positive real part, unstable
New roots
20𝑠 2 − 10 + 𝑘 = 0
ξ50 − 5𝑘
𝑠1/2 = ±
10
for 𝑘 > 10 purely imaginary roots, oscillating
for 𝑘 < 10 1 positive, 1 negative root, unstable
The controller can change the dynamics of the inverse pendulum (originally unstable) to a stable (but
oscillating) response.
44 | Chemical Process Control, Dr. Robert N. Grass
11 Improved Controllers
Good final value, i.e. small For large k no steady state error fast (reacts on slope
steady state error (response increases with of error, i.e. before
time when error error occurred)
persistent)
Influence dynamics slow (least negative root sensitive to sensor
a) Faster a) For large k larger than for P- noise
b) Less oscillating b) for small k control)
influence stability for large k to for large 𝑇𝐼 unstable poor influence on
some extent stability
Integral-Controller
Figure 11-2. Control cycle of a second order system with integral control.
𝑘
𝑌 𝑇𝐼 𝐴
=
𝑅 𝜏 𝜏 𝑠 3 + (𝜏 + 𝜏 )𝑠 2 + 𝑠 + 𝐴 𝑘
1 2 1 2 𝑇 𝐼
In comparison to the transfer function with the P-controller the characteristic equation has changed. The
order has increased by 1 and also the roots and the root locus have changed.
Figure 11-3. Root locus of a second order system with integral control.
There is an additional root for the controller at zero for k= 0. As 𝑘 increases the roots move left in the plane
(except for the middle one which will move right) and eventually a complex conjugate pair forms (at some
point even with positive real parts). Thus, for increasing 𝑘 the damping will be noticeably weaker until the
system will eventually become unstable.
The advantage of the I-controller is that it has no steady state error but its response is slow. As we have seen
it also tends to oscillate and get unstable with increasing 𝑘.
As the error for this kind of controller will always go to zero, we only have to look at the dynamics. The I-
controller is not usually used on its own but coupled with a P-controller.
46 | Chemical Process Control, Dr. Robert N. Grass
Differential Controller
Differential controllers respond to the difference in slope. For steep slopes the response will be much
stronger than for lower slopes, therefore they have a fast response.
As the response is very fast, the controller is sensitive to noise and is usually implemented in the feedback
loop.
Figure 11-5. Comparison of different controller responses with e(t) being the assumed error.
→ P-controllers multiply the error by a constant (gain k) and result in a steady state error.
→ I-controllers are slow but adjust the steady state error.
→ D-controllers are fast but sensitive to background noise and tend to oscillate.
As all the controllers have different advantages and disadvantages is common to combine them into a PID-
controller with three elements. The Proportional term closes the feedback look, the Integral term assures
that there is no error remaining and the Derivative term improves the dynamic response and stability.
Chemical Process Control, Prof. Robert N. Grass | 47
PID-Controller
1 𝑡
𝑢(𝑡) = 𝑘 (𝑒(𝑡) + ∫ 𝑒(𝜏)𝑑𝜏 + 𝑇𝐷 𝑒ሶ (𝑡))
𝑇𝐼 0
1
𝑈(𝑠) = 𝑘 ∙ 𝐸(𝑠) ൬1 + + 𝑇𝐷 𝑠൰
𝑇𝐼 𝑠
Figure 11-6. Transient behavior of different controllers after (a) a unit disturbance and (b) a reference step. Figure from [FrPE06]
In the left plot we can immediately recognize the controllers with an integral part as their steady state error
goes to zero. When only the P-controller is used, y does not go to zero.
Comparing the PID and PI-controller we can say that the better response (not oscillating) must belong to
the controller with more degrees of freedom when it is set efficiently.
On the right we can again spot the (small) steady state error of the P-controller and the smaller overshoot
for the PID-controller when comparing it to the PI version.
48 | Chemical Process Control, Dr. Robert N. Grass
+
- PID System
The main aim of control unit design is the stability. PID controllers are often used because their stability is
well understood.
Experimental Methods
The methods below are used when models for the system and more advanced mathematical tools are not
available. They were both developed by Ziegler and Nichols, two chemical engineers who were looking
primarily at chemical systems.
Ziegler and Nichols developed rules to tune P, PI and PID controllers in order to achieve the desired
response (see table below) and the parameters 𝑘, 𝑇𝑖 and 𝑇𝐷 can calculated from 𝑅 and 𝐿.
The method is fast and reliable but only applicable when measurements are possible and when the step
response has a shape as in Figure 11-8. It is suitable for slow processes when we aim mostly at correcting
disturbances.
𝑘 𝑇𝑖 𝑇𝐷
1
P / /
𝑅𝐿
0.9 𝐿
PI /
𝑅𝐿 0.3
1.2
PID 2𝐿 0.5 𝐿
𝑅𝐿
50 | Chemical Process Control, Dr. Robert N. Grass
𝑘 𝑇𝑖 𝑇𝐷
P 0.5 𝑘𝑢 / /
1
PI 0.45 𝑘𝑢 𝑃 /
1.2 𝑢
1 1
PID 0.6 𝑘𝑢 𝑃 𝑃
2 𝑢 8 𝑢
Chemical Process Control, Prof. Robert N. Grass | 51
Mathematical Method
Root-Locus
Disadvantage: necessary to compute roots of characteristic equation; has multiple solution and is difficult
to solve for higher order systems
Characteristic equation
𝑎𝑛 𝑠 𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + 𝑎𝑛−2 𝑠 𝑛−2 + ⋯ + 𝑎0 = 0
Necessary condition for stability: 𝑎𝑖 > 0
Routh table
52 | Chemical Process Control, Dr. Robert N. Grass
12 Frequency Response
This method is very useful to get a first impression of the system behavior and is often used in practice. The
frequency response will allow us not only to predict the response for any sinusoidal input but will give
qualitative information which is useful in determining the stability and robustness of a system.
Input = y(t) = ?
System
𝐴 sin(𝜔𝑡)
Input
𝑢(𝑡) = 𝐴 sin(𝜔𝑡)
Laplace transformation
𝐴𝜔
𝑈(𝑠) =
𝑠2 + 𝜔2
𝐴𝜔
𝑌(𝑠) = 𝑈(𝑠)𝐺(𝑠) = 𝐺(𝑠)
𝑠2
+ 𝜔2
1
𝐺(𝑠) =
(𝑠 − 𝑠1 )(𝑠 − 𝑠2 ) …
System oscillates with the same frequency, new amplitude 𝑀 = 2 |𝛽| and phase shift 𝜙.
To find the values of 𝑀 and 𝜙 we find 𝑦(𝑡) for 𝑢(𝑡) = 𝐴 sin 𝜔𝑡 by means of convolution
1
And we apply the relation for exponential and trigonometric functions sin 𝑥 = 2𝑖 (𝑒 𝑖𝑥 − 𝑒 −𝑖𝑥 )
Chemical Process Control, Prof. Robert N. Grass | 53
∞
𝐴
𝑦(𝑡) = ∫ 𝑔(𝜏) (𝑒 𝑖𝜔(𝑡−𝜏) − 𝑒 −𝑖𝜔(𝑡−𝜏) ) 𝑑𝜏
−∞ 2𝑖
This integral is not trivial to solve. We must find simplification for the convolution of 𝑣(𝑡) = 𝑒 𝑠𝑡
∞ ∞
𝑣(𝑡) ∗ 𝑔(𝑡) = ∫ 𝑔(𝜏) 𝑒 𝑠(𝑡−𝜏) 𝑑𝜏 = ∫ 𝑔(𝜏) 𝑒 −𝑠𝜏 𝑒 𝑠𝑡 𝑑𝜏
−∞ −∞
∞
= 𝑒 𝑠𝑡 ∫ 𝑔(𝜏) 𝑒 −𝑠𝜏 𝑑𝜏 = 𝐺(𝑠) 𝑒 𝑠𝑡
−∞
We could show that 𝑣(𝑡) = 𝑒 𝑠𝑡 is the response in the time domain for the Laplace transform of the function.
This can be applied to 𝑠 = 𝑖𝜔 which leads to
𝐴
𝑦(𝑡) = (𝐺(𝑖𝜔) 𝑒 𝑖𝜔𝑡 − 𝐺(−𝑖𝜔) 𝑒 −𝑖𝜔𝑡 )
2𝑖
𝐴
𝑦(𝑡) = 𝑀(𝑒 𝑖(𝜔𝑡+𝜑) − 𝑒 −𝑖(𝜔𝑡+𝜑) )
2𝑖
And apply again the definition of the sine and compare with the expression found for 𝑦(𝑡 = ∞)
𝑦(𝑡) = 𝐴𝑀 sin(𝜔𝑡 + 𝜑)
𝐴𝑀 = 2|𝛽| 𝜑=𝜙
Amplitude ratio 𝐴𝑅
𝐴𝑀
𝐴𝑅 = = 𝑀 = |𝐺(𝑖𝜔)| = |𝐺(𝑠)|𝑖𝜔 |
𝐴
Phase shift 𝜙
𝐼𝑚(𝐺(𝑖𝜔))
𝜙 = tan−1 ቆ ቇ
𝑅𝑒(𝐺(𝑖𝜔))
With the amplitude ratio and phase shift we can find the outlet for any sine or cosine by plugging in 𝑖𝜔
instead of 𝑠.
54 | Chemical Process Control, Dr. Robert N. Grass
Bode Diagram
The input of the system is again a wave function as in Fig 12-1. The oscillation of the output will have the
same frequency as we have seen, however amplitude and phase change. When the input frequency is low,
the corresponds to slow changes, and we are likely to still have the same amplitude at the outlet (only
amplified by 𝑘). As the frequency increases, the changes occur faster and we approach the time constant of
the system. The behavior changes to a lower response amplitude and phase shift (see figure 12-2).
Bode plots depict the amplitude ratio and phase shift as a function of the input frequency. Both 𝐴𝑅 and 𝜔
are on a log scale (𝐴𝑅 most often in dB), 𝜙 is drawn in degrees.
The plots can be determined experimentally or constructed by hand (see example 12.1-1) in a quick and yet
sufficiently accurate way. Bode plots of more complex transfer functions can be constructed in an additive
way, where the transfer function is split up into simpler components. The plots for these parts can be drawn
easily and are added up to give the Bode plot of the more complex system.
Chemical Process Control, Prof. Robert N. Grass | 55
Computing of |𝐺(𝑖𝜔)| is not necessary as certain classes of functions behave the same. Below the plotting
of these classes will be discussed.
a) K𝑠 𝑛 = K(iω)n
→ log(𝐾|𝑖𝜔|)𝑛 = log(𝐾) + 𝑛 log(|𝑖𝜔|)
→ 𝐴𝑅: line with slope 𝑛 through 𝐾 at 𝜔 = 1
→ 𝜙 = 𝑛 ⋅ 90°
0.1 1 10 0.1 1 10
Figure 12-3. Simple Bode diagram general cases of 𝐊𝒔𝒏 .
The plots above are only asymptotically correct and would have rounded edges and smooth transitions.
56 | Chemical Process Control, Dr. Robert N. Grass
2000 (𝑠 + 0.5)
𝑇𝐹 =
𝑠 (𝑠 + 10)(𝑠 + 50)
2(2 𝑠 + 1)
𝑇𝐹 =
1 1
𝑠 (10 𝑠 + 1) ( 𝑠 + 1)
50
We can identify four components, one of standard class a) (of form 𝐾𝑠 𝑛 ) and three of standard class b)
(of form (𝜏𝑠 + 1)𝑛 ) with time constants:
𝜏1 = 2
1
𝜏2 =
10
1
𝜏3 =
50
Let us first look at the magnitude plot. The term of class a) is first order and in the denominator will lead
to a slope of 𝑛𝑎 = −1 throughout the entire 𝜔 range. The terms of class b) will identify the behavior
only after their break point 𝜔𝑖 which we can find by the inverse of the time constant. The effect on the
slope will be positive or negative depending on whether the term is in the nominator or denominator.
𝜔1 = 0.5 𝑛1 = +1
𝜔2 = 10 𝑛2 = −1
𝜔3 = 50 𝑛3 = −1
As the slopes behave additive, we can construct the magnitude plot piecewise. Initially the slope will be
−1 until after 𝜔 = 0.5 it will be horizontal as the 𝑛1 = +1 effect of the 2𝑠 + 1 in the nominator cancels
1
the −1 slope. When 𝜔 reaches a value of 10 the effect of the 10 𝑠 + 1 term in the denominator will come
in and decrease the slope to −1 and the last b) type term further to −2 after 𝜔 = 50.
To draw the plot we should start with the first asymptote before the effect of the class b) terms. This
asymptote has a slope of -1 (or 20 dB per decade) and we can locate it as it would pass through the value
2 (the value of 𝑘 in this case) at 𝜔 = 1. The asymptotes can then be constructed by changing the slope
at the break points and the amplitude plot is then obtained by connection of the lines.
Chemical Process Control, Prof. Robert N. Grass | 57
For the phase plot the same break points play a role for type b) terms and a) terms will again have an
influence over the entire 𝜔 range. The effect can also be read from the value of 𝑛𝑖 and will be 𝑛𝑖 ∙ 90°.
Phase shifts also show additive behavior. We therefore start at -90°, go to 0°, to -90° and finally -180°.
The obtained staircase like function will be only approximate with the actual shape being much
smoother.
This procedure yields the final Bode diagram in figure 12-5 and 12-6.
Figure 12-5. Magnitude plot for example 12.1-1. Figure from [FrPE06].
Figure 12-6. Phase plot for example 12.1-1. Figure from [FrPE06].
58 | Chemical Process Control, Dr. Robert N. Grass
Figure 12-7. Bode diagrams for P, PD, PI and PID controllers with different C(s).
Chemical Process Control, Prof. Robert N. Grass | 59
Figure 12-8. Bode diagrams for oscillating responses for different values of ξ. Figure from [FrPE06].
The Bode stability criterion is a simple method to analyze the stability of feedback control systems. Instead
of the mathematically more complicated closed loop, the stability of the open loop is analyzed.
Figure 12-9. Control cycle with an open loop (green) and a closed loop (green and black).
If the open loop is stable, the closed loop will also be stable if at the critical frequency 𝜔𝑐 the condition
𝐴𝑅(𝜔𝑐 ) < 1 holds, where 𝜔𝑐 is the frequency when 𝜙 = −180°.
The criterion can be applied only to overall decreasing Bode plots and when the open loop is stable.
60 | Chemical Process Control, Dr. Robert N. Grass
𝑈(𝑠) = + 𝑌(𝑠) =
- G(s) C(s)
sin(𝜔𝑡) sin(𝜔𝑡 − 180)
sin(𝜔𝑡 − 180)
= − sin(𝜔𝑡)
→ For a phase shift of -180° and the same amplitude the output will be exactly the opposite of the input
→ As it is subtracted this is the same as adding again the input signal
→ So after the back coupling there will be constructive interference! (If the amplitude ratio is greater than
unity is will amplify, otherwise it disappears)
The Bode stability criterion can also be used for controller design. When we introduce another controller
into the system or change the parameters of the implemented controllers, the Bode plot will change. The
new controller/parameters should change it in such a way, that the stability criterion is fulfilled and we can
find it by construction. This procedure is illustrated in the following example.
Chemical Process Control, Prof. Robert N. Grass | 61
The Bode diagrams for the system with a P and a PI-controller are drawn below. When only a P-
controller with 𝑘 = 10 is introduced, the function becomes 𝐺(𝑠) ∙ 𝑘 and according to the Bode stability
criterion will be slightly unstable.
With a PI-controller with 𝜏𝐼 = 1 we can achieve stability when the criterion is considered.
Figure 12-12. Bode diagram of the system with a P- and a PI-controller. The
critical frequencies for both set ups are indicated in red.
62 | Chemical Process Control, Dr. Robert N. Grass
Stability Margin
The Bode criterion can be extended to analyse the stability also in a quantitative way and to determine not
only whether the system is stable or not but how stable. This described by the gain and phase margin.
As a chemical process is rarely unchanged as the process conditions may vary or it might be disturbed, this
is very useful. The margins indicate how likely such changes will result in instability.
Gain margin
at 𝜙 = −180°, how far away is 𝐴𝑅 of 1
Phase margin
at 𝐴𝑅 = 1, how far away is 𝜑 of 180°
Bode stability is only valid for a system with stable open loops
Nyquist stability criterion for closed loops with unstable open loops and complex systems
Nyquist Diagram
𝐼𝑚(𝐺(𝑖𝜔))
𝜑 = tan−1 ൬𝑅𝑒(𝐺(𝑖𝜔)) ൰ = angle
AR
ɸ
Re(G(s))
Nyquist point: (−1,0)
Criterion: If G(s) in the open loop is unstable, the closed loop is stable if the Nyquist plot encircles (−1,0)
in counter-clockwise direction once per unstable root.
𝑔 𝑇𝑐
𝜃ሷ + 𝛼𝜃ሶ + sin 𝜃 = 2
𝑙 𝑚𝑙
with 𝛼 as a damping constant
Linearized system
𝑇𝑐 𝑔
𝑓 = 𝜃ሷ + 𝛼𝜃ሶ =2
− sin 𝜃
𝑚𝑙 𝑙
d𝑓 d𝑓
𝑓≈ | Δ𝑇 + | Δ𝜃
d𝑇𝑐 𝑠𝑠 𝑐 d𝜃 𝑠𝑠
1 𝑔
𝑓 ≈ 2
Δ𝑇𝑐 + (− cos 𝜃 𝑠𝑠 ) Δ𝜃
𝑚𝑙 𝑙
with cos 𝜋 = −1
Δ𝑇𝑐 𝑔
𝑓 = Δ𝜃ሷ + 𝛼Δ𝜃ሶ = + Δ𝜃
𝑚𝑙 2 𝑙
Laplace transform
𝑇̅𝑐 𝑔
̅ + 𝛼𝑠Θ
𝑠2Θ ̅= + Θ̅
𝑚𝑙 2 𝑙
̅
Θ 1
= 2 2 = 𝐺(𝑠)
𝑇̅𝑐 𝑚𝑙 𝑠 + 𝑚𝑙 2 𝛼𝑠 − 𝑚𝑙𝑔
𝑚
With 𝑚 = 1 𝑘𝑔, 𝑙 = 1 𝑚, 𝛼 = 0.01 and 𝑔 = 10 2
𝑠
Roots
𝑠 2 + 0.01𝑠 − 10 = 0
𝑠1/2 = ±3.15
64 | Chemical Process Control, Dr. Robert N. Grass
Root locus
It is not possible to tell from the open loop if the closed loop is stable or not.
1
Nyquist plot of 𝑠2 +0.01𝑠−10
1
𝐺(𝑖𝜔) =
−𝜔 2 + 0.01𝑖𝜔 − 10
for 𝜔 ∈ ℝ
Stability criterion: Encircle (−1, 0) counterclockwise once per unstable root of the open loop to
obtain stability for closed loop.
This criterion can be fulfilled by adding a controller to move/scale the behavior of the system.
1
Bode plot of 𝑠2 +0.01𝑠−10
Time Delay
In many chemical systems the problem of time delay occurs and affects the controller.
𝑘
𝑇𝐹 =
𝜏𝑠 + 1
𝑘
𝑇𝐹𝑇𝐷 = 𝑒 (−𝑠𝜆)
Figure 12-13. Problem description. 𝜏𝑠 + 1
R + TFTD
Y
- D
Time delay makes it hard to use root locus method to evaluate stability. We can still apply the criterion for
Bode plots.
𝑘 𝑘
𝑇𝐹 = 𝑇𝐹𝑇𝐷 = 𝑒 (−𝑠𝜆)
𝜏𝑠 + 1 𝜏𝑠 + 1
The Bode plot can still be used to assess stability of a system with time delay (stability criterion: 𝐴𝑅 <
1 for 𝜑 = −180°).
When time delay occurs the AR will be unaffected but the phase shift will be unbounded and decrease by
−𝜔𝜆 and the point of 𝜑 = −180° is approached sooner. This is detrimental to the stability of closed loop
systems.
Chemical Process Control, Prof. Robert N. Grass | 67
With a time constants in minutes and time delay of 0.5 minutes (in the exponential term).
The Bode plots of the system with (left) and without time delay (on the right) are drawn below.
The amplitude ratios of the two systems are the same. However, the system with time delay approaches
the critical phase shift of -180° much sooner. The critical frequency is indicated with a red line.
One can see that the system without time delay is stable, as the amplitude ratio is below 1 at the critical
frequency. The phase shift of the delayed system decreases much faster and reaches the critical phase
shift earlier, when the amplitude ratio is still above 1, indicating that the system will be unstable.
Figure 12-14. Left: Bode Plot of system with time delay of 0.5 min
Right: Bode Plot of system without time delay
68 | Chemical Process Control, Dr. Robert N. Grass
So far:
R + Y
- D(s) G(s)
Problems:
only for single input, single output
slow: first error, then reaction
Df(s)
Gw(s)
+ + G(s) +
- D(s)
+ +
𝐷𝐺 𝐷𝑓 𝐺 + 𝐺𝑤
𝑌= 𝑅+ 𝑊
1 + 𝐷𝐺 1 + 𝐷𝐺
Idea: 𝐷𝑓 predicts the disturbance and reacts to it before it has altered the system response (significantly)
Goal: 𝑌 independent of disturbance 𝑊
Remove 2nd term
𝐺𝑤
Choose 𝐷𝑓 = − 𝐺
such that 𝑊 has no effect on system
Prerequisites
- 𝑊 measurable
- 𝐺 and 𝐺𝑤 have to be stable
- 𝐷𝑓 has to be stable
Chemical Process Control, Prof. Robert N. Grass | 69
Cascade Control
In cascade control an inner closed loop 𝐺2 is added to the system which compensates for disturbances
within the inner system. This system has to be faster than the outer system 𝐺1 in order to be effective.
Cascade control is used for example in heating to correct for disturbances in the valve before their effect
becomes measurable by a change in room temperature.
Multivariable Control
When there are multiple input variables which influence more than one output variable in a system, we call
this system multivariable system or MIMO (multiple input, multiple output).
In some cases 𝑢1 might have no or negligible effect on 𝑦2 and 𝑢2 might not influence 𝑦1 significantly. Then
the system can be treated as two single variable systems as there is no coupling.
70 | Chemical Process Control, Dr. Robert N. Grass
When the coupling is stronger, decoupling compensators are used to make up for the effects. The transfer
functions in front of the process are chosen in such a way that they cancel out the coupling and again the
system can be treated as two single variable systems. This is achieved with a control system as drawn in the
figure below.
The strength of the coupling is quantified through the relative gain measured along the loop represented in
𝑦
green in the setup below. The effect of 𝑔𝑐1 on 𝑢2 is determined and the relative gain 𝑚 is defined such that
2
𝑦2
|𝑔 = 0
𝑢2 𝑐1
𝑚=𝑦
2 |𝑔
𝑢2 𝑐1 ≠ 0
and will have values between 0 (no coupling) and ∞ (very strong coupling). It is often normalized with the
maximum gain so that 0 < 𝑚 < 1.
𝑢1 𝑦1
𝑢2 System 𝑦2
𝑢3 𝑦3
𝑢1′ 𝑦1′
𝑢2′ Model 𝑦2′
𝑢3′ 𝑦3′
The system is limited by the precision of the model that predicts the system behavior. It is based on
differential equations that must be solved fast enough.
Procedure:
Measure current values
Solve differential equations of the model to get path which reaches target
Implement only the first step
Repeat measurements and calculations
In order to compensate for the fact that the model is not able to represent the system precisely, the whole
path to reach the target is simulated but only the first step is implemented. This compensates for uncertainties
but a reasonable good model is still necessary as well as large computing power.
Figure 13-9. Model Predictive Control over time, here the target is the reference trajectory.
Figure from http://new.abb.com/control-systems/features/model-predictive-control-mpc, 8.6.16