Professional Documents
Culture Documents
Advances in Industrial Control: Springer
Advances in Industrial Control: Springer
Springer
London
Berlin
Heidelberg
New York
Barcelona
Hong Kong
Milan
Paris
Santa Clara
Singapore
Tokyo
Other titles published in this Series:
Neuro-Control and its Applications
Sigeru Omatu, Marzuki Khalid and Rubiyah Yusof
Energy Efficient Train Control
P.G. Howlett and P.J. Pudney
Hierarchical Power Systems Control: Its Value in a Changing Industry
Marija D. Ilic and Shell Liu
System Identification and Robust Control
Steen Tøffner-Clausen
Genetic Algorithms for Control and Signal Processing
K.F. Man, K.S. Tang, S. Kwong and W.A. Halang
Advanced Control of Solar Plants
E.F. Camacho, M. Berenguel and F.R. Rubio
Control of Modern Integrated Power Systems
E. Mariani and S.S. Murthy
Advanced Load Dispatch for Power Systems: Principles, Practices and
Economies
E. Mariani and S.S. Murthy
Supervision and Control for Industrial Processes
Björn Sohlberg
Modelling and Simulation of Human Behaviour in System Control
Pietro Carlo Cacciabue
Modelling and Identification in Robotics
Krzysztof Kozlowski
Spacecraft Navigation and Guidance
Maxwell Noton
Robust Estimation and Failure Detection
Rami Mangoubi
Adaptive Internal Model Control
Aniruddha Datta
Price-Based Commitment Decisions in the Electricity Market
Eric Allen and Marija Ilic
Compressor Surge and Rotating Stall: Modeling and Control
Jan Tommy Gravdahl and Olav Egeland
Radiotherapy Treatment Planning: New System Approaches
Olivier Haas
Feedback Control Theory for Dynamic Traffic Assignment
Pushkin Kachroo and Kaan Özbay
With 99 Figures
Springer
Reza Katebi
Michael A. Johnson
Jacqueline Wilkie
Industrial Control Centre, University of Strathclyde, Graham Hills Building,
50 George Street, Glasgow G1 1QE, UK
Apart from any fair dealing for the purposes of research or private study, or criticism or review, as
permitted under the Copyright, Designs and Patents Act 1988, this publication may only be
reproduced, stored or transmitted, in any form or by any means, with the prior permission in
writing of the publishers, or in the case of reprographic reproduction in accordance with the terms
of licences issued by the Copyright Licensing Agency. Enquiries concerning reproduction outside
those terms should be sent to the publishers.
The publisher makes no representation, express or implied, with regard to the accuracy of the
information contained in this book and cannot accept any legal responsibility or liability for any
errors or omissions that may be made.
Dr D.C. McFarlane
Department of Engineering
University of Cambridge
Cambridge CB2 1QJ
United Kingdom
Professor B. Wittenmark
Department of Automatic Control
Lund Institute of Technology
PO Box 118
S-221 00 Lund
Sweden
Professor H. Kimura
Department of Mathematical Engineering and Information Physics
Faculty of Engineering
The University of Tokyo
7-3-1 Hongo
Bunkyo Ku
Tokyo 113
Japan
Dr M.K. Masten
Texas Instruments
2309 Northcrest
Plano
TX 75075
United States of America
Professor Ton Backx
AspenTech Europe B.V.
De Waal 32
NL-5684 PH Best
The Netherlands
So many of our towns and cities now lie amid extensive conurbation
developments often containing several million people. It is quite surprising
therefore to realise that we have in the last fifty years become quite adept at
dealing with the waste products of our urban society. However, it is also
becoming increasingly clear that some of these waste disposal options are
no longer acceptable and some of the old methods will have to be modified
and enhanced or that new methods will have to be found.
The treatment and disposal of sewage is one of the oldest problems
known to man and is even mentioned in The Book Of Deuteronomy,
“thou shalt have a place also outwith the camp;
whither thou shalt go forth abroad;
.....thou shalt dig therewith, and shalt turn
back and cover that which cometh from thee.”
Over the last century there has been tremendous advances in the
treatment processes and theoretical understanding of wastewater treatment.
High quality effluents with the possible removal of nitrogen and phosphates
are now commonplace mainly due to the versatility of the activated sludge
process and the ever-increasing methods of tertiary treatment. The
capability to treat wastewater to this high standard coupled with society’s
expectation of a cleaner environment has instigated comprehensive and
demanding legislation.
The social and legislative demands on the wastewater industry can
only be consistently and economically achieved by the efficient operation of
wastewater plants and this can be greatly facilitated by the use of appropriate
process control technology. Process control has been used in wastewater
plants for over 20 years with varying degrees of success. The unique nature
of sewage treatment requires a multi-disciplinary approach to the design and
operation of the control regime. Thus there has to be an interlinking between
the civil engineer, scientist and process control specialist to ensure
appropriate control procedures are implemented.
In this monograph, the authors have brought together contributions
from the many sub-disciplines of process control to provide the wastewater
engineer with the necessary foundation material in process control. Thus
there are chapters on communications and computer process control as well
as the more traditional topics of process modelling, instrumentation and
control loop concepts. This development of a new technological framework
grew from a direct dialogue between a small team of engineers from the
wastewater industry and academics. It is hoped that the blending of
experience and disciplines that the West of Scotland Water and Industrial
Control Centre (University of Strathclyde) staff have tried to achieve will bring
to fruition a new era of insight and understanding of the role of process
control technology in wastewater treatment.
Gerry McCluskey
Operations Manager
West of Scotland Water
Glasgow, Scotland, U.K.
AUTHOR’S PREFACE
The basics of the feedback loop and how to improve on open loop
control are discussed. The main features of common control loops found in
wastewater processes are examined. Particular attention is given to On-Off
control, PID control, cascade control loops, ratio control and feed-forward
control. The structures of gain scheduling and the self-tuning control
architecture are also discussed.
CHAPTER 2
PROCESS CONTROL STRUCTURES
CHAPTER 3
SUPERVISORY CONTROL AND DATA
ACQUISITION SYSTEMS AND VIRTUAL
INSTRUMENTATION
CHAPTER 4
QUALITY CONTROL FOR DYNAMIC PROCESSES
CHAPTER 5
SENSORS AND ACTUATORS
CHAPTER 6
DATA COMMUNICATIONS
CHAPTER 7
KNOWLEDGE-BASED SYSTEMS
CHAPTER 8
WASTEWATER TREATMENT PLANTS: AN
EXERCISE
SUBJECT INDEX
APPENDIX A
MODELLING AND CONTROL DEMONSTRATIONS
APPENDIX B
AUTHOR PROFILES
1
BOD520 DO
D o DO
D 5
where DOo and DO5 are the initial and five days DO content. BOD is
measured in {mg/litre}.
(ii) Suspended Solids (SS). The effluent contains material in
suspension and this is from a variety of sources. It is useful to divide the
suspended solids into inorganic and organic components. The inorganic
portion includes material like grit and silt. The organic component has a
much wider variety of sources but is likely to include bacteria, fats,
grease, human waste, and food waste. The SS content is determined by a
filter test and the SS content is measured in {mg/litre}.
(iii) Bacteriological Quality. Sometimes the quality of the effluent
is evaluated by a bacteriological assay for specific bacterial forms, for
example, faecal coliforms. Such an assay quantifies the most probable
number (MPN) of organisms present in a specific sample size, viz.
MPN/100ml. As an indication of the quality desired, drinking water
standards in 1914 were set at an MPN of 2.2/100ml, whilst by 1942 this
had decreased to an MPN of 1/100ml.
The following table gives a useful indication of the before and after
wastewater treatment performance targets (Barnes et al, 1981).
3
AEROBIC ANAEROBIC
Primary Secondary Tertiary Objective Primary Objective
Objective Objective
(1) (2) (3) Carbonaceous
Carbonaceous Nitrification De-Nitrification Substrate Degradation
Substrate
Degradation
Substrate Ammonium – N Nitrate – N Hydrolysis
Capture
(Nitrosomonas)
The tertiary processes form a group of operations pursued at the end of the
wastewater treatment to achieve particular objectives. Wilson (1981) puts several
different operations in this category.
(i) Solids removal. These are designed to improve the effluent
quality and Wilson (1981) lists micro-strainers, grass plots, pebble bed
clarifies, and sand filters for this purpose.
(ii) Disinfection. These are processes designed to reduce the
MPN/ml assay values to within specified values. Some of the physical
processes designed for solid removal can also help with disinfection;
where these fail then disinfecting agents like chlorine are used.
(iii) Nutrient removal. When discharging effluent to the natural
environment, it is essential to ensure that the effluent content does not
perturb the ecosystem. The nitrogen and phosphorus content of
discharge effluent can cause the excess growth of algae in river systems
and this has to be prevented. Phosphorus removal tends to be chemical,
and the biological processes of nitrification and denitrification as
described above previously can be used to remove nitrogen.
8
Overflow Stream
Influent Stream PRIMARY
SETTLER
Vp, A p Underflow Stream
(i) Buffer storage may be used to smooth out the time variation in
the daily/hourly inflow.
(ii) Primary sedimentation can be used to achieve some uniformity
of the influent quality prior to transfer to the secondary
treatment processes.
(iii) Some of the influent BOD can be removed by primary
settlement.
Pre-Treatment
Screens
Watewater Filters
Inflow Long Channe
Runs Primar
Settleme
Basin
Primary sludge
formation
Primary sludge
formation
1.3.1 Introduction
Effluent
Influent
Offtake
AERATION TANK SETTLE
TANK
From Primary
Settler
{mg/litre}
S(t) = the substrate or soluble BOD {mg/litre}
DO(t) = the dissolved oxygen concentration {mg/litre}
V = the volume of the aeration tank
Fin(t) = the inflow rate
k2
ES P E
Vmax S (t )
(t )
K s S (t )
and Ollis, 1986). The above work was progressed around 1900-1915.
The Monod Growth Law: In the 1940’s, Monod investigated the specific growth
rates for a single species as a function of substrate concentration, S(t). To explain
the observed behaviour, Monod invoked a growth law which has the same
functional form as the Michaelis-Menten kinetics:
max S ( t )
u
Ks S (t )
where max = maximum growth rate, and Ks is the value of the limiting
concentration at which max / 2. It should be noted that the substrate media are
The yield factor has the definition (Bailey and Ollis, 1986):
mass of cells formed ( X )
Yx
mass of substrate consumed(S)
dV
Fin (t ) Fout (t ) 0
dt
hence Fout (t ) Fin (t ) F (t )
(t ) X v (t )
V
Yx
and
15
d in
V X v (t ) F
FX v (t ) F
FX v (t ) (t ) X v (t )V Kd X v (t )V
dt
where Kd = death rate of viable biomass.
and V
d
dt
X nv (t ) e in
F X nv X nv (t ) j Kd X v (t )V
DO(setpoint )
o
Ko DO(setpo int)
D
FG (t ) IJ
K DO
H Y
X v (t ).V
K DOc (t ).V
hence
dDO(t ) (t ) X v (t )
F (t )( DOin (t ) D
DO(t )) K DO DOc (t )
D
dt Y
where DOin (t ) influent DO
DOc (t ) DO
D (t ) supplied by the aeration system.
The model by Nejjari et al (1997 ) has an equation of the above form for
the DO balance.
17
The suspended solids in the mixed liquor comprise the viable and non-viable
biomass, hence
M T (t ) X v (t ) X nv (t )
1. Substrate Balance
ds
dt
F (t )
V
b
Sin (t ) S (t ) g (t )
X v (t )
YX
Fin(t ) F (t )
X v(t ) SETTLE TANK
X nv(t )
M t (t ) M
MLSS
FSL(t )
FRC(t ) FW( t )
M E (t ) 1 M T (t ) 0 1 1
M SL (t ) 2 M T (t ) 0 2
1
The model devised for the components of the Activated Sludge System
would form the basis of a library and be available for use in specific studies.
The model is non-linear, and dynamic. It is useful to determine the
number different ways in which the model could be used.
variation in influent substrate associated with diurnal variations. This influx is not
controllable, and forms a serious disturbance input to the system.
Outputs: The window on the state variables of the process are via the output
variables, usually denoted yi(t); i = 1,…,r. Output variables come in four
categories; those which are measurable and those which are not, and those which
are to be controlled and those which are not. Thus, the matrix of output variable
types are shown in Table 1.4.
24
This table has implications for the feasibility of any given control objectives.
Collect together the state variables, the control and disturbance variables and the
output variables to form vectors:
State Vector Control Vector Disturbance Input Vector
F x1 I F u1 I F d1 I
GG x2 JJ GG u2 JJ GG d 2 JJ
x GG . JJ u GG . JJ d GG . JJ
GGH xxn 1JJK GGH uum 1JJK GG d . JJ
n m H nd K
Output Vector Parameter vectors
F y1 I F I F I
GG y2 JJ GG 1
2
JJ GG 1
2
JJ
GG . JJ GG . J GG . J
. J JJ
y
x Ax
A Bu
B State equation
y = Cx + Du Output equation
where A is (n x n) matrix, B is (n x m) matrix
C is (r x n) matrix, D is (r x m) matrix
INPUTS OUTPUTS
Disturbance
Inputs yum
,uc
Reference PROCESS
Inputs PLANT
ym,nc
Modelx f (x,ud , , ;t
;t) yum
,c
STATES VARIABLE
ONLINE ym,c CONTROL CONTRO(x1,x2,....,xn)
MODEL UNIT CONTROL INPUT ym,c
(u1,u2,.....,um)
u
The state space system is a common unifying notation for many simple
system descriptions, where the model has been developed from physical
principles. This structure is shown in Fig. 1.7.
Once a model has been given the parameters and data needed to be able
to use the model have to be listed and identified. Finding model parameter values
is often a difficult process and may involve using intelligent guesses, carefully
controlled experimentation or plant data generation and analysis.
The final step in the process is that of model validation. This comprises
two sub-steps:
26
(i) Simple test examples. These are tests constructed to see if the
simulation responded as expected when compared with past
experience, or intuitive knowledge. The tests can also examine
quantitative measures like steady-state values or qualitative
measures like speed of response.
(ii) Plant data test. Historical data can be used to see if the
model/simulation repeats the measured behaviour from plant
tests. A carefully selected set of scenario tests is often useful at
this stage to investigate the range and robustness of the model’s
behaviour.
The full sequence of steps in the model building activity is shown in Fig.
1.8.
27
Process Description
The literature; The Plant Diagrams
The Plant Operators
ASSUMPTIONS
- Geometrical
- Physical Mechanisms
- Chemical/Biological
- Parameter/Variable Changes
CONSTRUCT SIMULATION
- What tools
- What cost
MODEL VALIDATION
- Academic Test Examples
- Plant data tests
IS EXIT
MODEL
SATISFACTORY
x(t)
d
d t
y (t )
d
d
dt
l q
x (t )
x(s) s Y ( s) sX
s ( s)
dx
Example (t ) 3x ( t ) 4u( t )
dt
sX ( s) 3 X ( s) 4U ( s)
LM 4 OPU (s)
X 9 s)
N s 3Q
x(t) z y (t ) z X ( ))dd
1 LM1OP X (s)
x(s) Y ( s)
NsQ
s
30
Example
z(t ) z
4 u( )d
)d
t
LM1OP U (s)
o
Z ( s) 4
NsQ
Fig. 1.9 Time domain and frequency domain
The size of indicates the time the output takes to arrive at 63.2% of its final
value when excited by a step input. The full procedure for fitting a 1 st order model
is shown in Fig. 1.10.
MN s 1 PQ
G ( s)
u2 y1
yo
uo
1st Order
Process
U (t ) y (t )
INPUT OUTPUT
K
U ( s) s 1 Y ( s)
Time Constant
K=d.c.
y1
y1 y1 yo
y1
MODEL
y1 yo
K
u1 uo IS THEREA PROCESS
DELAY?
y( ) yo 0.632( y1 y )
READ OFF t = on
o time axis
DELAY
o t
t=D
LM OP
Y ( s)
MM K PPU (s)
MM s 2
2
1P
PQ
N 2
s
n n
SPRING
DASHPOT HOOKE’S LAW
d
dx Fs
FD ext
d
dt
VISCOUS
FRICTION
Mg
y(t)
UNDER-DAMPE
CRITICALLY
DAMPED
OVER-DAMPED
time
o
OVERSH
Reference OFF-SE
Step
Input
TRANSIEN STEADY-
PORTION PORTION
TIME
o
Fy I x 100%
GH JK
Peak y steady
% Overshoot =
y steady
The ease of using graphical user interface (GUI) icon based modelling
and simulation tools enables the rapid and effective construction of computer
simulations. The ability to construct simulations, which mimics the nested
structure of industrial plant, is of particular value. Fig. 1.14 shows how this
hierarchical nesting could be exploited for a wastepaper treatment plant.
35
FIN FOUT
WASTE-WATER
TREATMENT
PLANT
FSL
(OUT)
SLUDGE TREATMENT
AERATION CLARIFIER
BASIN No2 TANK No2
FIN
FRC
Aeration Clarifier
Basin No2 Mode No2 Model
u1 B1 C1 u B2 C2
y1
A1 A2
Glossary
Flocculation: the coalescing or agglomeration of smaller sized particles to form
larger particles.
Mean cell residence time : The average time a mass of cells remain in a
biological system before being withdrawn in a waste solids stream. Also known
as the solids retention time or the sludge age. (Barnes et al, 1981).
Food-to-micro-organism ratio (F/M) : The ratio of the food concentration to the
micro-organism concentration.
38
Objectives
1. Understand the basics of the feedback loop and how it improves on open
loop control.
2. To examine the main features of common control loops found in
wastewater processes. Particular attention to be given to on-off control,
PID control, cascade control loops and ratio control.
3. To examine the structures of gain scheduling control, and the self-tuning
control architecture.
Uc
FIN(t)
Hm(t)
H(t)
LM KA 2
n
OP F
MN s PQ
U c ( s) 2 in ( s)
A ns n
40
This is a second order system to allow the actuator to exhibit damped
oscillatory behaviour if required.
In this example the plant is the tank for which the following simple
analysis applies:
Input flow : Fin(t)
dH
A Fin (t ) k1H (t )
dt
Going over to Laplace Transforms
A sH ( s) Fin ( s) k1 H ( s)
LM 1 OP Fin (s)
N As k1 Q
hence H ( s)
giving H ( s) G p ( s) Fin ( s)
LM 1 OP LM b1 / k g OP L OP
MN b A / k gs 1PQ MN
1 KT
N As k Q Q
G p ( s)
1 1 Ts 1
In this example, a level sensor has been chosen to measure H(t), whose
measured version is Hm(t). But liquid head might have been measured by using a
turbine flowmeter to measure flow, Fout. The proportionality law would then be
used to recover a measure of the level height. Thus, in some cases there are
alternative measurement routes to accessing the states of the plant, for in this case
level H(t) is a plant state variable.
The main points to note about the measurement device are:
(i) In a practical system, the measurement signal is not necessarily
in the same physical form as the physical variable measured,
although it will not be labelled in this manner. For example,
liquid head, H(t) could be in metres whereas Hm(t) is a
LM Km OP
N Q
with Gm ( s)
m s 1)
where Km, and m are measurement device gain and time constant.
42
Fin ( s) G A ( s) U c ( s)
LM OP
G A ( s)
MM KA PP
MM s 2
2
1P
PQ
N 2
s
n n
H ( s) G p ( s) U c ( s)
LM Kp OP
N 1Q
G p ( s)
Hm ( s) Gm ( s) H ( s)
LM Km OP
N Q
Gm ( s)
ms 1
In Fig. 2.1, the conceptual block diagram is laid out from process
diagram to a single unified block.
THE PROCESS
Uc
K AK pKm Hm
F
Gs2 2 .s I
1Jdps 1ibms 1g
H2n n K
Stage 3 : Combine models and simplify
THE PROCESS
Uc Hm
KE
b Es 1 g
Example: In the level system, the inflowing liquid might suffer upstream
pressure variations causing inflow variations. These are supply or input
disturbances.
Uc
Data transmission
Disturbed surfaces Noise
Causing noise Hm
Loss of Pressure
causing
H
FIN variations Poor Calibration
Tank
bias
Leak
FOUT
Load Change
Uc Y
PROCESS
nbias
Measurement bias
Ym n
Measurement output Measurement noise
Load disturbances
Process noise
Measurement noise
Measurement device bias
Let the control input u1 cause the output to take value y1.
Let the dynamics of the process be stable so that when uc changes from u1 to a
new value u2, the process changes according to its stable dynamics.
yR y1
K
uR u1
1
yields uR u1 ( yR y1 )
K
Open loop control then requires u1 to be reset to uR, whereupon the new steady
state output yR will be achieved after the process transients have decayed.
Output Disturbance
do
Uc THE
PROCESS
Control Comand
Setting
Ym
Measurement Device
K Uc G Y = output
r e = error
CONTROLLER PROCESS
Reference UNIT
Signal
y d o G ( K (r y ))
y d o GKr
G GKy
G
GK ) y
(1 G GKr
do G
LM 1 OP LM GK OPr
y
N1 GK
G Q N1 GGK Q
do
GK LM GK OPr
G Q
N1 GK
Gr yr
r
G
1 GK
Reference
Singnal +
Reference Tracking
y yyr y oy
Disturbance
Rejection +
1
do Gd
G )
(1 GK
ydo LM
1 O
G QP
N1 GK d
Disturbance
Rejection
GK 1
Gr G d 1
(1 GK
G ) (1 GK
G
Design Constraint
do G( Kr Ky )
do GKr GKy
Rearranging
(1 GK ) y do GKr
LM 1 OP LM GK OP r
thus y
N1 GK
G
do
Q N1 GK
G Q
54
and y ydo yr
This closed loop equation shows the key features of what feedback
control design tries to achieve:
(i) The closed loop system must be stable, so that all the responses
are well behaved.
(ii) The reference tracking term is
LM GR OP r LM 1 OP r
yr
N1 GGK Q MN1 b1/ GK )g PQ
This term tries to behave like [1] so that the output y follows the
reference signal as closely as possible.
(iii) The disturbance rejection term is
LM 1 OP LM b1 / GK g OP d
yd
N1 G
GK
do
Q MN1 b1 / GK g PQ o
This term tries to behave like [0] so that the disturbance signal is not
present in the output signal to move it away from the desired reference value of r.
Remark: It is not difficult to see that if K is large then (1/GK) will behave like 0
and the above good reference tracking and good disturbance rejection will occur.
Reference Tracking: Select a controller unit designs so that the system output
follows a given reference signal.
Regulation Control: If the reference signal is zero then the control problem is
called a regulator problem. This is because the controller simply has to have the
output follow zero whilst rejecting all disturbances.
Disturbance Rejection: This is the elimination of system effects from the process
output caused by the presence of supply/load (or input/output) disturbances in the
process.
55
Measurement Noise Rejection: This is the ability of the controller unit to prevent
measurement noise from passing round the feedback loop to affect the controller
signal, Uc. In this respect the controller acts as a noise filter.
Measurement Bias Elimination: The controller unit cannot eliminate the effect
of measurement bias. The presence of measurement bias has to be detected
independently and removed physically.
y(t)
r(t)
ON OFF ON
e(t) = r(t) –
ON
e(t) 1 y(t)
r(t) Uc
PROCESS
-
OFF 0 e
y(t)
r(t)
t
ON OFF ON
e(t)
+d
o
t
-d
ON 1
e(t) y(t)
r(t) Uc
PROCESS
-
OFF
0 e
uc (t ) K p e(t ) K I z t
e( )d
)d KD
de
dt
P I D
Laplace Domain
1
U c ( s) K p E ( s) KI E ( s) K D sE ( s)
s
KI
=[Kp K D s]E ( s)
s
G PID ( s) E ( s)
LM K p KI OP
G PID ( s)
N s
KD s
Q
The main intuitive features of PID, which can be justified by formal analysis, are
as follows:
Proportional Term ~ P
(a) Increasing K p speeds up the system response.
(d) The dynamical order of the closed loop system is the same as that of
the open loop system.
Integral Term ~ I
(a) Integral term will almost exclusively be used in conjunction with P
to give P I control.
(b) Integral control eliminates steady state offsets; this is a guaranteed
property.
62
(c) Measurement bia must not exist otherwise destroys use of I control
to remove offsets.
(d) PI control increases the dynamic order of the closed loop system
thereby introduces the potential for an unstable closed loop design.
Care needed when tuning.
(e) PI control can cause excessive overshoot in the system response.
Care needed when tuning.
Derivative Term ~ D
(a) The derivative term will always be used in a structure, which
includes P to give PD control at least.
(b) The derivative term can be used to reduce response peaks, and effect
the equivalent damping of a system. Rate feedback in motor control
is a special form of PD control.
(c) Derivative control has no effect on steady state errors.
(d) Pure derivative control will amplify high frequency noise in the
measurement signal, hence usually implemented by a filtered form.
(e) Derivative control does not effect the dynamic order of the closed
loop system.
Industrial PID does not follow the standard textbook from but uses
historically based conventions about which it is necessary to be aware. Firstly, the
easy decoupled form of PID introduced above is re-parameterised to give the
interactive PID coefficient structures. Recall the decoupled form as:
63
uc (t ) K p e(t ) K I z t
e( )d
)d KD
de
dt
then bring the proportional gain outside this expression as:
LM OP
uc (t )
MN
K p 1e(t )
KI
Kp z t
e( ) d
K D de
K p dt PQ
Then introduce two time constants:
Ti = Kp/KI = integral term time constant
Td = KD/Kp = derivative term time constant to give the industrial PID controller
form as:
LM OP
uc (t )
N
K p 1e(t )
1 t
Ti z
e( )d
)d Td
de
dt Q
or in Laplace transform variable s, form:
LM 1 OP
N Q
U c ( s) Kp 1 TD s E ( s)
Ti s
contribution of all three terms of the controller, whilst changing Ti, and Td can be
The property that pure derivative amplifies high frequency noise has
lead to the use of various filter implementations and approximations for the D
term. Fig. 2.Error! Bookmark not defined..(b) shows two different industrial
solutions to this problem.
64
Fig. 2.Error! Bookmark not defined. shows many different varieties for
the structure of the PID controller. These use a mix of series, and parallel forms
and different signals within these structures.
Toshiba in their advanced Process Controllers used the so-called
two-degrees-of-freedom controller structure. This enables separate tuning and
optimization of reference tracking and disturbance rejection. The internal
structure of this controller is shown in Fig. 2.Error! Bookmark not defined..
Fortunately, Toshiba have rule-based tuning procedures and AUTOTUNE
facilities.
The seminal contributions to PID tuning over the last fifty years or
so were (i) the Ziegler-Nichols 1942 paper which gave two procedures: the
process reaction curve and the sustained oscillation methods and (ii) the Astrom
and Hagglund patent for the relay experiment based PID tuning procedure. The
latter paved the way for the automatic tuning culture of modern process controller
technology. Just three aspects of this extensive field are reviewed in this section.
(iv) The data points Ku, and Pu are then used with the Ziegler-Nichols
(iii) The rule-base associated with the Ziegler-Nichols can then be used
as before to determine the PID controller coefficients.
Of course, the real point about autotune is that all this is available at
the press of the AUTOTUNE button, and no real knowledge of the theory is
required. However, it is useful to know (i) which rule based is being used since
this gives an idea of the likely performance achievable and (ii) if the system is
appropriate for control design by autotune since there are some systems for which
67
autotune or PID control is not appropriate. One the whole, this technology has
been extremely successful and is well accepted by industry.
(ii) The outer loop controller is concerned with correcting for load
demands on the outer process and ensuring that y2 remains at
(ii) The inner controller has to be fast, and reject the supply
disturbance, thus it is either a P or a PI controller. The I term is
not always necessary in the inner loop because steady state error
correction can be achieved in the outer loop. Common
structures are PI/P and PI/PI.
(iii) Tuning : tuning is always a two step procedure. The outer loop
is switch out, and the inner loop tuned using the Ziegler-Nichols
rules. The inner loop is switched in, and then the outer
controller selected again using Zieler-Nichols rules.
A recent variation on this process was published by Hang et al,
(1994). In their version of the cascade tuning procedure two autotune relay
experiments were performed. This is shown in Fig. 2.Error! Bookmark not
defined..
69
The solution is to measure both streams and calculate the current value for the
ratio as:
FA ( measured )
m
FB ( measured )
e Ref m
and this is fed to a PID controller which adjusts the flow of Stream B accordingly.
70
Although feedback control is used widely, it has disadvantages with processes that
are known to suffer from certain disturbances:
the control does not provide a corrective action until after the
disturbance has produced a change in the process output
there is no compensation for known or measurable disturbances
Significant advantages can be gained by including a feedforward component. This
effectively measures important load or disturbance variables and produces a
corrective control signal before the process has been upset. However, to
implement a feedforward controller , the following must be available
on-line measurements of the load disturbances
a form of process model should be available
The knowledge of the process model (steady state conditions or dynamic
behaviour) is required to develop the feedforward control signal.
Disturbance
Feedforward
Controller
Set Output
Point Feedback + + Process
Controller
Figure 3.? Shows the process control diagram for the activated sludge process.
The main objective is to reduce the BOD content to zero by the end of the time the
sludge spends in the aerator tanks. The recycle flow would then only contain the
liquid and biomass whose flow into the plant is controlled. The disturbances
acting on the process include the flow and concentration of substrate within the
flow.
The diagram shows the DO feedback control loop, which controls the aerators
from the DO profile at measured points in the activated sludge tank. The recycle
flow is measured using flow transmitter No 1 and passed to the feedback
controller FC1 whose output controls the valve on the recycle flow.
If the input flow could be measured (using the flow transmitter 2 in the diagram)
then this signal could be used by a feedforward controller (FC2) to provide a
combined feedforward/feedback flow signed to the recycle flow valve, thereby
giving improved rejection of disturbances in the influent flow. Moreover, if a
measurement of substrate was also available then this could also be used to
provide a feedforward signal (FC3) to the combined recycle flow controller.
72
Input Flow
Containing
Substrate + Activated Sludge
+
Concentration
Estimate/Measurement Aerators
FT
FT
2
FC DO
3 + Control
FC
FT +
2
Feed +
forward
FC Recycle flow
Feedback 1
containing
FT biomass
1
Gdy Gdz
Unmeasured output
Controller (to be controlled)
input signal
u + + y
Gy
+
z
Gz
+ Measured output
(can be used to
estimated/infer other
outputs)
d
Controller y
Set Point u
K Process z
+
ySP -
G dy
Gy Gz
G dz
+ G dy
+ G dz z
Inferred
output y (Measured)
Inferential calculation
Figure 3.? Inferential control system
Inferential control is therefore used when the controlled output of the process
cannot be measured. However, if we can estimate or infer the output signal from
other measurements, then we can use either the estimate or the other
measurements within a feedback loop. Examples of where an inferential
measurement could be used in wastewater treatment are
(i) De-nitrification: Redox potential measurements can be used for
control ( Briggs et al, 1990)
(ii)Phosphate concentration: Turbidity measurements of the final
clarifier effluent provides an indicator of the suspended solids and can therefore be
used for control of phosphate concentration and COD (Kayser, 1990)
Objective of Control Adaptation: Industrial plant often has to operate over wide
range of set-up, load and external environmental conditions. The dynamics of the
system usually change to reflect these different operating conditions hence to
obtain optimum performance the controller should be retuned accordingly. There
are two reasonably well accepted methods to automate this: gain scheduling and
online self-tuning; the former is open loop adaptation whilst, the latter is closed
loop adaptation.
Ki ( s)
Ki b 1s 1g
( 2 s 1)(( 3 s 1)
Thus for the partition of operating conditions, the schedule will retain
the common controller dynamics but schedule the gain:
Operating Condition Index, I
1 2 3 4
Ki K1 K2 K3 K4
Ki ( s)
b
Ki 1i s 1 g
( 2i s 1)(( 3is 1)
In this case, both the gain and the controller dynamics are
scheduled. The result will be an enlarged table:
76
Operating Condition
Index, i 1 2 3 4
Ki K1 K2 K3 K4
1I 11 12 13 14
2i 21 22 23 24
3I 31 32 33 34
Figure 2.9
Figure 2.10
79
3.1 Introduction
The state-of-the-art software used in the exercises is the MATLAB
environment making use of CONTROL SYSTEM TOOLBOX for control analysis
and SIMULINK for simulation. The exercises are largely self contained and
predominately use SIMULINK. Some MATLAB commands that might be useful
are those relating to the plotting procedures:
plot (time, output) ~ one graph
plot (t, output 1, t, output 2) ~ two graphs
hold on UV to add graphs to the same set of axes
hold off W
ginput(N) ~ cross-hair; enables N points to be sampled; N should be
numerical;
zoom ~ commands to home in on a particular graph to read off
specific values: use zoom, then ginput(N).
1
2
3
Ti = Pu/1.2 = 3.9563
FG 1 IJ 38228
.
Therefore G PI ( s)
H
Kp 1
Ti s K 15124
.
s
maximum dissolved oxygen and the oxygen mass transfer rate. Ko is a model
Y = 0.65 -1
max = 0.15 h
r = 0.6 Ks = 100 mg A 1
= 0.2 Ko = 0.5
Cs = 10 mg A
1
= 0.018
Kc = 2(mg A 1)
X(o) = 215 mg A A
1 1
C(o) = 6 mg
S(o) = 55 mg A 1
Sin = 200 mg A 1
Xr(o) = 400 mg A 1
Cin = 0.5 mg A 1
Objective
The objective of this Chapter is to introduce the state of the art technology
in plant automation and control. The Chapter starts with the historical background
to computer control and its evolution in the last two decades. Some specific
remarks are made regarding the use of Distributed Computer Systems (DCS) in
Wastewater Treatment Plants.
4.1 Introduction
The recent advances in information technology, increased market
competition, the tightening of environmental regulations, the demand for low
cost operation and energy efficiency have all influenced the need for new
control design philosophies for complex industrial systems. The main impact of
these changes on the plant-wide control methodologies are summarised below:
New machinery and processing equipment is becoming progressively faster
and more complex.
Flexible and distributed plants are increasingly more popular in process
industries.
The demand for total plant optimisation with efficient and reliable unit
operation is increasing.
The integration of control and instrumentation equipment manufactured by
different vendors is a major issue in the control design for complex
systems.
Remarks
The term was introduced in the 1960’s (Williams, 1964).
The poor integrity of the centralised architecture of DDC’s was identified
very early in the introduction of this technology.
90
Definition 1.2 Distributed Control System (DCS): An integrated computer
network of microprocessor controllers and communications devices used for
process control and supervision.
Remarks
This term arose in the 1970’s when computer technology and
communications permitted an integrated computer system to be developed.
The underlying system structure is usually hierarchical and extends to
integrating both distributed control systems with business control systems.
Remarks
The difference between DCS and SCADA is becoming vanishing small as
the technological capabilities of DSC and SCADA systems approach each
other.
SCADA is a term generic to certain industrial sectors, for example, the
offshore oil and gas industry.
The DCSs were initially used for data collection, limited data processing
and sequential control applications. PID controllers were soon incorporated into
these real time computer systems. With the development in control theory and
instrumentation technology, new features were added to such systems. The
hierarchical structure of such systems enabled plant supervision and optimisation
to be added to direct control. These systems are still under extensive development
and form an integral part of any modern manufacturing and processing plant. The
potential for advanced control features is slowly being realised and the new
methods will exploit the available computing facilities and advanced
communication buses. This is leading to a new generation of plant wide control
91
systems, which can provide efficient operation, integration, supervision,
optimisation, management, maintenance and control. The benefits of such systems
include, lower installation costs, lower maintenance costs, better system
reliability, flexible production configuration and the easier expansion of the plant
and the control system.
The key to this concept is a single computer unit at a location, which may
be remote from the process under control. This centralised facility executes all the
computational and operational tasks required by the process. As well as providing
the DDC of the plant, this single computer unit performs all the higher tasks such
as real-time data acquisition and processing, archiving, control and monitoring,
93
information analysis and management information. The centralised architecture is
shown in Figure 4.1.
The early approach to the computer control was through the centralised
architecture. However, the complexity and geographical scale of most large scale
production processes coupled to the development and falling cost of
microprocessor technology with associated advances in communications
technology lead to a distributed architecture for supervisory control. Although in
any control system, some centralisation is required, this is usually restricted to the
top level control functions and tasks. The main disadvantage of full centralisation
is lack of flexibility and an inherently low structural reliability. To ensure a
minimum downtime, at least two computers should operate in parallel with exactly
similar instructions and software. The advantage is that the user should only deal
with one type of operating systems and the communication modules are all built in
within the computer.
A A S A A S A A
S
Process
95
This type of distributed control systems is often used for sequential systems
where the output of one sub-process is the input to the following sub-process as
shown in Figure 4.3. The information is only available at the local sub-process
level.
Input/output modules provide the main interface between the DCS and
the process being controlled. They convert the information provided by the
process instruments into digital form. They also provide signal filtering, contact
de-bouncing, and in some instances they can also do alarming, signal
characterising and low-level logic. Four basic types of signals connect 110
modules:
The local I/O bus provides a bridge between the I/O and controller
modules and, by definition, is restricted in terms of geographical area and data
101
loading. It typically operates at a slower speed than the plant-wide data highway,
although communication rates can range from 9,600 to 250,000 to 1 million bits
per second.
I/O buses can connect varying numbers of I/O and controller modules. The
manner in which they provide communications can also vary, from polling or
scanning of the I/O by the controller modules to serial communications between
I/O and controller modules. They can also be arranged for serial or parallel
communications or a combination of both.
While I/O buses are seldom a bottleneck or a limitation, they become a
critical component if they fail. The loss of a single I/O bus can affect the control
of many end devices.
Controller modules are the true brains of a DCS. Their primary function
is to use continuously updated information from 110 modules and then perform
the complex logic and analogue loop calculations needed to produce the controller
output signals that keep process variables at the desired values. It is at the
controller modules that many DCS functions, such as the following, as performed:
Once the required data highway capacity is known, the size, number and
configuration of highways (and traffic directors) can then be specified.
This is the part of a DCS that is most often overlooked and, like the real-
time data highway, it is a system component common to all others. It is the DCS
component the takes raw electrical power, converts it, conditions it, and regulates
it for the various other computer modules in the systems.
The typical power distribution systems can be spilt into two parts - bulk
power and power regulation. With bulk power, the key issue is to make sure that
variations in the main AC source do not exceed the capabilities of bulk power
supplies. Battery backup is usually mentioned in the same breath as bulk power
supplies and may appear in various forms: uninterruptible power supply, separate
battery packs, or integral battery packs. Whichever approach is used, the batteries
should be able to take over instantaneously if power fails or dips. Loss of power
to the microprocessor modules could erase some sections of memory and require a
reboot of the system. Battery backup is sized to keep the system energised long
enough to meet essential needs. Typical backup times may range from two or
three minutes to two hours.
Power regulation is also vital to the operation of a DCS but is almost never
lacking in capacity. However, redundant power regulation is recommended for
most systems modules and most applications.
108
The part of the DCS, which allows the interfacing of external software, is
the Applications Manager/Module. This part of the architecture sits on the DCS
network and can run user code so that interfacing problems between separate
hardware and the DCS can be avoided.
The object of this section is to investigate to what extent this feature is
supported on some of the industrially used DCS's.
Situated between the DCS and the dedicated controllers are two "device
gateways". Simply stated, the purpose of the gateways is to allow the DCS to
send and receive information from the dedicated controllers so that (to the DCS
and the plant operator) the remote data appears to be the same as the DCS data.
The difference between process data read via the gateway and data hardwired to
the DCS controller should be 'transparent" at higher level functions, such as the
historian, alarms, and human interface. The gateway provides a number of
services for the DCS. These are:
Communications port management.
Format Conversion.
Ownership of Data - this solves the problem of data being global available to
the DCS.
Alarming - the gateway generates the alarm for the dedicated controller.
Operating Systems Software is the executive software for the computer system.
Its main distinguishing feature is its real time capability. Typical examples are
RTDS, OS-9, REAL-IX or UNIX.
System Support Software is used to aid the development of the application
programs. These are called system utility programs since they include editors,
debuggers, compilers, linkers and so on.
2. It has the ability to carry out rapid communications between these and other
modules by means of a communications link called a real-time data highway.
Input/Output Modules provide the main interface between the DCS and the
process being controlled. They are used to scan, digitise, process instrument
input/output signals and provide command inputs to the actuators. They also
provide filtering, contact de-bouncing, low level logic and local alarms. A single
input/output board may be connected to a single input/output device to provide
loop integrity. A single board may be connected to multiple inputs and multiple
outputs.
Typical features of these devices are:
Isolated or non-isolated grounding, a low level of fusing protection, high accuracy
and linearity of sampling frequency, protection from electromotive force, an
immunity to radio frequency, fail-safe positioning, overload and surge protection,
impedance matching, loop feedback sensing, manual override of loop control and
a high mean time between failure.
4.4.3 Sequencing
Discrete control very often consists of simple logic statements coupled with
field sensors to provide logic interlocks or process sequences. For example,
consider a tank to be filled with a liquid and then heated. To protect the product
and/or equipment one could use logic interlock that says:
1. IF the level is below a minimum point,
2. THEN the heater coil cannot be turned on (or must shut off).
The process might also call for the liquid to be stirred with an agitator. The
previous logic interlock could be coupled with sequencing logic that says:
1. First, fill tank.
In the sequence, the second step cannot take place until the first is
completed. Likewise, the third step cannot start until the second step is completed
and so on. By adding the IF-THEN logic interlock, if the level should ever drop
below the minimum level, the heater would still trip off.
The computer based DCS can easily combine analogue control loops with
interlocks and sequences. The above example could also incorporate an analogue
control loop to maintain a constant temperature in the liquid.
This feature of DCS's allows the user to record selected process variables in
sample form at user established intervals and store the data in a historical
database. Along with each sample, the process status, date and time are also
114
saved. This historical archive of process conditions can be accessed, by the user,
and used for several purposes:
1. Trip event Analysis. In a process trip situation, the user can access the data
related to the trip event and use this to trace the circumstances leading up to
the trip and also the effects of the trip event on other processes.
2. Trend Logs. The operator can access the data to produce long term trend plots
of the chosen process variable.
3. Log and Report Generation. Archived data may be accessed to produce
scheduled or user demanded reports including trend logs, sequence of event
reports and maintenance logs. The report format is user definable.
Controller modules read and update field data and performance control
calculations and logic to make process changes.
Each DCS vendor has a priority approach, and it is possible, for example,
for the functions of control and I/0 to be combined in the same physical
competent. Nevertheless, it is still possible, even preferable, for a DCS to be
described by means of the generic functional modules.
Optimal Plant Allocation : This involves the economic balancing of the available
throughput against external demand. A typical problem is the selection of set
points in a Combined Sewer Overflows (CSO) process to ensure optimal
exploitation of the plant capacity.
Unit Optimisation : This is basically achieved by the local loop controller. The
feedback control design problem should be solved such that the unit control design
specification, formulated within the context of global system requirements, is
satisfied. There are numerous techniques in classical and modern control theory
to deal with this problem. However, methods dealing with constrained problems
are not so common and significant cost benefits will accrue from such techniques.
In a typical wastewater computer based system, pumps, valves, gates, etc must be
operated to divert wastewater or solids to in-line or off-line storage before a
bottleneck, and route them to subsequent treatment and receiving waters. It is
highly undesirable to generate flooding, overflows, and/or violation of standards if
the system has unused storage capacity at the same time.
10. Bhandari, V.A., R. Paradis and A.C. Saxena Using performance indices for
better control, Source unknown, ca 1986.
121
11. Bransby M.L Direct digital control in CEGB Power Stations, Chapter 9, Eds.
Bennet S., and D.A. Linkens Computer Control of Industrial Processes, Peter
Peregrinus Ltd. Stevenage, UK, ISBN 0-90604880X, pp. 155-169., 1982.
12. Tsai, T.H., J.W. Lane and C.S. Lin Modern control techniques for the
process industries Marcel Dekker Inc., New York ISBN 0-8247-7549-X,
1986.
Objective
The objective of this module is to introduce the basic concepts of
Statistical Process Control (SPC) as a tool for data analysis and data management.
5.1 Introduction
In manufacturing and service industry, the word quality is used to signify
'excellence' of a product or service. A process (system) is the dynamic
transformation of a set of inputs, such as materials, actions, methods and
operation, into some desired outputs, in the form of products, information, and
services. Most engineering processes can be monitored and brought 'under control'
by measuring appropriate output process variables to manipulate and change some
appropriate inputs. This refers to measurements of the performance of the process
and the use of feedback for corrective action.
Statistical Process Control (SPC) is the use of statistical tools and analyses
to monitor, control, manage, and improve process the performance of the process.
It provides easy, reliable, and proven techniques for evaluating trends and point
values and determining variation in the process behaviour. A process that is 'in
control' is stable and predictable. It is also amenable to process improvement. An
'out of control' process is not, it is akin to diverge from a target operating point.
'Tampering' with the process, only increases the variation in the process and may
cause poor performance or instability.
SPC methods provide objective means of controlling quality in any
transformation process. SPC is a tool to reduce process variability, variations in
Alternate
Process Process Decision
Manual Manual
Input Operation
Connector
Stored
Data
Or
Summing
5.1.2 Flowcharting
The flow chart is a very important step for examining and improving any
process. The symbols of Fig.5.2 are usually used to construct the flow chart. A
critical examination and analysis of the flow chart helps to identify possible
improvement to the process. A well-established sequence of questioning technique
is used to examine the flow chart. Examples of these questions are given below.
eliminating
combining
rearranging
or
simplifying
those activities.
126
Data forms the basis for analysis, decision and action. The methods of
collecting data and the amount collected must take account of the need for
information and not the ease of collection. Process data arise from both discrete
items and continuous measurements. The former can only occur in discrete steps
e.g. 1,2,... defectives in a sample of 10, valve ON or OFF, tank EMPTY or FULL,
etc. Data, which arise from measurement usually, occurs on a continuous scale of
time and is called variable data e.g. temperature, flow, pressure, weight, density,
etc.
con. 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2
freq. 1 2 3 4 6 7 7 8 6 5 4 2 1
Table 5.2 Frequency distribution
8
7
6
5
4
3
2
1
0
-0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4
The bar chart can be drawn horizontally and can be lines or dots rather
than bars. Microsoft Eexcel has the tools for plotting different type of bar charts.
Table 5.1 shows the data measured for concentration of a chemical product. Table
5.2 is obtained by calculating the frequency of the concentration at values 0 to 1.2.
The Bar chart is the plot of the concenrtaion against the frequency as shown in
Fig. 5.3.
129
5.2.1.2 Histograms
Pie Chart
x
y
z
a
b
5.3 Graphs
Graphs can be drawn in many very different ways. Some types of graphs
are briefly described here.
Line graphs: The observations of one parameter are plotted against another
Parameter and the consecutive points joined by lines.
Pie charts: are used to present proportions and is usually limited to small
number of variables. An example of Pie chart is shown in Fig. 5.4.
130
mode
median
F
r mean
e
q
u
e
n
c
y
Variable
numerical descriptive measures are the measures of central tendency and measures
of variability. The first measure of central tendency is the mode.
F
r
68.3% lies here
e
q
u
e 95.4% lies here
n
c
y 99.7% of values lie between
Variable
-3 -2 - + +2 +3
When the process is stable, the individual results are expected to lie within
the range t 3 . t is the grand process mean (The distribution of sample
means). Fig. 5.7 shows the principle of mean control chart. If we are sampling
from a stable process, most of the sample means will lie within the range t 3SE.
We can use the mean chart as the template to decide whether the means are
varying by an expected or unexpected amount, judged against the known degree
of random variation. We can also plan to use this in a control sense to estimate
whether the means have moved by an amount sufficient to require us to make a
change to the process.
If the process is running satisfactorily, we expect that 99.7% of the means
of successive samples will lie between the lines marked upper action and lower
action. The chance of a point falling outside either of these lines is approximately
1/1000. The chance of a sample between the warning lines is 1/40. The presence
of unusual patterns such as runs or trends, even when all samples means and
ranges are within zone 1, may also be evidence of changes in process average or
spread. This may be the first warning of unfavourable conditions which should be
corrected even before points occur outside the warning or action lines.
Conversely, certain patterns or trends could be favourable and should be studied
for possible permanent improvement of the process.
133
Sample means
ca 1/1000
Zone 3
Upper action limit ACTION
3 / n STABLE Zone 1
Process mean
STABLE Zone 1
2 / n
ca 1/40 Lower warning limit WARNING Zone 2
Individual population
Fig.5.7 The mean and range chart format.
The formulae for setting the action and warning lines on mean charts are:
Process mean @ t
The table in Appendix 5.A may be used to calculate the control limits for the mean
chart.
The control limits on the range chart are asymmetrical about the mean
range since the distribution of sample ranges is a positively skewed distribution.
The table in Appendix 5.B may be used to calculate the control limits for range
chart.
134
b. No more than about 1 in 40 values between the warning and action limits.
c. No incidence of two consecutive mean or range values, which lie outside the
same warning limit on either the mean or range, charts.
e. No runs of more than six samples mean which either above or below the
process mean.
f. No trends of more than six values of the sample means which are either rising
or falling.
135
a b c
d e f
U
USL L
LSL
Cp
6
Clearly any value of Cp below 1 means that the width of the random
variations is already greater than the specified tolerance band so the process is
137
incapable. For increasing value of Cp the process becomes increasing capable.
This index is accurate if the distribution is correctly centred about the mid-
specification.
Another index, Cpk, measures the distance between the process mean and
both the upper and lower specification limits and expresses this as a ratio of half
of the bell width:
USL r r LSL
L
C pk min(
m , )
3 3
A Cpk of 1 or less means that the width of the distribution bell and its centring is
such that it infringes one of the tolerance limits and the process is capable.
Increasing values of Cpk index corresponds to increasing capability.
5.9 Example
Consider the control of BOD at a desired set point of 6 mg/l. The overall
variability of such a process may be determined by measuring a large sample, say
100 measurements, from the process as shown in Table 2. The histogram for the
data is shown in Fig. 5.9. The mean and range charts limits are calculated as
follows:
Mean Chart
From Appendix 5.A and 5.B, for a sample size n=4; d2 = 2.059, therefore =
0.5/2.059 = 0.24 and :
F mean
r
e
q 2.5%
2.5%
u
e 0.1% 0.1%
n
c
y Variable
Fig 5.9 Distribution of sample ranges
138
Range Chart
Upper action line 2.75*0.5 = 1.37
Upper warning line 1.93*0.5 = 0.86
Lower warning line 0.29*0.5=0.15
Lower action line 0.1*0.5=0.05
The action and warning lines are schematically shown in Fig. 10, the mean
(Fig. 10.a and Fig. 10.b) and range (Fig. 10.c and Fig. 10.d) charts. It is clear that
this system is under statistical control.
139
Table 2 The BOD data used in the example
Sample
No (i) (ii) (iii) (iv) M R M F
1 5.8 5.8 6.2 5.8 5.9 0.4 3 7 5.8 1
2 6 6 5.4 6.1 5.9 0.7 2 5.9 3
3 5.8 5.7 5.7 6.2 5.9 0.5 7 6 10
4 6.2 5.8 6.1 5.9 6.0 0.4 10 6.1 8
5 6.3 6.1 5.9 6.3 6.2 0.4 2 6.2 2
6 6.3 6 6.3 5.9 6.1 0.4 8 6.5 1
7 6 5.8 5.9 6.2 6.0 0.4 R F
8 5.7 5.9 6.2 6.2 6.0 0.5 0.1 1
9 7.4 6 6.2 6.3 6.5 1.4 1 1 0.2 2
10 5.8 5.9 6.3 6.2 6.1 0.5 0.3 1
11 6.1 6 6.2 6.1 6.1 0.2 2 0.4 7
12 6.2 5.8 6.1 5.9 6.0 0.4 0.5 7
13 6.1 5.8 6.9 5.7 6.1 1.2 1 0.6 2
14 5.8 6.4 5.7 6 6.0 0.7 0.7 2
15 6 5.8 6 6.3 6.0 0.5 0.8 1
16 5.9 5.7 6.3 6 6.0 0.6 2 1.2 1
17 6.2 6 6 5.9 6.0 0.3 1 1.4 1
18 6.3 5.9 5.9 6.1 6.1 0.4
19 6.1 6.2 6.1 6 6.1 0.2
20 6.2 5.7 6 6 6.0 0.5
21 5.8 6.2 6 6.4 6.1 0.6
22 6.1 5.9 6.4 6.2 6.2 0.5
23 5.7 6.2 6.2 6 6.0 0.5
24 6 6.1 6 6.1 6.1 0.1 1
25 6.2 5.6 5.9 5.4 5.8 0.8 1 1
25 25
140
mean
5.10 Conclusion
6.6
6.5
6.4 Range
6.3
6.2
Statistical process control (SPC) provides mean
1.4 6.1 simple, yet powerful, for
6
1.2 5.9
managing process while avoiding process tampering. A process 'in control' (i.e.;
1 5.8
0.8 5.7 no special cause variation) is ripe for breakthrough process
exhibiting
0 5 10 15 20 25 30 Range
0.6
improvement.
0.4 A process still burdened with special cause variation is still in the
0.2 solving stage.
problem
0
0 5 10 15 20 25 30
Fig. 10.a BOD mean
Range Distribution
Mean Distribution
8 15
10
Frequency
Frequency
6
10 8
4
2 5 3 2
1 1
0
1 0 2 3 4 5 6 7 8 9
1 2 3
Range 4 5 6
Mean
Range Distribution
Fig 10.d
Fig. The
10.b BOD
BOD Range
Mean Distribution
Distribution
141
Formulae = R / d n or R / d1
Mean charts Action lines
X A1 Warning lines X 2 / 3A 1
X A2 R X 2 / 3 A R Process capability
2
X A3s X As 3
143
Warning lines:
Upper = D' 0. 025R or D 0 025 L
Lower
. = D' R or
0 975 D 0 975
. .
Objective
The objective of this section is to provide an overview for the non-
instrument engineer, of the role, operation and problems associated with the main
sensors and actuators used in the control systems of the waste water treatment
industry. To this end the section will cover:
The measurement of level may be required not only for determining the
height of fluid in a tank or channel but may be used within other measurement
schemes , for example, to determine the flow rate in a weir. The output can be
monitored or used to provide a control signal to operate valves or penstocks. The
most common techniques are to use either a sensor based on ultrasonic signals or a
capacitive device whose electrical capacitance, and hence voltage or current
output, depends on the level of material ( liquid) between the two capacitive
plates.
ULTRASONIC
TRANSDUCERS
TANK
0.145
146
-ve
+ve
Capacitive
Level
Sensor Fluid
in
Tank
Q=A*
where Q: volumetric flow rate (m3/s)
A: cross-sectional area of pipe (m2)
: flow velocity (m/s)
If the volumetric flow rate and fluid density are known, the mass flow
rate can be calculated from:
W=Q*
147
where W : mass flow rate (kg/s)
Q: volumetric flow rate (m3/s)
: density (kg/m3)
p
Volumetric Flow: Q k1
Mass flow: W k2 p.
In the water industry, weirs or flumes are often used to measure open
channel flow, whilst the nature of the liquid/solids in pipes may require non-
invasive flow rate measurements such as magnetic flowmeters or ultrasonic
techniques(Doppler meters, transit-time meters).
0.147
148
The flow rate requires the measurement of ‘head’ or level. A level sensor
placed appropriately can find this. Often, the level sensor is placed in a ‘still well’
adjacent to the flow channel. As the flow through the channel increases, the level
rises simultaneously in both the channel and the still well, Hence the level in the
still well reflects the flow rate.
Capacitative
Still well
Level sensor
Flow
V-notch
weir
Open Channel
6.3 Flumes
Submerged flow: This occurs when the water level downstream of the flume is
sufficiently high to reduce the discharge. This results in a reduction in velocity, an
increase in flow depth and causes a backwater effect at the flume. Submerged
flow requires measurements both upstream and at the throat to determine the flow
rate.
Throat
Flow
Level Sensing
Device
Advantages:
These meters do not create a pressure drop
It is a volumetric device in that the velocity is measured directly and
variations in density do not affect the accuracy.
They do not provide any obstruction to the flow.
0.149
150
E = constant * D * B *
where: E: induced voltage (volts)
D: distance between the probes (m)
B: intensity of magnetic field (Tesla or Volt–s /m2)
velocity of motion of the conductor ( in this case the conducting
liquid) (m/s)
B4
E = constant * ( )*Q
D
All the terms in brackets are held constant and therefore the induced voltage is
proportional to the flow rate.
Vout
Electrodes
Pulsed DC Input
0.151
152
Flow
Ultrasonic
Transmitter/Receiver
The time taken for the transmission of an ultrasonic pulse over a given
distance with and against the flow is recorded, giving times t 1 and t2 respectively.
Doppler meter
Receiver
Analysis
for frequency
shift
measurement
Flow Scattering
Centres
Transmitter
Pulse
Generator
1 –10 MHz
The fluid, into which the ultrasonic pulse is transmitted, causes scattering
of the sound. This scattered sound is received by a transducer and the resulting
frequency analysed. The shift in frequency, which may be of the order of 100 Hz,
can then be determined by further processing.
(pH, Nitrates)
The monitoring of certain chemicals such as pH or nitrate may be required for
monitoring purposes to satisfy various legal requirements, or to form the
measurement within a closed loop feedback control system. This section examines
the use of ion selective electrodes for the use in determining the concentration of
various ions in the liquid.
0.153
154
in the solution and that on the measurement sensor surface. When a chemical
equilibrium is reached between the two substances, there is a corresponding
equilibrium potential difference between the sensor and the solution. This
potential difference is caused by the concentration or activity of mainly one
selected ion. However, the ion-selective electrode only forms one half of an
electrochemical cell and therefore must be used in conjunction with a reference
electrode immersed in the same solution. The purpose of the reference electrode is
to provide an electrode at constant potential (also constant temperature) against
which to measure the potential of the ISE.
Reference
Measurement
electrode
electrode
Screened
connecting cable
Potassium
Chloride
Gel
Reference
electrode
(Ag – AgCl)
Glass membrane
0.155
156
Epoxy
Ag/AgCl
Wooden Reference
Dowel
Temperature
Compensation
pH measurement
electrode (glass)
Figure 0.20 Solid state combination electrode with permanently charged reference
electrode
Remarks
Typical sensitivity of the glass electrodes might be 30mV (0.5pH) and 5
mV for reference electrodes.
The sensor signal must be conditioned since it has a temperature -dependent
high electrical resistance (in the order of 100 to 300 M ). It must be
connected to a meter with a very high input resistance circuit or a pre-amplifier
circuit. The sensor scaling varies with temperature and a zero shift also occurs
so temperature compensation is usually applied.
A variety of 'sealed disposable' reference electrodes are offered as standard by
manufacturers.
Some manufacturers provide a level of self- diagnostics within their sensor
system. For example, a routine resistance check can be performed on the pH
glass electrode to ensure that no crack or break has occurred. Alternatively,
157
the reference sensor can contain two electrodes with a continuous comparison
to detect faulty performance.
+ +
+ +
+ +
Inert
Cathode
- - - - Replaceable
Membrane
0.157
158
Temperature compensation is required and is commonly achieved by use
of a PT100 resistance probe. A typical DO sensor may measure in the range of 0-
20ppm or 0-250% saturation. However, the probe's measurement is dependent to
some extent on flow to replenish the consumed oxygen. In addition, the corrosive
by-products of the electrochemical reactions makes periodic electrode cleaning ,
replacing or recharging necessary. The membrane on the probe is commonly made
of Teflon and can be replaced as needed.
O2
Permanent
Internal
Electrolyte -
+
O2 -
O2
+
0.159
160
therefore produce an electrical signal related to the turbidity or the suspended
solids concentration of the liquid.
Light
Source
Photocell
Lenses
Photocell
Solution Scattered Light Arrays
The light beam is focussed in the substance flow and the dual beam
method uses the measurement of both direct and 12o forward scattered light. The
ratio between the scattered and direct light is calculated which gives a good
correlation between particle concentration and the measuring value. By using a
ratio calculation, disturbances affecting both forward and scattered light ( such as
colour of the solution, window coating and lamp ageing) are compensated. Other
models can use a triple beam system which measures the 90 0 scattered light
(smallest particles), forward scattered light (bigger particles) and the transmitted
beam.
Sensors may have ranges of 0-30, 0-100, 0-300, mg/l or 0-2, 0-20, 0-200 ppm
0.161
162
flow passing the electrodes and therefore are continuously rubbing
against and cleaning the electrodes.
Systems containing microprocessors can provide a time-monitored
switching on and off of jets of water for cleaning.
The Monitek CLAM system for self-cleaning provides a mechanical
manipulation of a piston attached to a wiping seal to sweep across the
surfaces of the light absorption sensor.
The centrifugal pump (Figure 0.25) derives its name from the fact that the
fluid is driven outwards by the movement of the blades in the pump. The velocity
of the fluid is reduced since it passes through the passage of gradually increasing
cross-sectional area; this reduction in velocity corresponds to an increase in
pressure , or ‘head’ between the inlet and outlet fluid pressures. If the discharge
side of the pump is closed then the pressure builds up to a maximum for the pump
and the pump effectively churns the fluid up, creating heat as a by-product.
Centrifugal pumps are also, in general, not disadvantaged by flows containing
solid particles.
163
Outlet
Inlet
Shaft
Impeller
0.163
164
Hd
Outlet valve
hs
Inlet valve
Ls
Suction level
The disadvantages of the pump are that small clearances are required
between moving and stationary parts, thereby making them unsuitable for fluids
which may contain solid particles. There is also a problem if the discharge line is
blocked since even a small increase in pressure of the incompressible fluid can
cause the pump to stop or some parts of the casing to burst.
165
0.165
167
Objectives
1. To introduce the development of communication system from an
analogue to digital environment.
4. To present the Open System Interconnection (OSI) reference model as a
way of structuring the functionalities of communication systems.
2. To outline the communication media now available and used within
WWTP.
3. To describe the typical electrical standards (RS-232, RS-485, etc).
5. To introduce the HART system as a means of using combined
digital/analogue communication.
6. To discuss the current issues in the FIELDBUS area.
7.1 Introduction
RS-48
Works 2 Works 3
Sensors Actuato
Works 1
/ /'(
A.nologue Output
Time
RS232/4-20mA
COMPUTER FIELD DEVICE
There are various media used for communicating data. For WWTP, the
most feasible can be divided into the following classes; cable (twisted pair,
coaxial, fibre optic), telephone networks and radio/microwave links.
This has a low transmission rate <50000 bits per second and will allow
networks upto 2Km.
Cable (coaxial):
This medium can carry 5 times as much information as the coaxial cable
and has the advantage that it is unaffected by electromagnetic interference.
Telephone Networks:
At present the licensed radio channels permit data transfer at low data
rates (Imrie, 1994). However, they can be used to download non-critical data
outside peak time. Microwave links provide higher speed transmission but require
line of sight transmission and therefore longer distances require large microwave
antena.
172
Serial communication can also take one of the following three forms:
(i) Simplex : where the controller can send information to the field device
but there is no transfer of information from the field device back to the
controller
(ii) Half duplex: where both controller and field device can communicate
with each other, but not simultaneously.
(iii) Full duplex : Simultaneous communication is possible between
controller and field device.
RS-232
This is the common interface used between PC serial parts and devices.
Figure 7.5 shows the pin connection and their function on an RS232 connector.
2 2
3 3
7 7
7.3.4 Protocols
ETB
STX
Device 1 sends text block
ETB
AKN
Device 2 acknowledges
ETX
Device 1 sends end of text
EOT
Device 1 sends end of
transmission
Application protocol
7 7
Presentation protocol
6 6
Session protocol
5 5
Transport protocol
4 4
Network protocol
3 3
Physical protocol
1 1
SCADA
SYSTEM
FIELD FIELD
DEVICE DEVICE
FIELD FIELD
DEVICE DEVICE
FIELD FIELD
DEVICE DEVICE
BUS
CONTROLLER
FIELD FIELD
DEVICE DEVICE
FIELD FIELD
DEVICE DEVICE
The LANs can still be formed in the star, ring and bus topologies. The
star LAN passes device-device commands through a central switching node. The
ring LAN passes messages round the ring in one direction only. Each node reads
the message, makes a copy if it is addressed to itself and passes the message. One
typical configuration of a ring network is the token ring. A token is passed round
the ring and any node may remove it, transmit a message and add the token to the
end. A receiving node will mark its safe acceptance, which will cause the
transmitting node to remove the message.
181
The bus LAN may be synchronous ( token passing) or
asynchronous (contention). The token passing is similar to the ring-token
described above. Asynchronous access implies that any node listens to the bus and
if it is not busy transmits its message. It can happen that two messages transmit
simultaneously (or almost simultaneously), therefore an access control
mechanism call Carrier Sense Multiple Access /Collision Detection (CSMA/CD)
is used to resolve the contention.
14
12
10
4
0 10 20 30 40 50
Time (seconds)
Figure 7.14 A HART signal superimposed on a 4-20 mA process signal
7.7 FIELDBUS
the future. Many of the existing Fieldbus providers have chosen to implement
only three of the 7 OSI layers, (Figure 7.15). However, they have added an eighth
or 'user' layer to represent the user interaction with the communication system.
STANDARDS BODIES:
FIELDBUS ‘STANDARDS’:
FIP Factory Instrumentation Protocol – French national standard.
PROFIBUS Process Fieldbus – German national standard.
Lon Works Communication system – conceived by the American company Echelon.
CAN Controller Area network – protocol conceived by Bosch for use in
vehicles.
ISP Interoperability Systems Project – established by Fisher Rosemount,
Siemens and Yokogawa.
ISPF Interoperability Systems Project foundation.
P-NET A fieldbus protocol developed by the Danish.
WorldFIP Enhanced version of FIP incorporating the IEC physical layer.
IEC/ISA Fieldbus
FIP
PROFIBUS
ISP
187
The Interoperable Systems Project was set up by Fisher, Rosemount,
Yokogawa and Siemens. It was set up with the stated intention of accelerating the
establishment of an international standard. It has adopted the IEC/ISA physical
layer. The rest of the protocol rests heavily on PROFIBUS and incorporates
aspects of FIP and HART (Allen, 1994).
P-NET
CAN
LonWorks
Product IFC
(90-94)
WFIP
ISP (92 - )
(92 – 94)
WFIP WFIP
(US) (Euro ) Product
FF
Product
Profibus
P-NET EN50170
WFIP
With the facility of the computer network comes the added advantage of
the use of SCADA systems for process monitoring and facilities management.
Grampian Regional Council has used its wide-area-network of linked PC to run a
sludge management information system (Water Services, 1996) to co-ordinate
transportation and disposal). Likewise, a network management scheme is
operated by Yorkshire Water (Newsome, 1991) which includes regional telemetry,
databases, analysis and strategic planning.
8.1 Introduction
boards now contain their own processors and are available at a more reasonable
price. Digital signal processors are an example of special-purpose processors that
find their way onto plug-in boards. Many plug-in data acquisition boards also have
sophisticated direct memory access (DMA), timing, and triggering capabilities
that can span multiple boards, resulting in improved synchronisation and signal
coupling between boards. These developments have brought parallel processing
capabilities to personal computers, making them more sophisticated platforms for
instrumentation and data acquisition.
Electrical
Measurand Signal
Primary Sensing Amplification
Element
Digital Signal
Compensation Data Processing
Digital
Communication
untitled windows appear. The first window with the gray background is the Front
Panel. The one with the white background is the Block Diagram panel.
b. Double-click on examples.llb.
c. Double-click on apps.
d. Double-click on tempsys.llb.
After a few moments, the Temperature System Demo VI front panel appears.
The front panel contains several numeric controls, Boolean switches, slide control,
knob controls, charts, graphs, and a thermometer indicator.
198
6. You can also the Pause/Continuous button to start and stop the program.
This is usually used for debugging the program. When you use this button, the
Block Diagram Panel opens and you can see the block diagram of the
Temperature demo.
7. On the Block Diagram Panel, click on File and click on Close to close this
window.
To change any of the operating data on the front panel, follow these steps:
2. Click on the Show Tools Palette. The following Tools Window will
appear.
You can move the tools Palette to a clear space by holding it with the mouse
and move it around.
Labeling Tool
Operating Tool Pop-up Menu
Positioning Tool Scrolling Tool
Wiring Tool Color Copy Tool
Break Point Tool Probe Tool
Coloring Tool
2. The upper limit of the Update Period slide (in system controls) to 2.0.
8.4.5 Creating a VI
VIs have three main parts: the Front panel, the Block Diagram panel, and the
icon/connector. The icon/connector will not be discussed in this tutorial.
Front Panel : You build the front panel of a VI with a combination of controls and
indicators. Controls are your means of supplying data to your VI. Indicators
display data that your VI generates. There are many types of control and
indicators. You add various controls and indicators to the front panel from the
various sub-palettes of the Control palette. Now, fo to file menu and open a new
VI. If the Control palette is not visible,
Numeric Controls and Indicators : The two most commonly used numeric objects
are the digital control and digital indicator.
3. Move the mouse to the front panel (hand symbol) and click. The Digital
Controller appears on the front panel.
201
4. Use the Operating tool to change the value by clicking on the increment
buttons. Click on your Digital Control with right-hand mouse button, click on
Show, click on Label, and use the keyboard to type ‘No.1’. This automatically
goes in the box that appears. A small box appears on the top of the digital control.
5. As in the diagram below, put another digital control on the front panel
6. Put another digital control on the front panel and call it No.1+NO2. Then,
click on the digital control with the right-hand mouse button; click on Change to
indicator.
Note:
To edit text you must use the ‘A’ buttons from the Tools Palette.
To move a box you must use the pointer buttons from the Tools Palette.
To open the block diagram, go to Window menu and click on Show diagram.
The following window will appear.
Input Terminals
Output Terminals
Terminals are ports through which data passes between the block diagram
and the front panel and between nodes of the block diagram. There are two types
of terminals, control/indicator terminals and node terminals. Controls and
indicators terminals belong to the front panel controls and indicators.
203
To include the functions for add and subtract, go to Windows menu (on
Block Diagram Panel) and click on Show Functions palette (If this not already
active). This window appears.
Click on the add function and then click on the block diagram window at the
point where you want to place the add icon. Repeat for the subtract function. The
window should look like this:
You can use the Position tool (pointer) in the Tool Palette to move the icons
around on the block diagram window. Try to move the add and the subtract icons.
(You should first choose the Position tool in the Tool palette by clicking on it.
Then click on the add icon, it starts blinking. Now move the icon by holding it
with mouse and move it around).
8.4.7 Help
Click on Help menu and then Show Help. Now, move the cursor to the add
icon, you will see the following window. The function has two inputs and one
Nodes
8.4.8 Wiring
Wires are data paths between terminals. Data flows in only one direction,
from a source terminal to one or more destination terminals. To wire from one
terminal to another, use the Wiring Tool, which looks like a reel of wire in the
Tools Palette. Click with the wiring tool on the first terminal, moves the tool to the
second terminal, and click on the second terminal. You can start wiring at either
terminal.
When the Wiring tool is over a terminal, the terminal area blinks, indicating
that clicking will connect the wire to that terminal. You need not hold down the
mouse button while moving the Wiring tool from one terminal to another. You can
bend a wire by clicking the mouse button to tack the wire down and moving the
mouse in a perpendicular direction.
If you want to delete any wire, double-click the wire using the mouse pointer
You can now go to the front panel and run your VI. Check the results for the
following numbers:
No.1 10 No.2 3
No.1 3 No.2 -5
You use Boolean controls and indicators for entering and displaying Boolean
(True-False) values. Boolean objects simulate switches, buttons, and LEDs. The
most common Boolean objects are the vertical switch and the round LED.
Exercise 1: Compare the two numbers in your previous VI and turn on an LED if
the numbers are equal. Run your VI and confirm the result.
This example is similar to the one studied using Simulink. The process is an
activated sludge process, which is usually constituted by a bioreator (the aerator)
and a settler. The aerator is taken to be a well-stirred tank in which suspended
micro-organism react with the organic material in the wastewater and with the
oxygen dissolved in the water to produce more cell mass, carbon dioxide, and
water. The oxygen is injected in the aerator by compressed air and the suspended
micro-organism is separated completely in the settler. A portion of the
concentrated biomass is recycled to the bio reactor and the remainder is wasted to
maintain a bounded micro-organism concentration level in the system.
207
8.5.1 Objective
the effect of the process and sensor noise on the control performance
1. Double the sample time and rerun the VI. Retune the controller for the same
performance. Repeat by doubling the sample time.
2. Increase the sensor noise in steps of 1.0 and observe the mean chart.
Determine the value of noise for which the process is out of statistical control.
3. Increase the process noise in steps of 0.1 and determine when the process is
‘out of control’.
208
The plant for this design exercise is a simplified version of the Holdenhurst
Sewage Treatment Works (Robinson, 1990). The layout of the plant is
schematically shown in Fig. 8.3.
Storm flows
Inlet Works
Primary Sedimentation
Biological Treatment
Effluent recirculation
Sludge treatment
The works has its own automatic diesel-powered generators. Each station has
a battery back up uninterruptible power supply for 2 hrs. The complete system has
about 400 instruments and sensors. Analogue inputs are monitored every 10 sec
and digital inputs are recorded every 6 sec. The stations communicate with the
host computer every 20 sec through a modem.
Low Leve
Sludge to B Sewage In
Hill Works
Main inlet
Screening Sedimenta
Tanks Contact Ta
Act
Retu
Slud
Contact Tan Pum
Storm Tan Hou
Stabilisation T AnoxicTan
Contact Ta
Contact Tank
Stabilisation T AnoxicTank
Workstation 2 WorkstationArea
3: 1
8.1.1.1.1 Workstation 1 Inlet penstock control Desluging primary tanks
Process air pressure control Balanced flow control Dissolved oxygen control
Blower control and ancillaries Storm tank control Air flow control
Standby generator control Sewage pumps control Settled sewage monitoring
Sludge pump monitoring
Inlet works monitoring
Scraper motor control
Workstation 5
Final tank sludge blanket level contr
Scraper control Workstation: Area
4 2
Return activated sludge pumps and f Desluging primary tanks
control Dissolved oxygen control
Surplus activated sludge flow contro Air flow control
Settled sewage monitoring
Workstation 6 Workstation 7
Final tank sludge blanket level control Sludge well level monitoring
Scraper control Control of sludge pumping inhibition
Return activated sludge pumps and flow co Activated-sludge treatment
Final effluent monitoring station Plant fault monitoring
Final effluent recirculation Generator set monitoring
If a storm produces more than 82 Ml/d (cut-off flow to plant) the excess is
automatically diverted to storm tanks. When these are full discharge is either river
or sea via sewer overflows at predetermined rates.
Pressure sensors in the sewer monitor the head (see fig. 4) and at a pre-set
level, the work's flow is increased to maximum treatment plus required storm
flow. In addition the rate of rise of head is measured, and when it exceeds a set
point above a certain head , the storm flow sequence is triggered.
If during the fill period the inflow is lower than the predicted flow, the
desired rate of change of head is calculated to give a full sewer at the end of fill
period. If this desired rate deviates from the actual rate by a given dead-band, the
desired and the actual flow are compared in PID loop. The output of this loop is
212
fed to a secondary PID loop comparing the desired CIS flow with the actual flow.
This is used to update penstock position.
The sewage wet well control is part of the flow-balancing scheme, and is
based on level measurement. Downstream from the storm overflow the treatment
flow is split equally into two treatment lanes.
Each of the two-treatment streams has two stabilisation zones and four
contact zones for DO control. Each control zone has a DO electrode, air flow
meter, and motorised valve. Target DO concentration is compared with the
measured DO. A cascade PID control loops generates a difference signal to
calculate a required airflow. This is measured with the actual airflow, and the
difference signal is used to generate the movements of the corresponding control
valves. The control system is schematically shown in Fig. 8.5.
These valves operate independently and cause pressure variations in the air
main. The pressure is measured and compared with a set point, the difference
signal being used to control vane angle of the blowers, and thus the blower output.
The control system is shown in Fig. 8.6.
Exercise 4. Why do we need to use the non-linear functions f1() and f2() in the
aeration control system?
213
Pumps "
Contro
CIS Stream Flows
Predicted M
Flow f2( )
PID
Plant Flow
Restricte
SF SP
Storm Tank Condit
Selec &
Discharge mode
River or sea
Unrestricte
SF SP
PT
PI PI
The RAS flow is controlled by a motorised valve on the pumping main. The
number of pumps operating is determined by the position of the valve. Should the
pump level fall, the RAS flow is automatically decreased to avoid air locking of
the centrifugal pumps. Also, if the blanket level in any of the final tanks exceeds a
set point, the RAS flow is incremented by a set amount, and the final tank valve is
215
opened. This effectively overcomes any airflow imbalance to the final tanks. At a
higher blanket level, a priority alarm is activated.
Surplus activated sludge is wasted directly from the RAS flow by a small
bore pipework and a motorised valve.
RAS Flow
Set Point
Max
Minimum Averaging Aperture
Valve
L Control
PID
Figure 8.8 Final Tank Desludging and Return Activated Sludge Control
8.8 Alarms
Alarms are activated upon instruments fault, high or low signal values,
undesirable trends or incorrect digital points, i.e. plant unavailability. Alarms have
low or high priorities. Alarm points are normally displayed on a colour VDU and
are colour coded.
Diagnostic tools are available which permit identification and analysis of faculty
plant equipment or of the data. Two modern techniques, which can be used, are
expert systems and neural net modelling. Although the methods and analysis can
be used for a wide variety of purposes, other than fault diagnosis, this chapter
provides the introduction and use of these tools in a diagnostic situation.
User
User KNOWLEDGE
Interface BASE
Database
Interference Engine
An expert system can be associated with data logging instruments to improve the
fault detection and analysis of a process plant. The initialisation of project would
include considering:
the role of the system: to help an operator, assist an engineer, etc.?
where the ‘knowledge’ will be derived from
what is the appropriate representation for the knowledge? (For example,
if…then or more complex mathematical representations)
hardware considerations?
user interface ( text or graphics)?
validation and testing, field trials?
Once the user has decided on, say, a rule-based system for fault detection and the
following issues need to be considered
221
Input
Weight
Neuron
Input
Weight Output
Weight
Input
Figure 9.2 The neuron
The neurons can be connected together to form a neural network(NN) which can
be trained to perform tasks. The number of neurons in a NN can range up to
thousands. A NN is shown in Fig. 9.4. There are 4 inputs in the input layer which
pass to three neurons in the hidden layer which pass to 2 neurons in the output
layer. There may be many hidden layers within a NN. Although all the
information is passing from input to output in the Figure, some networks can
allow data to travel backward or to flow between neurons in the same layer, even
to themselves.
223
input
output
input
output
input
input
Hidden Layer
Input Layer
Figure 9.3 Neural Network
Data collection
Data preparation
Design
Optimisation
Training and testing
Validation
Implementation
Maintenance
The network's output errors should decrease rapidly as it learns the classification
of the data.
Optimisation : Features that can be altered during the design and optimisation
process include: Quantity of training data, input pre-processing, network
architecture, network size, training algorithm.
Diagnosis and Treatment : Problems can be : Slow learning/high training errors,
Poor generalisation, Low speed for new data.
Validation: Validation can be performed, for example, by running large amounts
of test data through NN and checking performance against an analytical model.
The NN may fail if the new data set is statistically significantly different from the
training data set. This is a current problem in the application of NNs, and limits its
application in safety critical systems.
226
Symbols
: belongs to
: does not belong to
: include or equal
: union
: exclusive OR
: intersection
: union
: for all
: not equal to
: separate the membership of an element from the element
: product
: summation
.:operator AND
: AND
: OR
x: Cartesian product
: there exist
Inference engine: the portion of the program in an expert system that controls the
selection and application of rules and practices in the knowledge base.
Fuzzy production rule: a rule employing fuzzy sets in its antecedents and
consequence terms.
Fuzzy set: a set in which objects may have only partial membership.
Linguistic variable: a fuzzy set defining some particular linguistic concept- for
example, a “low voltage”.
Policy: a series of fuzzy production rules that are grouped for evaluation.
Noise word: a word that improves the readability of rules but has no mathematical
value, such as “should”, “that”, and “this”.
AxB={(a,b); a A b B}.
(a,b) is the ordered pair with first component a and second componnet b.
Binary Relation
A binary relation on AxB or from set A to set B is a subset of AxB, i.e (x,y) R
Composite Relation A
10.1 Introduction
Fuzzy set theory is based on the concept that human thinking is seldom
mathematically precise. Fuzzy sets let a computer represent data and reasoning
the way human do, by manipulating imprecise and often ambiguous thoughts. In a
classic set, membership is predicted on Boolean logic. An object is either a
member of a set or is not. With fuzzy sets, an object may have partial membership
in a set. So whereas classic logic allows only for the possibilities of a proposition
being true or false, fuzzy logic allows infinite values. It takes into account the
possibility that a proposition can have any value between true and false.
Fig.10.1 The membership functions for (a) conventional logic, (b) fuzzy logic
231
X y x x.y x+y x y
T T F T T F
T F F F T T
F T T F T F
F F T F F F
Table 10.1 The truth table
232
X y x x.y x+y x y
1 1 0 1 1 0
1 0 0 0 1 1
0 1 1 0 1 1
0 0 1 0 0 0
Table 10.2 The truth table
Examining the truth table we note that we may make the following
associations between the membership functions and the connectives:
x 1- (x)
x.y min[ (x), (y)]
x+y max[ (x), (y)]
x y max[min( (x),1- (y),min(1- (x), (y))]
Note that the exclusive OR is defined as:
x y=(x. y + x .y)=max[min( (x),1- (y),min(1- (x), (y))]
1 if x A
A(x)=
0 if x A
Definition 3.1: Let be a collection of objects, for example real numbers, =Rn,
and be called the universe of discourse. A fuzzy set X in is characterised by a
Membership Function (MF):
X: X [0,1]
with X(x) representing the Grade of Membership (GM) of x in the fuzzy set X.
COLD : 0 COLDi ( x )
C 1; x(t ) [10
1 ,17]; C
COLDi
( x) 0, otherwise
NORMAL : 0 N
NORMALi
( x) 1; x(t ) [15
1 ,25]; NORMALi ( x )
N 0, otherwise
HOT : 0 H i ( x)
HOT 1; x(t ) [2
22,35]; H i ( x)
HOT 0, otherwise
COLD, NORMAL and HOT are called linguistic variables. We give a more
formal definition for these variables later.
Fuzzy set theory extends the crisp set concept by defining partial
memberships which can take values ranging from 0 to 1 over the universe of
discourse X,:
234
A [0,1] over X.
A A ( x) / x
X
Note that in the above definitions, ‘/’ does not refer to a division and is
used as a notation to separate the membership of an element from the element
itself. As an example of continuous fuzzy membership function, the linguistic
term POSITIVE may be defined to take the following membership function:
1 if x > 4
PO
POSITIVE (x ) (x - 1)/3 if 1 x 4
0 otherwise
235
In practice one deals with discrete sets. A finite discrete fuzzy subset
contains n elements represented in standard fuzzy notation as the union of fuzzy
singletons, i/xi, where I is the membership value corresponding to xi. Using the
+ sign as the notation for union, a discrete fuzzy set F may be written as:
n n
F= 1/x1+ 2/x2 +....+ n/xn=
i
* i
i 1 xi i 1 xi
For example the discrete fuzzy set TALL may be represented as: TALL=0/150cm
+ 0.2/155cm+ 0.4/160cm+ 0.6/165cm+0.8/170cm+1/170cm Or A={0.2/e 1,0.6/e2}
has membership 0.2 for element e1 and 0.6 for element e2 in the fuzzy set A.
-cut: The -cut of a fuzzy set A is defined as the crisp set of all the
elements of the universe X which have memberships in A greater than or equal to
, where
A ={x X| A(x) }.
Note that ‘+’ is the OR operator and ‘/’ shows the association of the
grade of membership to its element.
(x) (x)
237
(x) (x)
(a) x (b) x
(x) (x)
(c) x (d) x
A ( x) exp[
e ((xx ch ) 2 /(2 2
h )]
where the ch is the centre and h is the variance. Gaussian fuzzy sets do not have a
compact support as they always have a positive response, but they can be modified
(using the -cut) so that this property is incorporated into the fuzzy sets.
238
Discrete
0.5 Triangular
0
0 0.5 1 1.5 2 2.5 3 3.5 4
0.5 Discrete
Trapezoidal
0
0 0.5 1 1.5 2 2.5 3 3.5 4
Examples of triangular and trapezoidal fuzzy sets are shown in Fig. 3.4
10.6 Singleton
Singleton
m *
GM
s x
239
Exercise 1: Assuming the Mfs for the fuzzy subsets, COLD, NORMAL, HOT, are
symmetric triangle, identify the support, peak and bandwidth for each subset.
10.7.2 Equality
A(x)= B(x) x X.
10.7.3 Inclusion
A(x) B(x) x X.
240
10.7.4 Complementation
A
( x) = 1- A(x) x X.
10.7.5 Intersection
10.7.6 Union
Many of the basic ordinary set identities hold for fuzzy sets when the
complementation, union and intersection operators are defined as above, for
example,
Associative Laws:
A (B C) (A B) C
A (B C) (A B) C
Distributive Laws:
A (B C) (A B) (A C)
A (B C) (A B) (A C)
De Morgan’s Laws:
(A B) (A B)
(A B) (A B)
243
The definitions in section 10.7 show only one possible choice of the
operators for intersection, union and complement. Based on different
interpretations, which range from intuitive argumentation to empirical or
axiomatic justifications, other operators have been suggested. The t-norm for
intersection and t-co-norm for union are examples of these interpretations.
Exercise 2: Assuming the MFs in exercise, find the MF for the following
operations:
244
NORMAL HHOT
COLD NNORMAL
( NORMAL H )'
HOT
COLD ((N
NORMAL H )'
HOT
Exercise 3: Consider two qualitative statements, ‘big’ and ‘medium’ with the
following membership functions:
big={0,0.3,0.7,1.0}
medium={0.2,0.7,1.0,0.8}
B ( y) sup
p A ( x)
u f 1( y )
that is B(y) is the supremum of A(x) for all x X such that f(x)=y, where y Y
and we assume f-1(y) exists, if f-1(y) does not exits for some y, we define B(y)=0.
This definition may give the reader a feeling that linguistic variable is a
complex concept, but in fact it should not be. The aim of introducing the concept
of linguistic is to present a formal way of saying that a variable may take words in
natural languages as its values. For example, if we can say ‘the speed is fast’ then
the variable speed should be understood as a linguistic variable, but this does not
mean that the variable speed cannot take real values. In this spirit, we can have
the following definition of a linguistic variable.
For example , the linguistic variable speed can take ‘slow’, ‘medium’,
and ‘fast’, as its values. It can also take any real numbers in the interval [0,V max]
as its values. The linguistic variable is an important concept that gives us a formal
way to quantify linguistic descriptions about variables.
2
very X(x)=[ A(u)]
1/2
(x)=[
more or less X A(u)]
1
very A
0 . 8
0 . 6
A
0 . 4
0 . 2
0
2 4 6 8 1 0
0 . 8 moreless A
0 . 6
A
0 . 4
0 . 2
0
2 4 6 8 1 0
247
In fuzzy logic and approximate reasoning, there are two important fuzzy
inference rules, namely, Generalised Modus Ponens (GMP) and Generalised
Modus Tollens (GMT). These inference rules are the generalisation of the
classical logic modus (meaning mode) ponens ( from the Latin ponere, meaning to
affirm) and modus tollens ( from the Latin tollere, meaning to deny). For fuzzy
logic these are defined as follows:
premise1 : x is A’
premise 2: if x is A, then y is B
consequence y is B’
where A’ , A, B and B’ are fuzzy sets, and x and y are linguistic variables.
x is A’ (premise 1) y is B’(consequence)
criterion 1 x is A y is B
criterion 2-1 x is very A y is very B
criterion 2-2 x is very A y is B
criterion 3-1 x is more or less A y is more or less B
criterion 3-2 x is more or less A y is B
criterion 4-1 x is not A y is unknown
criterion 4-2 x is not A y is not B
248
premise1 : y is B’
premise 2: if x is A, then y is B
consequence x is A’
where A’ , A, B and B’ are fuzzy sets, and x and y are linguistic variables.
y is B’ (premise 1) x is A’(consequence)
criterion 5 y is not B x is not A
criterion 6 y is not very B x is not very A
criterion 7 x is not more or less B x is not more or less A
criterion 8-1 y is B x is unknown
criterion 8-2 y is B x is A
Table !! Intuitive criteria relating premise 1 and the consequence fro given
premise 2 in GMT
Logical AND
Logical OR
Exclusive OR
B(v)]]
Apart from fuzzy composition there are other examples of fuzzy relations such as
Let R and S be fuzzy relations in UxV and VxW, receptively. The sup-
star composition of R and S is a fuzzy relation denoted by R S and is defined as:
250
R D S (u, w) sup
s p[ R (u, v ) * S ( v, w)]
v V
The most commonly used sup-star compositions are the sup-min and sup-
product compositions which replace the * by min and algebraic product,
receptively as explained in the next section.
Example of premise
The terms NEAR and FAST are defined as fuzzy sets in the linguistic
variables for position and speed of a car. The conclusion is an expression of the
form xo=xoj. In this case loj is the j-th fuzzy set of the linguistic variable describing
the output value and changed by the implication. The equal sign is an assignment
of the fuzzy set loj to the output variable xo.
251
Example
I=E R
I(i)= R(e,i) for e=e1 and (e)=0 for all other e then
if....then.... j=1
else
if....then.... j=2
else
if....then.... j=3
else etc.
In this case the ‘else’ connective is interpreted as the ‘or’ connective and,
I (i ) m [
max R j ( e, i ) e e1 ]
j
= max min [ E j ( e), I j (i )]
j j
Example:
Suppose two fuzzy rules have been formulated for a system, namely:
1. if the error (e) is zero and the error change (de) is small positive (SM) , then
the control input is small negative (SN).
2. If the error (e) is small negative (SN) and the error change (de) is zero (ZE),
then the control input is large positive (LP).
Example
0 .1 .3 .7 1. 1. .7 .5 .2
0 .1 .3 .7 1. 1. .7 .5 .2
0 .1 .3 .7 .9 .9 .7 .5 .2
0 .1 .3 .6 .6 .6 .6 .5 .2
A= 0 .1 .3 .3 .3 .3 .3 .3 .2
0 .1 .1 .1 .1 .1 .1 .1 .1
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
255
0 . 5
0
1 0
1 0
5
5
0 0
Example
Consider
if x is small, then y is medium
x is very small
versmall=1/1+0.9/2+0.6/3+0.3/4+0.1/5
256
0 .1 .3 .7 1. 1. .7 .5 .2
0 .1 .3 .7 1. 1. .7 .5 .2
0 .1 .3 .7 .9 .9 .7 .5 .2
0 .1 .3 .6 .6 .6 .6 .5 .2
0 .1 .3 .3 .3 .3 .3 .3 .2
0 .1 .1 .1 .1 .1 .1 .1 .1
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
’
B =verysmall R
B’=[1 0.9 0.6 0.3 0.1 0 0 0 0]
=[max(min(1,0),min(0.9,0),......min(0.1,0),.....,min(0,0))......]
=[0 0.1 0.3 0.7 1 1 0.7 0.5 0.2 0]
In the design of fuzzy controller , one must identify the main control
parameters and determine a term set which is ate right level of granularity for
describing the values of each k=linguistic variable. For example a term set
including linguistic values such as {Small, Medium, and Very Large} may not be
satisfactory in some domains, and instead require the use of term set such as
{Very Small, Small, Medium, Large and Very Large}.
The selection of the types of fuzzy variable affects the type of reasoning
to be performed by the rules using these variables. After the values of the main
control parameters are determined, a knowledge base is developed using the above
257
control variables and the values that they may take. If the knowledge base is a
rule base, more than one rule may fire requiring the selection of a conflict
resolution method of decision making, as will be described later.
10.16.1 Fuzzifier
Since the fuzzy theory generally defines operators only for fuzzy sets, a
fuzzy set is to be assigned to each distinct measured value (crisp value). This
process is called fuzzification. The fuzzifier role is therefore to map (convert)
data from the sensors and the supervisor into a fuzzy set using the information
available in the data base. The supervisor may provide the numerical values of
signals such as error, error rate (PD-action) or error, integral of error (PI-action) or
any other available information.
1) Singleton Fuzzifier
Nonsingleton Fuzzifier
259
Define A(x)=1 for x=m and A(x) decreases from 1 as x moves away from m, for
example, a triangular membership function or bell type functions.
where (fact1 and fact2) is the premise, fact1, fact2 are the antecedents and fact3 is
the consequence.
There are two main tasks in designing the control knowledge base.
260
This is the most widely used method to design FLC knowledge base. In
modelling the expert control knowledge fuzzy control rules of the form
have been used. A rule may also be developed whereby its conclusion is a
function of the input parameters. For example the following implication may be
written
where z is a function of the values that x and y may take. In a variation of this
method, the control action of the operator may be directly modelled.
Example
Let us assume a process has a second order step response shown in Fig.!!.
262
The fuzzy control rules may be formulated using the operator knowledge
combined with the control theory knowledge. These rules may for example take
the form shown in Table !!. The first rule corresponds to the starting point where
the error is big and the rate of change of error is zero, the control action should
then be big., i.e.
The second rule corresponds to the point t 1 and so on. Rule 13 is used to
force the error to zero when the error is small.
The disadvantage of this design method is that it is often difficult for the
operator to linguistically describe his actions. Moreover, it is often difficult to
find the control action if the process dynamic is unknown. The method can not,
therefore, be generalised as a design procedure. It is possible to improve this
method by directly modelling the operator’s control action using the input output
data. The procedure for building a fuzzy model is similar to the modelling process
models. There are two methods for designing a fuzzy controller based on a fuzzy
model. The first one is a heuristic method in which we set a fuzzy control rule to
compensate an undesirable system behaviour by considering control objective.
That is there is one control rule corresponding to one system behaviour. The
number of control rules is generally smaller that that of system behaviour, since
there are some desirable system behaviours which do not need to be compensated.
The second method is to determine the structure and the parameters of control
rules so that the system with a controller satisfies the control objective, for
example shows a desirable response, minimises a performance index, etc. In
either case we have to find a fuzzy model of the process.
Ri : if x1i is A1i and x2i is A2i ... xri is Ari then y=p0+p1x1+...+ pmxm
for i=1,...,n where n is the number of rules and the consequence is a linear function
of the m input variables. The inverse of the process model may then be used to
control the process.
264
10.17.3 Self-organisation
The main idea in this method is the development of rules which can be
adjusted over time to improve the controller’s performance.
For n physical variables with m attached linguistic variables, the full set
of rules will contain nm rules. It is therefore clear that the complexity of the
controller rapidly increases as the number of rules increases. A rule base must
have the following properties:
Completeness
Consistency
Interactivity
Any of the possible output must be the result of at least one input pattern.
It is common that more than one control rule may fire at a time. The
methodology which is used in deciding what control action should be taken as the
result of firing several rules can be referred to as the process of conflict resolution.
Consider the following example:
Now, if we have x0 and y0 as the sensor readings for fuzzy variable X and
Y, then their grade membership is represented by A1 ( x0 ) and B1 ( y0 ) ,
1 A1 ( x 0 ) B1 ( y 0 ) min{
m A1 ( x 0 ), B1 ( y 0 )}
2 A2 ( x 0 ) B2 ( y 0 ) m
min{ A2 ( x 0 ), B 2 ( y 0 )}
The control output of these rules are calculated by applying the matching
strength of its preconditions on its conclusion:
D1 ( ) 1 C1 ( )
D2 ( ) 2 C2 ( )
where ranges over the values of the support of the rule conclusion. This
implies that as a result of reading sensor values x 0 and y0, rule 1 is recommending
a control action with D1 ( ) as its membership function and rule 2 is
C( ) D1 ( ) D1 ( ) [ 1 C1 ( )] [ 2 C2 ( )]
= max{[min[[ 1 , C1 ( )]
)], min[ 2, C2 ( )]}
)]
The question arise whether the general if-then fuzzy rule of the type
The general if-then rule include the following ‘incomplete if-part rule’:
where m< n.
Or Rule
267
if x1i is A1i and ...and xmi is Ami or x im +1 is Ami 1....and x in is Ani then y is Bi
using the definition of the logical operator or, this rule may be decomposed to the
following two rules:
Membership Rule
y is Bi
Gradual Rule
The following statement: The smaller is the x, the bigger is the y may be
represented using the format for the general rule by defining the following Mfs for
x and y:
X(x)=1/(1+exp(5(x+2))) Y(y)=1/(1+exp(-5(y-2)))
if x is X then y is Y
Unless Rule
Consider not A1i as a single fuzzy set, then the rule is in general if-then form.
Conventional rules
The conventional production rule can be represented in the general if-then form by
defining member ship functions which can take only the values 1 or 0.
10.17.5 Defuzzification
n
wi x i
i 1
u n
wi
i 1
where n is the number of rules with firing strength w i > 0 and xi is the amount of
control action recommended by rule I.
269
has been produced, the COA method calculates the centre of gravity of the
distribution for the control action. Assuming a discrete universe of discourse, we
have:
m
wi C ( xi )
i 1
u m
C ( xi )
i 1
m
xi
u
i 1 l
m
i f i ( xi , y i )
i 1
u m
i
i 1
1 1 1
C1
0 0 0
0 10 20x 0 10 20 0 10 20
1 1 1
B2 C2
0
y 0 0
0 10 20 0 10 20 0 10 20
0 . 7
0 . 6
0 . 5
0 . 4
0 . 3
0 . 2
0 . 1
0
0 2 4 6 8 1 0 1 2
271
Example 9.1
Suppose x0 and y0 are the sensor readings for fuzzy variable x and y and
the with the following membership functions:
x 2 x 3 z 1
2 x 5 3 x 6 1 x 4
3 3 3
A1 B1 C1
8 x 9 x 7 z
5< x 8 6<x 9 4<x 7
3 3 3
y 5 y 4 z 3
5 x 8 4 x 7 3 x 6
3 3 3
A2 B2 C2
11 y 10 y 9 z
8< x 11 7 < x 10 6<x 9
3 3 3
Let the senosr readings be the crisp values x0 =4 and y0=8. For these
values, we have:
R1 : A1 2/3 B1 1
R2 : A2 1/ 3 B2 2/3
Using the min operator the strength of each rule may be calculated:
R1 : 1 m
min{ A1 ( x0 ), B1 ( y0 )} m 2 / 3,1} 2 / 3
min{
R2 : 2 m
min{ A2 ( x0 ), B 2 ( y0 )} min{
m 1 / 3,2 / 3} 1 / 3
CC1(z)=min{ 1, C1(z)}
0 . 7
0 . 6
0 . 5
0 . 4
0 . 3
0 . 2
0 . 1
0
0 2 4 6 8 1 0 1 2
CC2(z)=min{ 2, C2(z)}
0 . 3 5
0 . 3
0 . 2 5
0 . 2
0 . 1 5
0 . 1
0 . 0 5
0
0 2 4 6 8 1 0 1 2
273
1 2 2 2 1 1 1
2 3 4 5 6 7 8
u 3 3 3 3 3 3 3 4.7
1 2 2 2 1 1 1
3 3 3 3 3 3 3
3 4 5
u 4.0
3
274
Subject Index
Activated Sludge Process, ix, xiii, Flow, xii, xiv, 15, 20, 147, 148, 149,
xiv, 6, 11, 21, 213, 223, 235 151, 155, 156, 172, 215, 219
Actuator, vi, ix, 38, 39, 41, 42 Flow Balancing, 116, 219, 220, 225
Aeration, ix, xi, xiv, 11, 12, 15, 18, Fuzzy Logic, xiv, xv, 236, 238, 240,
19, 86, 215, 220 241, 243, 244, 245, 249, 250, 251,
Biological Treatment, 1, 216 252, 259, 260, 261, 266
BOD, 1, 2, 3, 4, 6, 9, 12, 15, 65, 71, HART Communication, vii, xiii,
138, 140, 215 173, 188, 189, 190, 191, 194, 197,
Charts 198
mean, 143 LabvVIEW, vii, viii, xiii, 199, 203,
Control 205
cascade, v, 38, 66, 67, 98, 111, MATLAB, viii, 24, 80
220 Modelling, v, vii, viii, 1, 12, 19, 22,
Feedfprward, x, 70, 71, 72, 98 24, 35, 80, 106, 120, 227, 228,
Inferential, 98 235, 270, 273
On-Off, 54 Monitoring, vii, xiv, 118, 225
PID, v, x, xi, 38, 54, 55, 56, 57, Fault, xiv, 225, 227
58, 59, 60, 61, 62, 63, 64, 65, Oxygen, vi, xii, 1, 14, 16, 19, 118,
69, 72, 80, 86, 87, 90, 109, 214, 145, 161
220 PID Control, v, x, xi, 38, 54, 55, 56,
Ration, v, 6, 38, 68, 69, 86, 98, 57, 58, 59, 60, 61, 62, 63, 64, 65,
138, 166, 169, 235 69, 72, 80, 86, 87, 90, 109, 214,
Data Management, v, vi, xi, xii, xiii, 220
xiv, 22, 23, 87, 88, 90, 97, 104, Pumps, vi, xiii, 117, 145, 169, 170,
108, 110, 113, 118, 126, 130, 173, 171, 215, 223
178, 184, 190, 206, 212, 225, 230, Returned Activitaed Sludge, xiv,
233, 268 215, 223, 224
Design, v, vii, xiii, xiv, 37, 78, 199, Sedimentation, 215, 216
215, 233, 236 Sensors, vi, 165
Desludging, xiv, 222 Analytical, xii, 156, 161, 164
Display, xiv, 113, 142, 225 DO, vi, xii, 2, 4, 6, 12, 16, 17, 18,
Dissolved Oxtgen, vi, xii, 2, 4, 6, 12, 25, 53, 66, 71, 72, 145, 161,
16, 17, 18, 25, 53, 66, 71, 72, 145, 162, 163, 164, 214, 220
161, 162, 163, 164, 214, 220 Flow, vi, xii, 6, 9, 12, 25, 39, 40,
Effluent, 20, 215, 216 41, 68, 69, 71, 72, 76, 86, 96,
Expert Systems, xiv, 227, 228, 229, 103, 125, 126, 145, 147, 148,
235, 238 149, 150, 151, 152, 153, 154,
Fieldbus, 193, 198 155, 158, 162, 166, 167, 215,
219, 220, 223, 224, 225, 231
275
flumes, xii, 148, 149 138, 139, 143, 144, 214, 219,
Level, vi, xii, 11, 22, 23, 39, 41, 225, 255, 256, 269
43, 51, 67, 93, 95, 96, 98, 100, Median, 130, 131
105, 108, 109, 111, 112, 119, Mode, 118, 130, 131, 178, 197,
137, 145, 146, 149, 150, 154, 257
161, 188, 191, 214, 219, 220, Variance, 44, 131, 248
223, 266, 270, 279 Suspended Solids, xii, 20, 164, 166
self-cleaning, xii, 166 Temperature, xiii, 162, 204, 205,
Weirs, xii, 149 206, 207
Simulation, v, 1, 22, 24, 27, 28, 35, Treatment
80, 81, 82, 83, 85, 228, 231 Primary, 4, 9, 10, 12, 24, 65, 98,
SIMULINK, v, 24, 80, 81, 82, 83, 101, 110, 116, 117, 137, 191
85, 86 Secondary, ix, 3, 4, 5, 99, 178
Sludge, ix, xiii, xiv, 6, 11, 20, 21, Tertiary, ix, 4, 5, 7
213, 217, 223, 235 Valves, 41
Software, xi, 78, 109, 199 Virtual Instrumentation, vii, 199,
Statistical Process Control, vi, 123 201, 202
Statistical Propreties VME Bus, 201
Mean, 6, 44, 100, 104, 105, 111,
131, 132, 133, 134, 135, 136,