Professional Documents
Culture Documents
Process control
References:
1) Process systems analysis and control by Coughanowr, 3rd edition 2009.
2) Process modeling, simulation and control by Luyben, 1996.
3) Essential of process control by Luyben, 1997.
4) Process control system by Shinskey.
Introduction
Temp.
indicator
Hot water
Water
Heater
Steam
Cold water
(b) Manual Control system (c) Automatic Control system (Closed Loop)
1
Biochemical Engineering Process control
2
Biochemical Engineering Process control
Definitions:
System: it is a combination of components that act together and perform a certain objective.
(disturbance)
Transmitter
Process: is defined as the changing or refining of raw materials that pass through or remain in a liquid,
gaseous, or slurry state to create end products.
Control: in process industries refers to the regulation of all aspects of the process. Precise control of level, pH,
oxygen, foam, nutrient, temperature, pressure and flow is important in many process applications.
Sensor: a measuring instrument, the most common measurements are of flow (F), temperature (T),
pressure (P), level (L), pH and composition (A, for analyzer).The sensor will detect the value of the
measured variable as a function of time.
Set point: The value at which the controlled parameter is to be maintained.
Controller: The brain of the control system. A device which receives a measurement of the process
variable, compares with a set point representing the desired control point, and adjusts its output to minimize
the error between the measurement and the set point.
Error Signal: The signal resulting from the difference between the set point reference signal and the process
variable feedback signal in a controller.
Feedback: The signal from the sensor, which is fed back to the controller.
3
Biochemical Engineering Process control
Feedback Control: A type of control whereby the controller receives a feedback signal representing the
condition of the controlled process variable, compares it to the set point, and adjusts the controller output
accordingly.
Feedforward Control: A type of control which takes corrective action based on disturbances before the
process variable is upset.
Final Control Element: That component of a control system (such as a valve, heater, variec, motor) which
directly changes the manipulated variable.
Steady-State: The condition when all process properties are constant with time, transient responses having
died out.
Transmitter: A device that converts a process measurement (pressure, flow, level, temperature, etc.) into
an electrical or pneumatic signal suitable for use by an indicating or control system.
Controlled variable: process output which is to be maintained at a desired value by adjustment of a process
input.
Manipulated variable: process input which is adjusted to maintain the controlled output at set point.
Disturbance: a process input (other than the manipulated parameter) which affects the controlled parameter.
Process Time Constant ( ): Amount of time counted from the moment the variable starts to respond that it
takes the process variable to reach 63.2% of its total change.
Block diagram: it is a shorthand pictorial representation of the case and effect relationship between the input
and the output of the system. It is easier to visualize the control system in terms of a block diagram.
Block diagram
Transfer Function: it is the ratio of the Laplace transform of output ( response function) to the Laplace
transform of the input ( driving force) under assumption that all initial conditions are zero unless that given
another value.
e.g. the transfer function of the above block diagram is G (s) = Y(s)/X(s)
Closed-loop control system: it is a feedback control system which the output signals has a direct effect upon
the control action.
4
Biochemical Engineering Process control
Heater
(Heating) Temperature
Final control element
Transmitter
(Thermocouple)
Open-loop control system: it is a control system in which the output has no effect upon the control
action. (The output is neither measured nor fed back for comparison with the input).
(Timer) Motor
Advantages:
(1) Simple construction and ease of maintenance.
(2) Less expensive than closed-loop control system.
(3) There is no stability problem.
Disadvantages:
(1) Disturbance and change in calibration cause errors; and output may be different from what is
desired.
(2) To maintain the required quality in the output, recalibration is necessary from time to time
Note: any control system which operates on a time basis is open-loop control system, e.g. washing machine,
traffic light etc.
Ex: (1) Draw the block diagram for the following equation:
x3 a1 x1 a2 x2 5 x1 a1
11
+
x2 + x3
a2
5
Biochemical Engineering Process control
2) Draw the block diagram for the liquid level control system
Controller
Set point + Controller Control Tank actual level
Desired level valve
-
Float
d 2 x2 dx1
H.W: (1) Draw the block diagram of the equation x3 x1
dt 2 dt
(2) Draw the block diagram of the for the liquid level control system
Controller
6
Biochemical Engineering Process control
1
L u(t) =
s
A
If x(t) = A u(t) L Au(t) = , [ A is the amplitude of the step function ].
s
Step function used for a system subjected to a sudden disturbance.
x(t) x(t)
0 time time
2- Unit impulse; (t) : where the amplitude and the time 0 y(t)
L (t) = 1 x(t)
d
(t) = u (t )
dt
0 t
Y(s) = G(s)
* Also the unit impulse is a unit pulse function with very short time: unit impulse = lim unit pulse
t 0
7
Biochemical Engineering Process control
x(t)
y(t)
x(t) = 0 , t<0
t , t 0 = t u(t) [ unit ramp function ]
1
L t u(t) =
s2
x(t)
y(t)
A
L x(t) = L Asin t =
s 2
2
1 2
Note: = 2f , f = frequency (Hz) = , Tp = period of oscillation (min/cycle) , = 2f =
Tp Tp
x(t)
8
Biochemical Engineering Process control
Mathematical Model of Open Loop Systems (Dynamic Process Without Any Control):
Linear system: it is one in which the equations of the model are linear.
Linear differential Eqn: is a differential equation in which the coefficients are constants or function only of
the independent variable.
Y Y
X X
Linear equation Non-linear equation
R P+P
P+Pi
v,c
Assume small deviation in the variable from their steady state
values, then the system consider linear.
Where:
P = gas pressure in the vessel at steady state, N/m2.
Pi = small change in inflow gas pressure, N/m2.
P= in gas pressure in the vessel, N/m2.
V = volume of the vessel, m3 (capacity)
m = mass of gas in the vessel, kg. Pi P
q = mass flow of gas, kg/s = P/R P
= density of gas, kg/m3
C = capacitance, m2 = mass/ pressure (m/p) Time
R = resistance to flow, sec/m2
9
Biochemical Engineering Process control
Solution: mass balance: qi qo = dm/dt , qo = 0 ( where qi ,qo & m are the deviations from steady state)
pi p dm
or
dm pi p
but m = pC dm/dt = C dp/dt
R dt dt R
C dp p i p
dt R
dp
CR p pi
dt
Take the Laplace transform: CR s P(s) + P(s) = Pi(s)
P( s )
1
(1st order system)
Pi ( s) CR s 1
hA ( x y ) - 0 = m Cp dy/dt
y( s)
1
x( s ) s 1
H.W : A thermometer having a time constant of 0.1 min is at steady state temp. of 30 oC . at t = 0, the
thermometer is placed in a temperature bath maintained at 50 oC . Determine the time needed for
thermometer to read 45 oC .
10
Biochemical Engineering Process control
Eq. 1 Eq. 2
f1* - f 2* = Cdh*/dt
f*, h* are the deviation from steady state, is the density of water and is equal in inflow and outflow
f1* f2* = Cdh*/dt , f2* = h*/R
dh *
RC h * Rf 1* , Laplace transform
dt
H ( s) R
F1 ( s) RCs 1
Ex. 4 : Find the transfer function of the mixed reactor , Fo , F & V are constants and Fo= F
. Fo co F c = Vdc/dt , divided by F
dc
+ c = co , = V/F , Laplace transform
dt
11
Biochemical Engineering Process control
Ex. 5 : Obtain the T. F. and draw the block diagram of the following thermal system
Solution: heat balance for the system, so the equation which describe the system is:
d o
h + G cp i G cp o = M cp (Assume reference temp. is 0oC)
dt
G is the flow rate of liquid, kg/sec and M is the mass of liquid in tank.
1
Let the thermal resistance, R = ( oC sec/kJ )
G cp
and the thermal capacitance C = M cp ( kJ/oC )
1 1 d
So the Eq. above becomes: h i o C o
R R dt
Laplace transform: R H(s) + i (s) = o(s) + RCs o(s)
R 1
o ( s) H ( s) i ( s)
RCs 1 RCs 1
i(s)
i (s) 1
RCs 1 OR +
H(s) R 1 o (s)
+ + RCs 1
H(s) R o (s)
RCs 1 +
12
Biochemical Engineering Process control
Ex. 6: Obtain the transfer function of the following system (no reaction):
F
Where: Fi , ci
F = volumetric flow rate, Fi = F1
c = conc. of solute in stream.
V = liquid volume in tank. Fii cii
V1 c1 F1,c1
Solution: mass balance on concentration; i.e.
In out = accumulation
V2 c2 F2, c2
dc1
Tank 1: Fi ci F1 c1 = V1
dt (non-interacting system)
dc1
1 c1 ci , [1 = V1/F1]
dt
Laplace transform 1 s C1(s) + C1(s) = Ci(s)
C1 ( s)
1
. (1) Ci(s)
1
C1(s)
Ci ( s) 1 s 1 1s 1
dc 2
Tank 2: F1 c1 + Fii cii F2 c2 = V2
dt
dc2
2 c2 K1c1 K 2 cii
dt
Laplace transform 2s C2(s) + C2(s) = K1 C1(s) + K2 Cii(s)
K1 K2
C 2 ( s) C1 ( s) Cii ( s)
2s 1 2s 1
Substitute C1(s) from Eq. (1)
K1 K2
C 2 ( s) Ci ( s) Cii ( s)
( 1 s 1)( 2 s 1) 2s 1
K2
Cii(s) +
Cii(s) K2 + 1
2s 1 + OR K1 + 2s 1 C2(s)
1s 1
C2(s) Ci(s)
Ci(s) K1 +
( 1 s 1)( 2 s 1)
13
Biochemical Engineering Process control
Q2 ( s )
Ex. 7: Obtained the T.F. of the liquid level system shown in figure below (i.e. )
Qi ( s )
Where:
q, h = are small deviations from steady state
h1 h2 h
R1 = , R2 = 2
q1 q2
C = capacitance (cross section area)
V = capacity
(Interacting system)
dh
Solution: Tank1 C1 1 qi q1 C1sH1(s) = Qi(s) Q1(s) . (1)
dt
h h2 H1 ( s ) H 2 ( s )
q1 1 Q1 ( s) . (2)
R1 R1
dh2
Tank2 C2 q1 q 2 C2sH2(s) = Q1(s) Q2(s) . (3)
dt
h H ( s)
q2 2 Q2 ( s) 2 . (4)
R2 R2
Substitute Eq.1 and Eq. 4 in Eq. 3 C2sR2Q2(s) = Qi(s) C1sH1(s) Q2(s) . (5)
From Eq.3 subs.Q1 in Eq.6 C2sR2Q2(s) =Qi(s) C1sR1C2sH2(s)-C1sR1 Q2(s)-C1sH2(s) Q2(s) . . (7)
Q2 ( s)
1
=
1
Qi ( s) R1C1 R2 C 2 s ( R1C1 R2 C 2 R2 C1 ) s 1 1 2 s ( 1 2 R2 C1 ) s 1
2 2
H 2 (s)
H.W: Find the T.F. of above system [ ].
Qi ( s )
14
Biochemical Engineering Process control
Ex. 8: Obtain the T. F. of the mechanical translation system shown in figure below
F=ma
d2y dy d2y dy
u (t ) m 2
b ky(t ) Or m 2
b ky(t ) = u(t)
dt dt dt dt
Y ( s) 1
U ( s) ms bs k
2
Eo (s)
Ex. 9: Obtain the T. F. of the L. R. C. circuit shown in figure below ( )
Ei ( s)
L = inductance, Henry
R = resistance, Ohm
C = capacitance, Farad L R
C
ei i eo
Solution: Apply Kirchhoffs law
eL + eR + eC = ei (1)
di 1
C
eL L ..(2) , eR = R i ..(3) eC eo idt ..(4) , substitute in Eqn.1
dt
di
L Ri eo ei , Laplace transform LsI(s) + RI(s) + Eo(s) = Ei(s) (5)
dt
15
Biochemical Engineering Process control
Linearization of non-linear function: To convert the non-linear function depends on 2 or more variables:
f f
f(x, y) = f ( x , y ) x, y (x x) x, y ( y y)
x y
f(x, y) = x y , x 2, y 5
Solution: f(x, y) = x y y ( x x ) x ( y y )
= x y yx y x xy x y
f(x, y) = 5x + 2y -10
H (s) 1/2
Ex.10: Find the T. F. of the following system ; , f2 = K h , K is constant (m2.5/sec)
F (s)
dh
Solution: f1 f2 = C (*)
dt
dh
f1 Kh1/2 = C
dt
( H )(h H ) 2
f 2 f 2 ( H ) f ( H )(h H ) f
2
/
2
//
......
2!
f 2 f 2 ( H ) f 2/ ( H )(h H )
f 2 ( H ) F2 F1 F
1
f 2/ ( H ) KH ( 1 / 2) K1
2
f 2 F K1 (h H ) , substitute in Eq.(*)
dh
f 1 F K1 (h H ) C (take the deviations from steady state i.e. f, h )
dt
dh
C K1 h(t ) f1 (t )
dt
16
Biochemical Engineering Process control
C F ( s)
Laplace transform sH(s) + H(s) = 1
K1 K1
H ( s)
K2
, = C/K1 , K2 =1/K1
F1 ( s) s 1
k C ( s)
Ex.11: For the following interacting system, exothermic reactor, where A B , k k o e E / RT . Find A
Ti ( s )
-rA = kcA
R R
Assume R k o e E / RT c A = c (t ) T (t )
c A cA ,T A
T c A ,T
E E / RT
= ko e E / RT c A (t ) 2 o
ke c AT (t ) K C c A (t ) KT T (t ) .. (2)
RT
E E / RT
Where: K C k o e E / RT , K T 2 o
k e cA
RT
Substitute Eq.2 in Eq.1
dc A
V qc A (t ) VK C c A (t ) qc Ai (t ) VK T T (t )
dt
V dc A (t ) q VK T
c A (t ) c Ai (t ) T (t )
(q VK C ) dt q VK C q VK C
K1 K2
Laplace transform C A ( s) C Ai ( s) T ( s)
1s 1 1s 1
q VK T
Where: ( K1 , K2 )
q VK C q VK C
Heat balance: Accum = In (out + heat by reaction)
dT
VC P qC P (Ti T ) hA(T To ) Vk o C A (t )e E / RT H r (Hr = -Ve)
dt
17
Biochemical Engineering Process control
dT
VC P qCPTi (t ) qCPT (t ) hAT (t ) hATo (t ) H rVK C C A (t ) H rVK T T (t )
dt
dT
VC P T (t )[ qCP hA H rVK T ] qCPTi (t ) hATo (t ) HVKC C A (t )
dt
dT
2 T (t ) K 3Ti (t ) K 4To (t ) K 5 C A (t ) , Laplace transform
dt
K3 K4 K5
T ( s) Ti ( s) To ( s) C A ( s)
2s 1 2s 1 2s 1
G4(s) G1(s)
Ti(s) K3 CAi(s) K1
2s 1 1s 1
G5(s) G2(s)
To(s) T(s) CA(s)
K4 K2
2s 1 1s 1
G3(s)
K5
In general: 2s 1
CA(s) = CAi(s) G1(s) T(s) G2(s) ..(*)
G1 ( s) G2 ( s)G4 ( s) G2 ( s)G5 ( s)
C A ( s) C Ai ( s) Ti ( s) To ( s)
1 G2 ( s)G3 ( s) 1 G2 ( s)G3 ( s) 1 G2 ( s)G3 ( s)
K2 K3
C A ( s) G2 ( s)G4 ( s) s 1 2s 1 K2 K3
= 1 =
Ti ( s) 1 G2 ( s)G3 ( s) K2 K5 ( 1 s 1)( 2 s 1) K 2 K 5
1
1s 1 2 s 1
18
Biochemical Engineering Process control
C A ( s) C A (s)
If ? , ?
To ( s ) C Ai ( s )
C A ( s)
Note: can be found by another way:
Ti ( s )
G4(s) G2(s)
Ti(s) K3 T(s) K2 CA(s)
2s 1 1s 1
K5
2s 1
G3(s)
C A ( s) G2 ( s)G4 ( s) K2 K3
=
Ti ( s) 1 G2 ( s)G3 ( s) ( 1 s 1)( 2 s 1) K 2 K 5
R(s) C(s)
G(s)
H(s)
19
Biochemical Engineering Process control
1. cascade
2.Parallel
3.feedback
4. Moving a
summing
point ahead
of a block
Z(s)=X(s)G(s) Y(s)
5. Moving a
summing
Point
beyond
a block
Z(s)=G(s)[X(s) Y(s)]
6. Moving
a take-off
point ahead
of a block
Y(s)=X(s)G(s)
7. Moving a
take-off
point
beyond
a block
B B
8. separate
or merge A A+B-C A A+B-C
summing
point C C
20
Biochemical Engineering Process control
Ex.1: Draw the block diagram of the following system from its equations and reduce the block diagram.
dh1
Solution: Tank1 C1 qi q1 C1sH1(s) = Qi(s) Q1(s) . (1)
dt
h1 h2 H 1 ( s) H 2 ( s)
q1 Q1 ( s) . (2)
R1 R1
dh2
Tank2 C2 q1 q 2 C2sH2(s) = Q1(s) Q2(s) . (3)
dt
h2 H ( s)
q2 2 Q2 ( s ) . (4)
R2 R2
1
From Eq.1 H 1 ( s) [Qi ( s) Q1 ( s)] Qi(s) 1 H1(s)
C1 s
C1 s
Q1(s)
H 1 ( s) H 2 ( s)
From Eq.2 Q1 ( s) 1
R1
R1
H1(s) Q1(s)
H2(s)
1
From Eq.3 H 2 ( s) [Q1 ( s) Q2 ( s)]
C2 s 1
Q1(s) C2 s H2(s)
Q2(s)
H 2 ( s) 1
From Eq.4 Q2 ( s ) H2(s) Q2(s)
R2 R2
21
Biochemical Engineering Process control
By grouping:
H2(s)
C1s R2
1 1 1 1 Q2(s)
C1 s R1 C2 s R2
Qi(s) 1 1 Q2(s)
R1C1 s 1 R2 C 2 s 1
R2C1s
Qi(s)
1 Q2(s)
R1C1R2C2 s ( R1C1 R2C2 R2C1 ) s 1
2
22
Biochemical Engineering Process control
Ex.2: For the two inputs one output system below find the transfer matrix.
N(s)
H(s)
Solution: step1: eliminate from N(s)
C R ( s) G1 ( s)G2 ( s)
R( s) 1 G1 ( s)G2 ( s) H ( s)
G1 ( s)G2 ( s)
C R (s) R( s )
1 G1 ( s)G2 ( s) H ( s)
R(s) G1(s) G2(s) C(s)
Step2: eliminate from R(s)
C N ( s) G2 ( s )
H(s)
N ( s) 1 G1 ( s)G2 ( s) H ( s)
G2 ( s )
C N ( s) N ( s) N(s) C(s)
1 G1 ( s)G2 ( s) H ( s) G2(s)
G1(s) H(s)
C(s) = CR(s) + CN(s)
G1 ( s)G2 ( s) G2 ( s )
R( s ) + N ( s)
1 G1 ( s)G2 ( s) H ( s) 1 G1 ( s)G2 ( s) H ( s)
G1 ( s)G2 ( s) G2 ( s) R(s)
C(s) =
1 G1 ( s)G2 ( s) H ( s) 1 G1 ( s)G2 ( s) H ( s) N(s)
Transfer matrix
23
Biochemical Engineering Process control
Transient response and steady state response: The time response of a control system consists of two parts:
Transient response: that which goes from initial state to final state (the time required to reach a new steady
state).
And
Steady state response: the manner in which the system output behaves as time approaches infinity.
if c(t) = - e-t
The steady state response is the part of the final total response which dose not approaches zero as time
approaches infinity.
First Order Systems: A first order systems such as thermometer, liquid level (one tank) etc.
Y ( s)
K
..(*) X(s) Y(s)
s
X ( s) s 1
Where K is the st. st. gain of system & is time constant.
Note: all systems having the same transfer function will exhibit the same output in response to the same
input.
If the [x(t)] is a unit step input, then the Laplace transform of x(t) is 1/s [X(s) = 1/s ]
Y(s) = 1 K 1
= K( ) By partial fraction:
1 K a
=
b
s s 1 s s 1
s s 1 s s 1
1 K
a=[ s] s0 = K
-t/
y(t) = K(1-e ) , if K=1 s s 1
1 K
-t/ b=[ (s+1)]s -1/ = -K
y(t) = (1-e ) s s 1
24
Biochemical Engineering Process control
-t/
Characteristics of 1st order system for unit step input [y(t) = (1-e )]:
y(t) = 1 , (t )
y(t) = 0 , (t 0)
dy 1 1
t 0 e t / t 0 is found
dt
Time elapsed 1 2 3 4
y(t)% of final 63.2 86.5 95 98
value
dy 1
t 0 slop
dt
Another method to find the time constant, :
x y (t )
e t /
x
0.632
x y (t )
Let =Z
x
y(t)
0 t
ln Z 1 2 3 4 5
Time
A K
Y ( s)
s s 1
25
Biochemical Engineering Process control
1
Since the Laplace transform of a unit ramp is substitute in eqn (*) Note: if
s2
1 K 1 2
Y(s) = 2 = K[ 2 ]
s s 1 s s s 1
s=-1
y(t) = K
, if K=1 y(t) =
1
e t /
s 1
1
y(t) = y(t)
s 1
1
y(t) = e t / for t 0
For the unit step input which is the derivative of unit-ramp input, the output is
dy (t )
y(t)step = ramp
dt
-t/
y(t)step = 1-e for t 0
26
Biochemical Engineering Process control
Ex: 1st order system subjected to a step change of magnitude 3. The following differential equation
represents the dynamics of the process
d o (t )
3 o (t ) 4
dt
Find: (1) st. st. gain
(2) time constant
(3) T. F.
(4) o(t)
d o (t )
Solution: the standard form of above system is
o (t ) K i (t )
dt
1 d o (t ) 4
The equation of the problem can be written as o (t ) ..(1)
3 dt 3
By comparing = 1/3
o (t )
o(t) = 4/3 compare with standard form K or o(t) = K i (t)
i (t )
K i (t) =4/3 , i (t)= 3
K = 4/9
1 d o (t ) 4
Then Eq.1 becomes o (t ) i (t ) (2)
3 dt 9
1 4
Laplace transform of Eq.2 s o ( s) o ( s) i ( s)
3 9
o (s) 4 / 9
i ( s) 1 s 1
3
4/3
i (s) =3/s , o ( s)
1
s( s 1)
3
C ( s)
Note: if K , this is zero order system, and K is the st. st. gain
R( s)
27
Biochemical Engineering Process control
L
f(t) u f(t-D)
s
L output L f (t D ) F ( s )e D
G( s) = =
L input L f (t ) F (s)
D s L
G(s) = e , D (time i.e. min, sec, ..etc)
u
Note: In case of thermal pipes in addition of dead time there is a heat loss
a wall Temp
( s 1) o ( s) a ( s) s /
T. F. G(s) = =e D e D i
( s 1) i ( s) a ( s)
x=0 x=L
o
o
At constant wall temp. (a = 0): e s e
D D /
i
L , = time constant of heat loss = mcP c P D , D = diameter of pipe
D
u UA 4U
o 1
If i is constant i.e. = 0 : ( )(1 e s e
D D /
)
a s 1
Ex: consider a mixing process of 1 m3 volume. If the system is subjected to a step change in feed
concentration of 10 kg/m3 , find the system response co(t) as a function of time.
ci(t) Fi=0.01
Solution: F=0.2m3/s
dco/ (t )
co/ (t ) Kci (t ) , = V/F1 & K = F/F1
dt
C o/ ( s) K
Ci ( s) s 1
28
Biochemical Engineering Process control
Co ( s)
For pipe G(s) = /
e D s
Co ( s)
Co ( s) Co/ ( s) Co ( s) Ke D s
(*)
Ci ( s) Ci ( s) Co/ ( s) s 1
2 s
Co ( s) e
co(t)
C i ( s ) 5s 1
10
10
ci(t) = 10 Ci(s) =
s
t 2
10 e 2 s
Co ( s) , co(t) = 10 (1 e 5
)
s 5s 1
D=2 t
Co ( s) 1 10 1
Co(s) = 10
Ci ( s) 5s 1 s 5s 1
co (t) = 10 (1 e-t/5 )
0 t
(2) If there is a pure delay only (pipe only)
Co ( s)
e D s
Ci ( s)
Ci(s) = 10/s
10 D s
Co(s) = e
s
Co(t) = 10 (t-D) or
Co(t- D) = 10
29
Biochemical Engineering Process control
Second Order Systems: The following differential equation describes the 2nd order system
d 2 y(t ) dy (t )
a2 2
a1 ao y (t ) bx(t )
dt dt
d 2 y(t ) dy (t )
2
2 n n2 y (t ) K n2 x(t )
dt dt
b
Where: K n2
a2
ao
n , n natural frequency
a2
= damping factor
a1
2 n
a2
Y ( s) K n2
So the transfer function is 2 (general form of T. F. of 2nd order system)
X ( s) s 2 n s n2
Y ( s) K 1
OR 2 2 (T = process time constant or characteristic time = )
X ( s) T s 2Ts 1 n
AK n2
Y(s) = s( s 2 n s n )
2 2
There are fife different cases according to value depend on it the roots of characteristic Eq.
(s2 + 2ns + n2 = 0)
30
Biochemical Engineering Process control
(1) 0 < < 1 ; s1 & s2 = n jn 1 2 , under damped case , when overshoot occurs.
(2) = 1 ; s1 & s2 = -n , critically damped case, when the time response is as fast as possible without
overshoot.
(3) > 1 ; s1 & s2 = n n 2 1 , over damped case , when response is lower then critical.
oscillatory
Y(t)/K
Critically
damped
31
Biochemical Engineering Process control
AK n2 ( s 2 n )
AK
1
Y(s) = = 2
s( s 2 2 n s n2 ) s s 2 n s n2
y(t) = AK 1 e nt cos d t sin d t t0
1 2
1 1
2
Or in terms of (T =
1
), y(t) = AK 1
1
e t / T
sin 1 2 t
tan
n 2 T
1
-nt
For = 1 , and for step input ; y(t) = AK [1 e (1 + nt )]
1 ( 2 1) nt 1 2 1 )nt
y(t) = AK 1 e e (
2 2 1( 2 1) 2 2 1 ( 2 1)
The transient response of a practical control system often exhibits damped oscillations before
reaching steady state. The transient response characteristics of a control system to a unit-step input are:
1. Delay time, td : it is the time required for the response to reach 50% of its final value.
2. Rise time, tr : it is the time required for the response to rise from (10 90 %), (5 95%) or
(0 100%) of its final value. For under damped (0 100%) is used, for over damped (10 90%) is
used.
d
tr , = tan-1 (rad) , d n 1 2 (d = damped natural frequency)
d
3. Peak time, tp : it is the time required for the response to reach the 1st peak of the overshoot.
tp
d
4. Maximum (percent) overshoot, Mp (=A/B) : it is the maximum peak value of the response curve
measured from unity. If the final steady state value of the response differs form unity, then it is
common to use the maximum percent overshoot.
y (t p ) y ()
Maximum percent overshoot = 100%
y ( )
( / 1 2 ) ( / d )
Mp e =e
32
Biochemical Engineering Process control
TP
0.5 or 0.2
td
ts
tP
5. Settling time, ts : it is the time required for the response curve to reach and stay within a range
about the final value of 5% or 2%.
4 3
t s 4T (for 2% criteria) , t s (for 5% criteria)
C
6. Decay ratio: the ratio of the sizes of successive peaks and is given by
A
2 / 1 2
Decay ratio = e = (Mp)2
2T
TP =
1 2
Notes:
1. The maximum overshoot and rise time conflict with each other. If one is made smaller, the other becomes
larger.
2. For rapid response n must be large.
3. The performance of is 0.3 < < 0.5
33
Biochemical Engineering Process control
AK
X(s) = A Y(s) =
T s 2Ts 1
2 2
1 t / T t
y(t) = AK[ e sin 1 2 ]
1 2 T T
d
Note: Y ( s) impulse sY ( s) step and y(t ) impulse ( y (t ) step )
dt
Ex: For the system shown in figure below, = 0.6 and n = 5 rad/sec. Obtain rise time, tr, peak time, tp,
maximum overshoot, Mp and settling time, ts
when the system is subjected
to a unit-step input. R(s) n2 C(s)
s( s 2 n )
Solution:
(1) t r
d
d n 1 2 5 1 0.6 2 4 rad/sec
d
-1
= tan , = n = 0.6 5 = 3
4
= tan-1 3 = 0.93 rad
0.93
t r = 0.55 sec
4
(2) t p = = 0.79 sec
d 4
( / d ) ( 3 / 4 )
(3) Mp= e =e = 0.095 and maximum percent overshoot = 9.5%
4
(4) t s = 4/3 = 1.33 sec (for 2% criteria),
3
ts = 3/3 = 1 sec (for 5% criteria)
34
Biochemical Engineering Process control
Notes: (1) The second order system may be combined from two1st order systems as follows:
K
G( s) , this is for non-interacting systems
( 1 s 1)( 2 s 1)
K
G( s) , A1 = capacitance of the 1st system, R2 = resistance in 2nd system
1 2 s ( 1 2 A1 R2 ) s 1
2
K
Or G( s) , a b = 12 , a + b = 1 + 2 + A1R2
( a s 1)( b s 1)
(2)
2
(3) Effect of KC or K on closed loop
Damping Factor (z ') 1.5
overdamped
1
0.5 underdamped
0
unstable
-0.5
0 2 4 6 8
Kc
35
Biochemical Engineering Process control
Higher order systems: If there is multi first order systems in series as shown in multi reactors below
C1 ( s) K1
Co ( s) 1 s 1
63%
C2 ( s) K2
.etc
C1 ( s) 2 s 1
Cn ( s)
K1 K 2 . . .K n
Co ( s) ( 1 s 1)( 2 s 1)....( n s 1)
t1
D
Cn ( s) K K e D s
G( s) , K = K1K2 .Kn , = t1 - D
Co ( s) ( s 1) n s 1
2) If the time constants of each system are not equal then the T. F. becomes
Cn ( s) K e D s
G( s)
Co ( s) ( 1 s 1)( 2 s 1)
Where: 1 & 2 are dominant time constants and D
36
Biochemical Engineering Process control
Ex: Find the simplest lower order approximation of the following transfer function
Where 1.6 is the sum of dead times 0.1, 0.5, and 1; i.e. 1.6 = 0.1 + 0.5 + 1
If X representing a unit step input, the response of the full order function (solid curve) and that of the first
order with dead time approximation (dotted curve) are shown in
Higher order system may combined from 1st order system and 2nd order system as follows
K
G( s)
( s 1)(T s 2Ts 1)
2
37
Biochemical Engineering Process control
Control Action
It is the manner, in which the automatic controller compares the actual value of the process output with the
actual desired value, determines the deviations and produce a control signal which will reduce the deviation
to zero or to small value.
Classification of industrial automatic controller: they are classified according to their control
action as:
The automatic controller may be classified according to the kind of power employed in the operation,
such as pneumatic controller, hydraulic controller or electronic controller.
Final element
control or Process
actuator
38
Biochemical Engineering Process control
Self operated controller: In this controller the measuring element (sensor) and the actuator in one unit.
It is widely used for the water and gas pressure control.
M1 = on position (maximum)
M2 = off position (minimum) Constants
The two-position controller is used extensively in home heating and cooling systems, refrigerators,
hot water tanks (boiler), air compressors (air conditioner), and other applications where the cost of
more precise control is not justified
To reduce the number of cycling (on-off switching) a controller with differential gap is used to increase
the useful life of components.
39
Biochemical Engineering Process control
E M1
M
Set point M1
E M
M2
M2
Differential gap: is a range through which the actuating error signal must move before the switching occurs.
e.g.
Mercury
Electromagnetic valve
40
Biochemical Engineering Process control
m(t) = m + KC e(t)
M(s)
KC
In terms of deviation: m(t) = KC e(t) set point
M ( s)
Laplace transform K C = GC (s)
E ( s)
Output signal
Proportional mode has a continuous linear relationship between the error signal and the controller output.
KC is the controller gain i.e. is the amount by which the error is multiplied to obtain the output. Or called
(Proportional sensitivity).
m is output of controller at steady state.
m(t) output of controller (manipulated variable).
e(t) is the error (difference between the set point and controlled variable)
Proportional band: It is a term used to define the gain or sensitivity of the proportional controller, so it is
the error required to move the output of the controller from its lowest to its highest value.
Error (expressed in percentage of the range of the controlled variable)
E
PB% = 100
M
1
PB% = 100 That is, the controller output is scaled 0-100% and the error from set point is
KC
scaled 0-100%. Where KC in this equation is dimensionless
Notes:
The primary benefit of proportional action is that it speedup the response of the process.
The smaller proportional band corresponds to high gain or high proportional sensitivity.
Disadvantage of proportional controller is giving a steady state error (off-set).
Proportional controller is often the best type for level control.
Ex: Convert from PB to Kc, where Proportional band is equal to 200%, the range of the error from set
point is 200 psi and the controller output range is 0 to 100%.
Solution:
100% 100% , K cD refers to dimensionless gain
K cD 0.5
PB 200%
100%
K c 0.5 0.25 % / psi
200 psi
41
Biochemical Engineering Process control
M ( s) K I
Laplace transform output signal
E ( s) s
Notes:
For zero actuating error, the value of m(t) remains stationary.
The integral control action is sometimes called reset control.
The basic purpose of integral action is to derive the process back to its set point when it has been
disturbed.
Integral action is needed if it is a desirable to have zeroed off-set.
It is limited in application to processes of small capacitance and fast response which are subject to
large change in load such as are found in some flow systems.
Integral mode is rarely used alone since it adds lag to the system without the benefits of proportional
mode so it is almost used with proportional mode (reduces stability).
M ( s) 1
Laplace transform K C (1 ) (Note: for optimum setting let i )
E ( s) is
KC is gain Adjustable
i is integral time
KC
= KI
i
1
is called reset rate, which is the no. of times per minute that the proportional part of the control action is
i
duplicated. Reset rate measured by repeats per minute.
42
Biochemical Engineering Process control
M(s)
K C (1 i s) M(s) Step change=A
AKC
is 2AKC
i
A
AKC
Ex: PI controller has output initially 50%, Gain = 2, reset = 2 minutes per repeat. The controller is subjected
to a sustained error of 5%, what is the output after 4 minutes?
de(t )
It is defined by the equation: m(t) = m +KC e(t) + KC d
dt
(So the controller output, m(t), is proportional to both size of error and rate of change of error)
M ( s)
Laplace transform K C (1 d s)
E ( s)
KC is gain
d is derivative time (rate time)
Derivative time: the time base over which the error change is measured (the time interval by which the rate
action advances the effect of the proportional control action).
The derivative control action sometimes called rate control is where the magnitude of controller output,
m(t), is proportional to the rate of change of the actuating error signal, e(t).
It speed up the control action by anticipating where it measures the rate of change the error and applying a
control action proportional to the rate of change.
Derivative mode is never used alone since its output is zero except when the error signal is changing (ramp
function). So the PD used in slow process such temperature control in reactor.
So its advantages: (1) Fast action (dose not used for fast process e.g. pH, pressure).
(2) Add stability to a closed loop control system.
Disadvantages:
1. Effective only during transient response, so that can never be used alone.
2. If the steady state error of a system is constant with respect to time, the time derivative of this error is
zero and the derivative control has no effect on the steady state error.
3. Amplifies noise signal.
43
Biochemical Engineering Process control
m(t)
KC(1+ds) M(s)
Derivative only
(a) Block diagram of a proportional-plus-derivative controller; (b) Diagram depicting a unit ramp input
(c) Diagram depicting the controller output.
t
KC de(t )
m(t ) m K C e(t )
i e(t )dt K
0
C d
dt
M ( s) 1
The transfer function is K C (1 d s)
E ( s) is
m(t) M(s)
m
m(t)
K C (1 i s i d s 2 ) M(s)
is
PI
(a) Block diagram of PID controller; (b) Diagram depicting a unit ramp input; (c) Diagram depicting the
controller output.
44
Biochemical Engineering Process control
PID controllers are used where signals are not noisy and where tight dynamic response is important.
e.g. temperature controllers in reactors are usually PID.
In bioprocess environment, where the lag of a control loop is usually not a major concern, the most common
form of control is the PI.
Notes:
For large KC more accuracy but approaches instability.
For small i more sensitive but more oscillatory.
For large d increasing in speed of response.
45
Biochemical Engineering Process control
Ex: A unit-step change in error is introduced into a PID controller. If Kc = 10, i = 1, and d = 0.5, plot the
response of the controller, m(t).
M ( s) 1
K C (1 d s) m(t)
E ( s) is
1
E(s) = slop = 10
s
10 1
M ( s) (1 0.5s) 5
s s
10 10
M ( s) 5 10
s s2
Where the PV or H increases (Fo decrease) the OP decreases Where as the PV increases (tank filling) the OP increases
(closing the inlet valve more) to reduce the filling rate. (opening the outlet valve more) to drain the tank faster .
46
Biochemical Engineering Process control
Control valve: that can control the rate of flow of a fluid in proportion to the amplitude of a pressure
(electrical) signal from the controller. From experiments conducted on pneumatic valves, the relationship
between flow and valve-top pressure for a linear valve can often be represented by a first-order transfer
function:
Air supply Air supply
Q( s ) KV
P( s) V s 1
Where: Kv: steady-state gain i.e., the constant of proportionality between steady-state flow rate and valve-
top pressure.
v: time constant of the valve and is very small compared with the time constants of other
components of the control system.
Q( s )
KV So, the valve is said to contribute negligible dynamic lag.
P( s)
EX: Consider the 1st order T. F. of the process with control valve
Valve process
P(s) KV KP Y(s)
If we assume no interaction; V s 1 s 1
The T. F. from P(s) to Y(s) is
Y ( s) KV K p
For a unit step input in p
P( s) ( v s 1)( s 1)
1 KV K p 1 t / v 1 t /
Y(s) = y(t) = KvKp 1 v e e
s ( v s 1)( s 1) v v
47
Biochemical Engineering Process control
Y ( s) K v K p
If >> v the T. F. is For a unit step input in p
P( s) (s 1)
y(t) = KvKp (1 e-t/ )
Notes:
(1) A typical pneumatic valve has a time constant of the order of 1 sec. Many industrial processes
behave as first-order systems or as a series of first-order systems having time constants that may range from a
minute to an hour. So the lag of the valve is negligible.
(2) The time constant of lag valve depends on the size of valve, air supply characteristics, whether a valve
positioner is used, etc.
Solution:
o = i G = 10 50 = 500 mw
Solution:
V
o = i G = 2oC 50 o
= 100 V
C
48
Biochemical Engineering Process control
transducer
controller m T
Set point
mi Ti Q
Tm
Tm
(A) (B)
Tm(s) Measuring
device
Gm(s)
49
Biochemical Engineering Process control
(1) Servo systems: In these systems the controlled output followed the changing in set point Such as aircraft
and satellite systems. The T.F. of closed loop system of this type is
G(s)
T ( s) TSP ( s)
1 Gm ( s)G( s)
Servomechanism system
50
Biochemical Engineering Process control
(2) Regulatory Systems: In these systems the set point (desired value) is constant and the change occurring
in the load such as chemical and biochemical systems. The T.F. of closed loop control system of this type is
G L ( s)G P ( s)
T ( s) L ( s)
1 Gm ( s)G( s)
3
GP(s) = (process)
10s 1
1
GL(s) = (Load)
10s 1
GC(s) = 2 (controller)
SP(s) o(s)
2 1.5 3
Set point
10s 1
GC(s) GV(s) GP(s)
1
Solution:
Gm(s)
(s) GL ( s )
Regulator loop: o
L ( s) 1 Gm ( s)G( s)
3 9
G(s) = GC(s) GV(s) GP(s) = 21.5 =
10s 1 10s 1
1
o (s)
10s 1 =
1
o(t)
L ( s) 1 9 10s 10
10s 1
1
L(s) = 1/10
s
1
51
Biochemical Engineering Process control
EX: Determine the transfer functions C/R, C/U1, and B/U2 for the system show in Fig. below. Also
determine an expression for C in terms of R and U1 for the situation when both set-point change and load
change occur simultaneously.
Solution:
, G = G c G1 G2 G3 H 1 H2
C= ,
It is the difference between the set point (desired point) and the measured value when the time
approaches .
L(s)
C ( s) H ( s)
E(s) = 1 R( s)
R ( s )
C ( s) G( s)
But , where G(s) = G1(s)G2(s)
R( s ) 1 G ( s ) H ( s )
52
Biochemical Engineering Process control
G( s) H ( s)
E(s) = 1 R( s)
1 G( s) H ( s)
1
E (s) R( s )
1 G( s) H ( s)
s
Steady state error = e(t) = lim sE(s) = lim [ R( s ) ]
t s 0 s 0 1 G( s) H ( s) s 0
Ex: For the following system find the steady state error for
1
a. For unit step input, R =
s
s( s 1)(s 4) 1
e() = lim s 3 =0
s0 s 5s 2 8s 8 s
1
b. For unit ramp input, R =
s2
s( s 1)(s 4) 1 4 1
e() = lim s =
s0 s 5s 8 s 8 s
3 2 2
8 2
s( s 1)(s 4)
e() = lim s 1 = 0
s0 s 5s 2 8 s 8
3
53
Biochemical Engineering Process control
(A) (B)
T ( s) KC A /( s 1) KC A
TR 1 KC A /( s 1) s 1 KC A
T ( s) A1
TR ( s) 1 s 1
Where ,
According to this result, the response of the tank temperature to change in set point is first-order, and
Thus, the ultimate value of the temperature T/ () does not match the desired change. This discrepancy is
called offset
Set point
Offset = TR - T ()
54
Biochemical Engineering Process control
T ( s) A1 A /( s 1) 1
Ti( s) 1 K C A /( s 1) s 1 K C A
T ( s) A2
Ti( s) 1 s 1
Where
T (t ) = A2(1 e-t/1 )
Load
And the final response is T () =
Offset = 0 - T () = 0 =
Setpoint
T ( s) AA 1 /( s 1) Ti
Ti( s) 1 K C A(1 1 / i s) /( s 1)
T ( s) is
Or figure (C)
Ti( s) i s ( K C A i i ) s K C A
2
55
Biochemical Engineering Process control
T ( s) ( i / K C A) s
Ti( s) ( i / K C A) s 2 i (1 1 / K C A) s 1
T ( s) As
Or 2 2 1 . (*)
Ti( s) T1 s 2T1 s 1
i 1 i 1 KC A
Where: A1 = i/KCA, T1 = ,
KC A 2 KC A
For a unit-step change in load,
A1
T ( s)
T s 2T1 s 1
1
2 2
This eqn is equivalent to the response of second order system to an impulse function of magnitude A1
T (t ) =
=1
A=1
KC = 3.5
Setpoint
Setpoint
Offset = TR - T () = 0 0 = 0
T ( s) K C A(1 1 / i s) /( s 1)
TR ( s) 1 K C A(1 1 / i s) /( s 1)
T ( s) s 1
2 2 i
TR ( s) T1 s 2T1 s 1
Where T1 and are the same functions of the parameters as in Eq. (*).
For unit step change in setpoint ( TR (s)= 1/s)
56
Biochemical Engineering Process control
1 is 1 i 1
T ( s) =
s T12 s 2 2T1 s 1 T1 s 2T1s 1 s(T1 s 2T1s 1)
2 2 2 2
i t / T t 1
2 t 1 2
T (t ) = e sin 1 2
+ 1 e t / T
sin 1 tan 1
1 2 T T 2 T
1
Again notice that the integral action in the controller has eliminated the offset.
Offset = TR - T () = 1 1 = 0
T2 =
=
Figure (D)
The effect of controller gain and measuring lag on system response for unit-step change in set point are
shown in the figures below
Setpoint
57
Biochemical Engineering Process control
Ex: Consider the two tank reactor control system shown in figure below. The volumetric flow rate
( F = 100 ft3/min) contains reactant A ( co = 0.1 lbmol/ft3) which decomposes with 1st order reaction A B
by rate (-rA = kc) where k is rate constant, a function of temperature. k1 = 1/6 min-1 & k2 = 2/3 min-1 where
T2 > T1. The purpose of the control system is to maintain c2 constant by adding pure A to tank 1 through
valve. The sample from tank 2 is withdrawn a rate of 0.1 ft3/min. Another data are:
Mw of A = 100 lb/lbmol, A = 0.8 lbmol/ft3, m = 1 lbmol/min, V1 = V2 = 300 ft3.
Control valve: flow of A through the valve varies 0 2 ft3/min as the valve top pressure varies 3 15 psig.
Neglect v.
Measuring element: the measuring element converts concentration of A to pneumatic signal. The output of
the measuring element varies from 3 -15 psig as the concentration of A varies from 0.01 to 0.05 lb mole/ft3.
Neglect lag (m = 0). The controller is proportional type.
Solution: Reactor T. F.
M.B on A; tank 1:
dc1 m
V Fc o m ( F )c1 Vk1c1 . (1)
dt A
m m
<< F F + F
A A
dc1
Eqn (1) becomes V ( F Vk1 )c1 Fco m
dt
dc 1 1 V
1 1 c1 co m , 1 = 2 min
dt k1V k1V F k1V
1 F (1 )
F F
58
Biochemical Engineering Process control
c2 0.0244 lbmol/ft3
M / A 2 0
Control valve: Gc(s) = KV = = 1/6 ft3/min/psi or
P 15 3
Normal operating pressure, p (st.st.) is
m / A 1/ 0.8
p = pmin + 3 10.5 psi
KV 1/ 6
m m
The Eqn for the valve: KV ( p p ) m(t) = m KV ( p(t ) p) A
A A
50
Transportation lag: d 0.5 min
0.1 / 0.001
d s
T. F. of sample line is e = e0.5 s
B( s ) 15 3
Measuring element: Gm(s) = e-0.5s Km = 300 psi/(lbmol/ft3)
C 2 ( s) 0.05 0.01
Normal pen reading, b = bmin + Km ( c2 c2 min ) = 3 + 300 (0.0244 0.01) = 7.32(t 0.5) psig
The Eqn for measuring device is b(t - 0.5) = 7.32 + Km(c2(t) 0.0244)
P( s)
Controller: GC(s) = KC =
E (s)
The Eqn for controller: p(t) = p + KC e(t),
/
At st. st. c R = b = 7.32 [e(t) = 0]
C/R(s)
CR(s) + E(s) M(s) + C1(s) C2(s)
P(s)
Km KC KVA
- +
controller Control
valve
B(s)
Km e 0.5 s
OR Co(s)
C/R(s) C2(s)
CR(s) + E(s) P(s) M(s) 1 + C1(s)
Km KC KVA
- F M+
controller Control F
B(s) valve
Km e 0.5 s
59
Biochemical Engineering Process control
Stability
A stable system is one where the controlled variable will always settle near the set point. An unstable
system is one where, under some conditions, the controlled variable drifts away from the set point or breaks
into oscillations that get larger and larger until the system saturates on each side.
C ( s) G( s)
R( s ) 1 G ( s ) H ( s )
Absolute Stability: that is whether the system is stable or unstable. A control system is in equilibrium if (in
the absence of any disturbance or input) the output stays in the same state.
In the terms of impulse: the system is stable if its impulse response approaches zero as time approaches
infinity.
Relative stability: it is a degree of stability. That is, if the control system is stable, how close is it to being
unstable.
Rouths stability criterion: It tells us whether or not there are positive roots in a polynomial equation
without actually solving for them. It can also be determined if the system is stable (if there are no roots with
positive real parts). The test limited to systems which have polynomial characteristic Eqn but without
transportation lag.
C ( s) bo s m b1 s m1 .....bm
The closed loop T.F.
R( s) ao s n a1 s n1 .....am
Where aosn+a1sn-1+..an = 0 is characteristic Eqn .(1)
If this Eqn has some roots with positive real parts, then the system is unstable, or some roots equal to zero,
the system is marginally stable (oscillatory), therefore it is unstable.
Then for stability the roots of characteristic Eqn must have negative
real parts (closed-loop poles lie in the left half s-plane). j
S-plane
60
Biochemical Engineering Process control
Routh array:
Note: if any coefficient in the characteristic Eqn is negative or zero, then the system is unstable, if we
interested in the absolute stability.
If all coefficients are positive then arrange the coefficients are as following:
sn ao a2 a4 .0
sn-1 a1 a3 a5 .0
sn-2 b1 b2 b3 .0
sn-3 c1 c2 c3 .0
s0 ...
a1a2 ao a3 a1a4 ao a5
Where: b1 , b2 , .etc
a1 a1
b1a3 a1b2 b a a b
c1 , c2 1 5 1 3 , etc
b1 b1
If all terms in 1 column have positive signs, the system is stable, if there is change in signs of the 1 st column
st
terms, then the system unstable and the number of roots which have positive real parts are equal to the
number of changes in the signs.
Solution:
s4 1 3 5 0
s3 2 4 0
s2 1 5 0
s -6 0
s0 5 0
Hence: the system is unstable and there are two positive real parts because there are two changes in
sign of the coefficients in the 1st column.
Special cases: (1) If any coefficient in the 1st column is zero, but the others are not, then replace it by (very
small number) and continue.
61
Biochemical Engineering Process control
Solution: s3 1 1
s2 2 2
s 0
so 2
if the sign of the coefficient above the zero ( ) is the same as the below it, it indicates that there are a pair of
imaginary roots . If the sign of the coefficient above the zero ( ) is opposite that below it, that means one
sign change.
(2) if all the coefficients in any derived row are zero, the evaluation of the rest of the array can be continued
by forming an auxiliary polynomial with the coefficients of the last row and by using the coefficients of the
derivative of this polynomial in the row.
Ex: Determine the number of positive real roots to the equation: s5 + 2s4 +24s3 + 48s2 25s 50 = 0
s5 1 24 -25
s4 2 48 -50
s3 0 0 the auxiliary polynomial Eqn P(s) = 2s4 + 48s2 50
dp( s)
8s 3 96s
ds
The terms in the s3 row are
s3 8 96
2
s 24 -50
s 112.7 0
s0 -50
C (s) K
R( s ) s( s s 1)(s 2) K
2
s4 + 3s3 + 3s2 + 2s + K = 0 [Or characteristic Eqn is 1+ G(s)H(s) = 0 where G(s)H(s) is open loop T.F.]
62
Biochemical Engineering Process control
It is defined as the steady state behavior of the system when forced by a sinusoidal input. It is the most
important methods for stability analysis and used for design purposes control system.
Suppose the input to the process is sinusoidal signal [x(t) = A sin t]
Where: A is amplitude
1 2
is frequency (Hertz) = or (rad/time) =
T T
T is period of one complete cycle (time)
The output [y(t)] will also be sine wave with the same frequency but different amplitude and phase as shown
below.
Input = A sin t
A B
The frequency response characteristics of a system can be obtained by the sinusoidal T.F. in which s
is replaced by j.
e.g. G(s) s = j G(j) , G(j) is a complex number consists of amplitude and phase.
G(j) = G( j ) e j
Ex: Find the frequency response of the 1st order of the process with T.F.
Kp
G( s) and the input x(t) = A sin t Arg G(j) Re(G)
s 1
Kp
Substitute s = j in G(s) G( j ) multiply by denominator
1 j
Kp 1 j K p (1 j ) Kp ( K p )
G( j ) . = = j
1 j 1 j 1 2 2 1 2 2 1 2 2
Kp K p
Re [G(j)] = , Im [G(j)] =
1 2 2 1 2 2
63
Biochemical Engineering Process control
K p K p K p K p 2 2
2 2 2 2
Kp
AR = G( j ) =
2 2
=
2 2
=
1 1 (1 )
2 2 2
1 2 2
Kp Kp
So G( j ) = =
1 j 1 2 2
K p
1 1 = tan-1 (-) = - tan-1
2 2
Phase = tan
Kp
1 2 2
Hence y(t) = x(t)G(t) = A G( j ) sin(t tan-1) X Kp Y
AK p s 1
y(t) = sin(t tan-1)
1 2 2
1 1 1 1
T.F. s s 1
s 1 s s2 s 2 s 1
2 2
1 1 1 1
AR 2 2 1
1
2 2
2 (1 2 2 ) 2 (2 ) 2
2
-tan-1 -90 -290 90 tan-1 -tan -1
1 2 2
Ex: The stirred-tank heater of figure below has a capacity of 15 gal. Water is entering and leaving the tank at
the constant rate of 600 lb/min. The heated water that leaves the tank enters a well-insulated section of 6-in.-
ID pipe. Two feet from the tank, a thermocouple is placed in this line for recording the tank temperature. The
electrical heat input is held constant at 1,000 kw. If the inlet temperature is varied according to the relation
Where Ti is in degrees Fahrenheit and t is in minutes, find the eventual behavior of the thermocouple reading
Tm. Compare this with the behavior of the tank temperature T. Ignore m for thermocouple. Steady state
Ti = 75oF.
Solution: The deviation variable Ti is
64
Biochemical Engineering Process control
q
Ti =
mc p
Hence Tm = Tm 170
dT
Heat balance on tank: mcp (T - Ti ) =Vcp
dt
T ( s ) 1 V
= = G1(s) , 1 0.202 min
Ti ( s ) 1 s 1 m
T 2
For pipe m e D = G2(s) , D = L/U = = 0.0396 min
T 600 /( 60.2 0.197)
s
Tm ( s ) e D e 0.0396s
= G(s) = G1(s) G2(s)
Ti( s ) 1 s 1 0.202s 1
To find AR and phase, replace s = j
G(j) = G( j )
G( j ) = G1 ( j ) G2 ( j )
= G1 ( j ) G2 ( j )
1 1
G1 ( j ) = = = 0.17
1 1
2 2
(0.202) 2 (46) 2 1
D
G2 ( j ) = e = e 0.039646 = cos(0.0396 46) j sin(0.0396 46)
65
Biochemical Engineering Process control
Bode Plot
It is a graphical representation of open loop T.F. [G(j)H(j)] to illustrate the relative stability. Bode
plots consist of two graphs: Bode magnitude plot and Bode phase angle plot, where
G( j) H ( j) = G( j ) H ( j ) G( j ) H ( j )
A- Gain; G(j) = K
1
B- First order factor ; G(j) = or G(j) = 1 + j
1 j
1 1 1
For : L = 20 log = 20 log
1 j 1 j 1 2 2
arg G(j) = -tan-1 = 0o at << 1 and arg G(j) = -tan-1 = -90o at >> 1
arg G(j) = tan-1 = 0o at << 1 and arg G(j) = tan-1 = 90o at >> 1
66
Biochemical Engineering Process control
L (dB)
Slope = 20 dB/decade
1 + j
1 j
Log
= -tan-1
tan-1 0 0 0
1 1/ -45
Log
2 2/ -63
Bode plot of first order factors
1 -90
For G(j) =
1 j
When 0 , 0
When , -90
1
C- nth power of s or j i.e G(j) = or G(j) = (j)n [integral or derivative]
( j ) n
1 1
For G(j) = : L = 20 log = -20 n log and arg G(j) = -n90o
( j ) n
n
67
Biochemical Engineering Process control
log
D
D- dead time; G(j) = e j
L, dB
Log
D
Bode plots of dead time e j
68
Biochemical Engineering Process control
1 1
E- Quadratic factor (second order); G(s) = or G(j) =
s 2 s 1
2 2
j 2 1
2 2
1
L = 20 log
(1 ) (2 ) 2
2 2 2
2
arg G(j) = -tan -1
1 2 2
Regardless of value
When << 1 L 0
When >> 1 L 20 log 1/22 = - 40 log
i.e. the slope = -40dB/decade or -12/octave
When = 0 = 0o
When = 1 = -90o
Log
69
Biochemical Engineering Process control
=1
stable
Phase crossover frequency, : is the frequency at which the phase angle first reaches -180o
G(j)H(j) = -180o
Gain crossover frequency, 1: is the frequency at which the open-loop gain first reaches the value 1.
G( j ) H ( j ) = 1
Gain margin, Kg: is the amount of gain in dB that can be allowed to increase in the loop before the closed
loop system reaches instability.
1
It is given by Kg = or in the terms of dB Kg, dB = -20 log G( j ) H ( j )
G( j ) H ( j )
Phase margin, : is that amount of additional phase lag at which 1 required to bring the system to the verge
of instability. It is given by
= 180 + , where is phase angle of G(j)H(j)
Notes:
1- For stable system the gain margin, Kg, and phase margin, , must be positive.
2- alone or Kg does not give a sufficient indication of the relative stability.
3- For satisfactory performance should be 30 60o and Kg should be greater than 6 dB.
4- For stable system, Kg indicates how much the gain (K) can increased before the system becomes
unstable. For an unstable system Kg is indicates of how much the gain (K) must be decreased to make
the system stable.
70
Biochemical Engineering Process control
Tuning of controller
Optimum setting of controller is the final step in prepare of control system to good perform. The best
setting when the decay ratio C/B = 1/4
Ziegler-Nichols method: The Ziegler-Nichols (ZN) controller setting is pseudo standards in the
control field. They are easy to find and to use and give reasonable performance on some loops, and used to
compare with other controller settings. They are often used as first guesses, but they tend to be too
underdamped.
1 1
GP(s) = (process), H(s) = (measuring device)
(5s 1)(2s 1) 10s 1
Solution: Using proportional controller with KC = 1, the phase crossover frequency can be found by the Eq.
-180o = G(j)H(j)
1
Ku = [Ku is ultimate value of gain]
AR
1
But AR = G( j ) H ( j ) = = 0.08
25(0.415) 1 4(0.415) 2 1 100(0.415) 2 1
2
Ku =
1
= 12.6
0.08
71
Biochemical Engineering Process control
2 2 Pu
Pu = = = 15.14 min/cycle
0.415
(Note the KC in PI controller becomes less because I mode make the system less stable, so reduce KC to
increase stabilty)
For a PID controller KC = Ku/1.7 = 7.4 , i = Pu/2 = 7.57 min , d = Pu/8 = 1.89 min
(Note KC in PID controller was increased and i was decreased because D mode helps to stabilize the
system. If PD alone were used the same values are taken as in PID mode)
Pu : The period of the resulting oscillation which would occur if a proportional controller with Ku is used.
Note: can be obtained from Bode diagram but without introduce the controller T.F. in OL T.F.
Controller KC i d
P Ku/2 -------- --------
PI Ku/2.2 Pu/1.2 --------
PID Ku/1.7 Pu/2 Pu/8
Ex: The following block diagram represents two-tank reactor system. Using the Ziegler-Nichols rules,
determine controller settings for various modes of control depending on Bode diagram.
Solution: 1
Open loop T.F. without controller ( s 1)(2s 1)
e 1/ 2 s
G(s)H(s) =
( s 1)(2s 1)
e 1/ 2 s
e 1 / 2 j
G(j)H(j) =
( j 1)(2 j 1)
L = L1 + L2 + L3
72
Biochemical Engineering Process control
1 1
L1 = 0 , L2 = 20 log , L3 = 20 log
2 1 4 2 1
Corners: = 1, =
20
10
-10
-20
-30
-40
-50
-60
-70
-80
0.1 0.5 1 5 10 100 1000
Pu = 2 / = 3.78 min/cycle
73
Biochemical Engineering Process control
Advance Control
Cascade Control: Cascade control is especially useful in reducing the effect of a load disturbance that
moves through the control system slowly. The inner loop has the effect of reducing the lag in the outer loop,
with the result that the cascade system responds more quickly with a higher frequency of oscillation.
74
Biochemical Engineering Process control
The block diagram of kettle control system is shown in the figure (1):
U
R
GC1 Gc2 GV Gjacket Gkettle To
GP2 GP1
Gm2
Gm1
Figure (1)
To determine the transfer function To/R, the inner loop is reduced to one block as shown in figure below
To GC1Ga GP1
R 1 GC1Ga GP1Gm1 GC 2GV GP 2 GP1
P2 To
1 GC 2GV GP 2Gm 2
To obtain the transfer function relating
output to load, To/U, the block diagram
of figure (1) is reduced to the figure below
Gm1
To GP1Gb
U 1 GC 2 GV Gb GC1Gm1GP1
GP2 GP1 To
GP 2
Gb
GP 2 GC 2 GV Gm 2 GV Gm2
GV Gm1
Ex: Compare conventional control with cascade control, in the following figures.
75
Biochemical Engineering Process control
Solution: The conventional control with cascade control were simulated on a computer. The values of KC
and i were chosen by trial and error to give the response to a step change in set point shown as Curve I of
Fig. (A). this response, which has a decay ratio of about 4, was obtained with KC = 2.84 and i = 5. The
Ziegler-Nichols settings (Kc = 3.65 and i = 3.0 ) gave a set-point response that was too oscillatory.
The response of the system to a step change in U of 4 units is shown as Curve II of Fig. (B). The load
response for no control (i.e. KC = 0) is also shown as Curve I for comparison.
The controller gain KC2 of the inner loop was chosen arbitrarily to be 10.0. This value was chosen to be high
in order to obtain a fast-responding inner loop, a desirable situation for cascade control. Because of the
introduction of the inner loop, the dynamics of the control system have changed and it is necessary to tune
the primary controller parameters for a good response to a step change in set point. By trial and error,
primary controller settings of KC1 = 1.0 and i = 0.63
Figure (A)
above
Figure (B)
above
Ex: Show that the cascade control system gives a better response than conventional control.
76
Biochemical Engineering Process control
Solution: The equivalent single-loop control system of the cascade system, shown in Fig. (c)
1 1
Where: K = 10/11 , = ,
11 11
This second-order underdamped system, for which and are small, responds much faster than the critically
damped second-order transfer function of the first two blocks of the open-loop system.
Feedforward Control:
When the disturbances are large, or where the process dynamics are sluggish, feedback control results
in significant and sustained errors. The basic notation of Feedforward control is to detect disturbances as they
enter the process and make adjustment in manipulated variables before the output variable (controlled
variable) deviates from the set point.
77
Biochemical Engineering Process control
GP
GP
GP
GP
78
Biochemical Engineering Process control
If the transfer function of the process and the disturbance are first order plus dead time (FODT):
1 m
K d d
i.e. GP e , Gd 2 e
Ps 1 d s 1
And if the sensor gain is Km and valve gain is KV
K d P s 1 (d m )
G ff e
K m KV d s 1
For more vigorous manipulated variable response is in order from the start, Tlead must be larger than Tlag.
Note: Feed forward is good, but not sufficient: Of course, there will always be another disturbance xd1 that
is not compensated by feedforward control.
So it may be retain a primary loop feedback controller to ensure that y* remains under control.
lead s 1
The T.F. of the feedforward controller is: G f K f
lag s 1
1- Removing the feedback controller action (GC) by setting the controller to manual.
2- Set the feedforward controller to the computed steady-state gain (Kf) necessary to compensate ultimately
for a step change in Ci . This means that the dynamic portion of Gf (s) will be removed and only the constant
term (Kf) will remain.
3- Make a step change in Ci and observe the open-loop transient of C. The general shapes of the response to
be expected are shown in figure below.
4- If the response shown in Fig. (a) occurs, lead must predominate in Gf(s) [i.e. Tlead > Tlag]. If the response of
Fig. (b) occurs, lag must predominate in Gf(s) [i.e. Tlead < Tlag].
tP = peak time
79
Biochemical Engineering Process control
Solution:
3s 1
Gf (1)
1.4s 1
Figure (b)
80
Biochemical Engineering Process control
Ratio Control: An important control problem in an industry is the combining of two or more streams to
provide a mixture having a desired ratio of components. Examples of this mixing operation include the
blending of reactants entering a reactor or for the injection of a fuel-air mixture into a furnace.
The figure below is shown a control system for blending two liquid streams A and B with ratio of Kr.
Fluid A qA
Flow-measuring
element
Controller
Kr
Flow-measuring
element
Fluid B qB
PB = Supply pressure
Gm1 K r GC GV GP
QB QA + PB
1 GC GV Gm 2 1 GC GV Gm 2
The control action for a flow-control system is usually PI. Derivative action is usually avoided in flow
control because the signal from a flow-measuring element is inherently noisy and the derivative action would
amplify the noise and give poor control
81