Académique Documents
Professionnel Documents
Culture Documents
Faculty of Engineering
Helwan
Prepared by
Dr. Mohiy Bahgat
2012
Industrial Process Control
Course Contents
Chapter1:Components and characteristics of industrial
processes
1.1. What is a process?
1.2. What does a control system do?
1.3. Why is control necessary?
1.4. Why is control possible?
1.5. How it can be done?
1.6. Where it can be implemented?
1.7. What are the control engineer’s interests?
1.8. How can the process control be documented?
1.9. Control strategies.
1.10. Components of industrial processes.
1.11. Exercises.
2.5. Exercises.
References
Chapter (1)
Components and
Characteristics of
Industrial Processes
Chapter (1)
Components and Characteristics
of Industrial Processes
Process control is an engineering discipline that deals with architectures,
mechanisms, and algorithms for controlling the output of a specific
process. This can be simple as making the temperature in a room kept
constant or as complex as manufacturing an integrated circuit.
1. Discrete processes.
2. Batch processes.
3. Continuous processes.
4. Hybrid processes.
So, the final goal of the control is to maintain or adapt desired conditions
in a physical system or an industrial process by adjusting selected
variables in that system. This can be done by making a use of an output
signal of the system to influence an input signal of the same system,
which called feedback control.
These issues are usually translated into values of the system or process
variables such as temperature, pressure, flow rate, liquid level, speed of
a motor or conveyor, displacement … and so forth which are to be
controlled.
If the previous considerations are not correct, or the plant design is not
accurate, the control may not be possible and the plant operation
through manipulating the final control elements may not be achieved.
3. So, one can say that, the process control is done automatically
using instrumentation and computation that perform all the
features of feedback control without requiring or allowing the
human intervention.
A analyzer.
F flow rate.
P pressure.
T temperature.
and so on … … …
Control Strategies
Classical Modern
Control Control
Industrial
Controllers
+ Adaptive Optimal Robust A.I
PLCs Control Control Control Control
Computer Control
1.11. Exercises :
Chapter (2)
Mathematical
Modeling of
Industrial Processes
Chapter (2)
Mathematical Modeling of
Industrial Processes
2.1. Modeling Procedure :
The general steps for building a mathematical model of a process can
be summarized as follows :
1. Define goals :
a. Specific design decisions, which means that the goal should be
specific and clear.
2. Prepare information :
The information needed to be prepared are :
a. Sketch process and identify the system : identifying the
process, the key variables and the system boundaries.
b. Identify variables of interest : the data regarding the physical
process components and the external inputs to the process.
c. State assumptions and data : the assumptions on which the
model will be built on.
Material Balance :
Accumulation of mass = (Mass)in – (Mass)out
Energy Balance :
Accumulation of energy = (H + PE +KE)in
– (H + PE + KE)out + Q – Ws
where :
H : enthalpy = E + pv
PE : potential energy
KE : kinetic energy
Ws : work done by the process on the surroundings
Q : heat transferred to the process from the surroundings.
Q = h . A . ∆T
E : internal energy
pv : flow work
2. The information :
a. The process is the tank with its fluid in it, its design and shape
and the speed of making the fluid uniform.
b. Assumptions : well-mixed vessel, density is the same for A and
solvent S in addition the flow in is constant.
c. Data : F0 = 0.085 m3/min , CAinit = 0.925 mole/m3 , ∆CA0 =
0.925 mole/m3 and CA0 = 1.85 mole/m3 after the step. The
system is initially at steady state.
Assuming that the level in the tank is almost constant, which means
that the flows in and out are equal, i.e : Fo = F1 = F
– M WA F CA )∆t
Dividing by ∆t and taking the limit as ∆t 0
dCA (2)
M WA V M WA F (C A0 - C A )
dt
Applying the same material balance for component S :
dCs
M Ws V M Ws F (C s0 - C s )
dt
Accordingly :
dCA
V F (C A0 - C A )
dt
dCA 1 1
C A C A0
dt , with V/F = τ = time constant
(∫ (1/τ)dt τ
Use the integrating factor I.F = e = et/
dCA 1 C
e t/ ( C A ) A0 e t/
dt
C A0e t/ C
d(C ) e
t/ t/
A e dt A0 dt
C A0 t/
C A e t/ e K
C A C A0 K e-t/
1. Result analysis :
The solution of the process model described in eqn. (3) is an
exponential curve as displayed in the Fig (2.3). The process response
from the change beginning to the end is affected by the time constant
(τ), where the large time constant the slow process response and vice
versa. According to the goal, it is needed to know the time taken to get
90% of the change in outlet concentration. This time can be calculated
from eqn. (3).
6. Validation :
By performing an experiment on a stirred tank as described in the
controlled process and taking samples of the outlet material,
analyzing the obtained samples and drawing the data points, one can
get the shown Fig (2.4). By visual evaluation, one can say the model
is valid in representing the process.
2. The information :
a. The process is the air inside the room. The important variables
are the room temperature and the furnace on-off status.
b. Assumptions : the air in the room is well mixed, no transfer of
material to or from the room, the heat transferred depends only
on the temperature difference between the room and the outside
environment, no heat is transferred from the floor to the ceiling
and effects of kinetic and potential energies are negligible.
c. Data : the heat capacity of the air CV = 0.17 cal/g Cº, the overall
heat transfer coefficient UA = 45 x 103 cal/Cº hr, the size of the
KE = PE = Ws = 0 from assumptions
dE/dt = Q ………………..…… (1)
but dE/dt = ρ V CV dT/dt
and Q = - UA (T – Ta) + Qh
and Qh is represented by :
0 when T > 23 Cº
dT 1 UA Ta Qh V Cv
T , with
dt V Cv UA
(∫ (1/τ)dt τ
Use the integrating factor I.F = e = et/
dT 1 UA Ta Qh
e t/ ( T ) e t/ .
dt V Cv
UA Ta Qh
d(e e
t/ t/
. T) . dt
V Cv
UA Ta Qh
d(e
t/
. T) e t/ dt
V Cv
UA Ta Qh t/
e t/ . T . e K
V Cv
UA Ta Qh
T . K . e-t/
V Cv
5. Result analysis :
From the previous figure (2.6), it can noticed that the room
temperature decreases until it reaches 17 Cº, the furnace will start
heating and the temperature increases until it reaches 23 Cº. This
process will be repeated with the heater On and Off periodically.
2.2. Linearization
If the developed process model is linear, analytical solutions can be
obtained easily. Most of the physical system models are nonlinear. The
analytical solutions of the nonlinear models are not available, thus the
numerical simulations are sought. Instead of obtaining non-
understandable solutions for the nonlinear models by numerical
simulations, approximate linearized solutions can be used for
representing realistic processes.
≠ k . (Ax1)½ + k . (Bx2)½
Thus the above system in not linear, it is nonlinear system, and so on.
Fig (2.8) - Process response due Fig (2.9) - Process response due to
to a change in feed temperature a change in cooling fluid flow rate
Fig (2.10) - The total process response due to a change in both feed
temperature and cooling fluid flow rate
According to the dynamic behavior of the process, one can say that this
process is linear because it obeys the superposition principle. In general a
nonlinear process model can be linearized and approximated by a linear
model using Taylor series expansion. For example, a process nonlinear
model with one variable can be linearized around its S.S point as :
dF 1 dF
F(x ) F(x s ) (x x s ) (x x s )2 R
dx x s 2 dx x s
A process nonlinear model with two variables can be linearized around its
S.S point as follows :
F
F( x 1 , x 2 ) F( x 1s , x 2 s ) (x1 x1s )
x 1 x1s , x2 s
F 1 2F
(x 2 x 2 s ) ( x 1 x 1s )2
x 2 x1s , x2 s
2 x 21
x1s , x2 s
1 2F 1 2F
( x 2 x 2 s )2
2 x 22 2 x 1 x 2 x1s , x2 s
x1s , x2 s
( x 1 x 1s )( x 2 x 2 s ) R
Function examples :
x xs 1
2. F(x) = (x x s )
1ax 1 a xs 2 (1 a x s )2
2. The information :
a. The process is the liquid in the tank. The important variables are
the level and the flow out.
b. Assumptions : the density is constant, the cross sectional area of
the tank A does not change with height, the system is at quasi-
steady state because the pipe dynamics is fast with respect to that
of the tank level, the pressure is constant at inlet and outlet,
c. Data : the initial steady state conditions are : Flows F0 = F1 =
100 m3/hr, Level L = 7 m, the cross sectional area A = 7 m2 .
dL
A Fo - F1 …………………. (1)
dt
Another equation is required, one can relate the outlet flow to the head
as follows :
L0.5 L0.5
s 0.5 L-0.5
s (L - L s ) …………... (4)
Replacing the nonlinear term in Eqn.(3) and Subtracting the S.S
conditions and putting the input as a constant step : F’o = ∆Fo , one can
get the final process model as :
dL'
A = ΔFo - (0.5k F1L s-0.5 ) L' …..
dt (5)
Accordingly :
The process variables are :
L’
The external variables are :
∆Fo
The process parameters are :
A and kF1
dL' 1 1
e t/ ( L' ) e t/ . Fo
dt A
1
d(e e
t/ t/
L' ) Fo dt
A
Fo
d(e
t/
L' ) e t/ dt
A
Fo t/
e t/ L' e K
A
Fo
L' K . e-t/
A
Fo
Using the initial conditions, we get : K
A
Fo
L' ( 1 - e-t/ )
A
1
L' Fo K p ( 1 - e -t/ ) with K p
A 0.5k F1Ls0.5
where : t = time from step in Fo
τ = time constant = 0.98 hr
kp = 0.14 hr/m2
6. Result analysis :
From the previous figures (2.13) and (2.14), it can be noticed that the
solution of the linearized model is quite accurate with the small
change in the inlet flow rate.
On the other hand, it is inaccurate with the large change in the inlet
flow rate and it gives impossible negative level at S.S.
The general trend is the linearized model is more accurate with small
changes than with the large ones.
k1 = f(yi , t).∆t
f(t).e
-st
L(f (t )) F(s) dt
0
A -st
A
X (s) - e
s 0 s
Property Example
Time Change 1 s
L [f (at )] F( )
a a
δ unit impulse 1
A; t 0 A/s
u(t )
0 t0
At; t 0
r (t ) A / s2
0 t0
tn n! / sn+1
eat 1 / (s-a)
1 t /
e 1 / (τs+1)
f (t a) t a
f (t )
0 ta e as F(s)
df(t )
s F(s)
dt
dn f (t )
sn F(s)
dtn
f (t ) dt F(s) / s
0
N(s) C1 C2
Y(s) .....
D(s) H1 (s) H2 (s)
Taking the inverse Laplace for both sides, one can get :
1 1
Y(t) C1 L-1 [ ] C2 L-1 [ ] ....
H1 (s) H2 (s)
where Ci are constants and Hi(s) are the factors of the characteristic
polynomial D(s) = 0.
C’A(s) ( τ s + 1) = C’AO(s)
C’A0(s) = ∆CA0/s
1
C'A (s) C A0
s (s 1)
1
C'A (s) C A0 ( )
s s 1
1 2
2
s Y(s) 2 2 sY(s) Y(s) G.x(s)
0 0
G . 20
Y(s) 2 . x(s)
s 2 s 20
Take the input x(t) as a step function, then its Laplace transform will
A
be : X(s) and the output final equation is :
s
GA . 20
Y(s)
s.[s 2 2 s 20 ]
GA . 20
Y(s)
s (s r1 ) (s r2 )
GA k1 k2
s (s r1 ) (s r2 )
GA k1 k2
s (s r1 ) (s r2 )
This condition is called the under damped where the output has
decayed oscillations as shown :
GA k1 k2
s (s j) (s j)
Y (s )
Transfer Function = T.F = G(s) = X(s)
Basic definitions :
3 – 15 psi
Temp.
sensor
4 – 20 mA
Flow
valve
4 – 20 mA
Level 3 – 15 psi
sensor
L 4 – 20 mA
Flow Flow
valve sensor
3 – 15 psi
Flow
valve
Steam
Y1(s) = X2(s)
= G(s) . X1(s)
2. Parallel Blocks :
= G(s) . X(s)
C(s)
C(s).H(s) R(s)
G(s)
1 G(s)H(s)
C(s) ( ) R(s)
G(s) G(s)
1 G(s)H(s)
C(s) ( ) R(s)
G(s)
C(s) G(s)
Gt (s)
R(s) 1 G(s) H(s)
Example(6):
Apply the block diagram reduction rules to obtain the overall transfer
function Y(s) / X(s).
Output magnitude
Amplituderatio =
Input magnitude
Y ' ( t) max
= = G(jω)
X' ( t) max
Pahseangle = φ = ∠G(jω)
Im(G(j ω))
= tan-1
Re(G(j ω))
C A (s) (1 s) A .
s 2
2
A . /
C A (s)
1
(s ) (s 2 2 )
k1 k2 k3
1 (s j) (s j)
(s )
2.5. Exercises :
Chapter (3)
Measurement of
Control System
Parameters
Chapter (3)
Measurement of Control
System Parameters
Industry and industrial processes use a variety of sensors to control its
operations; the most familiar devices include thermocouples, pressure
gauges, encoders and others …, which measure a single variable at a single
point in the process. As manufacturing processes have become more
complex, additional types of information and measurements are required.
Some of industrial processes now need measurements of film thickness,
particle size, solids concentration, and contamination detection. Most of
the used sensors operate on relatively simple principles that are based on
the interaction between matter and sound, light, or electric fields. These
devices or sensors are used in process control to measure some parameters
and the resulting data is used to control the process. In addition, such
measurements enable better process understanding, which often drives
process improvement such as improving the productivity or achieving the
uniformity of a product. Figure (3.1) displays that the process
measurements are very important and representing the basic step leading to
several aspects which finally maximize the process profit and process
improvement. There is often more than one type of sensors that will
function adequately in a given application. For instance:
1. Temperature Sensors.
2. Position Sensors.
3. Pressure Sensors.
4. Force Sensors.
5. Fluid (Flow rate) Sensors.
limited usefulness.
● The data it provides should be easily interpreted. For example,
sensors that measure scalar quantities such as temperature or flow
rate generally output a signal that is proportional to these quantities.
If the sensor interface is digital, the readout should be provided in the
correct units.
● The sensor should be compatible with other sensors and with the
existing distributed control system.
● The sensor must provide an immediate pay-off relative to its cost of
purchase and installation, which is usually many times more than the
purchase price.
L = Lo ( 1 + γ . Δt )
where : L = the final length.
Lo = the initial length.
Δt = T – To = temperature difference.
γ = the linear thermal expansion coefficient.
γ1
γ2 < γ1
at To
Rαl
The resistance is inverse proportional to the conductor cross
section area :
R α 1/a
The resistance depends on the type of the conductor material :
R=ρ.l /a
The resistance is affected by the surrounding resistance such that :
RT = RTo ( 1 + α . Δt )
where : RT = the conductor resistance at a temperature T.
Δt = T – To = temperature difference.
The sensitivity of the RTD sensor depends on the value of the linear
change coefficient in resistance with respect to temperature (α).
Typical values of such coefficient for different materials are :
α = 0.004 /Cº for platinum.
α = 0.005 /Cº for nickel.
Since the variation of the RTD resistance is relatively small, the RTD
is usually used a branch of a bridge as shown in Fig (3.5) :
So, one can say that the word thermistor comes from a contraction of
thermal resistor. The resistance of a thermistor is a function of the
ambient temperature.
3.2.1. Potentiometers :
The simplest type of displacement sensor involves the action of
moving the wiper of a potentiometer. This device converts the linear or
Motion
r Wiper
Vout Vin
The output voltage of the sensor can be calculated from the following
formula :
r
Vout . Vin
R
Capacity C
Capacity C
Each end is wound in the opposite direction, which causes the voltages
induced to oppose one another. A core, positioned by a displacement
element, is movable within the tube. When the core is in the lower
position, the lower half of the secondary coil provides the output.
When the core is in the upper position, the upper half of the secondary
coil provides the output. The magnitude and direction of the output
depends on the amount the core is displaced from its center position.
When the core is in the mid-position, there is no secondary output.
Hence : E αN
Therefore, the tachometer will generate an output voltage proportional
to shaft speed as displayed in Fig (3.12).
Absolute encoders.
Incremental encoders.
An incremental encoder : which generates a pulse for a given
increment of the shaft rotation in case of rotary encoder, or a pulse for
a given linear distance travelled in case of linear encoder. Furthermore,
the total distance travelled or shaft angular rotation is determined by
counting the encoder output pulses or with proper interface electronics,
position and speed information can be derived. Rotary encoders are
available as housed units with shaft and ball-bearings or as modular
encoders which are usually mounted on a host shaft at the end of a
motor. The disk count is defined as the number of dark/light line-pairs
that occur per revolution in terms of cycles/revolution or c/r.
The pressure may be either static pressure where the fluid is not
moving or dynamic pressure where the fluid is moving and exerting a
pressure on the surroundings.
Since : R=ρ.l /a
where :
R = resistance of the wire grid in ohms.
ρ = resistivity constant for the particular type of wire grid.
l = length of wire grid.
a = cross sectional area of wire grid.
Therefore, as the wire grid is distorted by elastic deformation, its
length is increased, and its cross-sectional area decreases. These
changes cause an increase in the resistance of the wire of the strain
gauge. This change in resistance is used as the variable resistance in a
bridge circuit that provides an electrical signal for indication of force
or the pressure. Figure (3.19) illustrates a strain gauge pressure
transducer.
In Fig (3.21), an increase in pressure at the inlet of the bellows causes the
bellows to expand and moving a flexible beam to which a strain gauge
has been attached. The movement of the beam causes the resistance of the
strain gauge to change. The temperature compensating gauge
compensates the heat produced by current flowing through the fine wire
of the strain gauge. Strain gauges, which are nothing more than resistors,
are used with bridge circuits as shown in Fig (3.22).
Float methods
Buoyancy method
Bubbler systems
3. Electrical methods
Conductivity probes
Capacitance probes
π r2 (Δ h - Δ L ) ρ g = k . Δ L
h = Lmax – L = Lmax – c . t / 2
where :
c = sonar pulse velocity (m/sec).
t = time in sec.
L = travelling distance (m).
The normal range over which the PV may vary, and if there are any
extremes to this range.
3.9. Exercises
Chapter (4)
Industrial
Controllers
Chapter (4)
Industrial Controllers
4.1. Control Objectives :
The main objectives of the control system are :
1. Stability : the controlled variables do not grow without
limits.
2. Accuracy : the controlled variables reach the desired
values with minimal error.
3. Speed of response : the controlled variables reach the
desired values within a suitable time.
4. Cost : the cost of the control process should not be high.
Properties :
P ; t 0
p(t )
0 t0
P(s) K p . E(s)
The T.F of the controller is : P(s)
Gc (s) Kp
E(s)
Kp = -R2/R1
KI = -1/R C
P(s)
Gc (s ) KD . s
E(s)
● The electronic circuit is :
KD = - R C
P(s) K
Gc (s ) Kp I
E(s) s
P(s)
Gc (s) Kp KD. s
E(s)
How long the valve should be held in the new position after the
process variable moves back toward setpoint?
4.4. Exercise
Chapter (5)
Feedback, Forward,
Sequential & Multi-
circuit Control
Chapter (5)
Feedback, Forward, Sequential
& Multi-circuit Control
Control loops can be divided in accordance to the controlled variables
into two main categories :
5.10. Exercise :
Chapter (6)
Introduction to
Process Automation
Chapter (6)
Introduction to Process
Automation
6.1. Introduction
Industrial automation or numerical control is the use of control systems
such as computers to control industrial machinery and processes,
replacing human operators. In the scope of industrialization, it is a step
beyond mechanization. Whereas mechanization provided human
operators with machinery to assist them with the physical requirements
of work, automation greatly reduces the need for human sensory and
mental requirements as well.
In the traditional form of control systems, the governing rules and the
control actions depend on the wiring of the control circuit. When
changing the rules used for giving the control actions, the wiring has to
be changed too. This leads to expensive cost of replacing the
controllers.
This was the main idea behind inventing the programmable logic
controllers (PLC). The PLC was invented in response to the needs of
the automotive manufacturing industry where software revision
replaced the re-wiring of hard-wired control panels when production
models changed.
3. Input assembly.
4. Output assembly.
5. Power supply.
6. Programming unit.
The input/output unit provides the interface between the PLC system
and the outside world allowing the connections to be made through
input/output channels to receive input signals from input devices such
as sensors or send output signals to output devices such as motors and
solenoids. Moreover, such input/output channels provide isolation and
signal conditioning required by the PLC. The input/output devices (I/O)
used with PLCs are different in type and usage where it might be
analog or digital devices. Typical input devices used with PLCs
include:
On the other hand, typical output devices used with PLCs include :
1. Relays or Contactors.
2. Solenoid valves.
3. Motors.
2. Toshiba PLC :
3. Allen Bradley :
4. Siemens SISMATIC S5 :
If it is ON, the contact will close and allow power (logic) to flow
from left to right.
If the status is OFF (logical 0), the contact is Open, power (logic)
will NOT flow from left to right.
If the logic to the left of the coil is TRUE, the referenced output is
ON (logical 1).
If the logic to the left of the coil is FALSE, the referenced output is
OFF (logical 0).
When Input1 is OFF the contact remains open and power cannot
flow from left to right. Therefore, Output1 remains OFF.
When Input1 is ON then the contact closes, power flows from left to
right, and Output1 becomes ON (the light turns ON).
The OR rung :
The OR is a logic condition where an output is energized when one or
both of two NOC are closed.
Chapter (7)
Application to
Process Automation
Using PLCs
Chapter (7)
Applications to Process
Automation Using PLCs
7.1. Signal Lamp Simple Process :
A signal lamp is required to be on if :
● A pump is running.
And
● The pressure is satisfactory.
Or
● The test lamp is closed.
Step Instruction
0 LD X400
1 AND X401
2 LD X402
3 ORB
4 OUT Y430
5 END
Fig (7.2) - The power circuit for the central heating process.
● The ladder & IL program for the central heating system using
Mitsubishi PLC is :
Inputs : Outputs :
X400 Clock Y430 Boiler
X401 Boiler sensor Y431 Pump M1
X402 Room sensor Y432 Pump M2
X403 Tank sensor
Fig (7.3) - The ladder diagram for the central heating process using
Mitsubishi PLC.
● The ladder & IL program for the central heating system using
Siemens PLC is :
● Inputs : Outputs :
● I0.0 Clock Q2.0 Boiler
● I0.1 Boiler sensor Q2.1 Pump M1
● I0.2 Room sensor Q2.2 Pump M2
● I0.3 Tank sensor
Fig (7.4) - The ladder diagram for the central heating process
using Siemens PLC
tank.
2. Three solenoid valves to control the flow of liquids.
5. Start the motor and agitate to mix the liquids into the tank for a
specified time.
6. Then stop the motor.
to a storage tank.
8. Then close valve 3.
● The ladder & IL program for the automatic mixing station using
Mitsubishi PLC is :
Inputs to the PLC :
● The ladder & IL program for the automatic mixing station using
Siemens PLC is :
Inputs to the PLC :
Fig (7.7) - The ladder diagram for the automatic mixing process using
Siemens PLC.
Step Instruction
0 LD X400
1 OR C461
2 RST C460
3 K 6
4 LD X401
5 OUT C460
6 LD C460
7 OUT Y430
8 LD X400
9 OR C461
10 RST C461
11 K 12
12 LD X401
13 AND C460
14 OUT C461
15 LD C461
16 OUT Y431
17 END
Fig (7.8) - The ladder diagram and IL program for the automatic
packing process using Mitsubishi PLC.
Step Instruction
0 A I0.0
1 O C1
2 CU C0
3 LCK 6
4 A I0.1
5 R C0
6 = Q2.0
7 A I0.0
8 O C1
9 CU C1
10 LCK 12
11 A I0.1
12 R C1
13 A C0
14 = Q2.1
15 END
Fig (7.9) - The ladder diagram and IL program for the automatic
packing process using Siemens PLC.
References
1. Rhodes, T.J. and Carroll, G.C., “Industrial Instruments for
Measurement and Control “, 2nd Ed., McGraw-Hill, 1981.
3 psi
Flow
valve
F1
Level 3 psi
sensor
H
F2