Ipcnotes
Ipcnotes
CONTROL
Class Notes
Sanjay Dalvi
Assistant Professor
Gharda Institute of Technology
Lavel, Ratnagiri, Maharashtra
Copyright ©2012 by Sanjay Dalvi. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form
or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted, without either the prior written permission of the Author, or authorization through payment
of the appropriate per-copy fee to the Author. Requests to the Author for permission should
be addressed to the Sanjay Dalvi,
Limit of Liability/Disclaimer of Warranty: While the author have used their best efforts in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by sales
representatives or written sales materials. The advice and strategies contained herein may not be
suitable for your situation. You should consult with a professional where appropriate. The
author shall not be liable for any loss of profit or any other commercial damages, including
but not limited to special, incidental, consequential, or other damages.
3 Controllers 31
3.1 Proportional Control 31
3.2 ON-OFF Control 33
3.3 Proportional-Integral Control 33
3.4 Proportional-Derivative Control 33
3.5 Proportional-Integral-Derivative Control 34
3.6 Offset 35
3.6.1 Proportional control to first order system 36
3.6.2 PI control to first order system 37
4 Stability 39
4.1 Analysing response of a system 39
4.2 Routh-Hurwitz Criterion 41
4.3 Root-Locus analysis 43
4.4 Frequency response analysis 47
4.4.1 Frequency response of pure capacitive process 48
4.4.2 Frequency response of pure dead time process 49
4.4.3 Frequency response of second order system 49
4.5 Bode Diagram 50
4.5.1 Bode stability criterion 52
4.6 Nyquist plot 56
4.6.1 First order system 56
4.6.2 Second order system 57
4.6.3 Pure dead time 58
4.6.4 Nyquist stability criterion 58
5 Controller Tuning 63
5.1 Time integral performance of controllers 63
5.2 Selection of feedback controllers 64
5.2.1 Rules for selecting controller 65
5.2.2 Controller for different processes 66
5.3 Open-loop controller tuning 67
5.4 Ziegler-Nichols tuning 69
CONTENTS v
PART II INSTRUMENTATION
7 Flow measurement 87
7.1 Volumetric flowmeters 87
7.1.1 Rotameter 87
7.1.2 Turbine meter 87
7.1.3 Venturi meter 88
7.1.4 Orifice meter 89
7.1.5 Vortex meter 89
7.1.6 Electromagnetic flowmeter 90
7.1.7 Ultrasonic Flow Equipment 91
7.2 Mass flowmeters 92
7.2.1 Coriolis mass flowmeter 92
7.2.2 Thermal mass flowmeter 92
8 Temperature measurement 95
8.1 Thermometers 95
8.2 Thermocouples 97
8.2.1 Cold junction compensation 98
8.2.2 Types 98
8.3 Resistance Temperature Detector (RTD) 100
8.4 Thermisters 101
8.5 Pyrometers 101
PROCESS CONTROL
CHAPTER 1
1.1 System
System in context to Process control is a set of equipments and devices interacting with
each other. This definition is considerably confusing and do not give exact idea. Therefore
lets consider a heating water bath, where water is heated to desired temperature using
heating element. Now the elements of the complete set-up consist of water tank with or
without agitator, heating element, temperature measuring device and temperature recorder
and/or controller. Combination of all these units is called as system.
If the process variables do not change with time then system is said to be at steady state.
Steady state models are always easier than unsteady state model to develop. But, unfortu-
nately all process control problems deal with unsteady state operations.
As we discussed in previous section we have to deal with unsteady state operation which
are inherently unstable in nature and requires control. If we talk in simple language process
control subject deals with unsteady processes to make them steady.
Instrumentation & Process Control. 3
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
4 CONCEPTS OF CONTROL SYSTEM
When process is required to be controlled, it requires some basic data regarding status
of the process. If data about the status of the system is provided to controller then this
arrangement is called as Feedback control.
Opposite to feedback control, status of input is supplied to controller so that corrective
action can be taken before input disturbs the system. Feed forward arrangement is not
common and obvious.
Before defining what is transfer function lets discuss the model for mercury thermometer.
Assumptions:
i) The resistance offered by the glass and mercury is negligible.
ii) At any instance the mercury assumes a uniform temperature throughout.
iii) The glass wall containing mercury does not expand or contract during the transient
response.
Unsteady state energy balance,
dTth
hA (To − Tth ) − 0 = mCp (1.1)
dt
For steady state conditions
hA (Tos − Tths ) = 0 (1.2)
Subtract equation (1.2) from equation (1.1)
d (Tth − Tths )
hA [(To − Tos ) − (Tth − Tths )] = mCp (1.3)
dt
Let deviation variables,
θo = T o − T o s
θth = Tth − Tths
θth (s) 1
= (1.5)
θo (s) τs + 1
The parameter τ is called the time constant of the system and RHS of equation(1.5)is called
the transfer function of the system.
LT of the deviation in thermometer reading
Transfer function =
LT of the deviation in surrounding temperature
Response or output variable
≈
Forcing function or input variable
Y (s)
G (s) =
X (s)
Therefore response of the system,
Y (s) = G (s) X (s)
Above equation can be represented using block diagram,
Equation (1.5) represents first-order system as it is derived from first order linear differen-
tial equation.
A A
Y (s) = −
s s + τ1
Inverting above equation,
t
Y (t) = A 1 − e− τ (1.8)
whereas for t < 0 we get Y (t) = 0
Y (t)1.0
A
0 1 2 3 4 5
t
τ
EXAMPLE 1.1
1.0
τ Y (t)
0 1 2 3 4 5
t
τ
Aω 1/τ Aω
Y (s) = = (1.10)
s2 + ω 2 s + 1/τ (s2 + ω 2 ) (τ s + 1)
simplifying RHS,
Aω Aω
=
(s2 + ω 2 ) (τ s + 1) (s + ωj) (s − ωj) (τ s + 1)
Aω C1 C2 C3
= + + (1.11)
(s + ωj) (s − ωj) (τ s + 1) (τ s + 1) (s + ωj) (s − ωj)
8 CONCEPTS OF CONTROL SYSTEM
−A
C2 =
2j + 2τ ω
−A/2
=
τω + j
−A/2 τ ω − j
=
τω + j τω − j
−A/2 (τ ω − j)
=
τ 2 ω2 + 1
Multiply equation (1.11) with (s − ωj) and set s = ωj
−A/2
C3 =
τω − j
−A/2 τ ω + j
=
τω − j τω + j
−A/2 (τ ω + j)
=
τ 2 ω2 + 1
Multiply equation (1.11) with (τ s + 1) and set s = −1/τ
Aω
C1 =
− τ1 + ωj − τ1 − ωj
Aω Aτ 2 ω
= 1
= 2 2
τ2 + ω2 τ ω +1
Aτ 2 ω
1 A τω − j
Y (s) = 2 −
τ ω+1 τs + 1 2 (τ 2 ω 2 + 1) s + ωj
(1.12)
A τω + j
−
2 (τ 2 ω 2 + 1) s − ωj
Taking inverse Laplace,
Aτ 2 ω
−1 1 Aτ ω t
L = e− τ
τ 2 ω2 + 1 τ s + 1 τ 2 ω2 +1
A τω − j A (τ ω − j) −ωjt
L−1 2 2
= e
2 (τ ω + 1) s + ωj 2 (τ 2 ω 2 + 1)
A τω + j A (τ ω + j) ωjt
L−1 = e
2 (τ 2 ω 2 + 1) s − ωj 2 (τ 2 ω 2 + 1)
Aτ ω
Y (t) = e−t/τ
τ 2 ω2 + 1
A
(τ ω − j) e−ωjt + (τ ω + j) eωjt
− 2 2
(1.13)
2 (τ ω + 1)
TRANSFER FUNCTION FOR FIRST ORDER SYSTEM 9
τ 2 ω2 + 1
−1 −Aτ ω
θ = tan × = tan−1 (−ωτ ) = φ
τ 2 ω2 + 1 A
putting all these in equation (1.14) we get,
Aτ ω A
Y (t) = e−t/τ + √ sin (ωt + φ) (1.15)
τ 2 ω2 + 1 τ 2 ω2 + 1
As t → ∞ the first term of equation (1.15) vanishes
A
Y (t)|s = √ sin (ωt + φ) (1.16)
τ ω2 + 1
2
10 CONCEPTS OF CONTROL SYSTEM
Period Lag
Input
Output
EXAMPLE 1.2
Fin
h V
R
Fout
ρin = ρout = ρ
dV
= Fin − Fout
dt
as V = Ah and lets consider Fout = h/R
dh h
A = Fin − (1.17)
dt R
At initial steady state i.e. at t = 0
hs
0 = Fins − (1.18)
R
equation (1.17) − (1.18)
d (h − hs ) (h − hs )
A = (Fin − Fins ) − (1.19)
dt R
Using deviation variables as below,
dH̄ H̄
A = F̄ −
dt R
Taking Laplace Transform (LT) of above equation,
H̄ (s) R
= (1.22)
F̄ (s) τs + 1
12 CONCEPTS OF CONTROL SYSTEM
Let consider a storage tank with one inflow stream and one outflow. Liquid withdrawn
from tank is through pump as shown in Fig.1.3. Mass balance across the tank can be given
Fin
h V
Fout
by,
dh
Fin − Fo = A (1.25)
dt
Considering system was at steady state before disturbance (i.e. t ≤ 0). Therefore mass
balance equation at steady state is,
Fin − Fo = 0 (1.26)
H̄ (s) 1
= (1.27)
F̄ (s) As
FIRST ORDER SYSTEMS IN SERIES 13
If input is change by unit step (F (t) = 1), transfer function of input is,
1
F̄ (s) =
s
1
∴ H̄ (s) =
As
t
H̄ (t) =
A
t
h (t) = hs + (1.28)
A
Equation (1.28) is output for the step change shows continuous growth in level and system
is non-regulating. System that have a limited change in output for a sustained change in
input are said to have regulation.
When more than one tanks are connected in series then connection between the tanks either
can be interacting or non-interacting. This interaction is nothing but effect of capacitance
of one tank on other.
1.8.1 Non-interacting
h1 Tank – 1
R1 q1
h2 Tank – 2
R2 q2
Mass balance across the tank - 1 and tank - 2 for constant density.
dh1
q − q1 = A1 (1.29)
dt
dh2
q1 − q2 = A2 (1.30)
dt
14 CONCEPTS OF CONTROL SYSTEM
Xo X1 X2
G1 (s) G2 (s)
FIRST ORDER SYSTEMS IN SERIES 15
EXAMPLE 1.3
Two non-interacting tanks are connected in series, as shown in Fig. 1.4. The time
constants are τ1 = 1 and τ2 = 0.5; R2 = 1. Sketch the response of the level in Tank
– 2 if a unit-step change is made in the inlet flow rate of Tank – 1.
Solution:
For step change in inlet flow of Tank – 1, Q (s) = 1/s Therefore equation(1.38) is,
1 R2 1
H2 (s) =
s τ2 s + 1 τ1 s + 1
1 C1 C2 C3
= + + (1.40)
s (τ1 s + 1) (τ2 s + 1) s τ2 s + 1 τ1 s + 1
∴ C1 = 1
τ12
∴ C2 = −
τ1 − τ2
τ22
∴ C3 =
τ1 − τ2
− τt e− τt2
" !#
τ1 τ2 e 1
H2 (t) = R2 1− −
τ1 − τ2 τ2 τ1
1.0
one tank
two tanks
H2 (t)
0 1 2 3 4 5
t
1.8.2 Interacting
h1
Tank – 1 q1 Tank – 2 h2 q2
R1 R2
Mass balance across the tank - 1 and tank - 2 for constant density.
dh1
q − q1 = A1 (1.41)
dt
dh2
q1 − q2 = A2 (1.42)
dt
h1 − h2
q1 = (1.43)
R1
h2
q2 = (1.44)
R2
FIRST ORDER SYSTEMS IN SERIES 17
Using deviation variables equation(1.41), (1.42), (1.43) and (1.44) will be,
dH1
Q − Q1 = A1 (1.45)
dt
dH2
Q1 − Q2 = A2 (1.46)
dt
H1 − H2
Q1 = (1.47)
R1
H2
Q2 = (1.48)
R2
Transforming above equations,
H2 (s) R2
= (1.53)
Q1 (s) τ2 s + 1
where, τ2 = A2 R2
Using equation(1.51) replace H1 (s) of equation(1.49)
H2 (s) R2
= (1.54)
Q (s) τ1 τ2 s2 + (τ1 + τ2 + A1 R2 ) s + 1
based on outflow,
Q2 (s) H2 (s) Q2 (s)
=
Q (s) Q (s) H2 (s)
Using equation(1.54) and (1.52)
Q2 (s) 1
= 2
(1.55)
Q (s) τ1 τ2 s + (τ1 + τ2 + A1 R2 ) s + 1
18 CONCEPTS OF CONTROL SYSTEM
A second order system is one whose output, is described by the solution of a second order
differential equation e.g.
d2 y dy
a2 + a1 + a0 y = bf (t) (1.56)
dt2 dt
If a0 6= 0
d2 y dy
τ2 + 2ζτ + y = Kp x (t) (1.57)
dt2 dt
where, τ 2 = a2 /a0 , 2ζτ = a1 /a0 and Kp = b/a0
τ = natural period of oscillation of the system
ζ = damping factor
Kp = steady state or static or simply gain of the system
Equation(1.57) in terms of deviation variables,
d2 Y dY
τ2 + 2ζτ + Y = Kp X (t)
dt2 dt
taking Laplace transform of above equation,
Y (s) Kp
∴ = 2 2 (1.58)
X (s) (τ s + 2ζτ s + 1)
Kp
Y (s) =
s (τ 2 s2 + 2ζτ s + 1)
Let p1 and p2 are the roots of the denominator of the above equation.
p p
ζ ζ2 − 1 ζ ζ2 − 1
p1 = − + and p2 = − −
τ τ τ τ
SECOND ORDER SYSTEM 19
Kp /τ 2
∴ Y (s) = (1.59)
s (s − p1 ) (s − p2 )
1 C1 C2 C3
= + + (1.60)
s (s − p1 ) (s − p2 ) s s − p1 s − p3
1
C1 =
p1 p2
1
c2 =
p1 (p1 − p2 )
1
C3 = −
p1 (p1 − p2 )
ep1 t ep2 t
Kp 1
Y (t) = 2 + − (1.62)
τ p1 p2 p1 (p1 − p2 ) p2 (p1 − p2 )
20 CONCEPTS OF CONTROL SYSTEM
(a + b) ec − (a − b) e−c
− ζt
Y (t) = Kp 1 − e τ
a2 − b 2
a (ec − e−c ) + b (ec + e−c )
− ζt
= Kp 1 − e τ
a2 − b 2
But,
eα − e−α eα + e−α
sinh α = cosh α =
2 2
therefore,
− ζt 2a sinh c + 2b cosh c
Y (t) = Kp 1 − e τ (1.63)
a2 − b 2
Now replacing a, b, and c,
2
a2 − b2 = 4ζ 2 ζ 2 − 1 − 4 ζ 2 − 1 = 4 ζ 2 − 1
p
4ζ ζ 2 − 1
p
2a sinh c p
2−1
t ζ 2−1
t
= sinh ζ = sinh ζ
a2 − b 2 4 (ζ 2 − 1) τ
p
ζ2 − 1 τ
2
4 ζ −1
2a cosh c p t p t
2 2
= 2
cosh ζ2 − 1 = cosh ζ2 − 1
a −b 4 (ζ − 1) τ τ
( " p p #)
− ζt ζ t t
Y (t) = Kp 1 − e τ p sinh ζ2 − 1 + cosh ζ2 − 1
ζ2 − 1 τ τ
(1.64)
The gain is,
∆ (steady state output)
Kp =
∆ (steady state input)
SECOND ORDER SYSTEM 21
Y (t)
1
Kp ζ1
=
ζ
ζ2 ζ2 > ζ1 > 1
Figure 1.6 Response curve for overdamped and critically damped system
equating coefficients,
τ 2 C1 + τ C2 = 0
∴ C2 = −τ
therefore equation(1.65) becomes,
" #
1 τ τ
Y (s) = Kp − −
s τ s + 1 (τ s + 1)2
inverting above equation,
t −t/τ −t/τ
Y (t) = Kp 1 − e − e
τ
t −t/τ
= Kp 1 − 1 + e (1.67)
τ
22 CONCEPTS OF CONTROL SYSTEM
ep1 t ep2 t
Kp 1
Y (t) = 2 + − (1.62)
τ p1 p2 p1 (p1 − p2 ) p2 (p1 − p2 )
p 1 p 2 = a2 + b 2
p1 − p2 = 2bj
p1 (p1 − p2 ) = −2b (b − aj)
p2 (p1 − p2 ) = 2b (b + aj)
e(a+bj)t e(a−bj)t
Kp 1
Y (t) = 2 − −
τ a2 + b 2 2b (b − aj) 2b (b + aj)
i
Kp 1 h (a+bj)t (a−bj)t
= 2 2 1 − (b + aj) e + (b − aj) e
τ (a + b2 ) 2b
Using identity,
eat p 2
Kp 2
Y (t) = 2 2 1− a + b sin (bt + φ) (1.68)
τ (a + b2 ) b
comparing roots discussed in overdamped section we can write,
p
ζ 1 − ζ2
a=− b=
τ τ
therefore, p
2 1 2 −b 1 − ζ2
a +b = 2 and =
τ a ζ
SECOND ORDER SYSTEM 23
" #
1 −ζ τt
Y (t) = Kp 1 + p e sin (ωt + φ) (1.69)
1 − ζ2
p
1 − ζ2
where, ω = = radian frequency
τ !
p
1 − ζ 2
φ = tan−1 = phase lag
ζ
Y (t) A
C
Kp ±5%
B
T
trise t
2. Decay ratio: It is the ratio C/A (i.e. the ratio of the amount above the ultimate value
of two successive peaks).
!
C −2πζ
Decay ratio = = exp p = (Overshoot)2
A 1 − ζ2
3. Period of oscillation (T ) : It is time required for one complete oscillation.
p
1 − ζ2
The radian frequency = ω =
τ
As ω = 2πf
2πτ
∴T = p
1 − ζ2
4. Natural period of oscillation: Response will oscillate continuously if ζ = 0.
Kp /τ
G (s) =
s − j τ1 s + j τ1
ωn = 1/τ
Tn = 2πτ
24 CONCEPTS OF CONTROL SYSTEM
5. Response time: Ultimate value will reach only at t → ∞. Therefore the time needed
to reach ultimate value within ±5% is known as the response time.
6. Rise time: The time required for the response to reach its ultimate value for the first
time.
Questionnaire
*******************
CHAPTER 2
Generally all controlled systems are closed loop systems. Here we will discuss some of
the commonly encountered chemical processes.
Let’s consider a simple example of hot water bath. If we have to get hot water at specific
temperature, what we need is heater, temperature measuring device and controller as an
accessory to the water bath, as shown in Fig. 2.1. Temperature of water coming out from
tank will be affected by heat input from heater, temperature and flow rate of inflow water.
Now if we consider that water flow is steady, then outflow temperature is function of inflow
temperature and heat input from heater.
Now system described in Fig. 2.1 can be simplified using block diagram as shown in
Fig. 2.2.
2.2 Feedback
Feedback in control system can be of two types - negative and positive. Negative feedback
is difference between set point (TR ) and measured variable (Tm ). Negative feedback en-
sures that the difference between TR and Tm is used to adjust the control element so that
the tendency is to reduce the error. The decrease in error would cause the controller and
final control element to decrease the load.
Instrumentation & Process Control. 25
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
26 CLOSED LOOP SYSTEMS
Power
Supply
Temperature
Indicator
Controller
Heater
Temperature
sensor
Comparator Ti , Load
+
TR + ǫ + T
error Contrroller Final Control Element Process
Set point – Controlled
Variable
Tm
Measuring Element
Measured variable
If the signal to the comparator were obtained by adding TR and Tm , we would have a
positive feedback system, which is inherently unstable. Positive feedback would never be
used intentionally in the system as it cause run away.
Sometimes, instead of load change, set point is required to be changed, this situation is
referred as Servo Problem. Servo Problem is need of the process. For example in heating
water, bath temperature of feed-water may be constant but hot water is required at lower
temperature then controller should be set at lower temperature. Servo problem is rare in
process industry.. Examples are missile and aircraft tracking system.
Regulator problem is common in chemical industry, where load changes and set point
remain constant. Most of the process industry problems falls under this category.
Lets consider same example of heating water in bath. From Fig. 2.2 we can prepare block
diagram as shown in Fig. 2.3.
For simplicity we will deal with each block separately. Objective of this system is
controlling the process, therefore first we will discuss process.
DEVELOPMENT OF BLOCK DIAGRAM 27
Ti
+
TR + ǫ + T
Gc (s) GF C (s) Gp (s)
–
Tm
Gm (s)
2.4.1 Process
Heating of water bath at steady flow conditions leaves energy balance for unsteady opera-
tion. General energy balance across the process block shows that two energy input streams
and one energy output stream. Therefore heat accumulation in process can be given as,
dT
q + ṁCp (Ti − To ) − ṁCp (T − To ) = ρCp V (2.1)
dt
At steady state, (t=0),
d (T − Ts )
q − qs + ṁCp [(Ti − Tis ) − (T − Ts )] = ρCp V (2.3)
dt
Using deviation variable concept
T̄i = Ti − Tis
T̄ = T − Ts
Q = q − qs
dT̄
Q + ṁCp T̄i − T̄ = ρCp V (2.4)
dt
Taking Laplace Transform of above equation,
Q (s) + ṁCp T̄i (s) − T̄ (s) = ρCp V sT̄ (s)
1/ṁCp 1
T̄ (s) = Q (s) + T̄i (s) (2.5)
τs + 1 τs + 1
where, τ = ρV /ṁ
28 CLOSED LOOP SYSTEMS
T̄ (s) 1
= (2.7)
T̄i (s) τs + 1
Equation (2.5) can be represented on block diagram as shown in Fig.2.4.
T̄i (s) 1
τs + 1
+
Q(s) 1 + T̄ (s)
ṁCp
τs + 1
T̄i (s)
ṁCp
P (s) 1 T̄ (s)
ṁCp
τs + 1
+
Q(s) + P (s)
(a) (b)
T̄i (s)
ṁCp
Q(s) + 1 T̄ (s)
+ ṁCp
τs + 1
(c)
But, P (s) can be represented as shown in Fig 2.5(b). Therefore, equation (2.8) can be
represented using block diagram as shown in Fig.2.5(c), and it is same as block diagram
shown in Fig. 2.4.
(a) (b)
Figure 2.6 (a) Block diagram, (b) Transfer function block diagram for measuring element
T̄ (s) 1
= (2.9)
T̄m (s) τm s + 1
where, T̄m = Tm − Tms
τm = time constant of measuring element.
q = Kc ǫ + qo (2.10)
where, ǫ = TR − Tm
TR = set point
Kc = proportional sensitivity or gain
qo = heat input when ǫ = 0
At steady state (t=0),
qs = qo (2.11)
Whereas ǫs = 0 and qo is constant.
Subtract equation (2.11) from (2.10)
q − qs = Kc ǫ
Using deviation variables,
Q = Kc ǫ (2.12)
In above equation,
ǫ = ǭ = ǫ − ǫs = (TR − Tm ) − (TRs − Tms )
= (TR − TRs ) − (Tm − Tms )
= T̄R − T̄m
30 CLOSED LOOP SYSTEMS
Equation (2.13) and (2.14)can be represented as shown in Fig.2.7(a) and Fig.2.7(b). There-
fore overall block diagram for controller is as shown in Fig. 2.7(c)
T̄m (s)
(a) (b)
T̄m (s)
(c)
Figure 2.7 (a) Representation of equation (2.13), (b) Representation of equation (2.14) on block
diagram, (c) Overall block diagram for Controller
Finally, combining Fig.2.5, Fig.2.6(b) and Fig.2.7(c) we get block diagram for complete
system (see Fig.2.8).
T̄i (s)
ṁCp
T̄m (s) 1
τm s + 1
Figure 2.8 Transfer function block diagram for heating water bath
CHAPTER 3
CONTROLLERS
In this chapter, we shall present the transfer functions for the controllers frequently used
in industrial processes. Because the transducer and the converter will be lumped together
with the controller for simplicity, the result is that the input will be the measured variable
x (e.g. temperature, level, etc.) and the output will be a pneumatic signal p.
The Proportional controller produces an output signal (pressure in the case of a pneumatic
controller, current or voltage for an electronic controller) that is proportional to the error ǫ.
This action may be expressed as
p = K c ǫ + ps (3.1)
where, p = output signal from controller, psig or ma
Kc = gain, or sensitivity
ǫ = error = set point – measured variable
ps = constant
The units of set point and measured variable must be the same, since the error is the
difference between these quantities.
In a controller having adjustable gain, the value of the gain Kc can be varied by moving
a knob in the controller. The value of ps is the value of the output signal when E is zero,
and in most controllers ps can be adjusted to obtain the required output signal when the
control system is at steady state and ǫ = 0.
Instrumentation & Process Control. 31
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
32 CONTROLLERS
EXAMPLE 3.1
∆T = pb × (range)
= 0.75 × 40
= 30◦ F
15 − 3
Gain = = 0.4 psi/◦ F
30
From this example, we see that proportional gain corresponds inversely with proportional
band; thus
1
proportional gain ∝
proportional band
Furthermore, the relation between proportional band (pb) in percentage and Kc will be
100
Kc =
pb%
ON-OFF CONTROL 33
A special case of proportional control is on-off control. If the gain Kc is made very high,
the valve will move from one extreme position to the other if the measured variable deviates
only slightly from the set point. This very sensitive action is called on-off action because
the valve is either fully open (ON) or fully closed (OFF); i.e., the valve acts like a switch.
This is a very simple controller and is exemplified by the thermostat used in a home-heating
system. The bandwidth of an on-off controller is approximately zero.
Kc t
Z
p = Kc ǫ + ǫdt + ps (3.4)
τI 0
Kc t
Z
P (t) = Kc ǫ (t) + ǫ (t) dt
τI 0
Transforming above equation,
Kc
P (s) = Kc ǫ (s) + ǫ (s)
τI s
P (s) 1
= Kc 1 + (3.6)
ǫ (s) τI s
The reciprocal of τI , integral time is also refer as reset rate.
error
1
ǫ
0
0
t
Response
Kc
τI
p Kc
ps
0
t
where, Kc = gain
τI = derivative time, min
ps = constant
The values of Kc and τD may be varied by two knobs in the controller. Derivative
control operates on the rate of change of error. Opposite to integral action smaller τD
means slow derivative action. Rate of change of error is calculated during the time period
τD .
Using deviation variable, P = p − ps equation (3.7) will be
dǫ (t)
P (t) = Kc ǫ (t) + Kc τD
dt
Transforming above equation,
P (s) = Kc ǫ (s) + Kc τD sǫ (s)
P (s)
= Kc (1 + τD s) (3.8)
ǫ (s)
Kc
P (s) = Kc ǫ (s) + ǫ (s) + Kc τD sǫ (s)
τI s
P (s) 1
= Kc 1 + + τD s (3.10)
ǫ (s) τI s
3.6 Offset
The curves of Fig.3.2 show the behaviour of a typical, feedback control system using dif-
ferent kinds of control when it is subjected to a permanent disturbance. The value of the
controlled variable is seen to rise at time zero owing to the disturbance. With no control,
this variable continues to rise to a new steady-state value. With control, after some time
the control system begins to take action to try to maintain the controlled variable close to
the value that existed before the disturbance occurred.
With proportional action only, the control system is able to arrest the rise of the con-
trolled variable and ultimately bring it to rest at a new steady-state value. The difference
between this new steady-state value and the original value is called offset. For the particu-
lar system shown, the offset is seen to be only 22 percent of the ultimate change that would
have been realized for this disturbance in the absence of control.
As shown by the PI curve, the addition of integral action eliminates the offset; the
controlled variable ultimately returns to the original value. This advantage of integral
action is balanced by the disadvantage of a more oscillatory behaviour. The addition of
derivative action to the PI action gives a definite improvement in the response. The rise of
the controlled variable is arrested more quickly, and it is returned rapidly to the original
value with little- or no oscillation.
No Control
Controlled Variable
Propotional
PID PI
time
Figure 3.2 Response of a typical control system showing the effects of various modes of control.
36 CONTROLLERS
P (s)
1/A
X(s) + Y (s)
+ A
Kc
+ τs + 1
–
Y (s) AKc / (τ s + 1)
=
X (s) AKc
1+
(τ s + 1)
AKc A1
= =
τ s + 1 + AKc τ1 s + 1
τ
where, τ1 =
1 + AKc
AKc
A1 =
1 + AKc
for unit step change in set point,
X (s) = 1/s
A1
∴ Y (s) =
s (τ1 s + 1)
The ultimate value of response (Y (∞)) can be found out from above equation using final
value theorem.
= A1
From above equation it is clear that increase in gain of proportional controller decrease the
offset. Referring to Figure(3.3) for load change (i.e. X (s) = 0) transfer function for the
system is,
Y (s) 1/ (τ s + 1)
=
P (s) AKc
1+
(τ s + 1)
1 A2
= =
τ s + 1 + AKc τ1 s + 1
τ 1
where, τ1 = and A2 =
1 + AKc 1 + AKc
unit step change in load,
P (s) = 1/s
A2
∴ Y (s) =
s (τ1 s + 1)
The ultimate value of response (Y (∞)) can be found out from above equation using
final value theorem.
= A2
∴ Offset = Set point − Ultimate value of the response
1
=0−
1 + AKc
1
=−
1 + AKc
From above equation it is clear that increase in Kc decrease the offset. The negative sign
indicates magnitude of response is higher than set point. If we observed servo as well as
regulatory treatment discussed here, offset is always present for proportional control.
P (s)
1/A
X(s) + Y (s)
+ A
Gc
+ τs + 1
–
1
Gc = Kc 1 +
τI s
Referring to Figure(3.4) for set point change (i.e. P (s) = 0) transfer function for the
system is,
1 Kp
Kc 1 +
Y (s) τ s τs + 1
= I
X (s) 1 Kp
1 + Kc 1 +
τI s τs + 1
Kc Kp (τI s + 1)
=
τI s + 1
τI s (τ s + 1) + Kc Kp τI s (τ s + 1)
τI s (τ s + 1)
Kc Kp (τI s + 1)
=
τI τ s2 + (τI + Kc Kp τI ) s + Kc Kp
with unit step change in set point (i.e. X (s) = 1/s),
1 Kc Kp (τI s + 1)
Y (s) =
s τI τ s2 + (τI + Kc Kp τI ) s + Kc Kp
ultimate value of response,
*******************
CHAPTER 4
STABILITY
When response of the system grow after addition of disturbance rather than coming back
to original position then system is said at unstable condition. Mathematically response of
the system can be analysed through roots of the open-loop transfer function.
Q (s) Q (s)
G (s) = = (4.1)
P (s) (s − p1 ) (s − p2 ) (s − p3 )m (s − p4 ) (s − p∗4 ) (s − p5 )
Imaginary axis
b p4
Real axis
b b b b
p1 p5 (p3 ) p2
b p∗4
output
output
time time
(a) (b)
output
time
(c)
4. Poles at origin: p5
Poles at origin (p5 = 0) give rise to the term C5 i.e. constant. Therefore, system gives
constant output at any t, and reaches to new steady state level.
EXAMPLE 4.1
1 + G (s) = 0
10Kc
1+ =0
s−1
s − 1 + 10Kc = 0
root of the above equation is p = 1 − 10Kc The gain Kc will always be greater than
zero. For stable system p < 0 condition is required, which is possible if,
1 − 10Kc < 0
−10Kc < −1
1
Kc <
10
The criterion of stability for closed-loop systems does not require calculation of the actual
values of the roots of the characteristic polynomial. Let expand the characteristic equation
42 STABILITY
1 + Gp Gf Gc Gm = a0 sn + a1 sn−1 + · · · + an−1 s + an = 0
Let a0 be positive. If it is negative, multiply both sides of the equation above by −1.
Test – II: If all the coefficients a0 , a1 , a2 , · · · , an−1 , an are positive, then from the first
test we cannot conclude anything about the location of the roots. Form the following array
(known as the Routh array)
Row – 1 a0 a2 a4 a6 ···
2 a1 a3 a5 a7 ···
3 A1 A2 A3 ··· ···
4 B1 B2 B3 ··· ···
5 C1 C2 C3 ··· ···
.. .. .. ..
. . . .
n+1 W1 W2 ··· ··· ···
where,
a1 a2 − a0 a3 a1 a4 − a0 a5 a1 a6 − a0 a7
A1 = A2 = A3 =
a1 a1 a1
A1 a3 − a1 A2 A1 a5 − a1 A3
B1 = B2 = ······
A1 A1
B1 A2 − A1 B2 B1 A3 − A1 B3
C1 = C2 = ······
B1 B1
(a) If any of these element is negative, we have at least one root to the right side of the
imaginary axis and the system is unstable
(b) The number of sign changes in the elements of the first column is equal to the number
of roots to the right of imaginary axis.
(c) If nth row is zero then at least one root is on imaginary axis.
Therefore the system is stable if all the elements in the first order column of the Routh’s
array are positive number.
EXAMPLE 4.2
Check stability of the feedback control system with following characteristic equation.
s3 + 2s2 + (2 + Kc ) s + Kc /τI = 0
ROOT-LOCUS ANALYSIS 43
Solution:
Prepare Routh’s array
Row 1 1 2 + Kc
2 2 Kc /τI
2 (2 + Kc ) − Kc /τI
3 0
2
4 Kc /τI 0
The elements of first column are,
2 (2 + Kc ) − Kc /τI
1, 2, , Kc /τI
2
all are always positive except third. The system is stable if,
Kc
2 (2 + Kc ) >
τI
The Routh array is open-loop analysis and do not comment on closed loop response. Routh
Hurwitz criterion requires more mathematical calculation and require to find root of the
characteristic equation for every iteration. Root locus analysis determine the stability char-
acteristics of a closed loop system as the change in controller parameters (like Kc , τI ,
and τD ).
5. Point of intersection on Imaginary axis: Arrange open loop transfer function (G)
in standard form
N
G=K
D
where, K = constant
N = (s − z1 ) (s − z2 ) · · · · · · (s − zm )
D = (s − p1 ) (s − p2 ) · · · · · · (s − pn )
Write characteristic equation,
1+G=0
N
1+K =0
D
D + KN = 0 (4.6)
N
K = −1
D
|N |
K =1 (4.7)
|D|
Using equation(4.6) prepare Routh’s array. Use the Routh’s criterion on nth row.
i.e. if nth row is zero then at least one pair of root lie on imaginary axis. Calculate
intersection at imaginary axis by substituting s = 0 ± jb in characteristic equation.
6. Draw a locus connecting break away point and intersection on imaginary axis and
following branches which are approaching asymptotes.
7. Loci originating from poles end up in adjacent zero if any.
8. For (n − m)≥ 2, the sum of roots of the characteristic equation is constant, real, and
independent of K.
EXAMPLE 4.3
Plot the root locus diagram for the open-loop transfer function,
K
G=
(s + 1) (s + 2) (s + 3)
Solution:
By examining the transfer function we can summarise,
No.of poles, n =3 (−1, −2, −3)
No.of zeroes, m =0
No. of branches =n=3
No.of asymptots =n−m=3
Imaginary
3
Real
−4 −3 −2 −1 1
−1
−2
−3
−4
Break away point: One locus will emerge from −3 and follow real axis to asymptote.
Two loci emerge from −1 and −2 towards each other will break away at an angle ± π2
at point(4.5),
1 1 1
0= + +
s − p1 s − p2 s − p3
1 1 1
0= + +
s+1 s+2 s+3
0 = 3s2 + 12s + 11
s = −2.5773, −1.422
as break away point will be between −1 and −2 break away point is −1.422.
4
Imaginary
1
−1.422
Real
× × ×
−4 −3 −2 −1 1
−1
−2
−3
−4
46 STABILITY
Point of intersection of two loci breaking away from real axis can be found out using
Routh’s array,
D + KN = 0
(s + 1) (s + 2) (s + 3) + K + 1 = 0
s3 + 6s2 + 11s + K + 6 = 0
Routh ’s array,
Row –1 1 11
2 6 K +6
6 × 11 − (K + 6)
3 0
6
4 K +6
If (66 − (K + 6)) /6 = 0 the one root will be on imaginary axis, therefore when
K = 60 loci will intersect imaginary axis. Point of intersection of imaginary axis is
s = a + jb and s = a − jb where a = 0.
If s = jb and K = 60, the characteristic equation becomes,
66 − 6b2 = 0
∴ b = 3.32
similarly for s = −jb, b = −3.32 now as we know break away point and point of
intersection with imaginary axis we can draw approximate loci as shown in figure(4.2).
4
Imaginary
1
−1.422
Real
× × ×
−4 −3 −2 −1 1
−1
−2
−3
−4
Imaginary
C = a + jb
b |
|C
φ
a Real
From fig.(4.3),
a b
cos φ = sin φ =
|C| |C|
∴ a = |c| cos φ ∴ b = |c| sin φ
We know that,
ejx + e−jx ejx − e−jx
cos x = sin x =
2 2j
Then
ejφ + e−jφ ejφ − e−jφ
C = |C| + j|C|
2 2j
jφ −jφ jφ −jφ
e +e +e −e
= |C|
2
jφ
= |C|e (4.10)
put s = jω
Kp
G (jω) =
τp jω + 1
multiply numerator and denominator with (1 − jωτp ),
Kp 1 − jωτp
G (jω) = ×
τp s + 1 1 − jωτp
Kp (1 − jωτp )
=
1 + τp2 ω 2
Kp Kp ωτp
= 2 2
−j
1 + τp ω 1 + τp2 ω 2
Now, G (jω) is complex number with real and imaginary part.
s 2 2
Kp Kp ωτp
|G (jω) | = +
1 + τp2 ω 2 1 + τp2 ω 2
Kp
|G (jω) | = q (4.11)
1 + τp2 ω 2
and
G (jω) = tan−1 (τp ω) (4.12)
If we compare equation (4.11) and (4.12) with response equation(1.16) of first order system
with sinusoidal input (A sin ωt)
A
Y (t) = √ sin (ωt + φ) (1.16)
τ ω2 + 1
2
p Kp
AR = |G (jω) | = a2 + b 2 = (4.15)
ω
and phase shift,
Y (t) = X (t − τd )
L [Y (t)] = L [X (t − τd )]
= e−sτd LX (t)
Y (s) = e−sτd X (s)
G (s) = e−sτd
put s = jω,
G (jω) = e−jτd ω
comparing above equation with equation(4.10) i.e. G (jω) = |G (jω) |e−jφ
AR = 1 (4.17)
φ = −τd ω (4.18)
Kp
G (s) =
τ 2 s2 + 2ζτ s + 1
put s = jω,
1 − τ 2 ω 2 − j2ζτ ω
Kp
G (jω) = ×
1 − τ 2 ω 2 + j2ζτ ω (1 − τ 2 ω 2 ) − j2ζτ ω
Kp 1 − τ 2 ω 2 − j2ζτ ω
=
(1 − τ 2 ω 2 )2 + (2ζτ ω)2
Kp 1 − τ 2 ω 2
2Kp ζτ ω
= 2 2 −j
2 2
(1 − τ ω ) + (2ζτ ω) (1 − τ ω 2 )2 + (2ζτ ω)2
2
50 STABILITY
therefore,
Kp 1 − τ 2 ω 2
a= 2 2
(1 − τ 2 ω 2 ) + (2ζτ ω)
2Kp ζτ ω
b=− 2 2
(1 − τ ω 2 ) + (2ζτ ω)
2
φ = tan−1 (b/a)
−1 −2ζτ ω
φ = tan (4.20)
1 − τ 2 ω2
It gives the information about change in AR and phase shift with respect to frequency.
Bode diagram consist of two graphs: AR vs. frequency on log-log scale and phase shift vs.
frequency on semi-log scale. Lets analyse few systems.
First order system: As discussed in section(4.4) equations for AR and phase shift is
same,
Kp
AR = q
1 + τp2 ω 2
φ = tan−1 (−τp ω)
Let Kp = 1
1
∴ log AR = − log 1 + τp2 ω 2
2
Let’s calculate asymptotic values,
For ω → 0
1
log AR = − log (1)
2
AR = 1
For ω → ∞
2
1 + τp2 ω 2 ≈ τp2 ω 2
The frequency equal to 1/τp is called corner frequency where, two asymptotes inter-
sect.
Deviation of AR at corner frequency is maximum.
Phase shift can be plotted for wide range from ω → 0 to ω → ∞. Phase lag changes
from 0◦ to −90◦ .
1
AR
1
τp
−1
τp ω
0◦
φ
−45◦
−90◦
τp ω
Pure capacitive system: Amplitude ratio and phase shift equations for pure capacitive
system are,
Kp
AR = φ = −90◦
ω
AR
ω=1
−1
ω
0◦
φ
−90◦
−180◦
ω
1
GM = (4.21)
ARco
1 Gain Margin
AR
0◦
Phase Margin
φ
−180◦
−360◦
ω
Figure 4.6 Measuring Gain Margin and Phase Margin on Bode Diagram
EXAMPLE 4.4
A control system using PI control is represented by the block diagram shown in figure
below. The transfer function describing the various blocks are as shown with Kc = 10,
τI = 1 min, K1 = 0.8, and Kv = 0.5. Determine the gain and phase margins.
BODE DIAGRAM 53
U
+ C
+ 1
R + 1
Kc 1 + Kv
τI s (s2 + s + 2) (5s + 2)
–
B
K1 exp (−0.8s)
Solution:
Open-loop transfer function is
1 1
G (s) = Kc 1 + Kv 2 e−0.8s K1
τI s (s + s + 2) (5s + 2)
1 −0.8s
1+ e
s
=
(0.5s2 + 0.5s + 1) (2.5s + 1)
1 1 −0.8s 1
= × × e × 1 +
2.5s + 1 0.5s2 + 0.5s + 1 s
= G1 G2 G3 G4
AR3 = 1 φ3 = −0.8ω
and no corner frequency as pure dead time system has only one asymptote
for ω = 0 to ∞ AR will be AR3 = 1
From above table we can plot Bode diagram for AR vs. frequency. From overall slope
it is clear that AR value reaches asymptotic values for low as well as high frequency
therefore select definite value for low frequency e.g. 0.01 and for high frequency e.g.
1000 and plot the graph.
100
10
b
AR
b
b
0.1
frequency for
phase margin
Similarly we can calculate phase shift for individual block and then for overall.
ωin rad/min φ1 φ2 φ3 φ4 φ
0.01 -1.43 -0.29 -0.01 -89.43 -91.16
0.40 -45.00 -12.30 -0.32 -68.20 -125.82
1.00 -68.20 -45.00 -0.80 -45.00 -159.00
1.41 -74.20 -90.00 -1.13 -35.30 -200.40
10.00 -87.70 -174.20 -8.00 -5.70 -275.60
100.00 -89.80 -179.40 -80.00 -0.57 -349.87
0◦
−90◦
φ
−180◦
−270◦
ωco
−360◦
0.01 0.1 1 10 100
ω
56 STABILITY
Imaginary
a1 ω→∞ ω=0
φ1 Real
1
R
A
b1
X
ω = ω1
G (jω) = a1 + jb1
q
AR1 = a21 + b21 = distance between X and origin
−1 b1
φ1 = tan = angle between real axis and line joining X – origin
a1
The angle φ1 with the real axis is phase shift at ω = ω1 . The Nyquist plot contains the
same information as the pair of Bode plots for the same system.
1
AR = √
1 + τ 2 ω2
φ = tan−1 (−τ ω)
Imaginary Imaginary
1 1
1
≥
ζ
−1 −1 <
1
ζ
(a) (b)
Imaginary
−1 1 Real
−1
(c)
Figure 4.8 Nyquist plot for (a) first order system, (b) second order system, (c) pure dead time
When ζ ≥ 1 then AR ≤ 1 and the Nyquist plot stays within the unit circle. When ζ < 1
then AR becomes larger than one for a range of frequencies and Nyquist plot crosses the
unit circle as shown in figure(4.8b).
AR = 1 φ = −τd ω
Imaginary
Unstable
−1 1 Real
Stable
Critically
Stable
−1
EXAMPLE 4.5
Draw a Nyquist plot for the system with open-loop transfer function,
1
1+
s
G=
10s2 + 5s + 1
NYQUIST PLOT 59
Solution:
Put s = jω in transfer function
1 + jω
G (jω) =
jω (−10ω 2 + j5ω + 1)
−5ω 2 + j 10ω 3 − ω
1 + jω
= ×
−5ω 2 − j (10ω 3 − ω) −5ω 2 + j (10ω 3 − ω)
−5ω − j5ω + j 10ω − ω − ω 10ω 3 − ω
2 3 3
= 2
25ω 4 + (10ω 3 − ω)
10ω 4 + 4ω 2 5ω 3 − ω
=− 2 +j 2
25ω 4 + (10ω 3 − ω) 25ω 4 + (10ω 3 − ω)
p
AR = a2 + b 2
v
u 10ω 4 + 4ω 2 2 + 5ω 3 − ω 2
u
=t h
u i2
25ω 4 + (10ω 3 − ω)2
5ω 2 − 1
−1
φ = tan −
10ω 3 + 4ω
v
u 2 2
u 4ω + [−ω]2
AR ≈ t h
u i2
2
25ω 4 + (−ω)
s
4ω 4 + ω 2
≈ 2
[25ω 4 + ω 2 ]
s
ω2
≈
[ω 2 ]2
1
≈
ω
−1 1
φ ≈ tan
4ω
60 STABILITY
−1 1 Real
−1
EXAMPLE 4.6
Draw Nyquist plot for PID controller with gain equal to one.
Solution:
Transfer function for PID Controller is,
1
G = Kc 1 + + τD s
τI s
Put s = jω and simplify the equation to get G (jω) as complex number.
s 2
1
AR = 1 + τD ω −
τI ω
−1 1
φ = tan τD ω −
τI ω
NYQUIST PLOT 61
When ω → 0 AR → ∞ φ → −π/2
When ω → ∞ AR → ∞ φ → +π/2
It means Nyquist curve is passing through/by the unit circle. Near unit circle all the
curves either bend towards origin or repelled from origin. Therefore lets find the
intersection of Nyquist curve with unit circle.
Therefore when AR = 1
" 2 #
1 1
log AR = log 1 + τD ω −
2 τI ω
1
0 = τD ω −
τI ω
r
1
ω=
τI τD
r
−1 τD τD
∴ φ = tan −
τI τI
φ = 0◦
So the Nyquist plot is passing through the point (1,0) as shown in figure.
Imaginary ω→∞
−1 1 Real
−1
ω→0
**************
CHAPTER 5
CONTROLLER TUNING
After the type of feedback controller has been selected, we still have the problem of decid-
ing what values to use for its adjusted parameters. This is known as the controller tuning
problem. There are three general approaches we can use for tuning a controller:
1. Use simple criteria such as the on-quarter decay ratio, minimum settling time mini-
mum error, etc.
Dynamic performance of closed-loop is measured based on the entire response of the pro-
cess. The most often used are:
Z∞
ISE = ǫ2 (t) dt
0
The best controller can be selected based on minimum value of ISE, IAE or ITAE.
For small errors (ǫ < 1), IAE is better than ISE, as squared quantity will be less for
ǫ < 1.
Error that persist for long time ITAE is better as it amplify the error with t.
ITAE
output
IAE
ISE
time
Figure 5.1 Performance curve for different time integral methods
ii) Compute the value of the performance criterion using a P or PI or PID controller with
the best settings for the adjusted parameters Kc , τI , and τD .
iii) Select that controller which gives the best value for the performance criterion.
i) It is very tedious.
SELECTION OF FEEDBACK CONTROLLERS 65
ii) It relies on models (Transfer Functions) for the process, sensor, and final control ele-
ment which may not be known exactly.
iii) It incorporates certain ambiguities as to which is the most appropriate criterion and
what input changes to consider.
Proportional Control
ii) Produces an offset for all the process except those with term 1s (integrator) in their
transfer function, such as liquid level in a tank or the gas pressure in a vessel.
Integral Control
iv) If we increase the gain, Kc to produce faster response, the system becomes more
oscillatory and may be led to instability.
Derivative Control
3. Use PID controller to increase the speed of the closed-loop response and retain ro-
bustness.
LT LT
LC
LC
LT LC
Use P Control
PC
PC
4. Flow control Flow system responds fast and can be controlled by a controller with
slow response. In-fact for stable operation it is good not to use fast controller.
FC
Use PI Control
(Fast system)
5. Temperature control
Response of process seldom is sluggish due to heat transfer between heating media to
process fluid and process fluid to sensor. Therefore to increase the speed of response
‘D’ is required.
TC
TI
6. Composition control
Response of processes is of same type of temperature control. Use PID control.
Consider the control system as shown in Fig. 5.2, which has been opened by disconnecting
the controller form final control element. Introduce a step change of magnitude A in the
variable C which actuates the final control element. In the case of a valve, C is the stem
position. Record the value of output with respect to time. The curve Ym (t) is called the
process reaction curve. Between Ym and C we have the following transfer function.
Ym (s)
GP RC (s) = = Gf (s) Gp (s) Gm (s) (5.1)
C (s)
Cohen and Coon observed that the response of most processing units to an input change,
such as the above, had s sigmoidal shape, which can be adequately approximated by the
68 CONTROLLER TUNING
C (s)
X (s) + Y (s)
Gc Gf Gp
–
Ym (s)
Gm
Ym (s) Ke−τd s
GP RC (s) = ⋍ (5.2)
C (s) τs + 1
which has three parameters: static gain K, dead time td , and time constant τ . From the
approximate response of Fig.(5.3), it is easy to estimate the values of the three parameters.
Thus,
S
td time
Cohen and Coon used the approximate model and estimated the values of the parameters
K, td , and τ as indicated above. Then they derived expressions for the best controller
settings using load changes and various performance criteria, such as, one quarter decay
ratio, minimum offset, minimum ISE. The results of their analysis are summarized below.
ZIEGLER-NICHOLS TUNING 69
Kc τI τD
1 τ td
P 1+ – –
K td 3τ
1 τ td 30 + 3td /τ
PI 0.9 + td –
K td 12τ 9 + 20td /τ
1 τ 5 td 6 − 2td /τ
PD + – td
K td 4 6τ 22 + 3td /τ
1 τ 4 td 32 + 6td /τ 4
PID + td td
K td 3 4τ 13 + 8td /τ 11 + 2td /τ
The assumption that the first order plus dead time system may be the poor approxi-
mation.
All physical processes encountered in a chemical plant are simple first order or multi-
capacity processes whose response has the general overdamped shape.
The oscillatory overdamped behaviour is produced mainly by the presence of feed-
back controllers.
The gain of PI controller is lower than that of P controller as integral action makes the
system more sensitive, which may lead to instability.
The stabilising effect of derivative control mode allows the use of higher gains in the
PID controller.
Draw a Bode plot for a system (G) without controller as shown in Fig. 5.2. Find cross-over
frequency(ωco) and AR at cross-over frequency (ARco ).
The ultimate gain, Ku is
1
Ku =
ARco
The ultimate period Pu is defined as the period of the sustained cycling that would occur
if a proportional controller with gain Ku were used.
2π
Pu = time/cycle
ωco
Kc τI τD
P 0.5Ku – –
PI 0.45Ku Pu /1.2 –
PID 0.6Ku Pu /2 Pu /8
******************
CHAPTER 6
Scicos is a graphical dynamical system modeler and simulator. User can create block dia-
grams to model and simulate the dynamics of hybrid dynamical systems (continuous and
discrete time) and compile such models into executable code. It is used for signal pro-
cessing, systems control, queuing systems, and to study physical and biological systems.
It is developed in and distributed with the scientific software package SciLab available
for downloading at http://www.scilab.org . Scicos is available as freeware and
equally competent to Simulink tool of MATLAB, which is an expensive option.
Features of SciCos
Scicos contains a graphical editor that can be used to construct block diagram models of
dynamical systems. The blocks can come from various palettes provided in Scicos or can
be user-defined. Different Palettes available are as below
Annotations palette
Discontinuities palette
DEVELOPING MODEL 73
Electrical palette
Implicit palette
Sources palette
– Sources pal : Sources palette
– CLOCK c : Activation clock
– CONST m : Constant
– CURV f : Curve
Counter : Counter
– FROMWSB : Data from Scilab workspace to Xcos
– GENSIN f : Sine wave generator
– GENSQR f : Square wave generator
– Modulo Count : Modulo counter (0 to N counter)
– RAMP : Ramp
– RAND m : Random generator
– READAU f : Read AU sound file
– READC f : Read binary data
– RFILE f : Read from input file
– SAWTOOTH f : Sawtooth generator
– STEP FUNCTION : Step Function
– SampleCLK : Sample Time Clock
– Sigbuilder : Signal creator/generator
– TIME f : Time
– TKSCALE : Adjust value with a graphical widget.
Thermohydraulics palette
– ThermoHydraulics pal : Thermal-Hydraulics toolbox
– Bache : Thermal-hydraulic tank (reservoir)
– PerteDP : Thermal-hydraulic pipe
– PuitsP : Thermal-hydraulic drain (well)
– SourceP : Thermal-hydraulic constant pressure source
– VanneReglante : Thermal-hydraulic control valve
User defined functions palette
– Userdefinedfunctions pal : User defined functions palette
– CBLOCK : New C
– DSUPER : Masked super block
– EXPRESSION : Mathematical expression
– MBLOCK : Modelica generic block
– SUPER f : Super block
– c block : C language
DRAWING BLOCKS 79
Select the required block from Pallet browser. Write click on the block to get submenu.
Click on Add to <name of the file that you have opened or *untitled-xcos if unsaved new
file> (see Fig. 6.1). This operation can be alternatively performed by dragging block icon
from Pallet browser to diagram window.
Block connection is quite user-friendly and can be done easily with mouse operation. Take
cursor near to the output port of the block, as soon as cursor is on the port, it will be
highlighted (Default colour is green) , this indicates the port is ready for the connection.
Left click on the highlighted port and drag the line till input port of downstream block and
release the click. If path between the two ports are not in straight line then the procedure
is slightly different. Left click on output port drag straight till the available straight path.
Release the click where diversion is required (connection mode will remain activated i.e.
thread will remain attached with cursor). Go to till the next diversion and click at new
diversion point (continuous press is not required), by this way it is possible to make “n´’
number of diversions. Finally click on the input port of downstream block the connection
is complete and connection mode will be deactivated. Connection in opposite direction is
also possible method is same only start point is input of downstream block and end point
is output of upstream block.
When connection is required between any port and branch of connection as shown in
Fig. 6.2, then click on port and drag the connection backward, as discussed in previous
80 INTRODUCTION TO SCICOS / XCOS
paragraph, upto the branch. As the cursor is on the branch, it will be highlighted this indi-
cates that port can be created on branch and is ready for the connection, click on highlighted
branch to connect.
Every block connected in diagram will produce proper result unless required parameters
are set as per users process condition. For example if we consider PID block: the gain,
integral time and derivation time is required to be set (see Fig. 6.3) by user to get desired
controlled output from the diagram. Simulation will produce result based on default values,
otherwise.
Parameters of any block can be edited by double clicking on the block or right click on
block to get block menu and click on Block parameter. The hot key is <Ctrl> + <B> on
selected block.
Once all blocks are connected and parameters are set control diagram is ready for simula-
tion. If one press “Start” button available on toolbar of diagram window, simulation will
run using default simulation settings. Default setting for stop time is very high and simu-
lation may run for very long time depend on speed of machine and complexity of digram
drawn. This default time can be reset before starting the run. For this click on “Simulation”
menu and select “Setup” submenu, alternatively this can be done by right click option also.
See Fig. 6.4 .
Then Change “Final integration time” to required value as shown in Fig. 6.5. Simulation
can be scaled with real time by specifying “Real time scaling”. Other options should be
changed only by advanced user, else default values are sufficient for the most of the control
problems.
It is a basic sink block, which represent the variable fed to it on time scale. It has only one
input port but multiple variables can be plot against time by using “MUX” or multiplexer,
see Fig. 6.6. The other input it requires is time ticks, which can be given using “CLOCK c”
block, which is an event handler. For beginners it is advised to change only highlighted
data in Fig. 6.7. Whereas to get complete data from beginning of the simulation run to
end on the graph, “Refresh period” should be greater than or equal to “Final integration
time” set for simulation. For details refer block help.
User should be careful when plotting many variables on same graph, as naming legend
is not accessible until run is complete, therefore it is required to track corresponding graph
manually. The sequence is variable fed to top of the “MUX” is first variable and last is
the bottommost. Colour code for each plot graph is as per sequence specified in parameter
window (see Fig. 6.7) and is “1, 3, 5, 7, 9, 11, 13, 15” unless changed by user.
It is very easy to set parameters for PID block. See Fig. 6.3 to set gain, integral time and
derivative time. Same block can be used for any type of controller (P, PI, PD or PID) by
assigning zero for the parameter which is not applicable.
6.8 Super-Blocks
This block opens up a new Xcos window for editing a new block diagram. This diagram
describes the internal functions of the super block. See Fig. 6.8.
Figure 6.8 Example of Super-block (in frame) and its internal block diagram
Super block inputs and outputs (regular or event) are designated by special (input or
output) blocks.
Regular input blocks must be numbered from 1 to the number of regular input ports.
Regular input ports of the super block are numbered from the top of the block shape to the
bottom. Regular output ports must be numbered from 1 to the number of regular output
ports. Regular output ports of the super block are numbered from the top of the block shape
to the bottom. Event input blocks must be numbered from 1 to the number of event input
ports. Event input ports of the super block are numbered from the left of the block shape
to the right. Event output ports must be numbered from 1 to the number of event output
84 INTRODUCTION TO SCICOS / XCOS
ports. Event output ports of the super block are numbered from the left of the block shape
to the right.
Super-block helps to model the system from basic principles and can be used for any
process model including but not limited to distillation column, reactors, heat exchangers,
batch reactors, etc.
When you select this menu item you obtain dialog-box as shown in Fig. 6.9. You can
enter here Scilab instructions for defining the symbolic Xcos parameters used in block
definitions or to do whatever you want.
These instructions will be evaluated each time the diagram is loaded. If you change
the value of a symbolic Xcos parameters in the context, all the blocks that contains this
symbolic parameter are updated when you click on OK. For example if you want to set the
value of π and other parameters as shown in Fig. 6.9 .
******************
PART II
INSTRUMENTATION
CHAPTER 7
FLOW MEASUREMENT
7.1.1 Rotameter
Rotameters (also known as variable-area flowmeters) are typically made from a tapered
glass tube that is positioned vertically in the fluid flow (Figure 7.1). A float that is the same
size as the base of the glass tube rides upward in relation to the amount of flow. Because
the tube is larger in diameter at the top of the glass than at the bottom, the float resides
at the point where the differential pressure between the upper and lower surfaces balance
the weight of the float. In most rotameter applications, the flow rate is read directly from a
scale inscribed on the glass; in some cases, an automatic sensing device is used to sense the
level of the float and transmit a flow signal. These transmitting rotameters are often made
from stainless steel or other materials for various fluid applications and higher pressures.
Rotameters may range in size from 1/4 inch to greater then 6 inches. They measure a wider
band of flow (10 to 1) than an orifice plate with an accuracy of 2 percent, and a maximum
operating pressure of 300 psig when constructed of glass. Rotameters are commonly used
for purge flows and levels.
proportional to the fluid velocity and, consequently, to the overall volume flow rate. A
magnetic coil outside the meter produces an alternating voltage as each blade cuts the coils
magnetic lines of flux. Each pulse, therefore, represents a discrete volume of liquid. Since
the rotor is usually made of stainless steel, it is compatible with many fluids. However, the
bearings, which are necessary to support the rotor and which must allow it to spin freely
at high speeds, require a fairly clean process. Turbine meters are typically available in
pipeline sizes from less than 1/2 inch through 12 inches. They have fast response and good
accuracy.
Another type of ultrasonic meter uses the Doppler effect. This type of ultrasonic meter
uses two tranducer elements as well, but each is mounted in the same case on one side
of the pipe. An ultrasonic sound wave of constant frequency is transmitted into the fluid
by one of the elements. Solids or bubbles within the fluid reflect the sound back to the re-
92 FLOW MEASUREMENT
ceiver element. The Doppler principle states that there will be a shift in apparent frequency
or wavelength when there is relative motion between transmitter and receiver. Within the
Doppler flowmeter, the relative motion of the reflecting bodies suspended within the fluid
tends to compress the sound into a shorter wavelength (high frequency). This new fre-
quency measured at the receiving element is electronically compared with the transmitted
frequency to provide a frequency difference that is directly proportional to the flow veloc-
ity in the pipe. In contrast to the transit-time method, Doppler ultrasonic meters require
entrained gases or suspended solids within the flow to function correctly.
While ultrasonic meters have several advantages, including freedom from obstruction in
the pipe and negligible cost-sensitivity with respect to pipe diameter, their performance is
very dependent on flow conditions. A fair accuracy is attainable with ultrasonic flowmeters
when properly applied to appropriate fluids.
downstream sensor receives progressively more heat than the upstream sensor, causing an
imbalance to occur in the bridge circuit. The temperature difference is proportional to mass
flow rate and an electrical output representing this is developed by the bridge circuit.
Thermal meters are commonly applied to gas streams only; in fact, to gas streams where
the transfer of heat to and from the stream is a usual element of the metering process.
Measuring this heat transfer supplies data from which a mass flow rate may be calculated.
As mass meters, thermal meters operate independent of density, pressure, and viscosity.
****************
CHAPTER 8
TEMPERATURE MEASUREMENT
8.1 Thermometers
formative for thermometry: Zeroth Law - There exists a topological line which serves as a
coordinate manifold of material behaviour. The points of the manifold are called ’hotness
levels’, and is called the ’universal hotness manifold’. To this information there needs to
be added a sense of greater hotness; this sense can be had, independently of calorimetry,
of thermodynamics, and of properties of particular materials, from Wien’s displacement
law of thermal radiation: the temperature of a bath of thermal radiation is proportional,
by a universal constant, to the frequency of the maximum of its frequency spectrum; this
frequency is always positive, but can have values that tend to zero.
There are several principles on which empirical thermometers are built, as listed in the
section of this article entitled ’Primary and secondary thermometers’. Several such princi-
ples are essentially based on the constitutive relation between the state of a suitably selected
particular material and its temperature. Only some materials are suitable for this purpose,
and they may be considered as ’thermometric materials’. Radiometric thermometry, in
contrast, can be only very slightly dependent on the constitutive relations of materials. In
a sense then, radiometric thermometry might be thought of as ’universal’. This is because
it rests mainly on a universality character of thermodynamic equilibrium, that it has the
universal property of producing blackbody radiation.
The precision or resolution of a thermometer is simply to what fraction of a degree it is
possible to make a reading. For high temperature work it may only be possible to measure
to the nearest 10◦ C or more. Clinical thermometers and many electronic thermometers are
usually readable to 0.1◦ C. Special instruments can give readings to one thousandth of a
degree. However, this precision does not mean the reading is true or accurate. Thermome-
ters which are calibrated to known fixed points (e.g. 0 and 100◦ C) will be accurate (i.e.
will give a true reading) at those points. Most thermometers are originally calibrated to a
constant-volume gas thermometer. In between a process of interpolation is used, generally
a linear one. This may give significant differences between different types of thermometer
at points far away from the fixed points. For example the expansion of mercury in a glass
thermometer is slightly different from the change in resistance of a platinum resistance of
the thermometer, so these will disagree slightly at around 50◦ C. There may be other causes
due to imperfections in the instrument, e.g. in a liquid-in-glass thermometer if the capillary
tube varies in diameter.
For many purposes reproducibility is important. That is, does the same thermometer
give the same reading for the same temperature (or do replacement or multiple thermome-
ters give the same reading)? Reproducible temperature measurement means that compar-
isons are valid in scientific experiments and industrial processes are consistent. Thus if the
same type of thermometer is calibrated in the same way its readings will be valid even if it
is slightly inaccurate compared to the absolute scale.
An example of a reference thermometer used to check others to industrial standards
would be a platinum resistance thermometer with a digital display to 0.1◦ C (its precision)
which has been calibrated at 5 points against national standards (18, 0, 40, 70, 100◦ C) and
which is certified to an accuracy of ±0.2◦C.
According to British Standards, correctly calibrated, used and maintained liquid-in-
glass thermometers can achieve a measurement uncertainty of 0.01 C in the range 0 to
100 C, and a larger uncertainty outside this range: ±0.05◦ C up to 200 or down to 40◦ C,
±0.2◦ C up to 450 or down to 80◦ C.
THERMOCOUPLES 97
8.2 Thermocouples
Any junction of dissimilar metals will produce an electric potential related to temper-
ature. Thermocouples for practical measurement of temperature are junctions of specific
alloys which have a predictable and repeatable relationship between temperature and volt-
age. Different alloys are used for different temperature ranges. Properties such as resis-
tance to corrosion may also be important when choosing a type of thermocouple. Where
the measurement point is far from the measuring instrument, the intermediate connection
can be made by extension wires which are less costly than the materials used to make the
sensor. Thermocouples are usually standardized against a reference temperature of 0 de-
grees Celsius; practical instruments use electronic methods of cold-junction compensation
to adjust for varying temperature at the instrument terminals. Electronic instruments can
also compensate for the varying characteristics of the thermocouple, and so improve the
precision and accuracy of measurements.
When any conductor is subjected to a thermal gradient, it will generate a voltage. This
is now known as the thermoelectric effect or Seebeck effect. Any attempt to measure this
voltage necessarily involves connecting another conductor to the ”hot” end. This additional
conductor will then also experience the temperature gradient, and develop a voltage of its
own which will oppose the original. Fortunately, the magnitude of the effect depends on
the metal in use. Using a dissimilar metal to complete the circuit creates a circuit in which
the two legs generate different voltages, leaving a small difference in voltage available
for measurement. That difference increases with temperature, and is between 1 and 70
microvolts per degree Celsius (µV /◦ C) for standard metal combinations.
The voltage is not generated at the junction of the two metals of the thermocouple but
rather along that portion of the length of the two dissimilar metals that is subjected to
98 TEMPERATURE MEASUREMENT
a temperature gradient. Because both lengths of dissimilar metals experience the same
temperature gradient, the end result is a measurement of the difference in temperature
between the thermocouple junction and the reference junction.
8.2.2 Types
Certain combinations of alloys have become popular as industry standards. Selection of
the combination is driven by cost, availability, convenience, melting point, chemical prop-
erties, stability, and output. Different types are best suited for different applications. They
are usually selected based on the temperature range and sensitivity needed. Thermocouples
with low sensitivities (B, R, and S types) have correspondingly lower resolutions. Other
selection criteria include the inertness of the thermocouple material, and whether it is mag-
netic or not. Standard thermocouple types are listed below with the positive electrode first,
followed by the negative electrode.
Type K (chromel 90% nickel and 10% chromiumalumel 95% nickel, 2% manganese,
2% aluminium and 1% silicon) is the most common general purpose thermocouple with
a sensitivity of approximately 41 µV /◦ C, chromel positive relative to alumel. It is inex-
pensive, and a wide variety of probes are available in its 200◦C to +1250◦C / -330◦ F to
+2460◦F range. Type K was specified at a time when metallurgy was less advanced than
it is today, and consequently characteristics may vary considerably between samples. One
of the constituent metals, nickel, is magnetic; a characteristic of thermocouples made with
magnetic material is that they undergo a deviation in output when the material reaches its
Curie point; this occurs for type K thermocouples at around 350◦C .
Type E (chromelconstantan) has a high output (68 µV /◦ C) which makes it well suited to
cryogenic use. Additionally, it is non-magnetic. Wide range is -50 to 740◦C and Narrow
range is -110 to 140◦C.
Type J (ironconstantan) has a more restricted range than type K (40 to +750◦ C), but
higher sensitivity of about 55 µV /◦ C. The Curie point of the iron (770◦C) causes an
abrupt change in the characteristic, which determines the upper temperature limit.
THERMOCOUPLES 99
Type C (tungsten 5% rhenium tungsten 26% rhenium) thermocouples are suited for
measurements in the 0◦ C to 2320◦C range. This thermocouple is well-suited for vacuum
furnaces at extremely high temperatures. It must never be used in the presence of oxygen
at temperatures above 260◦ C.
Type M thermocouples use a nickel alloy for each wire. The positive wire (20 Alloy)
contains 18% molybdenum while the negative wire (19 Alloy) contains 0.8% cobalt. These
thermocouples are used in vacuum furnaces for the same reasons as with type C. Upper
temperature is limited to 1400◦C. It is less commonly used than other types.
All metals are electrical conductors which at all but very low temperatures offer resistance
to the passage of electric current. The electrical resistance exhibited by a conductor is mea-
sured in ohms. The proportional relationship of electrical current and potential difference
is given by Ohm’s law:
R = E/I
L
R=ρ
A
8.4 Thermisters
8.5 Pyrometers
This output is used to infer the object’s temperature. Thus, there is no need for direct
contact between the pyrometer and the object, as there is with thermocouples and resistance
temperature detectors (RTDs).
The potter Josiah Wedgwood invented the first pyrometer to measure the temperature
in his kilns. Modern pyrometers became available when the first disappearing filament
pyrometer was built by L. Holborn and F. Kurlbaum in 1901. This device superimposed
a thin, heated filament over the object to be measured and relied on the operators eye to
detect when the filament vanished. The object temperature was then read from a scale on
the pyrometer.
The temperature returned by the vanishing filament pyrometer and others of its kind,
called brightness pyrometers, is dependent on the emissivity of the object. With greater
use of brightness pyrometers, it became obvious that problems existed with relying on
knowledge of the value of emissivity. Emissivity was found to change, often drastically,
with surface roughness, bulk and surface composition, and even the temperature itself.
To get around these difficulties, the ratio or two-color pyrometer was developed. They
rely on the fact that Planck’s law, which relates temperature to the intensity of radiation
emitted at individual wavelengths, can be solved for temperature if Plancks statement of
the intensities at two different wavelengths is divided. This solution assumes that the emis-
sivity is the same at both wavelengths and cancels out in the division. This is known as
the gray body assumption. Ratio pyrometers are essentially two brightness pyrometers in
a single instrument. The operational principles of the ratio pyrometers were developed in
the 1920s and 1930s, and they were commercially available in 1939.
As the ratio pyrometer came into popular use, it was determined that many materials,
of which metals are an example, do not have the same emissivity at two wavelengths. For
these materials, the emissivity does not cancel out and the temperature measurement is
in error. The amount of error depends on the emissivities and the wavelengths where the
measurements are taken. Two-color ratio pyrometers cannot measure whether a materials
emissivity is wavelength dependent.
PYROMETERS 103
To more accurately measure the temperature of real objects with unknown or changing
emissivities, multiwavelength pyrometers were envisioned at the US National Institute of
Standards and Technology and described in 1992. Multiwavelength pyrometers use three
or more wavelengths and mathematical manipulation of the results to attempt to achieve
accurate temperature measurement even when the emissivity is unknown, changing, and
different at all wavelengths.
**************
CHAPTER 9
LEVEL MEASUREMENT
This is the most commonly used visual process-level device. Gauge glasses are generally
classified as either transparent or reflex types. A transparent gauge glass consists of either
a glass tube or an arrangement of flat glass plates in some type of holder. Since the process
fluid level is viewed directly, the transparent gauge glass is normally used with opaque
fluids. The reflex type has reflecting prisms to aid in viewing transparent fluids. Caution
should be observed when handling and installing these and/or any tempered glass instru-
ment. Scratches or chips can reduce the strength of the glass and cause safety problems.
Used in large, unpressurized storage tanks where the entire full-toempty range must be
measured.
Used on either unpressurized or pressurized vessels where only a small range of level must
be measured. The range of measurement is determined by the length of the float arm, but
usually is between a few inches and a few feet.
Instrumentation & Process Control. 105
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
106 LEVEL MEASUREMENT
One of the most frequently used level measuring devices is the torque tube displacer. It
is attached to the free end of a torque tube which has elastic properties that permit it to
twist as the displacer tries to float. This slight turning of the free end of the torque tube
is connected to an indicator or transmitter. Torque tube displacement gauges are normally
limited to level spans of ten feet.
The true level of a liquid can be determined by dividing the measured hydrostatic head by
the density of the liquid. This method requires a knowledge of the densities of all phases
of the liquid. Some of these methods are: pressure gauge, bubble tube, and differential
pressure measurement. The bubbler is used at vacuum and low pressures and is especially
good for services such as molten sulphur and dirty liquids. In boiling-liquid service, a
condensate trap must be used on the vapour leg. The level of trapped condensate in the
vapour leg will usually be different than the vessel liquid level, requiring compensation of
the transmitter.
ELECTRICAL TYPE LEVEL GAUGES AND SWITCHES 107
Two common types of level gauges are the float-magnetic gauge configuration and the
conductive type shown in Fig. 9.3. Slight tension on the tape reel permits the follower
magnet to track the float at the liquid level in the device in Fig. 9.3a. The position of the
reel represents the level and is either connected to an indicating device or a transmitter.
The device shown in Fig. 9.3b illustrates the use of a conductive fluid for high and low
level alarm indication.
*****************
PART III
CONTROL VALVE
Process plants consist of hundreds, or even thousands, of control loops all networked to-
gether to produce a product to be offered for sale. Each of these control loops is designed
to keep some important process variable such as pressure, flow, level, temperature, etc.
within a required operating range to ensure the quality of the end product. Each of these
loops receives and internally creates disturbances that detrimentally affect the process vari-
able, and interaction from other loops in the network provides disturbances that influence
the process variable.
To reduce the effect of these load disturbances, sensors and transmitters collect informa-
tion about the process variable and its relationship to some desired set point. A controller
then processes this information and decides what must be done to get the process variable
back to where it should be after a load disturbance occurs. When all the measuring, com-
paring, and calculating are done, some type of final control element must implement the
strategy selected by the controller.
The most common final control element in the process control industries is the control
valve. The control valve manipulates a flowing fluid, such as gas, steam, water, or chemical
compounds, to compensate for the load disturbance and keep the regulated process variable
as close as possible to the desired set point.
Many people who talk about control valves or valves are really referring to a control
valve assembly. The control valve assembly typically consists of the valve body, the inter-
nal trim parts, an actuator to provide the motive power to operate the valve, and a variety of
additional valve accessories, which can include positioners, transducers, supply pressure
regulators, manual operators, snubbers, or limit switches. Other chapters of this handbook
supply more detail about each of these control valve assembly components.
Whether it is called a valve, control valve or a control valve assembly is not as important
as recognizing that the control valve is a critical part of the control loop. It is not accurate
to say that the control valve is the most important part of the loop. It is useful to think of a
control loop as an instrumentation chain. Like any other chain, the whole chain is only as
good as its weakest link. It is important to ensure that the control valve is not the weakest
link.
10.1 Actuator
A pneumatic, hydraulic, or electrically powered device that supplies force and motion to
open or close a valve. An actuator, including all the pertinent accessories that make it a
complete operating unit.
A spring, or group of springs, enclosed in the yoke or actuator casing that moves the
actuator stem in a direction opposite to that created by diaphragm pressure. The part that
connects the actuator to the valve stem and transmits motion (force) from the actuator to
the valve.An extension of the piston actuator stem to provide a means of transmitting piston
motion to the valve positioner. The net force from an actuator that is available for actual
positioning of the valve plug.
The methods of valve actuation fall into one of the following categories:
1. Linear
2. Part-turn
3. Multi-turn
Each of the above can be powered by one of the following power sources:
1. Hydraulic
2. Electric
ACTUATOR 113
3. Pneumatic
When choosing the type of actuator the engineer must consider the following factors:
1. The actuator must deliver enough torque to move and seat the valve with the mini-
mum power supply available and also maintain the required position (open, closed, or
intermediate) under the worst flow conditions that the valve might experience.
2. The actuator must be capable of completing the travel, that is, 90, 180, and multi-turn
at the required speed.
3. The actuator must include a device that prevents excessive forces being applied to the
valve under adverse power supply conditions.
Diaphragm types Diaphragm actuators are usually designed for linear motion, although
it is possible to have rotary motion designs. Pneumatic actuators are usually attached to
114 CONTROL VALVE
the body of the valve by means of a threaded yoke, which can be fitted with a pointer to
indicate the position of the valve.
A flexible plate diaphragm is held between two separate casings that are bolted together
to form two airtight chambers. There are two independent air supplies to the chambers
through which compressed air either can be introduced or can escape. As air is introduced
into one chamber, this causes the diaphragm to flex and this motion either extends or re-
tracts the actuator stem, which is attached to the closure element. The more air that is
supplied the greater the movement of the stem.
In the single-acting design a spring is introduced to the opposite air chamber to assist
the return of the diaphragm when the air pressure is lessened. This spring also acts as a
fail-safe mechanism allowing the valve to return to an open or a closed position, when
there is a power failure.
Direct acting is where the air pressure introduced forces the diaphragm and the attached
valve stem down to the required location. Air failure will cause the stem to be retracted out
of the valve body and open the valve, and make sure it remains open.
Reverse acting is where the air pressure introduced forces the diaphragm and attached
valve stem up to the required position. Any loss of air pressure will allow the stem to move
to the extended position and close the valve. The valve will remain closed until the air
supply is reintroduced. Direct acting for rotary valves is where the air pressure introduced
forces the diaphragm and attached valve stem down and, according to its orientation, the
valve will be either opened or closed. Diaphragm valves are relatively cheap, of a basic
construction, and easy to maintain. They are very well-suited for low thrust requirements
in the lower-pressure piping classes.
Disadvantages of the diaphragm actuators of the linear design are that they can create
height problems on smaller valves in restricted locations and on larger sized valves casings
can become excessive in weight.
Piston type Although not initially the first choice of pneumatic design, the piston ac-
tuator is becoming more commonly used as process control becomes more sophisticated.
This design consists of a cylinder that contains a sliding piston, which is sealed with elas-
tomer O-rings. The actuator cylinder is attached to the valve by a cast yoke that allows for
sufficient room on the stem to accommodate positioners and other accessories.
Piston actuators are usually double acting with an air supply to both chambers and a
positioner to take the signal and supply or bleed air from the desired air chambers. Pistons
generate a linear force that either can be transmitted directly to the actuator stem or has to
be converted to a rotary force for use on part-turn valves. As most of the part-turn valves
require only 90 movement, this can be achieved by one of the following.
1. A scotch yoke actuator (Figures 8-2a and 8-2b) consists of a piston, a connecting
shaft, and a rotary pin.
2. A rack and pinion actuator (Figure 8-3) consists of a single or a double piston that is
coupled with an integral rack that drives the pinion.
4. A cam actuator consists of double pistons connected by bars with a cam and shaft
between them.
ACTUATOR 115
Advantages
1. Compressed air is convenient and relatively cheap to supply.
2. A piston is not self-locking and it can be used against a spring so it can be used for
single shot emergency operation.
3. When air is in contact with heat, an increase in pressure caused by thermal expansion
will assist the operation of the actuator.
4. Surplus air can be safely vented to the atmosphere.
5. The mechanical design makes it relatively cheaper than alternatives and easier to
maintain.
Disadvantages
1. Because there is no kinetic energy it is not possible to deliver an initial hammerblow
to unseat a wedge valve.
2. Air is a compressible medium and its ability to maintain a fix position is limited. This
may result in drifting with both gate and butterfly valves.
3. The design of the pneumatic actuator and the fact that it requires soft sealing rings
means that there are temperature limitations and the unit must be equipped with ade-
quate thermal insulation if there is a possibility that the actuator has to function during
a fire.
4. Air motors are susceptible to seizure because of ingress of foreign material, or internal
corrosion if the compressed air has not been sufficiently dried. This will greatly affect
the performance of the actuator.
5. The consumption of air for pneumatic motors will be high and this demand is not
always possible for the larger valves requiring higher torques.
Advantages
1. Electric motors run at high speeds that can be geared down to suit the required oper-
ating torques.
2. Owing to valve gearing, position stability can be maintained.
3. Electric motors can be integrated with process control systems.
4. Electric motors that have been adequately protected from the environment are ”clean”
and do not generate dirt or moisture.
5. Valves can be easily ”hooked up” to the electric power supply.
6. No surplus energy to be dispersed.
7. The electric supply generates a stiff stroke that does not fluctuate.
8. Compact in design.
Disadvantages
1. Expensive.
2. Complex in design and requires higher level of maintenance.
3. Stay put mode when there is a power failure.
4. Electric cables must be protected in a high temperature environment.
5. Electric power is not easily stored.
6. Electrical equipment must be protected from moisture.
7. Electric motors must be intrinsically safe in hazardous areas.
through small bore tubing. The pressure of the hydraulic fluid can be varied to supply
different torque outputs. This allows for more flexibility of energy sources and subsequent
outputs than is available with both electric and pneumatic actuators.
The energy output of double-acting actuators is constant, however with the spring return
type there is a loss of energy during the compression of the spring.
Advantages
4. The hydraulic actuator is compact in size and it can therefore be coated and insulated
economically.
Disadvantages
2. The cost for providing a hydraulic tubing system to supply a network could be eco-
nomically prohibitive.
3. Remote locations will require long tubing runs and pressure drops that in some cases
will prohibit the use of hydraulic powered actuators.
5. The hydraulic fluid supply has a relatively high thermal expansion rate and the tubing
system will have to be protected from possible fire. Also because of possible thermal
expansion, it may be necessary to install a relief device to combat over-pressurization.
10.2 Positioner
1. Pneumatic Positioners: A pneumatic signal (usually 3-15 psig) is supplied to the po-
sitioner. The positioner translates this to a required valve position and supplies the
valve actuator with the required air pressure to move the valve to the correct position.
2. Analog I/P PositionerThis positioner performs the same function as the one above,
but uses electrical current (usually 4-20 mA) instead of air as the input signal.
118 CONTROL VALVE
3. Digital ControllerAlthough this instrument functions very much as the Analog I/P
described above, it differs in that the electronic signal conversion is digital rather than
analog. The digital products cover three categories.
Digital Non-Communicating: A current signal (4-20 mA) is supplied to the po-
sitioner, which both powers the electronics and controls the output.
HART: This is the same as the digital non-communicating but is also capable of
two-way digital communication over the same wires used for the analog signal.
Fieldbus: This type receives digitally based signals and positions the valve using
digital electronic circuitry coupled to mechanical components. An all-digital control
signal replaces the analog control signal. Additionally, two-way digital communica-
tion is possible over the same wires. Fieldbus technologies benefit the end user by
enabling improved control architecture, product capability and reduced wiring.
10.3 Cage
A part of a valve trim that surrounds the closure member and can provide flow characteri-
zation and/or a seating surface. It also provides stability, guiding, balance, and alignment,
and facilitates assembly of other parts of the valve trim. The walls of the cage contain
openings that usually determine the flow characteristic of the control valve. Various cage
styles are shown in Fig.10.3.
The flow characteristic of a control valve is the relationship between the flow rate through
the valve and the valve travel as the travel is varied from 0 to 100%. Inherent flow char-
acteristic refers to the characteristic observed during flow with a constant pressure drop
across the valve. Installed flow characteristic refers to the characteristic obtained in ser-
vice when the pressure drop varies with flow and other changes in the system.
Fig.10.4 illustrates typical flow-characteristic curves. The quick-opening flow charac-
teristic provides for maximum change in flow rate at low valve travel with a fairly linear
CONTROL VALVE SIZING 119
relationship. Additional increases in valve travel give sharply reduced changes in flow rate.
When the valve plug nears the wide open position, the change in flow rate approaches zero.
In a control valve, the quick-opening valve plug is used primarily for on-off service; how-
ever, it is also suitable for many applications where a linear valve plug would normally be
specified.
In the equal-percentage flow characteristic, equal increments of valve travel produce
equal percentage changes in the existing flow. The change in flow rate is always propor-
tional to the flow rate just before the change in position is made for a valve plug, disc, or
ball position. When the valve plug, disc, or ball is near its seat and the flow is small, the
change in flow rate will be small; with a large flow, the change in flow rate will be large.
Valves with an equal-percentage flow characteristic are generally used for pressure control
applications. They are also used for other applications where a large percentage of the total
system pressure drop is normally absorbed by the system itself, with only a relatively small
percentage by the control valve. Valves with an equal-percentage characteristic should also
be considered where highly varying pressure drop conditions can be expected.
The modified parabolic-flow characteristic curve falls between the linear and the equal-
percentage curve.
Note: Where detailed process knowledge is lacking, as a rule of thumb, use equal-
percentage characteristics at 70% opening for the valve sizing.
Control valve is proprietary item and need to sized or select from available sizes rather
than designing it. Process engineer should decide the size of control valve to suit process
conditions.
stream which occurs just downstream of the actual physical restriction. When the velocity
at the vena-contracta reaches sonic velocity, additional increases in pressure drop, ∆P , (by
reducing downstream pressure) produce no increase in flow.
In the ISA sizing procedure critical flow limitations are addressed by calculating , the
expansion factor, for utilization within the actual sizing equation.
X
Y = 1−
3Fk Xc
Critical pressure drop, and thus critical flow, is realized when X ≥ Fk Xc . Therefore,
since the flow can’t exceed that produced at the critical pressure drop the value of in the
following sizing equations should never be less than 0.67.
X 1
Y =1− = 1 − = 0.67
3Fk Xc 3
Likewise the value of X in the equations should never exceed Fk Xc .
Cavitation: In a control valve, the fluid stream is accelerated as it flows through the
restricted area of the orifice, reaching maximum velocity at the vena contracta. Simultane-
ously, as the velocity increases, an interchange of energy between the velocity and pressure
heads forces a reduction in the pressure.
If the velocity increases sufficiently, the pressure at the vena-contracta will be reduced
to the vapour pressure of the liquid. At this point, vapour cavities or bubbles, the first stage
in cavitation, appear in the fluid stream. Downstream from the vena-contracta, the fluid
stream undergoes a deceleration process resulting in a reversal of the energy interchange
which raises the pressure above the liquid vapour pressure.
The vapour cavities, or bubbles, cannot exist at the increased pressure and are forced to
collapse or implode. These implosions are the final stage in the cavitation process. They
potentially produce noise, vibration, physical damage, and other performance problems.
In order to avoid cavitation completely, the pressures at all points within the valve must re-
main above the vapour pressure of the liquid. Cavitation can occur as the result of changes
in the mean pressures through the valve, but also from localized changes due to flow sep-
arations and other local disturbances that are not indicated by examining just the mean
inlet, vena-contracta, and outlet pressures. Determining when a problem-causing level of
cavitation is present represents a considerable challenge.
p
Non-vaporizing Mass Flow w = 2.73Fp Cv (P1 − P2 ) γ1
r
P1 − P2
Non-vaporizing Volumetric Flow q = 0.0865Fp Cv
Gf
p
Vaporizing Mass Flow w = 2.73FL Cv (P1 − FF Pv ) γ1
r
P1 − FF Pv
Vaporizing Volumetric Flow q = 0.0865FL Cv
Gf
Table 10.1 Equations for Control Valve Sizing for liquid service
122 CONTROL VALVE
5. From the valve manufacturer’s sizing data, select a specific valve type and size such
that the listed Cv is equal to or greater than the calculated Cv .
6. See Cavitation and consult the manufacturer’s data for appropriate valve cavitation
operating limits.
*****************
CHAPTER 11
Along with controller tuning, arrangement of controller with process also change the be-
haviour of process. It is very important to establish proper system between measured and
manipulated variables. Different process behave differently as the model governing the
process is different. Therefore it is necessary to analyse the process model before using
particular control strategy.
In feedforward control disturbances are detected and eliminated before it destabilise the
system. Referring to the Fig. 11.1, if ‘D’ is disturbance to be entered in the system and
‘Ysp ’ is set point to the controller then the correction ‘U’ enter in the system at same time
‘D’ enter, which counters the destabilisation effect on system. By this way virtually system
remains always at stable condition. [6]
This is also termed predictive control and can be usefully employed where there are
significant time lags between a load change and its subsequent effect upon a system output
variable.
Feedforward control works exactly opposite to feedback control, where there is al-
lowance of error to occur. Lets consider an example of controller over a boiler. Objec-
tive of control action is to control the level in boiler drum. This can be achieved by using
feedback loop for level control as shown in Fig 11.2.
Instrumentation & Process Control. 123
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
124 ADVANCED CONTROL STRATEGIES
But the main objective from boiler is to get steam at desired flow rate which can be
controlled using above discussed control mechanism. Therefore a feedforward controller
(see Fig. 11.3)can be placed across boiler drum which measure the flow rate of steam and
manipulates the flow rate of feed water which automatically controls the level in the drum.
Water level in boiler drum is generally not a main objective of the control but it is very
crucial in safety point of view. Drop in level may expose the heating tubes which cause
overheating of tubes. Increase in level floods the boiler and ultimately ends up with no
steam flow. Therefore objective of control changes to multi-variable. This situation can be
handle easily by using combination of feedback and feedforward control as shown in Fig.
11.4.
Advantages:
Requires little knowledge about the process (For example, a process model is not
necessary).
FEEDFORWARD CONTROL 125
Disadvantages:
FB control takes no corrective action until a deviation in the controlled variable oc-
curs.
FB control is incapable of correcting a deviation from set point at the time of its
detection.
Theoretically not capable of achieving perfect control.
126 ADVANCED CONTROL STRATEGIES
For frequent and severe disturbances, process may not settle out.
Advantages:
Disadvantages:
Ideal controllers that result in ”perfect control: may be physically unrealizable. Use
practical controllers such as lead-lag units
As the name implies, ratio control involves keeping constant the ratio of two or more flow
rates. The flow rate of the ”wild” or uncontrolled stream is measured, and the flow rate of
the manipulated stream is changed to keep the two streams at a constant ratio with each
other. Common examples include holding a constant reflux ratio on a distillation column,
keeping stoichiometric amounts of two reactants being fed into a reactor, and purging off
a fixed percentage of the feed stream to a unit. Ratio control is often part of a feedforward
control structure.[4]
Ratio control is achieved by two alternative schemes, shown in Fig. 11.5 and 11.6. In
the scheme shown in Fig. 11.5, the two flow rates are measured and their ratio is computed
(by the divider). This computed ratio signal is fed into a conventional PI controller as
the process variable (PV) signal. The set point of the ratio controller is the desired ratio.
The output of the controller goes to the valve on the manipulated variable stream, which
changes its flow rate in the correct direction to hold the ratio of the two flows constant.
This computed ratio signal can also be used to trigger an alarm or an interlock.
In the scheme shown in Fig. 11.6, the wild flow is measured and this flow signal is
multiplied by a constant, which is the desired ratio. The output of the multiplier is the set
point of a remote-set how controller on the manipulated variable.
If orifice plates are used as flow sensors, the signals from the differential-pressure trans-
mitters are really the squares of the flow rates, Some instrument engineers prefer to put in
square-root extractors and convert everything to linear flow signals.
Figure 11.5 Ratio control – Method I Figure 11.6 Ratio control – Method II
One of the most useful concepts in advanced control is cascade control. A cascade control
structure has two feedback controllers, with the output of the primary (or master) con-
troller changing the set point of the secondary (or slave) controller. [4] The output of the
secondary goes to the valve, as shown in Fig. 11.8. There are two purposes for cascade
control:
1. to eliminate the effects of some disturbances, and
2. to improve the dynamic performance of the control loop.
To illustrate the disturbance rejection effect, consider the distillation column reboiler
shown in Fig. 11.7. Suppose the steam supply pressure increases. The pressure drop over
the control valve will bc larger, so the steam flow rate will increase. With the single-loop
tcmpcrafure controller, no correction will be made until the higher steam flow rate increases
the vapor boilup and the higher vapor rate begins to raise the temperature on tray 5. Thus,
the whole system is disturbed by a supply steam pressure change. With the cascade control
system, the steam flow controller will immediately see the increase in steam flow and will
128 ADVANCED CONTROL STRATEGIES
Figure 11.7 Distillation column reboiler Figure 11.8 Distillation column reboiler
temperature control - Conventional temperature control - Cascade
pinch back on the steam valve to return the steam flow rate to its setpoint. Thus, the reboiler
and the column are only slightly affected by the steam supply pressure disturbance.
Fig. 11.9 shows another common system where cascade control is used. The reactor
temperature controller is the primary controller; the jacket temperature controller is the
secondary controller. The reactor temperature control is isolated by the cascade system
from disturbances in cooling-water inlet temperature and supply pressure.
This system is also a good illustration of the improvement in dynamic performance that
cascade control can provide in some systems. The closed loop time constant of the reactor
temperature will be smaller when the cascade system is used than when the reactor temper-
ature sets the cooling water make-up valve directly. Therefore, performance is improved
by using cascade control.
There are two types of cascade control: series cascade and parallel cascade. The two
examples just discussed are both series cascade systems because the manipulated vari-
APPLICATION OF FEEDFORWARD, FEEDBACK AND CASCADE CONTROL 129
able affects the secondary controlled variable, and then the secondary variable affects the
primary variable. In a parallel cascade system the manipulated variable affects both the
primary and the secondary controlled variables directly. Thus, the two processes are ba-
sically different and result in different dynamic characteristics. We quantify these ideas
later.
A typical example of feedback, feedforward and cascade control is the response of com-
position of the overhead product stream of distillation process to a perturbation in feed
composition, and column temperature. [6]
A typical arrangement is illustrated in Fig. 11.10 where the variation in feed composi-
tion are measured by a suitable composition analyser. The signal from the analyser is fed
directly to the feedforward controller, the output of which is cascaded on to the set point
of the reflux flow controller. Imperfection in feedforward control can often be overcome
by the addition of suitable feedback control loop into action. The reflux flow shown in Fig.
11.10 on the flow control in cascade with the boiling temperature of the liquid at an ap-
propriate point within the column. The inner (or slave) flow controller maintains a steady
reflux flowrate until a change occurs in boiling temperature or in feed composition – either
of which will vary the set point of the flow controller as required.
TC
CC Σ FC
Figure 11.10 Feedforward, feedback and cascade control for distillation column
The basic control layer is dominated by feed-back loops, eventually provided with feed-
forward actions to cope with disturbances.[3] The basic control layer will include some
cascaded control loops and simple models, such as for de-coupling of interactions, and
heat and mass balance control options. The demand on control, next to hands-off control,
is higher than in the past due to:
self-optimizing control of units applied for; stand-alone units and at inter- mediate
time spans between implementation of closed loop steady state operation optimization
set points; and
bases for model predictive control and closed loop process optimization.
To achieve robustness it is vital that any basic model applied for control is preferably
solved by an analytical technique. Iterations and optimization are to be avoided, as these
might fail in finding a solution unless sufficient provisions are made.
Control design requires a controllability analysis to select the most robust control solu-
tion. The result of the analysis may include the need for process modifications to enable
control, reflecting interaction between process design and control design.
A procedure for controllability analysis of a process plant has the following sequential
steps:
2. Evaluate the open loop stability of the process based on static models.
3. Divide the process into separate process sections; be aware that a process section
must include a recycle stream from another section, as applied for reactors with un-
converted reactants.
6. Determine feasible pairing options in respect of plant wide control and unit control.
8. Evaluate dynamic interaction of the reduced set of selected pairings. In case of eval-
uation of the controllability during process synthesis this information is input for the
final flowsheet selection.
10. Tune and test the performance of the controller in a dynamic simulation.
Manipulated and controlled variables are respectively input and output variables which can
be selected by qualitative criteria as formulated.[3]
DETERMINE THE DIFFERENT VARIABLES 131
Select variables which are not self-regulating; variables which result in a new steady-
state situation without a feed-back control should not be selected. An example of a
self-regulating system is an hydraulic overflow system. As is often applied in decanter
systems, this is termed a simple self-regulating system.
Select variables which exceed the constraint of the process. Safety constraints, as well
the tendency to operate close to its constraints under optimized conditions, requires
that controlled variables are selected which exceed the con- strained values.
Choose variables which directly measure the condition and quality of the process
streams, or that have a strong relation to it. As composition measurements are ex-
pensive and often have long response times, the preference is to select variables that
are easy to measure with short response times, but which have a direct relation to the
property of interest.
Selection of output variables which have a significant interaction with other controlled
variables are preferred. Closed loop performance is improved by stabilizing control
variables which interact significantly.
Select output variables which have favourable static and dynamic responses compared
to other controlled variables.
MVs must affect the CV strongly, which means that it requires a large steady- state
gain. This results in rapid responses and less variations in flow of the manipulated
stream, and less potential impact on other units.
MVs are preferred which have a direct effect on the CV. A direct effect on a CV results
in fast responses, which are preferred. The removal of inert from a condenser works
rapidly and more effectively than an increase in the cooling flow.
Measured variables must reflect the CVs. Preferably, do not measure the volumetric
flow when you want to control the mass flow. Temperature measurements represent-
ing dual composition in a distillation column require pressure correction.
Measurement should be reliable, robust, and accurate, and have a sufficient opera-
tional range.
Measurements should minimize time delays and time constants. This is determined
by the type of instrument, the location, and any sampling system.
Weather conditions, as day and night temperature cycle, humidity variations for cool-
ing water systems, rain showers. Atmospheric conditions changes over a longer time
period (daily or weekly or even seasonally are not experienced as a disturbance) are
not experienced as a disturbance for control of the process system which mostly have
hourly or shorter response times.
Utility conditions.
Operational disturbances are caused by operational activities; for example, when units
or components are taken in or out of operation for cleaning, regeneration, or repair.
Even if these activities are automated, they are still to be recognized as a disturbance.
The impact of both types of disturbances can be handled in different ways they can be
categorized as:
– Design internal utility grids less sensitive to external (site) variations by operating
the internal system with a pressure controller slightly above or below the external
grid level, depending on an import or export situation.
– Inventory with mixing devices will minimize composition or temperature varia-
tions.
– Smoothly ramping of set point changes particular for flow, pressure and tempera-
ture and economically determined set points
– Gradually and smoothly taking units in or out of operation
– Design for back-up supplies like is applicable for heat-integrated systems.
– Correct for any concentration variation of a feed stream. For example hydro-
genation reactors often need to control the mass flow of hydrogen, this means
correction for any impurities is required.
Rejection of disturbance to outside the process is easily applied for utility systems
and inventory feed systems. Examples are:
– Inventory in reactors, column bottoms, reflux drums and surge drums to smooth
variations in flow andjor composition.
– De-coupling of interactions to direct a disturbance outside the process and avoid
recycling or transmitting to other process sections.
These three methods for disturbance handling should be recognized and exploited in
sequential order of the above discussion and in full understanding between pro- cess and
control designer. Design modification might be essential to limit the effect of disturbances.
So far in this chapter we have considered some specific features and problems concerning
plantwide control. In this section we present a design procedure that can be used to gener-
ate an effective plantwide control structure. The number of variables that can be controlled
in any plant equals the number of control valves. Most of these “control degrees of free-
dom” must be used to set production rate, control product quality, account for safety and
environmental constraints, control liquid levels, and control gas pressures. Any remaining
degrees of freedom can be used to achieve economic or dynamic objectives.[4]
The method consists of six basic steps. The steps may require some iteration through
the procedure.
134 ADVANCED CONTROL STRATEGIES
1. Count the number of control valves (make sure all are legitimate, i.e., only one valve
in a liquid-filled line). This is the number of control degrees of,freedom.
2. Determine what valve will be used to set production rate. Often this decision is estab-
lished by the design basis of the plant. Production rate is fixed by a feed sent to the
plant. Production rate is fixed by the flow rate of a product stream if a downstream
process can demand an arbitrary flow rate. If neither of these design requirements is
specified, we are free to select the valve that provides smooth and stable production
rate transitions and rejects disturbances. This may be the flow rate of the feed stream
to a separation section, the flow rate of a recycle stream, the flow rate of a catalyst to
a reactor, or a reactor heat removal rate. Controller set points of reactor temperature,
level, or pressure can also be used to change production rate. Dynamic simulations of
alternatives are required to select the best structure.
3. Select the “best” manipulated variables to control each of the product quality vari-
ables and the safety and. environmental variables. These manipulated variables are
selected to give the tightest possible control of these important variables. The dynamic
relationships between controlled and manipulated variables should feature small time
constants and deadtimes, sufficiently large gains, and wide rangeability of manipu-
lated variables. These decisions must consider some other factors, such as the mag-
nitudes of flow rates. For example, in a high-reflux ratio column, the distillate flow
rate should be used to control product quality because the reflux flow rate must be
used to control reflux drum liquid level. Another common example is the control of
temperature and base level in a distillation column with a very small bottoms flow
rate. In most columns, temperature should be controlled by reboiler heat input, and
base level controlled by bottoms flow rate. When the bottoms flow rate is less than
about 20 percent of the rate of liquid entering the column base, these loops should be
reversed (even though this results in “nested” loops).
4. Determine the valves to use for inventory control: all liquid levels (except for surge
volumes in liquid recycle systems) and gas pressures must be controlled. Select the
largest stream to control levels whenever possible. Use proportional only level control
in non-reactive level loops for cascaded units. Fresh feed make-up streams are often-
used to hold levels or pressures when these variables reflect the inventory of specific
components in the process. There should be a flow controller somewhere in all liquid
recycle loops.
5. Make sure that the overall component balances for all chemical components can be
satisfied. Light, heavy, and intermediate inert components must have a way to exit
the system. Reactant components must be consumed in the reaction section or leave
the system as impurities in product streams. Therefore, either reaction rates (temper-
ature, pressure, catalyst addition rate, etc.) must be changed or the flow rates of the
fresh feed make-up streams must be manipulated somehow. Make-ups can be used to
control compositions in the reactor or in recycle streams, or to control inventories that
reflect the amount of the specific components contained in the process. For example,
bring in a gaseous fresh feed to hold the pressure somewhere in the system, or bring
in a liquid fresh feed to hold the level in a reflux drum or column base where the
component is in fairly high concentration (typically in a recycle stream).
6. Use the remaining control valves for either steady-state optimization (minimize en-
ergy, maximize yield, etc.) or to improve dynamic controllability. A common ex-
PLANTWIDE CONTROL DESIGN PROCEDURE 135
ample is controlling purities of recycle streams. Even though these streams .are not
products and do not have any quality specifications, the steady-state and dynamic abil-
ity of the process to handle load and production rate changes is sometimes improved
by controlling recycle purities (perhaps not at precise set points, but sufficiently to
prevent excessive build-up of impurities in the recycles).
EXAMPLE 11.1
F Cooling
water
ACN
P
F
F
L
F
MeOH
T L
Cooling T
Cooling
water water
return L
supply
Steam
F
MPN product
Solution: There many be many solutions to this problem, here we will discuss two
options to understand the approach.
Option A:
One possible solution is shown in Fig. 11.12.
1. The production rate objective should be satisfied by the methanol flow rate controller,
since there is essentially total conversion of the methanol to MPN.
2. The excess ACN is obtained by specifying the ACN flow rate to be 2% higher than
the methanol flow rate.
3. Exothermic reactor temperature must be controlled to assure stable reactor operation.
Here, the reactor temperature must be controlled by manipulating cooling water valve.
136 ADVANCED CONTROL STRATEGIES
4. The reactor level (related to residence time) is controlled by manipulating the reactor
outlet flow valve. Notice that there are now only five more loops that can be speci-
fied, since there are a total of nine control valves. The final five loops are associated
with the distillation column; three of these are associated with inventory variables
(distillate receiver level, bottoms level, column pressure).
5. A temperature in the bottom of the column manipulates the steam control valve. Be-
cause of equilibrium relationships, the temperature is related to the product purity.
6. The reflux stream is simply flow controlled. An alternative would be to control a tray
temperature in the top of the column; this would be related to controlling the distil-
late purity. Since the distillate stream is recycled to the reactor, it is not considered
important to maintain the stream composition at a given value.
7. The distillate receiver level is controlled by manipulating the distillate (or recycle)
flow valve.
8. The column pressure is controlled by manipulating the condensate flow. This es-
sentially changes the level of condensate in the overhead condenser, changing the
effective heat transfer area, and therefore the condenser duty.
9. The column bottom level is maintained by manipulating the bottom control valve.
FC
F Cooling
water
ACN PC
P
FC F
FC
F
L LC
F
MeOH
T L LC
TC F
Cooling T TC
Cooling
water water
return L
supply
Steam
LC
F
MPN product
The main problem with this solution is that the control structure exhibits a high
sensitivity in the recycle flow rate to small disturbances. This so-called snowball effect.
Luyben et. al. [4] have recommended that at least one control loop in the recycle flow
path be flow controlled in order to minimize the snowball effect.
SOME GUIDELINES AND RECOMMENDATION FOR CONTROL SYSTEM DESIGN 137
Option B:
An alternative solution is shown in Fig. 11.13. Here a flow controller is used to
regulate the mixed stream (recycle + ACN) flow rate by manipulating the distillate
(recycle) flow rate; this allows the control structure to minimize the snowball effect.
The distillate level controller manipulates the fresh ACN flow control valve. The other
seven loops are identical to the previous solution shown in Fig. 11.12.
FC
F Cooling
water
ACN PC
P
FC F
FC
F
L LC
F
MeOH
T L LC
TC F
Cooling T TC
Cooling
water water
return L
supply
Steam
LC
F
MPN product
Keep the control system as simple as possible. Everyone involved in the process, from
the operators up to the plant manager, should be able to understand the system, at least
conceptually. Use as few pieces of control hardware as possible. Every additional
gadget included in the system is one more item that can fail or . drift. The instrument
salesperson will never tell you this, of course.
Use feedforward control to compensate for large, frequent, and measurable distur-
bances.
Avoid large time lags and deadtimes in feedback loops. Control is improved by keep-
ing the lags and deadtimes inside the loop as small as possible. This means that
sensors should be located close to where the manipulated variable enters the process.
Use proportional-only level controls where the absolute level is not important (surge
tanks and the base of distillation columns) to smooth out disturbances.
138 ADVANCED CONTROL STRATEGIES
*****************
CHAPTER 12
MICROPROCESSOR-BASED
CONTROLLER
purged with steady streams of air when used in plants producing flammable substances.
The maintenance of electronic controllers also required highly trained technicians.
In the 1960s, the chemical industry made its first attempt at computer process control.
These control systems used large mainframe computers, for which the control programs
had to be written from scratch. The first attempts at computer control were met with mixed
reactions. In the 1970s, there appeared on the market the first generation of digital control
hardware, which was based on the advances in microprocessor-based technology. This
equipment was user friendly and all the software accompanied the hardware. The operator
did not face the problem of writing computer code to implement the control functions; it
was only necessary to learn the instructions needed to configure (set up) the controllers.
12.1 Hardware
In this case, the control algorithm resides as a computer program in the memory of the
computer. The operator communicates with the control system with a keyboard, a monitor,
and a printer. The computer can perform many memory functions than implementation of
the control algorithm as will be discussed later. The recorder of the pneumatic or electronic
system is replaced by a monitor screen on which the transients are shown.[2]
Microprocessor
Measured based
Transducer Transducer Valve To Process
variable
controller
In a modem controller both analog and digital signals are processed. The analog signal
is the type that represents a continuous variable that varies over a range of values. The
digital signal is a binary signal that can be represented by two states (on, off, or logic
1, logic 0, etc.). Examples of analog signals am the measurement from a temperature
transmitter or the signal sent to a valve. Examples of digital signals are the output to a
motor, which causes it to be on or off, or the output to an alarm light causing it to be on or
off.
So far we have been concerned in this chapter with the operation of a single controller.
Such a controller is referred to as a stand-alone controller because it is not communicating
with other controllers, but only with the one control loop of which it is a part. Present-day
microcomputer-based control systems have the capability of communicating with other
controllers through a network, which is called distributed control. Figure 12.2 shows one
version of the communication linkages that are usually present in a distributed control
system. Each manufacturer of distributed control systems has a different way of organizing
them.
DISTRIBUTED CONTROL SYSTEM (DCS) 141
Figure 12.2 Typical connections in a distributed control system: CP: control processor, AP:
applications processor, WS: workstation, FBM: fieldbus module.
A distributed control system is intended to be used for a large processing facility that
involves as many as fifty to one hundred loops. Examples include a refinery, a brewery, a
power plant, and the like. In Fig. 12.2 , the modules of control equipment that communi-
cate with each other are as follows. [2]
Workstation (WS)
The first three of these modules communicate with each other through a nodebus or
“data highway” as it has been called. The fieldbus modules serve as devices that interface
with transducers and valves in the process.
The control processor contains the blocks described earlier (analog input, analog output,
control, linearisation, etc.) that are connected together by software to provide the control
algorithm required for each loop. Communication between the control processor and the
process (a distance away) in the field takes place in the fieldbus module. Two types of
fieldbus modules are available. One type provides a set of analog inputs and a set of analog
outputs that send to and receive from the field continuous signals (4-20 mA). The other
type of module sends to and receives from the field digital signals that often take the form
of switch-contact closures.
The application processor is a microprocessor (or computer) in which the programs (or
software) are stored for performing the many tasks described earlier and for managing the
communication among modules.
The workstation module is connected to a keyboard, a mouse, a monitor, and a printer
for use by process operators to interact with the system. At the workstation, the process
operator can call up on the screen various displays, change set points and controller pa-
rameters, switch from automatic to manual, acknowledge alarms, and perform other tasks
needed to operate a control system consisting of many loops. A control system can also be
configured as an offline task at the workstation. After configuration, the configured control
142 MICROPROCESSOR-BASED CONTROLLER
system is downloaded to the control processor. If necessary, more than one workstation
can be attached to the nodebus in order to provide communication at several locations in a
plant. If more than one workstation is used, only one of them should have the authority at
a given time to be in charge of the control system.
Transmission: the signals transmitted pneumatically (via air pressure) are slow re-
sponding and susceptible to interference.
Calculation: Mechanical computation devices must be relatively simple and tend to
wear out quickly.
Transmission: analog signals are susceptible to contamination from stray fields, and
signal quality tends to degrade over long transmission line.
Calculation: the type of computations possible with electronic analog devices is still
limited.
DISTRIBUTED CONTROL SYSTEM (DCS) 143
3. Digital Implementation: the transmission medium is still electron, but the signals
are transmitted as binary numbers. Such digital signals are far less sensitive to noise.
The computational devices are digital computers. Digital computers are more flexible
because they are programmable. They are more versatile because there is virtually
no limitation to the complexity of the computations it can carry out. Moreover, it is
possible to carry out computation with a single computing device, or with a network
of such devices.
Many field sensors naturally produce analog voltage or current signals. For this reason
transducers that convert analog signals to digital signals (A/D) and vice verse (D/A) are
used as interface between the analog and digital elements of the modern control system.
With the development of digital implementation systems, which DCS are based on, it is
possible to implement many sophisticated control strategies on a very fast timescale.
propriate. There are many vendors who provide these DCS systems such as Baily, Foxboro,
Honeywell, Rosemont, Yokogawa, etc. In the following only an overview of the role of
DCS is outlined.
Conceptually, the DCS is similar to the simple PC network. However, there are some
differences. First, the hardware and software of the DCS is made more flexible, i.e. easy
to modify and configure, and to be able to handle a large number of loops. Secondly,
the modern DCS are equipped with optimization, high-performance model-building and
control software as options. Therefore, an imaginative engineer who has theoretical back-
ground on modern control systems can quickly configure the DCS network to implement
high performance controllers.
A DCS is then a powerful tool for any large commercial plant. The engineer or operator
can immediately utilize such a system to:
Readily install new on-line measurements together with local computers for data ac-
quisition and then use the new data immediately for controlling all loops of the pro-
cess.
Alternate quickly among standard control strategies and readjust controller parame-
ters in software.
A sight full engineer can use the flexibility of the framework to implement his latest
controller design ideas on the host computer or on the main control computer.
In the common DCS architecture, the microcomputer attached to the process are known
as front-end computers and are usually less sophisticated equipment employed for low
level functions. Typically such equipment would acquire process data from the measuring
devices and convert them to standard engineering units. The results at this level are passed
upward to the larger computers that are responsible for more complex operations. These
upper-level computers can be programmed to perform more advanced calculations.
Local Control Unit (LCU): This is denoted as local computer in Figure 12.5. This unit
can handle 8 to 16 individual PID loops, with 16 to 32 analog input lines, 8 to 16
analog output signals and some a limited number of digital inputs and outputs.
Data Acquisition Unit: This unit may contain 2 to 16 times as many analog input/output
channels as the LCU. Digital (discrete) and analog I/O can be handled. Typically, no
control functions are available.
Batch Sequencing Unit: Typically, this unit contains a number of external events, timing
counters, arbitrary function generators, and internal logic.
Local Display: This device usually provides analog display stations, analog trend recorder,
and sometime video display for readout.
146 MICROPROCESSOR-BASED CONTROLLER
Bulk Memory Unit: This unit is used to store and recall process data. Usually mass stor-
age disks or magnetic tape are used.
Central Operator Display: This unit typically will contain one or more consoles for op-
erator communication with the system, and multiple video colour graphics display
units.
Data Highway: A serial digital data transmission link connecting all other components in
the system may consist of coaxial cable. Most commercial DCS allow for redundant
data highway to reduce the risk of data loss.
Local area Network (LAN): Many manufacturers supply a port device to allow connec-
tion to remote devices through a standard local area network.
Digital systems are more flexible. This means that control algorithms can be changed
and control configuration can be modified without having rewiring the system.
Digital data in electronic files are easier to deal with. Operating results can be printed
out, displayed on colour terminals, stored in highly compressed form.
PROGRAMMABLE LOGIC CONTROLLERS 147
Programmable logic controller (PLC) is another type of digital technology used in process
control. It is exclusively specialized for non-continuous systems such as batch processes
or that contains equipment or control elements that operate discontinuously. It can also
be used for many instants where interlocks are required; for example, a flow control loop
cannot be actuated unless a pump has been turned on. Similarly, during startup or shutdown
of continuous processes many elements must be correctly sequenced; that is, upstream
flows and levels must be established before downstream pumps can be turned on.
The PLC concept is based on designing a sequence of logical decisions to implement
the control for the above mentioned cases. Such a system uses a special purpose computer
called programmable logic controllers because the computer is programmed to execute the
desired Boolean logic and to implement the desired sequencing. In this case, the inputs to
the computer are a set of relay contacts representing the state of various process elements.
Various operator inputs are also provided. The outputs from the computer are a set of
relays energized (activated) by the computer that can turn a pump on or off, activate lights
on a display panel, operate solenoid valve, and so on.
PLCs can handle thousands of digital I/O and hundreds of analog I/O and continuous
PID control. PLC has many features besides the digital system capabilities. However,
PLC lacks the flexibility for expansion and reconfiguration. The operator interface in PLC
systems is also limited. Moreover, programming PLC by a higher-level languages and/or
capability of implementing advanced control algorithms is also limited.
PLCs are not typical in a traditional process plant, but there some operations, such
as sequencing, and interlock operations, that can use the powerful capabilities of a PLC.
They are also quite frequently a cost-effective alternative to DCSs (discussed next) where
sophisticated process control strategies are not needed. Nevertheless, PLCs and DCSs can
be combined in a hybrid system where PLC connected through link to a controller, or
connected directly to network.
To make the best use of a DCS system, an advance control strategy or supervisory op-
timization can be incorporated in the main host computer. In the past, computer control
projects are written in assembly language, an extremely tedious procedure. Nowadays
most user software is written in higher-level languages such as BASIC, FORTRAN, C etc.
In many cases, the user is able to utilize the template routines supplied by the vendor, and
is required only to duplicate these routines and interconnect them to fit his own application
purposes. Another way is to write his own complete control program and implement it.
Other software in the form of control-oriented programming languages is supplied by
the vendor of process control computers. A simpler approach for the user is to utilize
vendor-supplied firmware or software to avoid writing programs. Currently, most DCS
manufacturers develop their own advance control and optimization software, which can
included in the package as options. Similarly, many control algorithm developers; (DMC,
ASPEN, etc) design a special interface to allow incorporating their own control programs
into most of the commercial DCS network.
***************
REFERENCES
[1] B.W. Bequette. Process Control Modeling, Design and Simulation. Prentice Hall of India
Pvt.Ltd., 1998.
[2] D. F. Coughanowr. Process systems analysis and control. McGraw-Hill, 1991.
[3] J. L. A. Koolen. Design of Simple and Robust Process Plants. Wiley-VCH Verlag GmbH & Co.,
2002.
[4] Luyben W. L. Luyben, M. L. Essentials of Process Control. McGraw-Hill, 1997.
[5] W. L. Luyben. Process Modeling Simulation and Control for Chemical Engineers. McGraw-
Hill, 1990.
[6] Peacock D. G. Richardson, J. F. Coulson & Richardson’s Chemical Engineering, volume 3.
Asian Books Pvt Ltd, New Delhi, 3 edition, 1994.
[7] G. Stephanopoulos. Chemical Process Control. Prentice Hall of India., 1990.
EXERCISES
A.1 Verify whether following system is stable using Routh - Hurwitz criterion.
P (s)
X (s) + Y (s)
Gc G1 + Gp
+
–
Gm
1 1
Gc = 2 1 + G1 =
2s s+1
2 1
Gp = Gm =
3s + 1 0.5s + 1
A.2 Draw a root locus diagram for following open loop transfer function.
K
G (s) =
(s + 1) (s + 2) (s + 3)
A.3 Show that phase lag for pure capacitive system is 90°.
Instrumentation & Process Control. 151
By Sanjay Dalvi Copyright © 2014 Sanjay Dalvi
152 EXERCISES
A.4 Find Amplitude Ratio (AR) and phase lag for n-first order capacities in series con-
nected in non-interacting fashion.
A.5 Plot the Bode diagram for the system whose overall transfer function is,
1
G (s) =
(s + 1) (s + 5)
A.6 A thermometer having first-order dynamics with a time constant of 1 min is placed
in a temperature bath at 100oF. After the thermometer reaches steady state, it is suddenly
placed in a bath at 110oF at t = 0 and left there for 1 min, after which it is immediately
returned to the bath at 100o F.
a) Draw a sketch showing the variation of the thermometer reading with time.
b) Calculate the thermometer reading at t = 0.5 min and at t = 2.0 min.
A.7 A thermometer having a time constant of 1 min is initially at 50o C. It is immersed
in a bath maintained at 100o C at t = 0. Determine the temperature reading at t = 1.2 min.
A.8 A jacketed vessel is used to cool a process stream. The volume of liquid in the tank
V and the volume of the coolant in the jacket VJ remain constant. Volumetric flow rate
qF is constant but qJ varies with time. Heat losses from the jacketed vessel are negligible.
Both the tank contents and the jacket contents are well mixed and have significant thermal
capacitances. The thermal capacitances of the tank wall and the jacket wall are negligible.
The over-all heat-transfer coefficient between the tank liquid and the coolant varies with
coolant flow rate as follows:
U = KqJ0.8
Derive a dynamic model for the system. State all the assumptions made in the model.
A.9 Is it possible for a two-tank liquid level system to exhibit the under-damped be-
haviour of a second-order system. Consider both interacting and non-interacting cases.
Support your answer with a proof.
A.10 A particular system has been disturbed with a unit impulse function. The response
of the system in the time domain has been found to be described well by the function
Y (t) = te−t
b) If the mass flow rates w1 , w2 and w3 are kept constant indefinitely, will the tank
eventually overflow? Justify your answer.
A.12 Consider the measurement of temperature in Blast-furnace using a thermocouple,
whose junction has a mass of m, with heat capacity C. You may assume that only radia-
tive heat-transfer is of importance here. Derive a transfer-function relating the measured
temperature T to the furnace temperature Tf .
A.13 Consider a two-tank Non-interacting system with the following data:
A1 = A2 = 200 cm2
q1s = q2s = qis = 15 lpm
At this steady flow condition the height of water in the first tank is 30 cm. There is a pump
in the outlet of the second tank, which discharges water at a constant rate. Consider the
following disturbances in the inlet to the first tank:
Case I: The inlet flowrate to the first tank increases to 16 lpm at t = 0 as a permanent step
change.
Case II: The same step change in the inlet flowrate occurs, but only for one minute after
which it returns to its original steady-state value.
Case: III One lit of water is added to the first tank suddenly as an impulse disturbance.
In each case, study the dynamic response of the height in tank two, both qualitatively and
quantitatively.
A.14 A two tank non-interacting liquid level system is operating at steady state with
water flowing at 10 lit/min. The cross-sectional areas of the first and second tanks are
A1 = 200 cm2 andA2 = 300 cm2 respectively. The steadystate liquid heights in the
two tanks are h1s = 20 cm and h2s = 15 cm respectively. The outlet resistances can be
assumed to be linear. At some time t = 0, one litre of water is suddenly added to the
first tank. Determine the dynamic response of both the tanks analytically and show the
variation of the liquid heights with respect to time graphically.
A.15 A two tank liquid level system is operating at steady state when a step change is
made in the flow rate to tank 1. The transient response is critically damped, and it takes 1.0
minute for the change in level of the second tank to reach 50 percent of the total change. If
the ratio of the cross-sectional areas of the tanks is A1 /A2 = 2 , calculate the ratio R1 /R2
. Calculate the time-constant for each tank. How long does it take for the level in the first
tank to reach 90 percent of the total change?
A.16 A two tank mixing process is initially operating under steady state conditions with
a volumetric flow rate of 2 m3 /min of a solution. The solute concentration is 1 kg/m3 . The
volume of the first tank is 4 m3 and that of the second tank is 6 m3 . At time t = 0, the
solute concentration in the inlet to the first tank suddenly increases to 2 kg/m3 . How long
does it take for the solute concentration in the outlet from the second tank to reach 1.6
kg/m3 ?
A.17 Consider the following level control system as shown in figure A.1 The cross sec-
tional area of the tank is 225 cm2 and the resistance is 0.005 min/cm2 . The level sensor is
a differential pressure transmitter that gives an output of 4 20 mA for an input variation in
level of 0 60 cm. The control valve is a motorized valve that operates on an input signal
of 4 20 mA, and has a gain of 1.25 lpm/mA. The dynamic lag of the transmitter as well
as that of the valve can be neglected. The controller is a PI controller with a Proportional
Band of 15% and an integral time of 20 sec.
154 EXERCISES
Control Valve
Controller
LT R
a) Derive the transfer functions for each of the individual components that make up
the control system. Calculate the parameters of the transfer functions.
b) Draw a block diagram for the control system. Obtain a closed loop transfer
function for set point changes.
c) Determine the range of values of the gain of the controller for which the system
remains stable.
A.18 A control system consists of the following components:
2
Process : Gp (s) =
0.5s2 + s + 1
3
Controller : Gc (s) = Kc 1 +
s
2
Control Valve : Gv (s) =
0.5s + 1