The ECOSSE Control HyperCourse
The ECOSSE Control HyperCourse
By Members of the ECOSSE Team and Staff of the Department of Chemical Engineering,
University of Edinburgh, Scotland
Contents
Introduction
Part 1: Basic Concepts
o Module 1.1: The Very Basics
Introduction
Why Control?
Control Objectives
Safety
Operability
Profitability
Techniques of Control
Basic Concepts of Feedback Control
Disturbances and Setpoint Changes
Advantages of Feedback Control
Disadvantages of Feedback Control
o
o Module 1.2: The Control System
o Module 1.3: Practical Control Examples
o Module 1.4: Sensors and Tranducers
o Module 1.5: Control Actions
o Module 1.6: Variations on Basic Feedback Control
o Case Study Section
Part 2: Further Developments
o Module 2.1: Controlling Simple Processes
o Module 2.2: More on Degrees of Freedom
o Module 2.3: Controlling Separation Processes
o Module 2.4: Controller Design and System Modelling
o Case Study Section
Part 3: Control Systems For Complex Processes
o Module 3.1: Control of Distillation Columns
o Module 3.2: Extension of Hierarchical Decomposition
o Case Study Section
Part 4: More Advanced Concepts
o Module 4: Further Controller Design
o Module 5: Development of Mechanistic Models
o Module 6: Multivariable Systems
o Module 7: Frequency Response Techniques
o Case Study Section
Tutorial Exercises
The Virtual Control Laboratory
Contents
1 Basic Concepts ..................................................................................................................................... 6
1.1 The Very Basics .......................................................................................................................... 6
1.1.1 Introduction .................................................................................................................. 7
1.1.2 Why Control? ................................................................................................................ 7
1.1.3 Control Objectives ...................................................................................................... 8
1.1.4 Techniques of Control ............................................................................................... 9
1.2 Control Systems ...................................................................................................................... 13
1.2.1 Introduction ................................................................................................................ 13
1.2.2 Manual Control System .......................................................................................... 13
1.2.3 Functions of a Control System ............................................................................. 14
1.2.4 Automatic Control System ..................................................................................... 15
1.2.5 Hardware of a Control System ............................................................................. 16
1.2.6 Software of a Control System ............................................................................... 16
1.2.7 Example - Hot Water Tank..................................................................................... 17
1.3 Module 1.3 - Practical Control Examples ....................................................................... 17
1.3.1 Introduction ................................................................................................................ 17
1.3.2 Flow Control Systems .............................................................................................. 19
1.3.3 Inventory Control Systems..................................................................................... 20
1.3.4 Temperature Control Systems .............................................................................. 23
1.3.5 Composition Control Systems .............................................................................. 24
1.3.6 Pressure Control in Two Phase Systems ........................................................... 26
1.4 Sensors and Transducers ..................................................................................................... 27
1.4.1 Basic Requirements .................................................................................................. 27
1.4.2 Pressure Transducers ............................................................................................... 28
1.4.3 Level Measurement .................................................................................................. 30
1.4.4 Flow Measurement ................................................................................................... 31
1.4.5 Temperature Measurement................................................................................... 32
1.5 Control Actions ........................................................................................................................ 34
1.5.1 The Controller............................................................................................................. 34
1.5.2 On-off or two-position action .............................................................................. 35
Advantage ................................................................................................................................. 35
Disadvantage............................................................................................................................ 35
1.5.3 Proportional Control Action .................................................................................. 35
1.5.4 Integral and Derivative Control............................................................................ 39
1.5.5 Examples ...................................................................................................................... 41
1.6 Variations on Basic Feedback Control ............................................................................. 41
1.6.1 Feedforward Control ................................................................................................ 41
Complex Computation.......................................................................................................... 42
Knowledge of Process ........................................................................................................... 43
Limitations ................................................................................................................................. 43
Specific Controller Required ............................................................................................... 43
1.6.2 Cascade Control ........................................................................................................ 43
1.6.3 Split Range Control .................................................................................................. 46
1.7 Case Study Section ................................................................................................................. 48
1.7.1 Laboratory Session ................................................................................................... 48
1.7.2 Hot Water Tank .......................................................................................................... 49
1.7.3 Level Control Experiment ....................................................................................... 49
1.7.4 Tutorial Questions and Answers .......................................................................... 49
1.7.5 Exercise 1: Simple Control Loops ........................................................................ 49
1.7.6 Exercise 2: Simple Processes ................................................................................. 49
2 Appendices........................................................................................................................................230
2.1 Hot Water Tank Experiment..............................................................................................230
2.1.1 Aims .............................................................................................................................230
2.1.2 Theory .........................................................................................................................230
2.1.3 Pre-Experimental Questions................................................................................231
2.1.4 Experimental Apparatus .......................................................................................232
2.1.5 Procedure ...................................................................................................................232
2.1.6 Answers.......................................................................................................................233
2.1.7 Summary ....................................................................................................................234
1 Basic Concepts
The six modules in this part of the course deal with the very basics of process control.
The concept of control systems are introduced with the aid of practical examples. The
hardware associated with control is discussed and finally various control actions are
examined. The Case Study Section contains extra material to reinforce what was covered
in the Modules. This includes experiments and tutorial questions and answers.
This first module sets the basis of what is to follow. It discusses why we use control and
introduces the basic concept of simple feedback control.
1.1.1 Introduction
This part of the course starts with an outline and overview of basic control concepts.
Questions which process engineers routinely have to answer about process control
include the following:
Most books with the words `process control' in the title do little to answer these
questions. Classical linear control theory, which forms the basis of most books on
control, is much concerned with how to design controllers and is less helpful on how to
design complete control systems. Other problems with this classical approach, for most
process engineers wishing to design control systems for real chemical processes, are the
restriction of most of its methods to idealised process models, and the extensive use of
rather specialised mathematics.
In this book we will approach process control from the standpoint of a chemical or
process engineer, and address these questions and others like them. We will consider
the process and its control system in the language of process engineering. We will use
mathematics, as such, only when necessary, and the language of classical control
engineering only when it is unavoidable, or will add very significantly to the process
engineer's understanding.
Safety:
Formal safety and environmental constraints must not be violated.
Operability:
Certain conditions are required by chemistry and physics for the desired reactions
or other operations to take place. It must be possible for the plant to be arranged
to achieve them.
Economic:
Plants are expensive and intended to make money. Final products must meet
market requirements of purity, otherwise they will be unsaleable. Conversely the
manufacture of an excessively pure product will involve unnecessary cost.
Safety.
Operability, i.e. to ensure that particular flows and holdup are maintained at
chosen values within operating ranges.
To control product quality, process energy consumption etc.
To a large extent these are quite separate objectives. Indeed, in the case of safety
systems separate equipment is generally used. The aims of control for operability are
secondary to those of strategic control for quality etc., which directly affect process
profitability.
These active safety systems must be robust and of high integrity. Current processes
achieve this through simplicity. The ultimate safety system is in most cases the
mechanical relief valve which simply vents the plant to atmosphere, possibly through a
flare or scrubber.
We will not discuss control for safety explicitly in this book. Generally speaking a
complete and separate system is provided to handle emergency control action. The
need for this, and its design requirements, are established in hazard and
operability or hazop studies. These are typicaly carried out on the complete process with
its `normal' control systems in place.
A number of safety issues will be addressed in the course of developing the design of
the control systems for normal operation, but it must be emphasised that our treatment
of this vital issue will be relatively restricted.
The majority of control loops in a plant control system are associated with operability.
Specific flow rates have to be set, levels in vessels maintained and chosen operating
temperatures for reactors and other equipment achieved.
The top level of process control, what we will refer to as the strategic control level is thus
concerned with achieving the appropriate values principally of:
Production rate,
Product quality, and
Energy economy.
If the temperature is too high then turn the heater off. If it is too low then turn
the heater on.
This summarises the basic operation of a feedback control system such as one would
expect to find carrying out nearly all control operations on chemical plants, and indeed
in most other circumstances where control is required. The diagram belows a feedback
control loop.
Notice that this extremely simple idea has a number of very convenient properties. The
feedback control system seeks to bring the measured quantity to its required value
or setpoint. The control system does not need to know why the measured value is not
currently what is required, only that this is so. There are two possible causes of such a
disparity:
The system has been disturbed. This is the common situation for a chemical plant
subject to all sorts of external upsets. However, the control system does not need
to know what the source of the disturbance was.
The setpoint has been changed. In the absence of external disturbance, a change
in setpoint will introduce an error. The control system will act until the measured
quantity reaches its new setpoint.
A control system of this sort should also handle simultaneous changes in setpoint and
disturbances.
As we will see, it helps to know more than this, but the minimum information required
to make a feedback control system work is whether the adjustment makes the
measurement go up or down.
An example where the occurrence of disturbances of large magnitude that are strong
enough to seriously effect the process, is temperature control of a catalyst reactor in
which strong exothermic reaction takes place. The reaction heat is very high, therefore
the reactant gas mixture is diluted by a inert gas to carry away most reaction heat,
although the temperature of the reactor is maintained by feedback control of a coolant
flowrate in coils inside. Assuming a large magnitude disturbance, the sudden large
increase in the reactant concentration in the feed, enters the reactor, a sudden increase
in the temperature is so large and so quick that the catalyst is burnt out before the
control system senses the change and takes any actions. A diagram of this situation is
shown below.
A simple example of a large time delay is the distillation column as outlined in the figure
below. If we use feedback control to regulate the purity of the top product, when the
feed composition changes (disturbance), the control system is not aware any takes no
action until the effects of the disturbance travels and arrives at the sensor position at the
top. When the controller takes the correction, the whole column may be far away from
the designed conditions.
The question of importance of either occurrence is defined in economic terms. In either
case, the principle concern is the existence of errors that have significant economic
consequences in the overall process operation. In these cases, feedforward control can
be used to deal with these disadvantages or inadequacies of feedback control.
1.2.1 Introduction
The key characteristic of control is to interfere, to influence or to modify the process.
This control function or the interference to the process is introduced by an organization
of parts (including operators in manual control) that, when connected together is called
the Control System. Depending on whether a human body (the operator) is physically
involved in the control system, they are divided into Manual Control and Automatic
Control. Due to its efficiency, accuracy and reliability, automatic control is widely used in
chemical processed.
The aim of this section is to introduce the concept of control systems, what their
function is and what hardware and software is required by them.
First start with a simple manual control system, to examine how control is introduced,
how the control system is constructed and how it works.
A diagram of the system is shown below.
To begin with the shower is cold. To start the heating process the valve in the hot water
line is opened. The operator can then determine the effectiveness of the control process
by standing in the shower. If the water is too hot, the valve should be closed a little or
even turned off. If the water is not hot enough then the valve is left open or opened
wider.
It can be seen that this control system, completed by the operator, possesses the
following functions:
Measurement
Comparison
This is an examination of the likeness of the measured values and the desired
values. This is carried out in the brain of the operator.
Computation
This is a calculated judgment that indicates how much the measured value and
the desired values differ and what action and how much should be taken. In this
example, the operator will calculate the difference between the desired
temperature and the actual one. Accordingly the direction and amount of the
adjustment of the valve are worked out and the order for this adjustment is sent
to the left hand from the brain of the operator. If the outlet water temperature is
lower, then the brain of the operator will tell the left hand to open the steam
valve wider. If there is any disturbance, or variation of flow rate in water to the
shower inlet, some adjustment must be made to keep the outlet water
temperature at a desired value.
Correction
This is ultimately the materilisation of the order for the adjustment. The left hand
of the operator takes the necessary actions following the order from brain.
Therefore, for a control system to operate satisfactorily, it must have the abilities of
measurement, comparison, computation and correction.
Of course, the manual operation has obvious disadvantages e.g. the accuracy and the
continuous involvement of operators. Although accuracy of the measurement could be
improved by using an indicator, automatic control must be used to replace the operator.
In industry, it is automatic control that is widely used.
Based on the above process, we can easily set up an automatic control system as shown
in the next figure.
Firstly, we can use a temperature measurement device to measure the water
temperature, which replaces the right hand of the operator. This addition to the
system would have improved accuracy.
Instead of manual valves, we use a special kind of valve, called a control valve,
which is driven by compressed air or electricity. This will replace the left hand of
the operator.
We put a device called a controller, in this case a temperature controller, to
replace the brain of the operator. This has the functions of comparison and
computation and can give orders to the control valve.
The signal and order connections between the measurement device, control valve
and controller are transfered through cables and wires, which replace the nerve
system in the operator.
First we have the Controlled Variable. This is the basic process value being regulated
by the system. It is the one variable that we are specially interested in - the outlet water
temperature in the example above. In feedback control the controlled variable is
usually the measured variable.
An important concept related to the controlled variable is the Setpoint. This is the
predetermined desired value for the controlled variable. The objective of the control
system is to regulate the controlled variable at its setpoint.
To achieve the control objective there must be one or more variables we can alter or
adjust. These are called the Manipulated Variables. In the above example this was the
input hotwater flow rate.
In the Virtual Control Laboratory there is an experiment which shows a control system in
action. This example is based on the hot water thermostat mentioned in Module 1.1 -
The Very Basics. It describes how the control system is put together and then how it
works. In this simple example feedback on/off control is used to regulate the
temperature of the hot water at its setpoint. Note that a link to this experiment can also
be found in the Case Study Section for this part of the HyperCourse.
1.3.1 Introduction
Many different operations take place in a chemical plant. The classical approach of Unit
Operations might thus be extended to process control, and we could consider in turn
the control of heat exchangers, chemical reactors, distillation columns etc.
This turns out not to be a useful approach in most cases. The reason for this is that we
are in the end concerned with the control of processes which consist
of several operations, and these cannot be considered in isolation. This makes the
engineer's task of designing a control system a difficult one, since it is hard to find just
where to start!
The starting point we shall choose here is to consider how we regulate each of the basic
quantities we may wish to keep constant in a process.
Flow
Inventory - level or pressure
Temperature
Composition
Pressure - two phases
The following sections discuss simple, but real, examples of how feedback control is
applied to these basic quantities in a chemical plant. They are primarily examples of
control for operability, and most of them will refer to single items of equipment or very
simple combinations. A number of safety issues will be identified.
Strategic control for profitability will be dealt with in a later section in the context of
control of complete plants and processes.
Terminology
At this early stage there are three terms that should be used correctly. They are:
Control
Regulate
Adjust
The word `control' is sometimes loosely used to mean either regulation or adjustment.
We have not actually seen the sentence 'In a control system the controller controls the
controlled quantity by controlling a control valve position' However the term is regularly
misused in this way. Control should refer only either to the actions of the controller
element itself or to the function of the complete system. We are not just being pedantic,
it is possible to misunderstand what is happening through misuse of terminology. We
may also slip up ourselves, particularly in talking loosely about e.g. 'flow control' when
we strictly mean 'flow regulation'.
Control Hardware
In all the examples which follow there will be various types of measurement sensors and
transducers mentioned. These are simply considered here as black boxes and will be
discussed in greater depth at alater stage.
1.3.2 Flow Control Systems
The most basic requirement in any chemical plant is to be able to make the flow
through a pipe take a particular value. Consider first therefore the simplest item of plant
equipment, namely a pipe, as shown below.
The basic pipe has had the following parts added to it, to make a control system.
This completes a control system to regulate the measured quantity, here the flow,
by adjustment of the valve position. Compare this with the block diagram which we used
earlier to introduce the feedback control system.
Positioning of Elements
One of the problems with designing control systems is that, as in any design problem,
we are faced with alternatives. We have an alternative here in the positioning of the
elements.
Consideration of the properties of flowmeters and valves suggests that we were correct
in our first choice. If the valve were upstream of the flowmeter then there are a number
of ways in which it might affect the flowmeter calibration.
Control Algorithms
In the simple illustrative example of the water heater the rule for making the adjustment
was:
This is an example of an on-off control algorithm. The heater is either on (full) or off
(completely). What will happen if we try to use such an algorithm here, where the
objective is to maintain a particular flow?
Clearly, this is unlikely to serve, as rather than maintaining a specified flow the
conditions will switch between zero and some maximum value. To achieve a specified
steady flow we require something like:
If the flow is too high then shut the valve some more.
If it is too low then open it more.
This is a proportional control algorithm; the larger the error in the measured quatity, the
larger will be the adjustment. This arrangement should result in the system settling at or
near the required flow.
In practice, on-off control is seldom used. Most adjustment elements are valves, or
occasionally other mechanical elements. These do not take kindly to being regularly or
rapidly swung accross their full range of adjustment; they very quickly wear out or break
down.
In most cases, therefore, proportional control or some variant is used. More detailed
investigation of control algorithms requires quantitative information about the process.
This aspect will be dealt with in a later section.
Below is a diagram showing the two alternative control systems available for feedback
control of the level. Both are equally valid and the decision as to which to use is based
on
The level can be regulated by altering the flow via the adjustment of the valve position.
Control Algorithms
It is possible to control the level in a tank using
On/Off control.
Proportional control.
Extensions to proportional control.
The theory behind the algorithms will be found in a later section. There is also a level
control experiment based on an actual experiment carried out by the undergraduates in
the laboratory. Note that this can be found in the Case Study Section and in the Virtual
Control Laboratory.
In principle we might, like the level control system, have the valve either upstream or
downstream of the tank. In practice in gas systems it is more likely to be downstream for
the following reason.
Raising the pressure of a gas requires energy, and normally this energy is imparted by
some mechanical device, such as a compressor. Both the compressor itself, and the
energy to drive it, are expensive. To minimise the first cost we try to minimise the
number of compressors in a process. Where possible we would use only one, locate it at
the front of the process, and perform any subsequent manipulations to obtain the
required pressure by downstream valves.
The energy used in compression is expensive, and throttling through a control valve
throws this energy away. Therefore in proesses where compressor costs are very
significant we may sometimes avoid such valves and manipulate the compressor speed
in order to maintain the system at the required pressure. This control system is shown in
the diagram below.
When we have vapour we usually also have liquids. Regulating pressure in two phase
systems can be somewhat different. This is dealt with later.
Transfer energy indirectly, using a second stream, through coils, tubes, jackets
etc. The second stream could be, for example, steam, cooling water, another
process stream or even a source of power as in an electric element.
Mix in a second stream directly. This stream will have a different energy content
from the original.
There are advantages and disadvantages for both methods. With the first there is the
problem of transferring heat through the walls of the 'coil'. In the second the energy is
absorbed directly but with the additional problem of increased flowrate/volume.
Gas chromatagraphs
Spectroscopic analysers
Features of this type of hardware which make them ineffective for control purposes are
Thus an alternative method has to be sought to control the composition. This could be
via the
There are several disadvantages to this system. One is that the control valve is on a
vapour line. These are generally much bigger than liquid lines and hence require a much
bigger valve i.e. of a much increased cost.
However, we remember that in a two phase system temperature and pressure are not
independent. We can thus change the pressure of a vapour which is in equillibrium with
a liquid by changing the temperature of the system. Raising the temperature raises
the vapour pressure of the liquid which must equal the equillibrium pressure of the
system.
Hence we can manipulate the temperature in the condenser by means of a small valve
on the cooling water line, thus changing the pressure in both condenser and column.
There are a large number of different ways of manipulating pressure in two phase
systems. These are discussed in a later section under Control of Distillation Process.
In order to control the process performance, we need a control system, which consists
of a sensor, a controller and a final control element. Obviously, the sensor is a very
important part of the control system. It monitors the process and serves as a signal
source for the control system. In our previous discussion, we always assumed, there was
some suitable measuring device available, but not all measuring devices can be used in
automatic control. The basic requirements for a sensor used in a control loop are the
abilities :
In this section of the course, we will very briefly discuss some kinds of sensors used in
process control. However it is not intended to examine their working mechanism in any
detail. Common variables in Chemical Engineering covered in the following discussion
are pressure, temperature, flowrate, and liquid level. Analytical instruments for chemical
composition measurement are usually specially designed for the specific purpose and
hence are not included.
1.4.2 Pressure Transducers
Many kinds of pressure transducers are widely used in industry for pressure
measurement. Although devices like the manometer and Bourdon tube etc are quite
common, they are not suitable for control purposes due to the difficulties for signal
transmission.
In most pressure transducers, there is a diaphragm to contact the fluids and protect the
measuring setup isolated from the measured fluids, most of which may be corrosive.
Due to the existence of this diaphragm, most pressure transducers can be used as
pressure differential transducers, as long as the second (lower) fluid is introduced into
the other side of the diaphragm. Actually, when measuring the pressure, it is measuring
the pressure difference between the measured pressure and the pressure of atmosphere
guage pressure.
Optical sensor:
This kind of sensor is based on the difference in the reflecting and transparent
properties of liquid and the gas above it. It takes the form of a light source and a
receiver to the reflected light. When there is no liquid around, the receiver can
detect the reflected light, and this light signal is converted to a electric signal
which can be transmitted. When the sensor is surrounded by liquid, the receiver
can't get the same amount of light reflected. The change in the light received is
then converted into the change in the electric signal which is indicative to the
amount of liquid. Thus to monitor level, you need a number of these kinds of
sensors in series, spread over the whole height of the tank. This signal can also be
transmitted.
It has been shown the electric circuit for transmitting this signal does not alter the
signal itself, which is indicated by the law of intermediate metals which states: In
a thermoelectric circuit composed of two metals A and B, with junctions at
temperature T1 and T2, the e.m.f is not altered if one or both the junctions are
opened and one or more metals are interposed between A and B, provided that
all the junctions by which the single junction at temperature T1 may be replaced
are kept at T1, and all those by which the junction at temperature T2 may be
replaced are kept at T2.
Silicon semiconductor:
Diodes have an important parameter called pass-required voltage. Below this
voltage, there is no current through the diode. Above this voltage, the diode
allows current to pass through.
The pass required voltage of silicon diodes depend uniquely on temperature, and
thus this voltage signal can be used to indicate temperature. The main advantage
of silicon semiconductor thermometers is that this pass-required voltage has a
temperature coefficient which is essentially the same for all silicon devices of -
2mV/ degC, and this linear change feature is a great advantage for control
porposes.
The Comparator
The Controller
The purpose of the first is to compare the measured and the desired values of the
controlled variable and then compute the difference between them as the error. If there
is no error, i.e. the controlled variable is at the setpoint, then no action is taken.
If an error is detected, the second section of the controller operates to alter the setting
of the final control element in such a way as to minimize the error in the least possible
time with the minimum disturbance to the system. To achieve this objective, different
actions could be taken by the controller and hence different signals are sent to the final
control element.
The remainder of this section is concerned with the different control actions that the
feedback controller could take.
1.5.2 On-off or two-position action
This is the simplest and most commonly experienced type of control. A typical example
is the thermostatically controlled domestic immersion heater. Depending on the
temperature of the water in the tank, the power supply to the heater is either on or off.
In The Virtual Control Laboratory and Case Study Section there is an experiment which
shows on-off control of the temperature in a hot water tank.
Advantage
Disadvantage
The disadvantage mainly lies in the oscillatory nature of the control, which makes
it suitable only for those applications where it can be used alone and close
control is not essential.
Note that it is impractical to use on-off control when trying to regulate a flowrate.
It is necessary to have some sort of capacity available. This can be illustrated by
means of an experiment which uses as a scenario someone taking a shower. Once
again the experiment can be found in The Virtual Control Laboratory and Case
Study Section
Proportional action is the simplest and most commonly encountered of all continuous
control modes. In this type of action, the controller produces an output signal which is
proportional to the error. Hence, the greater the magnitude of the error, the larger is the
corrective action applied.
Mathematical Description
The gain is often replaced with another parameter, called the proportional
band, PB. This quantity is defined as the error required to move the final control
element over its whole range and is expressed as a percentage of the total range
of the measured variable. What is the relationship between K and PB.
According to this definition we can see that the whole range of the final control
element adjustment should be Vmin to Vmax.
At point Vmin
At point Vmax
Therefore
Recall that the proportional band, PB, is defined as the error required to move
the final control element over it's whole range expressed as a %. So for the
controlled variable, L, with its total rangeLmin to Lmax the definition for the
proportional band is
or
With proportional band, the relationship between the adjustment and the error
can be expressed as
It can be seen both from the expression above and by running the experiments in
the Virtual Laboratory that the larger the gain K, or equivalently the smaller the
proportional band PB, the higher the sensitivity of the controller's actuating
signal to deviations will be.
Dynamic Response
Now let's examine the dynamic response of the proportional control. Assume the
process is at steady state and the level is at the setpoint. At time = 0, an increase
in the inlet flowrate, regarded as a disturbance, enters into the process. If no
control action is taken, i.e. the outlet flowrate is not altered, the level (controlled
variable) will increase.
With proportional control, the level is brought back and maintained in a certain
range near the setpoint. The history curve could typically be like that shown
below. Different responses are obtained depending on the proportional band, B,
of the controller.
As can be seen the smaller the proportional band the closer to the setpoint the
controlled variable becomes but the more oscillatory the response.
Advantages
Disadvantages
From the response curve to a step change in the input two features should be
noted. These are two points which make proportional control unsatisfactory.
o Offset
The reason for this offset with proportional action is that the control action
is proportional to the error. Consider the above simple level control
system. For the step increase in the flow of liquid into the tank, in order to
maintain the level, the valve on the outlet must be opened wider. This will
only occur if there is a continuous output from the controller. The output
itself can only exist if there is an error signal supplied to the controller. In
order to maintain this error, the level will rise above the desired level at the
new control point, hence create an offset.
o Overshoot
Two other common control techniques are used to eliminate the problems found
when using proportional only control. These are known as integral and derivative
control. Sometimes they are used individually but more often they are combined
with proportional control. A more mathematical definition can be found in a later
section.
Integral Action
P and I Control
Derivative Action
P and D Control
1.5.5 Examples
The aim of this module was to introduce the various types of control action. In
the Case Study Section and Virtual Control Laboratory there is a level control
experiment which allows the user to practice what they have learned in this
section. i.e. it is possible to vary the deadzone on an on-off controller, see the
effect of altering the proportional band etc.
Complex Computation
Limitations
The feedforward controller must be specifically and uniquely designed for the
one particular control application involved, because of the necessity of accurate
and quantitative calculations.
It can be seen that feedforward control requires a significant increase in technical skills
and capabilities. As a result, feedforward control of specific variables is limited to the
most economically significant cases. In practical industrial application, only few cases are
handle with feedforward control. While the number of application is small, their
importance is quite significant.
An inner and outer control loop are formed each with an individual feedback controller.
The outer loop controller is also known as the master or primary controller.
The input to this controller is the measured value of the variable to be controlled.
The setpoint is supplied by the operator.
It passes its output signal to the inner control loop.
The major benefit from using cascade control is that disturbances arising within the
secondary loop are corrected by the secondary controller before they can affect the
value of the primary controlled output. Cascade control is especially effective if the inner
loop is much faster than the outer loop and if the main disturbances affect the inner
loop first.
Below are described examples of cascade control in practise. It should be noted that in
two of the three examples, the secondary loop is used to compensate for flowrate
changes. In process systems this is generally the case.
Example 1 - Reactor Temperature Control
In this example the aim is to keep T2 at its setpoint. The primary control loop detects
and eliminates changes in T1, the temperature of the reactants. The secondary control
loop detects changes in the temperature of the cooling water. Hence it can adjust the
flow accordingly before the effects are detected by the primary control loop. If there
was no second controller the effect of the cooling water would take a long time to
materalise and hence eliminated.
This is similar to example 2. The aim is to keep T2 constant. Again the secondary loop is
used to compensate for flowrate changes.
The control signal is split into several parts each associated with one of the manipulated
variables. A single process is controlled by coordinating the actions of several
manipulated variables, all of which have the same effect on the controlled output.
Below are described two situations where split-range control is used in chemical
processes.
Example 1 - Control of Pressure in a Reactor
The aim of this loop is to control the pressure in the reactor. It may be possible to
operate this system with only one of the valves but the second valve is added to provide
additional safety and operational optimality.
In this case the action of the two valves should be coordinated. Thus for example if the
operating pressure is between 0.5 and 1.5 bar then the control algorithm could be
If the pressure is below 0.5 bar then valve 1 is completely open and 2 is
completely closed.
If the pressure is between 0.5 and 1 bar then valve 1 is completely open while 2 is
opened continuously as the pressure rises. Note that both these actions lead to a
reduction in pressure.
If there is a large increase in pressure and it rises to above 1 bar then valve 2 is
completely open while 1 is closed continuously.
If the pressure reaches 1.5 bar then valve 1 is shut and 2 is open.
The aim of this control loop is to maintain a constant pressure in the steam
header subject to differing demands for steam further downstream. In this case
the signal is split and the steam flow from every boiler is manipulated. An
alternative manipulated variable could be the steam production rate at each
boiler via the firing rate. A similar control scheme to the above could be
developed for the pressure control of a common discharge or suction header for
N parallel compressors.
The aim of this case study section is to reinforce material taught in the lecture
notes. There are two sections as outlined below. The first is a Laboratory Session.
There are links to various relevent experiments found in the Virtual Control
Laboratory. The second includes tutorial questions and answers covering control
loops and simple processes.
2 Further Developments
The four modules in this part of the course cover qualitative issues in the development
of control system structures for simple processes, quantitative issues in the design of
simple single loop feedback controllers and writing models for chemical processes.
This first module introduces a hierarchical method of placing control loops onto real
processes.
Introduction
Degrees of Freedom
o Example 1: Vapouriser Problem (1)
o Example 2: Mixing of Two Streams
Hierarchical Decomposition
o Controlling a Real Process
o Vapouriser Problem (2)
2.1.1 Introduction
In all the examples so far discussed it has been assumed that we know at the outset
what quantity is to be measured and thus regulated, and what will be the
corresponding adjustment. This information will in fact be readily available only for
the simplest of cases.
As soon as we consider the control of any sort of process, or even a modestly complex
piece of equipment, we are faced with the need to provide severalcontrol loops. The
result of this is to create a range of choices. In this section, we introduce ideas to help
resolve this choice systematically. These ideas will enable us to design complete
control systems for large and complex processes, although they will first be
introduced in the context of simple examples.
Temperatures
Pressures
Compositions
Flowrates (component or total)
In our case we are concerned with the Control Degrees of Freedom which will be the
number of the above types of process variable which may be set once non-adjustable
design variables, such as vessel dimensions or number of trays, have been fixed.
In this context the number of degrees of freedom thus corresponds strictly to the
number of manipulated variables which may be used in control loops. Note that this is
also the number of single-input-single-output control loops and of regulated variables
in the loops.
2.1.3 Example 1: Vapouriser Problem (1)
To illustrate the nature of the problem, consider how a process unit which vaporises a
liquid feed stream might be controlled.
Feed rate
Product rate
Operating pressure
Operating temperature
Liquid level
The first question to be resolved is which and how many of these can legitimately be
regulated independently?
Similarly, what adjustments may be made in order to regulate the chosen quantities?
There appear to be three candidates for streams on which control valves might be
located, namely:
Liquid feed
Vapour product
Steam supply
Suppose that liquid level is chosen as one of the regulated quantities. Which of these
three possible adjustments should be paired with this measurement to complete the
control loop?
We will return to this particular example after addressing individually the problems
noted above. In summary these are:
Since there are only three potential adjustments, there cannot be more than
three control loops, and hence no more than three regulated quantities.
Physics and thermodynamics tell us that certain variables in this problem
cannot be set independently, and thus cannot be regulated in separate control
loops. Unacceptable combinations here are:
o Inlet and outlet flows, which must be the same by conservation, and
o Temperature and pressure, which are related in a single component
two phase system.
This leaves us with three possible control loops, in which the three
adjustments regulate:
o Temperature or pressure,
o Feed rate or product rate,
o Liquid level or holdup.
The choice of pairing remains, to some extent, as a genuine choice between
alternatives which must each be evaluated. Here any of the three possible
adustments can be seen to affect both temperature (or pressure) and holdup,
two (vapour and steam valves) can affect vapour rate, and only one can affect
feed rate.
Consider the exceptionally simple process shown below in figure (a), where two feed
streams are mixed together to produce a single product stream. Suppose that what is
required is that the two feed streams shall have individually specified flowrates. A
suitable control system for this would be as shown in figure (b).
It should be immediately apparent that this control system is complete, i.e. we
cannot put any more control loops on it. Having fixed two of the three streams which
are connected together, conservation requires that the third must be the sum of
these two.
Rule 1: `(n-1) out of n'. If n streams join together in a process or part of a process
over which mass must be conserved (normally any process), then the flows of only
(n-1) of these may be set by flow controllers.
Conservation of mass requires that the sum of the inflow and outflows shall match
over an extended period, but is it necessary to take steps to ensure that this happens
from minute to minute? The flows would not always match if there were any
possibility of material accumulating within the junction. This will not occur if the
fluids are incompressible. This implies that it is necessary to have some mechanism to
ensure that mass balances do actually balance. In this example, the design of the
process, i.e. simple closed junction and incompressible fluid, ensures that this will be
so.
However, consider what happens if we replace the closed junction by an open tank,
see below figure (a). Here there is nothing to stop the tank from running dry or
overflowing, unless, as in figure (b), we provide the tank with a level controller.
Rule 2: Mass balances must balance. To ensure that mass balances do balance,
there must either be an inplicit mechanism in the process, or an inventory controller
must be supplied. The valve for the holdup control loop goes on the remaining
stream.
If we wished to regulate the total product rate from a simple mixing process and one
only of the feeds, then we may require explicit holdup control for either compressible
or incompressible fluids in either of the arrangements below. The vessel in the right
hand figure is a closed vessel, which, in the case of a liquid system, would be run full.
Whether or not a control loop for pressure is required will depend on the specific
process conditions, in particular the source and sink pressures for the flows and the
type of device, pump, compressor etc., if any, driving the flow.
Finally, there is a further rule implied by all these examples which really belongs
before any of the others:
Rule 3: Strategic aims. The primary control objectives of a process are set by the
strategic aims of the process. These define the basic control stucture.
Thus the fact that flow controllers were placed on the two feed streams in the first
example and on the product and one feed in the last was a consequence of a decision
by the process designer that these were the streams whose flows were to be fixed. It
should thus be clear that the design of a process and of its control system cannot really
be separated.
There now follows two examples of this hierarchical approach in use. Firstly there is a
simple process and then we return to the vapouriser problem introduced earlier.
Process description
(i): The aim of the process is to deliver a fixed amount of product, made by blending
together two streams of two constituents, a concentrate and a diluent, and to supply
this product to a specified composition.
In this example we shall introduce a hierarchical procedure for developing the design of
a process control system. This approach will be seen to have a number of advantages.
Firstly, it provides a systematic approach to resolving what can otherwise seem to be a
complex and unstructured problem. Secondly, it enables us to concentrate on individual
parts of the problem, rather than trying to do several things at once. Finally, it
corresponds to a standard systematic approach to designing processes, enabling us to
evolve the design of the process and its control system together.
Starting from the above statement of the process requirements, viz specified product
rate and composition, without reference to any detail of the process itself, other than
the input and output streams, we can define immediately a part of the control system
structure, as shown below. Here the, unspecified, process is shown as a box. It is clear
that the product stream will require flow control and that that can be implemented as
shown. It is also clear that composition measurement and some sort of composition or
quality control loop will be required. Half of this loop can be immediately defined, and is
also shown.
Still without any detailed knowledge of the contents of the PROCESS box, consider how
the composition control loop might be implemented. What can be adjusted to cause the
composition of the product stream to change? Clearly, it will be necessary to
manipulate either the amount of diluent or the amount of concentrate. These lead to
two alternative structures shown below.
Which of these is the better structure? Without detailed and quantitative information
about the process in the box, it is not possible to decide. This is a common situation in
engineering design. Ultimately, it may well be necessary to explore both alternatives,
and make a decision on the basis of some measure of overall system performance. The
designer could proceed with both alternatives in parallel. Unfortunately, this is almost
certainly only the first of many points where alternatives arise, and very soon the `tree'
of possible designs will become intractably large. Unless the whole design procedure is
automated and carried out by a very powerful computer, this is not a realistic approach.
Heuristic : Small streams. Manipulate small streams rather than large ones in
important control loops.
This has a number of justifications. Firstly, small valves are cheaper than large ones, so it
may be possible to save money. Secondly, small valves can be manipulated more quickly
and precisely than large valves, and so a control loop with a smaller valve will often work
better.
Clearly, the concentrate stream will be a smaller one than the diluent, and so we will
choose to follow up the right hand alternative where this is the manipulated variable for
the composition loop.
Examination of the flowsheet shows that we have control valves on two out of the three
streams associated with the process. Since these flows have been set, one to a specific
flow and another to ensure that a particular product composition is achieved, the flow
of the third stream cannot now be chosen independently, it must match these two flows
to ensure that the mass balance is maintained. In fact our `(n-1)' rule, and its corrollary,
can be generalised to cover any type of controller with valves on (n-1) out of n streams.
Rule 1a : Generalised `(n-1) out of n'. If n streams join together in a process or part of
a process over which mass must be conserved (normallyany process), then the flows of
only (n-1) of these may be set by control loops other than one regulating inventory
within the process or part process.
Without a knowledge of precisely the type of process element on the box we cannot
completely define any control loop associated with inventory or holdup regulation, but
we do know that we cannot put a control valve on the remaining stream for any
purpose other than inventory regulation. We will indicate this on the flowsheet as shown
below. The shaded `valve' implies that no other valve may be put on this line. The
square, rather than round `controller' indicates that some mechanism, not necessarily an
actual controller, will regulate inventory, which might, if measured, be a level, mass
holdup or pressure.
The steps which were followed above illustrate that it is sometimes possible to design a
significant part of the control system for a process by reference to:
It will not in general be possible to determine the whole control system with just this
information. Further steps in developing this involving `opening up' the box labelled
PROCESS in this example into succesive levels of increasing detail. This approach will be
explored in later examples. For more complex processes there will be several levels. The
purpose of this hierarchical approach is to help the designer to concentrate on the
decisions that can be taken at each stage, by presenting details of the process in
sequence rather than all at once. This makes the design task easier both by reducing the
amount of new information presented at one time, and by allowing some earlier
decisions to be finalised and thus removed from the list of tasks still to be tackled. A
glance ahead at a complete process flowsheet will enable the reader to appreciate how
daunting a task placing the control loops on a flowsheet might be if this approach
is not adopted.
This example may however be completed in one further level by providing some more
details of the process.
Process description, (ii): The process equipment consists of an open mixing tank,
followed by an in-line static mixer (a section of pipe with internal vanes or baffles) and a
second mixing tank.
The PROCESS box to include this, and with the control system so far defined, is shown
below.
Looking at this more detailed structure, the questions to ask, in order, are:
The two new streams, from T1 to M1 and from M1 to T2, have no obvious strategic
requirements for regulation of flow or composition.
However, T2 has two streams, one of which has its flow set by the product flow control
loop. The tank is not self regulating, and so an level controller must be placed with a
valve on the feed stream as shown.
It now becomes clear that mixer M1 requires inventory regulation, having one of its two
streams now set, which would imply a valve on its input stream from M1. However, it is
self regulating, being essentially just a piece of pipe, but this still means that no valve
can be placed there for any other reason. It is now clear that the measurement end of
the original level control loop must be in T1.
All streams being accounted for by having explicit control valves or implicit regulatory
mechanisms determining their flows, the control scheme is now complete.
This was a very simple process. However, there were potentially a significant number of
alternative process structure, not all of which would have worked. We applied a logical
procedure, each of whose steps could be justified with reference either to a knowledge
of the process or the rule which have been proposed, and ended up with a complete,
and workable, control system with four loops.
Before proceeding to more complex examples, let us review how the three questions set
out at the beginning of the section were answered.
The question of `how many?' was not posed or answered explicitly in this example. As
will be seen later, it is sometimes convenient to do so. However in this case it was
subsumed in the question of `which?'.
The question of `which quantities to measure' was answered in two ways. Firstly by
reference to the Strategic aims of the process rule. This established the outlet flow and
concentration as regulated quantities. Further strategic regulated variables, other than
inventories can often be established by by reference to identified adjustable variables,
but in this process there were no others.
Secondary regulated variables are usually inventories and are identified by the (n-1) and
mass balance rules.
It is clear that there cannot be more adjusted variables than there are streams whose
flows can be manipulated independently. These were all identified in this process by the
requirement for inventory regulation. In general we can use the following Rule both to
identify adjustments and to check the final control system structure.
Rule: flows do not just happen. Stream flows in a process do not just happen. Either a
valve or a mechanism (such as continuity) must set the flow of every stream.
Here there will almost invariably be alternatives. To identify these and help choose
between them we have one firm Rule, and some guiding heuristics.
This is rather obvious. It is nonetheless given a name in the control literature where it is
called structural controllability.
A number of heuristics serve to aid choice. One has been given, the Small streams
heuristic. Here are two more.
Their are a number of important quantitative elements embodied in this heuristic. These
are dealt with in detail elsewhere.
Redrawing this `process' as an input-output block yields the structure shown. In the
block we have distinguished two sub-blocks, noticing that while both feed and steam
enter the process they are subject to separate material balances.
Objective 1. suggests that we should place a flow controller on the vapour outlet as
shown in figure (a). Noting that the process fluid side of the block has only one input
and one output, the feed stream may be `blocked' for any purpose other than inventory
regulation as shown by the shaded valve.
Figure (a) fulfills the stated objective of delivering a specified rate of vapour product.
However, because there is only one input and one output to the process side, so would
the structure of figure (b). The first structure is prefered according to the following
Heuristic.
Also because the sub-block has only two streams, the scheme in figure (c), which
regulates the feed flow would also serve to maintain the product rate once inventory
regulation was provided. This is clearly a less direct way of performing the specified task,
and depends of the satisfactory operation of the inventory control system. It is therefore
avoided on the basis of a further Heuristic.
Heuristic: direct action. Prefer the the structure which manipulates the regulated
quantity most directly. In particular, avoid arrangements which depend on the
satisfactory operation of additional control loops.
The final structure, figure (d) violates both of the above guidelines.
Objective 2. explicitly states that the vapour temperature shall be regulated, as shown
below, (a). Since all streams on the process side are set when inventory regulation is
added, only the steam rate can be adjusted. If this is done on the steam supply, then the
condensate outflow must be adjusted to maintain the steam side material balance,
figure (b).
This control system must now be complete, as there are no more possible adjustments.
The designer cannot therfore be tempted to try and regulate the pressure of the system.
The Phase Rule could also have been invoked to check this.
N=C-P+2
n=C
However, the feed composition is fixed and because of the requirements for material
balance, the vapour will have this same composition. Specifying the composition on
a C component stream fixes (C-1) concentrations, leaving one intensive variable which
can be fixed by a control system. This can be eithertemperature or pressure, but clearly
not both independently.
N=C-P+2
The control system structure has been completely defined at the input-output level. This
is rather unusual, but it is now very easy to open up the block and turn the conceptual
controllers into `real' ones, see below figure (a). Note the special form of inventory
regulation on the steam heating side using a steam trap, essentially a very small vessel
with an internal level control system to allow steam and condensate to be disengaged.
Just to show that no heuristics are totally reliable, figure (b) shows another version of
the control system which would be acceptable in many circumstances. This breaks the
Direct action heuristic by regulating the feed rather than the product. However, it saves
a control loop by having a `self regulating' material balance through the following
mechanism.
Heat transfer from the coil to the fluid happens only in the liquid phase. If too much
vapour leaves the vessel, the liquid level falls, uncovering some of the steam tubes. Thus
the heat transfer area falls, reducing the rate of heat transfer and the rate of
vaporisation. Normal operation will be with the tube bundle partly uncovered.
This arrangement will only be acceptable if this is allowable, e.g. with relatively low
temperature steam. Another problem could be that there will always be some liquid
boiling dry on the exposed tube surface. This could tend to degrade and build up
deposits.
Finally, to show that, in this system, temperature and pressure regulation are equivalent,
the temperature control loop on the steam has been replaced by a pressure controller.
This second module introduces the idea of degrees of freedom i.e. how to determine
the number of control loops to place on a process.
The approach used is a formal mathematical one which those who are only interested in
practical control can omit. Instead they can read this informal summary. (table below)
Introduction
Example 1 - Simple Blender
Alternative Equation
Example 2 - Adiabatic Flash
Example 3 - Total Condenser
Example 4 - Countercurrent Cascade
Application to Complete Processes
Inventory
2.2.1 Introduction
When faced with the task of devising a control scheme for a process it is necessary to
know how many of the process variables am I entitled to attempt to regulate. By process
variables we mean temperatures, pressures, compositions, flowrates or component
flowrates. The answer arrived at is known as the number of degrees of freedom.
Ponton JW, 1994, Degrees of Freedom Analysis in Process Control, Chemical Engineering
Science, Vol. 49, No. 13, pp 1089 - 1095.
In fact it is possible to understand the key concepts from a much simpler viewpoint. This
is described here. (in table below)
When faced with the task of devising a control scheme for a process it is necessary to
know how many of the process variables am I entitled to attempt to regulate. By process
variables we mean temperatures, pressures, compositions, flowrates or component
flowrates. The answer arrived at is known as the number of degrees of freedom.
This particular problem has exercised the minds of quite a few clever people over the
years. It is non-trivial if we start (as everyone did) by considering all
possible measurements. This is because not everything that can be measured can be
regulated independently. For example, if a piece of equipment has a single input input
and a single output, only one of these can be flow controlled, since a mass balance
about the unit must be maintained.
all adjustments on a chemical plant are made by changing the flow of a stream
by means of a valve, and
only one valve can be placed on any one pipe,
then the maximum number of adjustable quantities is the same as the number of
streams on the process flowsheet. Hence the following are all the same:
Number of streams
Maximum number of adjustments
Maximum number of control loops
Maximum number of meaurements
This is the maximum number since some material balances will balance automatically,
e.g. a simple mixing tee. In this case we do not need a control loop and valve are not
required on the stream and must not be put there for any other purpose.
However we must check that there is either an explicit (control loop) or implicit (self
regulating) mechanism to ensure that all mas balances balance about each processing
unit.
Where there are two or more phases in a unit, e.g. a liquid and a vapour, we must
maintain an interface between them, which is equivalent to maintaining a mass balance
on each phase. this will normally require an interface level control system, although
some devices, such as distillation trays, are designed so that a hydaulic balance can
maintain the interface over a limited range of operation.
When counting streams, it is convenient to count utilities such as cooling water and
steam, as a single stream, although they both enter and leave a unit. An incompressible
utility stream will have a self-regulating mass balance, and steam heating coils and
jackets are usually equipped with a steam trap, a self contained device which maintains
a steam-condensate interface independent of other control systems.
In practice, it is better to work as follows. It is useful to determine both the total number
of control loops (total count T) and the number of loops associated with regulating
`strategic' quantities, i.e. other than inventories, interfaces and levels (strategic count, S).
Count the total number of streams in the process; this is the upper limit on the
number of control systems required. This is the initial value of both T and S.
Now look at each unit in turn.
Each will require at least one material balance:
- deduct 1 from S
Note those which will have self-regulating mass balances:
- deduct one from T
Note where an interface level has to be maintained:
- deduct one from S
Finally:
Definitions
Before we start analysing the degrees of freedom it is perhaps wise to define a few
terms.
The number of process variables which can be set by the designer, operator or
control system.
Control Degrees of Freedom
The number of the above types of process variable which may be set once
non-adjustable design variables have been fixed.
The number of manipulated variables which may be used in control loops.
The number of SISO control loops.
The number of regulated variables in the control loops.
The procedure which will be described is a counting process which identifies potential
manipulations, but does not directly identify variables which may be regulated.
Derivation
The technique can be derived by applying the Kwauk method. This was first developed
by Kwauk [1952] and later by Smith [1963]. The equation to be solved is
Unknowns
There are two types of streams - process streams and energy streams. If we take a
process stream containing C components then the unknowns are C flowrates,
temperature and pressure. An energy stream has 1 unknown associated with it.
Equations
The equations are best thought of as types of equations i.e. component balances,
energy balances, equilibrium equations, equivalent T and P etc.
Degrees of Freedom
Once the final number of D.O.F. have been found then it is necessary to decide which of
these are already fixed and which can be controlled.
It is possible to apply the above equation to evaluate the number of degrees of freedom
Unknowns
Equations
Degrees of Freedom
D.O.F = 2C + 5
However in this system we know the composition, temperature and pressure of the two
input streams. This adds on a further
2C + 2 Constraints
Hence there are 3 D.O.F and so we can fix the output composition, pressure and
throughput.
It is possible to
Blender
No. of Streams = 3
No. of Extra Phases (interfaces) = 0
CDF = 3 - 0 = 3 - as before
This equation is extremely simple to use and discards the need to think about unknowns
and equations.
No. of Streams = 3
No. of Extra Phases (interfaces) = 1
CDF = 3 - 1 = 2
No. of Streams = 3
No. of Extra Phases (interfaces) = 1
CDF = 3 - 1 = 2
A stack of N such units built into a cascade will have 2N + 2 streams, N two phase
elements and thus N + 2 apparant degrees of freedom. These would never all be used
in practise however, but it is, in principle, possible to maintain each stage at a different
pressure by some valve-like arrangement between the trays.
If there is a fixed rather than adjustable restriction between trays then a potential degree
of freedom is lost for each of N-1 vapour interstreams, so the practical degrees of
freedom for this device is [N + 2] - [N - 1] = 3.
The degrees of freedom for the complete process may be determined by either of two
equivalent procedures.
1. Using the approach above determine the degrees of freedom for each unit. Sum
these and then subtract the number of shared streams to obtain the final count.
2. Count all the streams in the process. Separately count the total number
of extra phases i.e. add up all occurances of phases greater than one in all units.
Method 2 is shown in the example below. All streams represent potential degrees of
freedom and possible adjustable variables, but beside each unit is written the number
lost as a result of the presence of multiple phases in the unit.
Figure 4 - Absorption Process with Solvent Recovery Flash Separator
Total Streams = 12
Extra Phases = 3
Total D.O.F = 9
2.2.8 Inventory
In the preceeding analysis it has been assumed that
It should be noted that where inventory affects several strategic variables there will still
only be one degree of freedom.
Adiabatic Flash
Non-adiabatic Flash
In each of these sections there will be a degrees of freedom analysis, some discussion
on control strategies and then a few examples. Note that distillation columns will be
dealt with in a separate section.
2.3.2 Adiabatic Flash: Degrees of Freedom
Before we can attempt to control this process we have to know how many streams we
are allowed to manipulate i.e. the control degrees of freedom. This can be evaluated by
the equation
Unknowns
There are 3 streams in this process. Each stream has unknown composition, temperature
and pressure. Thus for a stream with C components there are
3 [C + 2] = 3C + 6 unknowns
Equations
C material balances
C equilibrium relationships
1 energy balance
1 equation relating the temperature of the products i.e. they must be the same.
1 equation relating the pressure of the products i.e. they must also be the same.
2C + 3 constraints
Degrees of Freedom
From the above we can evaluate that we have
C + 3 degrees of freedom
However we know the composition, temperature and pressure of the input stream.
These were considered unknowns for the above calculations but now can be taken into
account. Thus this adds on another C + 1 constraints and so we now have
This answer can be compared with that obtained directly using the equation below.
Of the two streams left one would normally have a flow controller and be used to
regulate throughput. This could be any of the three streams. This leaves one other to
regulate a strategic variable.
From a knowledge of the properties of the adiabatic flash, the normal design
specification is the feed and only one further quantity, usually pressure, but temperature
or another flow could also be chosen.
Figure 1 (a) is a very common arrangement and will work well. Both pressure and level
loops have good adjustment-measurement sensitivity. There is some undesirable
interaction because opening the pressure control valve increases the rate of boiloff and
hence affects the level.
Figure 1 (b) will not work. Although as noted above the vapour rate affects level, altering
the liquid rate does not change the pressure of the flash.
Figure 2 below shows the alternatives for regulation of vapour rate and pressure.
Figure 2 - Vapour Rate Controlled
Figure 2 (a) is another fairly conventional arrangement. Level control is good, although
there is interaction between both flow and pressure loops. That is if the flow of vapour is
increased then the pressure will decrease significantly and so the feed rate will have to
be increased also. Decreasing the vapour flow will have the opposite effect causing the
feed rate to be reduced.
Figure 2 (b) is unworkable for the same reasons given above for figure 1(b).
Finally figures 3 gives the two alternatives for liquid rate and pressure.
Figure 3 - Liquid Rate Controlled
Both of these schemes will work. However figure 3 (b) should give stronger response of
both pressure and level control loops to their respective adjustments, and hence less
interaction. It would be preferred to figure 3 (a).
Alternative Arrangement
It would be possible to devise other schemes in which the flow control loop acted
indirectly. For example, by adjusting a stream other than the one which is measured as
shown below in figure 4. Such arrangements should be avoided, as should any system in
which the operation of one loop, here the flow control, depends also on the operation
of another, here the inventory loop.
Figure 4 - Another Possibility?
As with the Adiabatic Flash we will start by evaluating the control degrees of freedom
from the equation
Unknowns
In this example there are 4 streams associated with the flash. There are 3 process
streams each with unknown composition, temperature and pressure, and 1 energy flow.
This gives
3 [C + 2] + 1 = 3C + 7 unknowns
Equations
C material balances
C equilibrium relationships
1 energy balance
1 equation relating the temperature of the products i.e. they must be the same.
1 equation relating the pressure of the products i.e. they must also be the same.
2C + 3 constraints
Degrees of Freedom
C + 4 degrees of freedom
Now, as before, we can fix the composition, temperature and pressure of the feed
stream. These C+2 constraints can be included in the above to give
Once again this answer can be compared with that obtained directly.
The non-adiabatic flash separator has an additional adjustment not present in the
adiabatic case, namely a heat input from a heating stream of steam or other utility.
Analysis of the design problem, as shown in the previous section, confirms that there is
a further degree of freedom and therefore a flowrate plus two further variables can be
set. i.e. there are four possible adjustments we can manipulate, the three mentioned and
the material balance maintained with the fourth.
Note that while it is usually important to locate strategic loops before choosing the
manipulated variable for level, we have found that liquid rate does not affect either
temperature or pressure. All other things being equal, this would be the preferred
choice for the level control loop. As with the adiabatic example, the measurement ends
of the control loops are not shown and the adjustment for the level loop is indicated by
a shaded valve.
Figure 5 below shows the best arrangement for this option. In this case interchanging
temperature and pressure loops could result in an inferior arrangement, as the feed rate
would probably not have so direct an effect on temperature, but would still work.
Figure 5 - Pressure, Temperature and Vapour Rate Regulated
Once flow controllers are placed on the liquid and vapour product streams, the third
material stream, i.e. the feed, must be used to maintain the mass balance. This leaves
only the heat input, steam, valve to regulate pressure. This is the only possible scheme
and is shown below in figure 6.
Figure 6 - Pressure, Liquid and Vapour Rates Regulated
To regulate a ratio requires a flow control loop on one stream, with its setpoint adjusted
by a ratio controller. A flow measurement on the second stream feeds into the ratio
controller which sees both flows and changes the setpoint of the flow controller
accordingly. Thus only one of the ratioed streams has a valve, but both have flowmeters.
In principal the valve may be on either stream.
A suitable arrangement is shown in Figure 7. The flow control valve for the ratio system
has been located on the vapour line in order to leave the liquid line for level adjustment,
as discussed above. Pressure control must then be by the heat input.
Figure 7 - Pressure, Liquid to Vapour Flow Ratio and Feedrate Regulated
One alternative is shown in figure 8 below. It would be possible here to put the valve for
the ratio control on either feed or vapour streams. Also it is possible to interchange the
temperature and pressure loops. The best choice would depend on the particular
system: flowrates, component volatilities, etc. and would be determined after detailed
modelling of the process.
Figure 8 - Pressure, Temperature and Vapour to Feed Rate Ratio Regulated
Number of streams = 4
Number of interfaces = 2
Hence C.D.F = 4 - 2 = 2
Typical control specifications would be feed rate and pressure. Note that two interfaces
must be maintained with two control loops. An example of a control scheme is shown in
the diagram below.
Figure 10 - Three Phase Flash With Control
Number of streams = 4
Number of interfaces = 1 (gas-liquid)
Hence C.D.F = 4 - 1 = 3
Column pressure
One flow rate
One composition
Below are three examples of controlling a cascade column with comments on how good
or bad the control scheme is.
This is not quite as good as the previous example. The pressure, flowrate and level are
as before. However this time the top composition is controlled using the flowrate of the
gas entering at the bottom of the column. Hence this time there will be a time delay
between making the adjustment and the composition changing to reflect this change.
This will be the length of time taken by the gas too travel up the column.
In this example the flowrate of the gas is constant and once again the pressure and level
control are as before. However this time the bottoms composition is regulated using the
liquid flowrate entering at the top of the column. So once again there will be a time
delay between making the adjustment and seeing the effect of the adjustment, but this
time it will be the length of time taken for the liquid to travel down the column - a
significantly longer time. Hence this control scheme should be avoided.
In this case note that there is going to be some vapour present at the top of the column.
This gives another phase and so the degrees of freedom analysis gives us:
Number of streams = 5
Number of interfaces = 2 (vapour-liquid, liquid-liquid)
Hence C.D.F = 5 - 2 = 3
A liquid-liquid column running full of both liquids would probably use implicit pressure
regulation by leaving an open line to another part of the plant or alternatively may be
vented to atmosphere. This effectively reduces the degrees of freedom to 2. Normally
one flowrate and one composition of controlled along with the two interface control
loops.
The example below shows the flowrate of the lighter liquid being controlled with the
flowrate of the heavier liquid entering at the top of the column being used to regulate
the composition of the top product. The two product streams are used for inventory.
Figure 15 - Liquid-Liquid Extraction Column With Control
This fourth module is concerned with the modelling and use of both process and
controller. First there is a section on the mathematics behind the controller actions.
Then there is a section on how to create a model from simple building blocks and
then analyse the response. Then finally there is a section on how to relate this
response to the controller settings for optimal control.
Introduction
Controller Action Mathematics
o Introduction
o Proportional Controller
o Example: Flow Through Pipe (1)
o Proportional Integral Controller
o Example: Flow Through Pipe (2)
Modelling a Process
o Introduction
o Simple Black Box Models
o Typical Responses
o Theoretical Response
o Analysis of Response
Tuning a Controller
o Introduction
o Selecting Controller Parameters
o A General Process Model
o Zeigler Nichols Open Loop Response Tuning Method
o Controlling Real Processes
o Gains for Real Processes and Controllers
2.4.1 Introduction
The purpose of this part of the course is to show how settings for controllers can be
obtained from a knowledge of the process to be controlled. This forms part of the
complete control system design procedure. After manipulated and adjusted quantities
have been selected and their pairings, perhaps tentatively, chosen, (as discussed
elsewhere) then values of one or more parameters for each controller must be
determined.
The process with these control loops and controller settings can then be tested, usually
by simulation using a mathematical model of the process, but sometimes with the
`real' process if it is available. The choice of control loops and/or the controller
settings may then be changed if their performance is not satisfactory.
These are introduced in separate sections. Finally there is a separate case study section
which includes simulations of processes which can be controlled by feedback control.
Introduction
Feedforward controllers also exist but are more complicated to implement. Here we
will describe the use of feedback controllers.
In feedback control the variable required to be controlled is measured. This
measurement is compared with a given setpoint. The controller takes this error and
decides what action should be taken by the manipulated variable to compensate for
and hence remove the error.
The advantage of this type of control is that it is simple to implement. Not only does
the feedback control system require no knowledge of the source or nature of the
disturbances, but it also requires minimal detailed information about how the
process itself works. Feedback control action is entirely empirical. So long as an
adjustment is being made in the correct sense then the control system should
remove the effect of an external disturbance.
The disadvantage is that the disturbance has to enter and upset the system before it is
eliminated.
Proportional Controller
The first type of controller that we will study is the proportional controller. This
controller sets the manipulated variable in proportion to the difference between the
setpoint and the measured variable. The bigger the difference, the greater the change
in the manipulated variable.
The equation that describes a proportional controller is
where
Here
So
Let us assume to begin with that Fs = 50 and Fd = 50. If this is true then it can be seen
from the above equation that F = Fs and there is no error. Note that this result is
independent of the value of the gain.
However, let us now consider what happens when the value of the setpoint changes
from 50 to 60 with Fd staying constant at 50. First the relevent equation is shown and
then the table below summerises the results for different gains.
From the above example we can see the problem of using proportional only control,
namely the offset. Note also that there must always be an offset. This is because to
achieve the new steady state the term must have a value and so
there must be an error. There are two ways of eliminating this problem.
The first is hard to achieve since it requires very accurate knowledge of the process,
and would require changes whenever the setpoint is moved.
The second leads to problems of rangeability and sensitivity. Suppose the gain is 10,
then measurement noise of 1% of the total range will cause the control valve to move
over 10% of its total travel. This is unacceptable.
Proportional-Integral Controller
To remove the offset integral action is required and so PI control is normally used. It
works by summing the current controller error and the integral of all previous errors.
It may be thought of as a way of automatically calculating the quantity ud. Proper
tuning - described in a subsequent section - of the integral part of a PI controller can
improve its performance.
where
As before
F=y=u
e = Fs - F
So
Or
Equations of the form
are very common and have well known properties. Their solution has the form
shown below.
We note that
For the flow control system with integral action we see that
Introduction
We will describe briefly some rules for constructing this type of model which
help to ensure that if the modeller's understanding of the problem is correct
then a correct model will be obtained.
The advantage of such 'arbitrary' models is that they can be developed with
little or no knowledge of the system to be represented, and hence complicated
systems can be modelled quickly.
Simple Black-Box Models
Input-output models form the basis of most classical process control theory. They are
usually subdivided according to whether they have one or more than one input and/or
output. We will consider initially only single input, single output (SISO) models,
although some ideas associated with multiple input-output models will be touched on
elsewhere in the course.
Typical Responses
Suppose an input u is given a step change at some time, as shown in the figure.
Observations of typical `processes', from aircraft to papermills, suggest that there
are three main types of behaviour which may be seen in an output y.
1. Instantaneous response
The first typical response is called the instantaneous response. In this case y also
responds in a step, but in general of different size to that in u (in any case y will
normally have different dimensions to u) as shown below
2. Lagging response
Here y starts to change the moment that y changes, but the full extent of the
response `lags' behind the disturbance. After a while, y will have responded fully.
The simplest mathematical form which provides this behaviour is an ordinary
differential equation with time t as the independent variable, having the form:
Here is as before the gain, and is called the Time Constant of the equation,
system or model. Because it is described by a single first order o.d.e. this is called a
First Order model, system, lag or response. The interpretation of these parameters is
described below.
3. Delayed response
This does not have simple analytical properties, but is easily understood by chemical
engineers as corresponding to a plug flow or pipeline system with residence time T.
It is also referred to as a time delay or pure time delay system.
Analytical and numerical techniques are available to work with models constructed in
this way.
Theoretical Response
Classical control theory constructs all its models from sets of linear ordinary
differential equations. (The instantaneous response is the limiting case of the the o.d.e.
where is zero, and the plug flow delay, like the plug flow reactor, is the limit of an
infinite number of first order lags.)
There is no good physical reason why a real process should be well represented by
such a set of equations, except that in the limit of infinitesimally small changes, all
nonlinear equations approximate to linear ones.
Let us look again at the differential equation which describes first order behaviour.
Here
yo is the value of y at t = 0
is the size of the step change in u at t= 0
Note that a graph of this equation gives the response curve shown above under the
section on the lag response.
This equation can be now be used directly to calculate the new value of the output
variable if the change in u, the gain and time constant are all known. Otherwise it is
necessary to estimate values for the gain and time constant as shown below.
Analysis of Response
It will be shown later in the section on tuning controllers that it is useful to be able to
look at the open loop response of a process and try and estimate the values of the
gain and time constant. Below are notes on how to do this and then you can try it for
yourself in the exercises associated with this part of the module.
is known as the gain. It tells us how much the output variable will change per unit
change in the input variable. A large gain implies a large change in y for a given
change in u and hence leads to a quicker response.
To calculate its value we have to consider the system going from one steady state
value to another. Thus we can see what effect a change in u has on the value of y.
After the system has settled down following the step disturbance
So
is the time constant for the process. This is related to the speed of response of the
system. The diagram below shows a graphical method of evaluating its value.
Note that this is also the time taken for the output value to travel 63% of the distance
to its new value.
This is shown mathematically below
Finally, how does the response change when and are altered but the change
in u stays the same?
The diagram below shows that changing alters the slope of the initial slope and
changing alters the final steady state.
Introduction
In the first section on controllers we looked at two control algorithms for
proportional and proportional integral controllers. In order to implement these
algorithms there are two parameters which have to be fixed, namely
The aim of this section is to introduce a method of matching the personality of the
controller to that of the process so as to achieve the optimum controllability. In other
words how do we go from the process parameters to the controller parameters. The
method introduced uses the open loop response of a process and works best with a
delay-followed-by-first-order-lag. There are many other tuningmethods which look at
other aspects of the process in order to tune the controller. A couple of these will be
discussed in a later section.
Look at the open loop response of the process to a step change in the
manipulated variable.
Evaluate
o The steady-state gain, (y2 - y1) / (u2 - u1)
o The time delay, Td
o The time constant, Ts
Finally substitute these values into the table below to obtain the relevent
controller parameters.
PI 0.9 Ts / Td 3.3 Td -
The Gain evaluated above is the product of the controller gain setting, and the
process steady state gain, G.
Gain = * G
Therefore by substituting all the values in for the above and re-arranging we get the
following values for the controller parameters:
P (Ts ) / (Td ) - -
Experiment is under open loop response and so disturbances may affect the
results.
Results tend to be oscillatory.
Does not work well for complex responses - leads to inaccurate tuning model.
In this case the tangent should be drawn at the point where the slope of the
response is steepest. Now we have estimates for the parameters and it may be
necessary to change them in order to get the optimum values. To do this it is
possible to use a model of the process and controller to see the effect of altering the
control parameters. There is the chance to do this in the case study section.
The adjustment u is usually a flow, so that the process gain, , will in general have
odd dimensions! This also makes it hard to interpret or compare gain values.
As indicated these values are percentages and so are dimensionless values between
0 and 100. Thus it is possible to define a dimensionless gain for the process as
If the value of the gain is large, say 100, then this means that the change in y is 100
times greater than the corresponding change in u. This could lead to y going out of
bounds or else the change in ubeing very restrictive.
Alternatively, if the gain is very small, say 0.01, then for a large change in u there is
hardly any response in y.
What is required is a gain of around 1. This enables both input and output to be used
to their full ranges which in turn improves the controllability.
So if this definition of the gain is used it is clear from a glance if a suitable value has
been obtained or not. In this case simply use the value of the gain from the first table
above along with the dimensionless process gain above to obtain the dimensionless
controller gain.
In practice a controller does not want to deal with meaningless dimensions when
asking for the value of the gain. Therefore a parameter known as the Proportional
Band is used instead.
Firstly remember that you have a value of the dimensionless gain for the controller as
evaluated above.
Remember that when specifying a controller setting, always use dimensionless gain
or proportional band.
This section of the course reinforces the material taught in the lecture notes. There are
two parts which are outlined below. Firstly there are a couple of simulations which
cover tuning a controller using the Zeigler Nichols open loop method. Then there are
a number of tutorials on all aspects of this part of the course both controlling simple
processes and simple controller design.
Laboratory Session
Aims of Experiment
The aim of this experiment is:
To introduce the Zeigler Nichols open loop and closed loop methods for tuning
controllers.
Theory
There are two theory sections associated with this experiment.
Look at the open loop response of the process to a step change in the
manipulated variable.
Evaluate
o The steady-state gain, (y2 - y1) / (u2 - u1)
o The time delay, Td
o The time constant, Ts
Look at the diagrams below to see how this differs between ideal and real
processes.
Ideal Process
Real Process
Finally substitute these values into the table below to obtain the relevent
controller parameters.
Controller Type Gain Reset Derivative
P (Ts ) / (Td ) - -
The Zeigler Nichols Closed-Loop Tuning Method looks at the response of the system
under proportional only control to obtain PI controller5 settings. The method is
outlined below.
Set up the system with proportional only control and add a disturbance.
Alter the gain of the process until you obtain the smallest gain which gives
constant amplitude oscillations. This gain is called the Ultimate Gain, .
Now evaluate the period of these constant oscillations. This is known as the
Ultimate Period, Pu. Please refer to the diagram below.
Finally substitute these values into the table below to obtain the relevent
controller parameters.
P /2 - -
PI /2.2 Pu/1.2 -
The material for these sections has been taken from Module 2.2 - Controller Design
and System Modelling and Module 4 - Additional Material.
Procedure
Please choose which method you require and move on to work through the exercise.
2.5.1.3.1.1 Introduction
This short simulation has been set up for the user to practise tuning a controller
using the Zeiglar Nichols Open Loop Response Method. It assumes that the user has
covered the relevent material fromModule 2-2 in the HyperCourse.
50
The change in u (the input variable) was : %
2.5.1.3.1.3 Analysis of Open Loop Response
The second stage is to enter the following values:
P (Ts ) / (Td ) - -
Proportional
Proportional Integral
Proportional
Proportional Integral
2.5.1.3.1.6 Run Process With Control
Finally it is possible to try out the above values in the simulation below and hence do
some fine tuning to find the optimum values.
It is assumed that the user has covered the relevant material in the hypercourse.
2.5.1.3.2.1 Introduction
This short simulation has been set up for the user to practise tuning a controller
using the Zeiglar Nichols Closed Loop Response Method.
In this exercise it is simply a matter of using the Java applet below to practise the
closed loop method following the simple guidelines given and then filling out the
form to make sure that the right answers have been obtained.
Ultimate Gain
2.5.1.3.2.4 Evaluate Ultimate Period
Now look at the response and evaluate the Ultimate Period. Please enter this value
in the box below.
Ultimate Period
2.5.1.3.2.5 Obtain the Controller Parameters
The next stage is to use the above values to fill in the table.
P /2 - -
PI /2.2 Pu/1.2 -
Proportional
Proportional Integral
Proportional
Proportional Integral
Experimental Setup
For this experiment there is no actual physical apparatus. There are five
different processes which have been modelled for this simulation.
The aim is to go through these one by one and try to decide on the controller
parameters which returns the response to it's setpoint value of zero with the minimal
of disturbance.
Theory
The relevent theory for this experiment can be found in .
Procedure
The first stage of this simulation is to look at some pre-experimental questions.
These will help you work though the exercise and tell you what you should be
looking out for.
Once you have chosen a process you will be shown the open loop response. It is then
an easy matter to analyse this and insert the required gain and reset time and obtain
the response with control. This step can be repeated as many times as necessary until a
thorough understanding of the concepts of control is obtained.
Acetone Recovery
Acetone vapour in a byproduct gas is absorbed in a nonvolatile solvent. It is then
recovered in a flash separator.
Answer
Chlorine Removal
Chlorine in a nonaqueous product stream is stripped using air, then absorbed in
aqueous NaOH.
Answer
The absorber would run open to atmosphere with the pipework pressure setting the
stripper pressure somewhat above ambient. A blower would obviously be required on
the air supply, so the valvethere would probably be a motor speed adjustment.
Although the absorption of chlorine in NaOH is highly exothermic, the exit stream
from the stripper would be quite dilute, so temperature regulation on the absorber
would be unnecessary.
Butadiene Purification
Butadiene is extracted from a reactor product using a high boiling solvent which is
then recovered by distillation. The nature of the impurities is not specified. An
assumption made is that they are all removed in the solvent, and the distillation is
required only to recover this. This implies that all the impurities are heavier than
butadiene, which has a low boiling point of about 290K.
Answer
Not Available
Question 1
The process shown below involves the partial vaporisation and flashing of a mixture
which forms a vapour phase and two immiscible liquid phases, one organic and one
aqueous. The feed is preheated and partially vapourised in H101 and separates into 3
phases in S102. The vapour product is condensed in H103.
What is the maximum number of control loops other than level control
loops possible for the process? How does this relate to the actual number of
control loops which you would provide?
The process is to be provided with a control system to regulate the following
strategic quantities, as well as levels etc:
o Process throughput
o Flash vessel temperature and pressure
Devise a suitable control system. Comment briefly on the justification for, and
mode of operation of, each control loop proposed.
Answer
What is the maximum number of control loops other than level control loops possible
for the process? How does this relate to the actual number of control loops which you
would provide?
Looking at the diagram it can be seen that there are 6 places where control loops are
possible but two of these have to be used for the liquid and interface levels in the 3
phase flash. Therefore it is possible to control 4 different things.
Note that it is not always appropriate to regulate all possible variables since some are
self regulating and it would be a waste of energy.
The process is to be provided with a control system to regulate the following strategic
quantities, as well as levels etc:
Process throughput
Flash vessel temperature and pressure
Devise a suitable control system. Comment briefly on the justification for, and mode
of operation of, each control loop proposed.
Three strategic loops are required, one less than the number determined above. It
would be possible in principle to regulate condenser pressure as well as flash drum
pressure, but this would be pointless, and indeed counterproductive.
Throughput: FC on feed
Flash Temperature: TC on H101 steam supply
Flash Pressure: PC on H103 water
Process throughput
Reactor temperature
Product and byproduct compositions
Sketch suitable control loops and any other additions or altermatives to the flowsheet
required. Comment briefly on the justification for, and mode of operation of, each
control loop proposed.
Answer
The process shown is to be provided with a control system to regulate the following
strategic quantities:
Process throughput
Reactor temperature
Product and byproduct compositions
Consider all possible strategic control choices for an adiabatic flash separator. Identify
any which seem likely to give rise to problems. Draw complete control systems for all
alternatives.
It is now possible to devise control schemes for this adiabatic flash vessel. The basic
input-output block has 3 streams. It has been evaluated above that there are 2 control
degrees of freedom which means control valves on two of the three streams. That
leaves one other stream which also has a control valve on it to regulate inventory i.e.
to ensure that the mass balance does in fact balance.
Of the two streams left one would normally have a flow controller and be used to
regulate throughput. This could be any of the three streams. This leaves one other to
regulate a strategic variable.
From a knowledge of the properties of the adiabatic flash, the normal design
specification is the feed and only one further quantity, usually pressure, but
temperature or another flow could also be chosen.
For this example we will choose to regulate the pressure and one flowrate, not
necessarily the feed. This gives rise to six different alternatives. Each one is shown
below with a short discussion on whether it is feasible or not. Note that the shaded
valve indicates a valve used for inventory regulation. Not shown is the controller and
level measurement. Since all measurements in this example orginate in the flash drum
that end of the loop is omitted to simplify the diagrams.
Figure 1 is a very common arrangement and will work well. Both pressure and level
loops have good adjustment-measurement sensitivity. There is some undesirable
interaction because opening the pressure control valve increases the rate of boiloff and
hence affects the level.
Figure 2 will not work. Although as noted above the vapour rate affects level, altering
the liquid rate does not change the pressure of the flash.
Figures 3 and 4 below are the alternatives for regulation of vapour rate and pressure.
Figure 4 is unworkable for the same reasons given above for figure 2.
Finally figures 5 and 6 give the two alternatives for liquid rate and pressure.
Figure 5 - Liquid Rate Controlled - 1
Other Possibilities
It would be possible to devise other schemes in which the flow control loop acted
indirectly. For example, by adjusting a stream other than the one which is measured as
shown below in figure 7. Such arrangements should be avoided, as should any system
in which the operation of one loop, here the flow control, depends also on the
operation of another, here the inventory loop.
Devise Control strategies for a flash separator with adjustable heat input where it is
required to regulate
Answers
In this exercise we have an additional degree of freedom hence we can control three
strategic variables as well as the inventory.
In this first case the first loops we can place are the two flowrates on the feed and
vapour. This leaves the inventory which has to go on the liquid rate (for mass balance)
and so the pressure is controlled by the heat input.
Once again we can put the flow control on the liquid rate. The temperature has to be
controlled using the heat input. This leaves the vapour rate and feed rate for pressure
and inventory. The inventory can only be controlled by the feed which leaves the
vapour for pressure which is desirable.
Pressure, Temperature and Vapour to Liquid Ratio
This example is really the same as the one above. The only difference is that there is a
ratio controller which measures the flow of both vapour and liquid but alters to the
liquid rate. Therefore all the rest of the loops are as above: pressure on vapour,
temperature on heat input and inventory on feed.
Is it possible to do it any other way? What if the ratio controller had altered the vapour
rate? This would leave the liquid rate for inventory and the feed rate for pressure. This
scheme would also work and the final right answer would depend on the conditions of
the system.
In this final example we can firstly put a flow controller on the liquid line. Next we
have to decide which stream the ratio controller is going to alter. Consider first putting
the flow controller on the feed line. This would leave the vapour line for inventory
which would not work. Consider instead putting the flow controller on the vapour line
and then the inventory on the feed. Finally the pressure is controlled using the heat
input.
Question 1
A process with input u and output y is described by the equation:
What is the value of the time, in terms of the time constant , when the process has
reached 90% of it's final steady state.
Initially the process is at steady state with y = 5 units. At time t = 0, the input u is
subject to a disturbance of 5 units.
Sketch the process response using the following values for the gain and time constant
and comment on the results.
and so
Hence when the output reaches 90% of the final steady state value the time is equal to
2.303 time constants.
A similar procedure can be carried out for when t = to get the result that at this point
the output has reached 63% of it's final steady state value.
The next part of the question requires a sketch of the respones with the given values of
gain and time constants. It is not necessary to plot lots of different points on each line
although this is possible.
Please find below a table summarising these points for all 4 processes in the question
Once these points have been fixed it is a simple matter to sketch the rest of the curve.
The Gain
The Gain
The Gain
The Time Delay
The Gain
The Time Constant
Answers
The Gain
The gain is a measure of how the output changes in response to a change in the input.
The response above is instantaneous. i.e. the output changes as soon as the input
changes and is the same form of response. Note that the output has a different final
value from the input and so the gain does not equal 1.
The equation below is used to calculate the gain. The values of the parameters are
easily obtained.
The Gain
The response this time is similar to the one above but this time as the input increases
the output decreases. Thus the process has a negative gain.
The Gain
The Time Delay
Again the response has the same form as the input but does not start at the same time.
This time difference between the step change in the input and the response in the
output is known as the time delay.
The Gain
The Time Constant
In this example the response is first order. i.e. it is lagging behind the input. To
evaluate the time constant you have to draw the tangent to the curve where the
gradient is greatest - in this case (and all first order cases) at the start of the response.
Where this line has the value of the final value of y is the value of the time constant.
The Time Delay
The Gain
The Time Constant
Once more this is a first order case except it also has a time delay which is easily
calculated.
The Time Delay
The Gain
The Time Constant
This final example is slightly trickier than the rest. This is because it is not simple first
order. The biggest gradient is now no longer at the start of the response. Instead it is
necessary to draw in the gradient and hence obtain approximate values for the
parameters.
2.5.8 Exercise 6: Controller Tuning
Question 1
Below are a range of responses of several process measurements to a step change in
an adjustment of 50% of its maximum range.
If each of the measurements represents an alternative control loop pairing with the
adjustment, rank these in order of desirability with a brief explanantion of your
choice.
Answers
Response (e)
This is the least desirable since it shows an inverse response i.e the measurement
variable (controlled variable) increases first before decreasing. This is not good since
the process could be upset and also this scenario is very difficult to control.
Response (b)
Next in order of desirability comes response (b). This is difficult to control for two
reasons. The first is that there is a large time delay befor the adjustment affects the
process. This makes the controller hard to tune and could lead to the process being
upset by disturbances before it is controlled back to the setpoint. The second reason is
the scale of the measurement. The range of the adjustment has been 50% however the
measurement has only decreased by approximately 15%. Thus the response will not
be very sensitive to disturbances.
Response (a)
This response is similar to (b) as regards the scale of the problem. Again the range of
the adjustment has been 50% but this time the range of the response is only
approximately 2.5%. Thus the controller is very insensitive to changes and would not
work satisfactorily. However note that on the plus side there is no delay time which
makes it easier to control.
Response (f)
The advantages of this response are that it is a comparable scale i.e a 50% change in
the adjustment causes a 60% change in the measurement, and it has a definite steady
state at the end. However on the down side it could be approximated to a pure time
delay i.e the response suddenly changes from one steady state to another. Again this
makes it hard to control.
Response (d)
We now have nearly perfect response. There is a good scale on the problem and the
response can be approximated to a first order response making it easy to obtain
controller parameters. However the only disadvantage is that there doesn't seem to be
a definate steady state at the end.
Response (c)
Finally the best response for controlling purposes is response (c). This response has
good scaling, an adjustment of 50% causes a change of 30%, can approximate to a
first order response and there is a definate steady state.
Note that your order may be slightly different but just as long as you picked up the
main points from the exercise. For a process adjustment to be paired with a process
measurement things to look for are:
Good Points
Bad Points
Question 2
A control room chart record, see the figures below, shows a test on a process in
which a control valve was opened from 10% to 50% of its range and the effect on the
measurement, to be used in a control loop with the valve, recorded. The top and
bottom of the chart represent upper and lower range limits on the measurement.
Proportional Controller
Proportional Integral Controller
Answers
Next estimate the time delay and first order time constant using the graphical method
shown below (drawing the steepest slope tangent):
Delay time = 2
Time Constant = 2
Question 3
The temperature of a chemical reactor is to be regulated by adjusting the flow of
heating fluid to a jacket.
The heating fluid valve is initially 20% open and the measured temperature is 140oC.
The valve is then opened to 40% and the temperature finally settles down at 173 oC.
Answers
If the relationship between heating fluid flow and reactor temperature is assumed to
be linear what is the relationship?
Temp = aFlow + b
What is the value of the dimensional process gain and what are its dimensions?
To get this multiply the dimensional gain by (kg/s per flow %) and divide by ( oC per
temperature %).
Easier way...
The dimensionless gain really has units of temperature range % / flow range %.
For the answer to this question determine what flow will give a temperature of 180 oC
and convert this to a valve position.
This represents 44.2% of the valve range and this must be the controller output with
zero error to achieve the required temperature.
2.4/0.825 = 2.91
This process has a gain of 0.825, which is less than one, so the required controller
gain will need to be greater than the standard gain, so you need to divide by the
process gain to increase it.
This uses the same approach as the more involved procedure for the third part of this
question above.
= 0.2 * 2 / 0.1
=4
So PB = 100/4 = 25%
Introduction
Degrees of Freedom Analysis
Controlling Pressure in Distillation
Controlling Tops Composition in Distillation
Distillation Column Control Example
3.1.1 Introduction
The aim of this module is to introduce the control of distillation columns. We will
start by analysing the degrees of freedom to establish how many and which control
parameters it is possible to control and/or manipulate. Then we move on to discuss
different ways to control the two most important parameters: composition at the
top of the column and the pressure of the column. Finally there are a number of
examples showing different control structures.
All we have to do is count all the streams in the process. Separately count the total
number of extra phases i.e. add up all occurrences of phases greater than one in all
units. The number of control degrees of freedom is the difference between these two
numbers.
Total Streams = 8
Extra Phases = -3
Degrees of Freedom = 5
So the number of degrees of freedom is 5. However, a typical control strategy for such
a process would use only 4 of these - feedrate, column pressure, top and bottom
composition. This is because the column and condenser are normally maintained at
the same pressure.
However, a valve could be placed in the line between. This would actually be
undesirable as reducing the condenser pressure will decrease the temperature driving
force available from the cooling medium.
One thing to note is that in none of them is a valve simply placed on the vapour line.
This would lead to the use of a large expensive control valve. Instead the pressure is
controlled indirectly involving the use of the condenser and/or reflux drum.
Vent to Atmosphere
Figure 2 below shows the easiest way to control the pressure in a column operating at
atmospheric pressure.
In this case the cooling water flow stays constant and the reflux drum is vented to
atmosphere. Thus the reflux drum and hence the top of the column are at atmospheric
pressure. The advantage of this scheme is that it requires one less control valve. The
disadvantage is that the tops have to be subcooled so that a minimal amount of vapour
is lost through the vent. Hence more energy is required from the reboiler when the
reflux is added to the top of the column.
Cooling Water
Figure 3 shows the most common method for controlling the pressure - adjustment of
the cooling water flow.
In this case if the cooling water flow is increased then more vapour is condensed and
the vapour pressure is reduced (and vice versa).
Flooded Condenser - 1
Again in this setup, as with the first example, there is no valve on the cooling water.
Instead the valve is in the liquid line between the condenser and reflux drum.
If this valve is closed then the condensed vapour i.e. liquid will build up and flood the
condenser. This has the effect of reducing the heat exchange area, thus reducing the
amount of vapour being condensed and hence increasing the pressure.
The valve can then be opened, the liquid level will fall, increasing the heat exchange
area and hence decreasing the pressure.
Flooded Condenser - 2
The first thing to notice about this setup is that the reflux drum and condenser are at
the same level. The second important point is that the vapour line, on which there is
the control valve, is very small in comparison with the overhead line. If the valve is
opened there is a small escape of gas into the reflux drum. This pushes the liquid
level down in the drum and up in the condenser, flooding it and reducing the heat
exchange area as in the last example.
Therefore to increase the pressure the valve is opened and to decrease the pressure the
valve is closed.
Partial Condenser
Reflux Rate
Reflux Ratio
Distillate Rate
Reflux Rate
In this first example the reflux rate is adjusted to control the composition of the tops
product.
Figure 7 - Reflux Rate
As the amount of reflux is changed so the temperature profile in the column changes
and hence the composition.
Reflux Ratio
The second example uses the reflux ratio as the control parameter.
Figure 8 - Reflux Ratio
When designing a distillation column it is usually the reflux ratio that is determined.
This can be kept constant throughout operation by using two flow indicators and a
ratio controller.
Distillate Rate
The third example is for high purity tops. It uses the distillate flowrate to control the
distillate composition.
Figure 9 - Distillate Rate
It can be shown that for a high purity column i.e. one with a large reflux, that the
composition of the distillate is sensitive to the distillate flow but insensitive to the
reflux rate. Therefore for a high purity column the control scheme outlined above is
used. It should be noted that tight control on the level in the reflux drum is required
using the reflux rate.
In all cases actual composition controllers are shown. These could of course be
replaced by inferential measurement from temperature, with or without cascade of
a slower analyser. Unless otherwise stated, it has been assumed that the feed rate to
the system is not available as a manipulated variable.
This is a fairly standard configuration for a single product column, i.e. when the
bottoms streams is a byproduct, recycle or goes to further processing.
Although the overheads composition is regulated by adjusting the steam rate at the
base of the column, the response of the column to heat input changes is quite rapid,
and so this strategy is acceptable.
Pressure control on condenser cooling water is shown; of course any other pressure
control scheme would be acceptable.
This does not work well, since either the bottom level, as here, or composition, has to
be regulated by adjusting the reflux rate. In either case the loop involves a long delay
due to the hydraulic lags on each tray.
For these reasons a Hierarchical approach to the design of control systems will be
used. In this method controls are placed, as far as possible, on the flowsheet in its
simplest form. As the flowsheet is elaborated more loops are added.
The task of placing all control loops on a complete and detailed flowsheet is
reduced to more manageable proportions.
Attention is concentrated on strategically important control loops rather than
those of secondary importance such as level in holding tanks.
Decisions on process and control system structures are taken together,
allowing the latter to influence the former in a manner not possible with the
conventional approach.
Ponton, JW and Laing, DM, 1993, A Hierarchical Approach to the Design of Process
Control Systems, Chemical Engineering Research and Design, Vol 71, Part A, 181-
188.
Input-Output structure
Recycle structure
Separation sequencing
Energy integration
The method used for designing control systems employs a similar set of steps:
Feed and product rate control
Recycle rates and composition
Product and intermediate stream composition
Temperature and energy balance control
Inventory regulation
As with the design outline above, these controls are placed on the flowsheet at
different stages in the structure.
Input-Output Structure
Recycle Structure
Functional Subsystems Structure
1. At any one time only a subset of the overall problem is considered. This
simplifies the problem somewhat and avoids the intellectual overload inherent
in the conventional approach.
2. The more important strategic control loops are emphasised, i.e. those
affecting the economic performance of the plant such as product rate, overall
conversion and product quality.
3. Less important decisions are left to the end, i.e. those associated with
operability such as regulation of inventory.
4. By proceeding in parallel with both process and control system design,
alternatives for both may be considered at each step.
We will now go through these steps in more depth and discuss what should be
considered at each level.
This last point covers systems such as feed/mixing systems or separation schemes. It
includes equipment such as flash units or distillation columns. These are discussed in
a separate module on control of such units.
3.2.6 Discussion
At each of the above three stages it is important to understand what each stream is
there for and to ensure that as much control as possible has been included. Thus the
following steps are used:
The above procedure is best shown as a worked example. There are four of these in a
separate section including one which is interactive and so requires the user to think!!
The final stages in the design of a control system are to consider energy integration
and inventory control.
For energy integration the general principal is to derive a control system for an
integrated energy recovery network from the unintegrated form by replacing valves on
utility streams with bypasses. The case of energy integrated distillation can be rather
more interesting. For example, in unintegrated distillation systems reboiler heat load
is often used as a manipulated variable for bottom product composition regulation.
Condenser heat load is used to regulate column pressure. However, what happens
when the condenser of the first column forms the reboiler of the second?
We regard the regulation of inventory, i.e. ensuring that all mass balances do in fact
balance, as the lowest level of control, to be achieved after all strategic control
systems have been specified. It is not usually difficult to place level control loops
once the number of alternatives has been reduced.
The aim of this case study section is to reinforce material taught in Module 3: Control
Systems For Complex Processes. We start with three worked examples on developing
control systems for complex processes using the hierarchical method. These are
presented in order of difficulty. This is followed by three exercises. The first is
an interactive exercise on building up a control system. Choices are made along the
way and helpful hints and tips are given to help the user. The second is an exercise on
the control of distillation columns. The third is an exercise on heat exchanger
networks.
Process Description
In this first example we will consider a process turning a single feed A into a single
product B. The flowsheet consists of
A reactor
A flash separation unit
To begin with, however, we are concerned with the first level of complexity - the
input/output block.
Input-Output Structure
In this simple example there is one input stream and one output stream. The critical
decision to take at this stage is whether we regulate the feed or product rate.
Figure 2 shows a similar method for controlling the product rate i.e. both the
measurement and adjustment are of the same stream.
Figure 2 - Product Rate Controlled
Figure 3 shows an alternative way to control the product rate. In this case the product
rate is measured as before. However, in order to maintain this value the feed rate is
adjusted.
Clearly each strategy will lead to quite different control systems. It is reasonable to
suppose that there will be circumstances in which the choice of control strategy at this
point will affect the process design. For example, regulation of product rate, as shown
in figure 3 would favour a process design that minimised hydraulic lags, e.g. with a
reactor which ran full of liquid, and the minimisation of holding tanks. All these
alternatives should be explored individually using the criterion discussed in the
introduction. i.e. thinking about what the likely disturbances might be and how
sensitive the system is to these changes.
It is not implied that controllers will be of any particular type. For example, regulation
of product rate by adjustment of the feed is unlikely to be achievable by a simple PID
feedback scheme. It is assumed that when individual controllers are designed an
appropriate feedforward, model-based or miso/mimo scheme will be adopted.
Process Description
The second example we are going to study is the Hydrodealkylation of Toluene. The
main reaction is
Below is a flowsheet of the complete process. There then follows a description of the
process giving more information on the role of each part of the equipment.
Figure 1 - HDA Process Without Control
The homogeneous reactions take place in the range 600oC - below this temperature
the reaction rate is too slow - to 700oC - above this temperature a significant amount
of hydrocracking takes place - and at a pressure of about 35 bar. An excess of
hydrogen - a 5/1 ratio - is needed to prevent coking.
The toluene and hydrogen raw-material streams are heated and combined with
recycled toluene and hydrogen before they are fed to the reactor. The product stream
leaving the reactor contains hydrogen, methane, benzene, toluene and the unwanted
diphenyl. We attempt to separate most of the hydrogen and methane from the
aromatics by flashing away the light gases.
We would like to recycle the hydrogen leaving in the flash vapour, but the methane,
which is produced in the reaction and enters as an impurity in the hydrogen stream,
will accumulate in the gas-recycle loop. Hence a purge stream is required to remove
both the feed and the product methane from the process.
Not all the hydrogen and methane can be separated from the aromatics in the flash
drum and therefore we remove most of the remaining amount in a distillation column
- the stabilizer - to prevent them from contaminating our benzene product. The
benzene is then recovered in a second distillation column and finally the recycle
toluene is separated from the unwanted diphenyl.
Process Description
Styrene monomer is produced from ethylbenzene - EB - by the reversible reaction
shown below. The reaction is carried out in a vapour phase catalytic tubular reactor.
The feed to the reactor is vapourised and then superheated in a furnace to about
900K. The reactor operates at about 2 bara.
Two side reactions of EB also take place, one to benzene and ethylene, and the other,
with the hydrogen formed in the first reaction, to toluene and methane.
Superheated steam is fed to the reactor along with the vapourised EB at a ratio of
1.7:1 of fresh EB feed. This serves a number of purposes: as a heat carrier, as a diluent
reducing product partial pressure and shifting the reaction equilibrium, but most
significantly to increase and prolong catalyst activity.
Benzene 353K
Toluene 384K
Ethyl Bezene 409K
Styrene 418K
The separation section first removes gases and separates water from organics in a 3-
phase flash after cooling to a suitable temperature. Styrene is then separated from the
other species by distillation. Ethylbenzene is then separated for recycle and the mixed
byproducts exported. Note that it is not possible here to avoid taking important
products from the bottom of columns.
Introduction
The third example in this section is a process for the manufacture of
dichloromethane [DC] and trichloromethane [TC] by successive chlorination of
monochloromethane [MC]. Tetrachloromethane, also known as carbontetrachloride
[CTC], is produced in significant quantities as a byproduct.
As mentioned previously, this process will be used as a practical example on the use
of the Hierarchical Approach to Control System Design. Thus at various stages
options will be given as to the next step forward. If the wrong option is taken further
advice will be given until the point in question is understood. If you have not looked
at the previous three worked examples then it is recommended that you do so. Also it
is your own best interest to carry out the following procedures properly and not just
skip from page to page!
Process Description
The reactions which describe this process are
The ratios of the three organic products is determined by the ratio of chlorine to fresh
monochloromethane feed. This is set as a ratio for a given production programme and
is not adjusted by online feedback control.
The adsorption column C101 uses CTC already present in the process as a solvent to
remove the heavier organics from the reactor offgas.
The reactor, absorption column and recycle condenser operate at 5 bara. The rest of
the process is at ambient pressure.
As before we will look at the whole process without control before going back to
basics and starting from the input/output stage.
Input-Output Structure
The figure below shows the input-output structure for this process. At this stage it is
difficult to give a number of options to choose between but if you are in any doubt
as to where this stucture came from then please activate the link below for further
information.
Further Explanation
Figure 2 - Input/Output Structure Without Control
Now it is necessary to add control to this structure. As with the first two examples we
have to decide whether to control the feed or product rates.
In the process description it is mentioned that the ratios of the three organic products
is determined by the ratio of chlorine to fresh monochloromethane feed. Thus it would
seem sensible to set this ratio using a controller.
The next issue is concerned with the four product streams. What control is required
for them? A short discussion is included on this subject but before looking at the
answers please read through the following points.
At this stage, however, we have not been given enough information about the
interactions between the streams shown so we do not know where the control valves
should go.
There is no point in putting flow controllers on any of the streams. It would have been
a different matter if we had been required to produce a certain amount of products.
But in this case that was not mentioned as one of the strategic aims. In fact, by
including complete control loops at this stage, we will severely limit the number of
choices at subsequent stages.
At this early stage in the design, inventory is not an issue. It is best left until all other
decisions have been taken. An important point which should be restated here is that
only one stream can be used for inventory purposes. Not enough information has been
given so far to enable any decision on inventory to be made, thus no inventory should
be added at this point.
3.3.5 Exercise 2: Control of Distillation Column
Develop control schemes for distillation systems where the following quantities are to
be regulated, in addition to column pressure.
Go to Answers
This control scheme is straightforward. First put a flow controller on the feed. Since it
is high purity overheads the composition is regulated by adjusting the distillate rate.
This is achieved with temperature in the top half of the column but some distance
down as an inner loop cascaded with an analyser. Bottoms temperature is controlled
with the steam rate. Finally the inventory loops - reflux drum level controlled by the
reflux rate and the reboiler level on the bottoms rate.
Distillate rate, distillate composition, bottoms composition
Distillate rate is set by flow control so reflux must be used for drum level. Overheads
composition can be regulated by boilup rate which is quite satisfactory because of the
low vapour inventory in the column. But how to do bottoms composition? This could
be done on bottoms flow, but reboiler level would then have to be by feed adjustment.
Unfortunately this has a long series of hydraulic delays from tray to tray. It might be
better to do reboiler level with bottoms and bottoms composition by feed, although
this is an unusual scheme!
Both product rates by flow control. The level in the reflux drum can be controlled by
the reflux rate. The bottoms composition is controlled by the reboiler steam rate. This
leaves the level in the reboiler either floating or unsatisfactorily controlled by the feed
rate.
Bottoms rate, distillate composition, bottoms composition
The objective of this exercise is to devise suitable control schemes for the refinery
heat exchange systems shown below. It is required to regulate all product stream
temperatures and that of the desalter drum, which is an adiabatic reactor.
Question 1
In this example the temperatures of streams h1, h3 and h7 can be controlled in this
way. These all have utility streams to be used as the final stage in the control
procedure.
For the other process streams there is one heat exchanger used each time which has
another process stream as the cold medium. It is not possible to change the flowrate of
these streams so some bypass arrangement must be provided to manipulate the heat
load.
Shown in the diagram below is a simple answer to the problem. Bypass systems could
well be more sophisticated than the single valve arrangement shown. They could
involve flow measurement and ratio adjustment to minimise flow disturbances,
although such a system would incur a capital cost and reliability penalty.
The next decision, therefore, is which stream do we bypass? The choice, obviously, is
between the cold stream or hot stream. The answer, shown below, is the hot stream as
this will have a more direct effect. Also this does not interact with the cold stream
which in turn affects a number of other exchangers.
The next piece of equipment to consider is the desalter. Remember that this is a
reactor so there is no way of bypassing the whole thing. The only alternative is to
bypass the previous heat exchanger as shown below. The disadvantage of this is that it
disrupts the flow of cold fluid through the exchanger and hence affects the
temperature of stream h1. This can be compensated for by the cold utility as described
earlier.
The final thing to be discussed here is the output from the furnace. The usual way to
control this is via the flowrate of fuel as shown below.
Figure 3 - HENS 1 with Control
Question 2
Answer
Example 2 is rather more complicated although the same principles apply. As can be
seen the heat exchangers have increased in number and are more fully integrated
with rather a lot of stream splitting.
The first thing to note is that once again streams h1, h3 and h7 can be controlled using
the utility streams. For the others we bypass the final heat exchanger in the series each
time. This would seem logical as it is the output temperature from this exchanger that
we are interested in.
Note that once again it is the hot stream that we are bypassing. Also note that the
furnace is being controlled in the same way as before.
The difficulties arise when we consider the desalter. In this example the input stream
has been split into 4, so instead of bypassing 1 heat exchanger we are bypassing 4.
This has an effect on streams h5, h6, h1, h3 and indirectly on h7.
h5 and h6 are affected the most as the heat exchangers in question are the ones which
directly control their temperature. It may be possible to keep the flowrate through
these exchangers constant by using flow controllers on the relevent section of stream
c1. That would leave streams h1, h3 and h7 which are controlled by the more flexible
method of using utility streams.
Introduction
Open Loop Methods
o Controller Parameter Correlations
o Example of Controller Parameter Correlations
o Systems With No Steady State
Closed Loop Methods
o Closed Loop Zeigler Nichols
o Damped Oscillation Method
o Example of Damped Oscillation Method
o Relay Based Tuning Controller
o Example of Relay Based Controller Tuning
Real Controllers
o Compensated Derivative Action
o Anti-Windup Controller
o A Practical Controller Algorithm
References
4.1 Introduction
The simplest model, already discussed, is the Zeigler-Nichols delay plus lag model.
This can be used in either open or closed loop form. The original open loop ZN
parameters have already been described and will not be further discussed here. In
practice the ZN open loop settings are unduly conservative. Higher gains (smaller
proportional band) should be used with most processes.
Closed loop tuning, Zeigler-Nichols style, with full amplitude continuous oscillation,
is not a satisfactory approach for most actual processes! However, it is perfectly
satisfactory for use on a simulated process. Other methods with reduced amplidude
oscillation or with the process under partial control are more suitable for use on-line
and form the basis of a number of self tuning controllers.
Some processes cannot be tuned directly by open loop methods because they do not
have a stable steady state. Such systems are said to be open loop unstable. A simple
example of this is level control where in the absence of some sort of feedback, a
vessel will either run dry or overfill. A rather different approach is required for such
loops.
The notes below describe tuning methods for single loops. For tuning multiloop
systems each loop should be tuned separately, with all other loops disconnected, i.e.
without control. In general, tunings obtained this way will have to be modified to
allow for loop interactions, see multiloop control systems.
Described below are a number of open loop tuning methods. First a couple of
correlations are shown based on the ZN open loop response. Then a method for tuning
systems with no steady state is described.
A number of alternative models to the delay plus lag have been proposed for both
open and closed loop tuning, e.g. delay plus two lags, three lags, etc. Howver, the
Zeigler-Nichols model is in fact perfectly satisfactory, but better controller parameters
may be derived for it.
For a model system with delay time Td and first order lag T1, the fractional dead
time Tf is defined as:
Tf = Td/(Td + T1)
Settings for PI controllers have been proposed by Lopez ( see ref 2) and Cianconne
and Marlin (see ref 1). Estimates of their values, taken from published graphs, are
given in the table below.
These settings appear to be much more satisfactory than the simple Z-N settings
which are also shown in the table below.
Tf
These settings were obtained by minimising the integral of the absolute value or
square of the error following a disturbance.
Analysis of the open loop response of a first order process gives the following
parameters:
Delay time = 5
Time Constant = 20
Gain = 3.5
Hence evaluate the fractional dead time and from this the controller parameters using
the three correlations in the table above.
These are best tuned using a closed loop procedure. If a step change is used in open
loop, then the equivalent time delay is easily identified. However, at the end of the
time delay period the process output will rise (or fall) continuously until some
physical limit is reached.
The average rate of change during this time, normalised by dividing by the size of the
input step, may be taken as the reciprocal of an equivalent first order timeconstant and
used to estimate parameters using Z-N or either of the above methods.
A difficulty arises is determining the steady state gain of this kind of process, since it
has no steady state. In fact the time constant as calculated above already includes a
sensitivity which is somewhat equivalent to process gain.
Now we will move on to show a couple of closed loop methods. First the basic
Zeigler Nichols method and then a simple closed loop tuning procedure with damped
oscillation.
The classic closed-loop Zeigler Nichols tuning procedure is to advance the gain of
proportional only controller until the process is oscillating continuously at a constant
amplitude.
The gain required to achieve this (the ultimate gain, ) and the period of oscillation
(the critical period, Pu) provide parameters from which controller settings are derived
as shown below.
P /2 - -
PI /2.2 Pu/1.2 -
Note that it is not necessary here to estimate the steady state process gain as the
controller gain, or proportional band, settings are exressed in terms of that actually set
on the controller to make the plant oscillate.
Allowing a real process to oscillate between anything but rather tight limits is clearly
not likely to be acceptable except for control loops which are noncritical. Two
alternatives are therefore used.
The first of these is similar in principle to fitting an open loop model to a delay plus
lag, except that it is mathematically a bit more complicated. A simplified approach is
discussed below.
Obtain a controller setting which keeps the process within acceptable limits. Use only
proportional action. Note the gain setting on the controller, .
Disturb the process with a step change. This is most conveniently done by changing
the controller setpoint. The behaviour of the process will be similar to the figure.
Damped response of process under non-optimal proportional control
The process is oscillating rather less than it would if the controller gain were . It is
also oscillating rather more slowly, since increasing the gain of a controller speeds up
the response of the process to which it is attached.
The period of oscillation, Pd, e.g. the time between successive peaks or troughs, will
thus be slightly greater than Pu, but not much. Hence we can say that typically:
We can estimate the increase in gain required to cause the system to oscillate
continuously if we know the amount which the oscillation decays between half cycles.
This would be the ratio between the amplitude of e.g. the first peak and that of the
trough which follows it. This is not so easy to estimate, as the zero point of the
sinusoidal respose may not be obvious. Instead take the ratios of peak-to-trough and
following trough-to-peak distances. The gain would need to be increased in proportion
to this ratio to cause steady oscillation.
In the response shown above the proportional controller had a gain of 1.5.
However, restricting the size of change which the controller can produce will restrict
the amplitude of the oscillations. These can thus be small enough not to upset the
process, or its operators!
This controller has a parameter deadzone, which defines the minimum change in the
measured variable required to produce a change in output. The other parameter
defines the size of the output of the controller. This is set to be + output/2 when the
controller is on and - output/2 when it is off.
The size of output can be quite small, although it must be enough to swing the
measured variable across the range of the deadzone. This latter must be larger than
any noise in the process.
This controller will oscillate at a period equal to Pu. (Actually if the output is too close
to the value required to swing the measurement across the whole deadzone, the period
will be slightly longer. It should be enough to cover 4 or 5 times the deadzone.)
= (4 * output) / ( * a)
Delay time = 5
Time constant = 20
Gain = 3.5
Other information required by the program is a value for the controller deadzone =
0.01.
Now let us run the experiment with the output of the controller restricted to 4. This
gives the following response.
From this response we can determine the value of a, the observed amplitude of the
oscillations and the period of oscillation.
a = 3.1
Pu = 19
and hence evaluate the ultimate gain and the tuning parameters.
Now let's try the same process again this time restricting the controller output to 10.
From this response we can determine the value of a, the observed amplitude of the
oscillations and the period of oscillation.
a = 7.75
Pu = 19
and hence evaluate the ultimate gain and the tuning parameters.
As you can see the two examples give the same values for the tuning parameters. How
well do these values actually control the process at a setpoint of 0.5?
This approach can form the basis of a self tuning controller which is switched into on-
off or relay mode to determine Pu and and hence tuning parameters which then get
set into the controller.
Real controllers differ from the ideal ones used in most exercises in several ways:
Their inputs and outputs are dimensionless (0-100%, 4-20mA, +/- 5V ...)
although measurements are normally displayed in the control room in
appropriate units.
They work with proportional band rather than gain.
Derivative action is not implemented as a true derivative.
Limits are put on the amount of integral action applied by the controller.
True derivative action is neither possible nor desirable. If a true derivative controller
saw a step change in a measurement it would have to produce an infinite output. Thus
a small but sharp noisespike, very common on practical electrical measurements,
could produce a very large, sudden and spurious, change in a process adjustment. this
is obviously highly undesirable, and so the derivative term on any controller must be
modified to prevent this happening.
All real controllers use what is called compensated rate action. This introduces
another parameter which is used to damp the derivative action to minimise the effect
of noise spikes.
We require:
Let:
This corresponds to a form of filtering of the derivative term which prevents it goint
to infinity in the presence of a step disturbance.
Consider what will happen if for any reason an error persists in a controller
measurement. A simple integral action integrator would just keep on building up to a
larger and larger value. If later the measurement error is removed, the integral is still
there and will take about as long as the original error persisted before it unwinds back
to a sensible value.
To prevent this happening. the size of the integral has to be limited. Either an arbitrary
maximum may be set, or else integration may be turned off in certain circumstances.
These would typicaly be when eithet the measurement or controller output reach the
limit of their ranges.
4.5 References
5.1 Introduction
The basis of this approach to model building is that the equations which constitute a
model are not arbitrary mathematical entities, but have a consistent physical basis.
There are certain types of equation which describe different aspects of a model. A
knowledge of this helps to ensure that all equations are written down.
Another point is that the set of model equations should be written without regard to
how they might be solved. A confusing feature of some of the classical textbooks in
chemical engineering is that the author, who knows the answer he wants to reach,
slips steps in the solution process in amongst the construction of the model. The way
to avoid confusion is to write all the equations down without attempting to perform
any algebraic manipulation or simplification.
This section might therefore be subtitled: How to avoid algebra. The final models
may be less elegant than those in some text books, but the computer will have no
difficulty in solving them.
5.2 Procedure
The procedure which should be used to construct these models will now be
introduced using a simple example of the flow into a tank.
5.2.1 Example 1: Flow into a Tank
This is the first thing to do in attempting to model any system. Write down,
conveniently on the diagram, but also separately with definitions, units etc., all the
quantities which you can identify, assigning each an appropriate symbol. These helps
to ensure that you identify and understand all the variables in the problem. Also
identify any quantities which you expect to know or be able to choose, such as
dimensions, physical properties or known feeds.
The figure below shows a tank whose outflow, through a pipe in the base of the tank,
depends on the level in the tank. Two feeds are shown, but these are assumed to be of
the same material.
Known quantities:
F1, F2 - known mass flow rates (e.g. kg/s) into the tank
A - tank cross section area, m2
- fluid density, kg/m3
Unknowns:
M - mass holdup (e.g. kg) in the tank at any instant in time
L - mass flowrate out of the tank
h - level (e.g. m) in the tank
Other variables will be found to be necessary as we proceed with building the model.
These can just be added to the list.
Balance equations are the most fundamental type of equation, and have the
advantage that we know exactly how many there must be in any problem. About
every element which we model, there will be one material balance for each chemical
species of interest present, and, if temperature effects are being modelled, one energy
balance.
In this case we have one species and no temperature effects. We are modelling a
single element, namely a tank, and so there is one balance equation.
This is an unsteady state or dynamic (i.e. time varying) system, so the balance
equations are ordinary differential equations.
These must have the form:
The flowrates on the r.h.s. of the material balances are typically determined by rate
equations which relate them to some driving force or potential variables. Here for
example:
This says that the outflow rate depends on the pressure P at the base of the tank, the
downstream pressure Pa and a discharge coefficient.
There must be a rate equation for every unknown material or energy flowrate which
appears in a balance equation.
In the above equation there are some new variables to add to the list. Cd and Pa are
typically known quantities. P is an additional unknown. It is an intensive quantity in
the thermodynamic sense and physically represents a driving force which can cause an
extensive quantity, e.g. mass, to flow. Other driving force variables are temperature
(heat) and concentration (flow or reaction of a chemical species).
In this context we give this name to the class of equations which relate intensive
thermodynamic quantities to each other and to extensive quantities. A classic equation
of state (e.o.s.) is the ideal gas equation, which does not however apply here. It relates
intensive temperature and pressure and extensive molar amount.
We look here for an e.o.s. which relates the intensive potential variable P introduced
above to extensive an holdup variable, or more generally, a relationship amongst
several such variables.
Equations of state are sometimes not entirely obvious to identify, and they sometimes,
as here, introduce further variables. Their general form is:
If h and had not been identified as variables of interest we might have here gone
straight to a single e.o.s., namely:
If the model has been correctly formulated then there will be the same number of
equations and unknowns.
There are 4 equations above. The unknowns in summary are M, h, L, P. Hence the
model appears to be correct.
Summary
Balance
Rate
EOS
Extensive holdups
Extensive rates
Intensive potentials
The balance equations involve holdups and rates, the rate equations rates and
potentials, and the e.o.s. potentials and holdups. This establishes a circular
relationship as shown in the figure.
is carried out isothermally in a tank which is initially filled with B, and to which A is
gradually added as the reaction proceeds. When the reaction is sufficiently
complete, the product is run off. The feed rate fA kmol/hr of A is a known function
of time. The emptying process is not to be modelled.
Balance Equations
There is one for each component. These will be written in molar quantities.
Here the m are the mass in the tank in kmol and R is the rate of reaction in kmol/hr.
Rate equation
At this stage we have to define the rate R:
R = k CA CB V
There are thus, so far, 4 equations in 7 unknowns: mA, mB, mC, R, CA, CB and V
Equations of State
At least 3 further equations are required. It is clear that the concentrations and
molar holdups are related, so that:
It is less obvious that an equation can be written for V in terms of the molar densities
of the species, which are assumed to be known:
As before the first thing to do is to draw a diagram of the process as shown below.
Known Quantities : M, Tc, Ts, W, S
The objective of the exercise is to obtain equations so that all the above quantities can
be calculated.
Balance Equations
The material balance can be written formally as:
(It is, however, intended that the amount M of water in the tank shall be constant,
i.e.:
So in this case the material balance reduces to an algebraic equation from which the
required cold water feed rate C kg/s can be determined.
C=W-S
This does not affect the model building process, although it will affect any solution
method.)
Here H, in Joules, is the energy holdup in the vessel and the q are energy flowrates
(e.g. in W) associated with the various water and steam streams.
Rate Equations
These are somewhat different fron their classical form, but the following can be
thought of as defining each of the three q variables above.
Cp is taken as an average heat capacity, as a known constant latent heat and the
implied enthalpy reference temperature is zero on the temperature scale used.
Equations of state
Since it is not always immediately obvious what e.o.s. are required, it is useful at this
point to count up the equations and unknowns so far identified as a guide to the
number of equations of state required. Note that this will indicate
the minimum number of equations required, since when these are written it may be
found that they introduce further unknowns.
The temperature in the tank, T, is related to the total enthalphy by the equation of
state:
H = M Cp T
Introduction
Analysis of Interaction
Definition of the Relative Gain Array
Calculation of the Gain Matrix
Calculation of the Relative Gain Array
Interpreting the Results
Alternative Method for 2X2 Systems
Strategies for Reducing Loop Interaction
Tuning Multiloop Controllers
Exercises
o Exercise 1: Mechanistic Modelling
o Exercise 2: Relative Gain Arrays
Laboratory Session
There are a number of experiments in the Virtual Control Laboratory which are
linked to this part of the course.
9 Appendices
9.1 Hot Water Tank Experiment
9.1.1 Aims
The aims of this experiment are
9.1.2 Theory
There are two theory sections associated with this experiment:
If the actual temperature is too cold then the heater is turned on.
If the actual temperature is too hot then the heater is turned off.
If this procedure is used then it would lead to the situation where the heater was
switched on/off as soon as the water was either too hot or too cold. The result would
be reasonably tight control around the setpoint but the heater would be switched on
and off rapidly. This is unsatisfactory as the switch is sure to wear out.
One way to get round this disadvantage is to build hystersis into the control
algorithm i.e. a deviation from the setpoint known as the dead zone.
Thus the operation of the control system now has the following steps.
If the actual temperature is below the sepoint by a specified amount then the heater
is turned on.
If the actual temperature is above the setpoint by a specified amount then the heater
is turned off.
Below are a number of pre-experimental questions. Please think about the answers
while you are running the experiment. The answers will be given after the simulation has
been run.
9.1.5 Procedure
Before the experiment is run, it is necessary to give some information about the system:
To carry out the experiment simply choose appropriate values for the hot water demand
rate and the dead zone for the controller and click on Run Experiment. This is done by
clicking on the button using the mouse and dragging the cursor to the desired value.
The computer then takes these values, runs a program and produces the results. These
come in the form of a graph showing
The measured temperature
The setpoint temperature
An indication of when the heater is on
It is possible to run the experiment any number of times. Please try different hot water
demand rates e.g. flows of 0.5 and 1.5 kg/s and different precision of control e.g.
dead zones of 1.0 and 20 %.
9.1.6 Answers
Click here for the answers
As the flowrate through the system changes, the rate at which the water changes
temperature is affected.
When the flowrate is small (0.5kg/s) the water cools down at a slower rate. This means
that the heater does not have to be switched on as much.
However when the flowrate is large (1.5kg/s) the water cools down quicker due to the
increased flow of cold water entering the tank.
Note that with the higher flowrate more power is required to heat the tank (the heater is
on for longer) and so this leads to more oscillations in the heat input.
The deadtime of the controller determines the accuracy of the temperature of the water.
For example when the deadtime is 5% the temperature will oscillate between 38 C and
44 C. Likewise for 20% the temperature will oscillate between 32 C and 44 C.
Notice that with on/off control it is impossible to have a deadtime of 0%. There has to
be some offset between the setpoint and measured variable.
Finally with 1% the temperature is controlled between 39.5% and 40.5% although there
is some overshoot due to the amount of power added.
The disadvantage in using on/off control is the oscillation around the setpoint. Although
on/off control is very simple to implement there will always be this oscillation.
Therefore there has to be a trade off between the accuracy required by the controller
(how important is it to be exactly at the setpoint) and the amount of wear and tear on
the valve.
Can you think of any situations where on/off control could be used and others
where it definately can't?
The main situation where on/off control is used is in a domestic heating system. The
boiler is switched on when the water is too cold and off when the water is too hot. This
works well since it is not important for the temperature to be exact.
One area where on off control will not work is with controlling flowrate. It is not a good
idea to have a flowrate oscillating between fully on and fully off!!
9.1.7 Summary
In summary therefore, this is the simplest and most commonly experienced type of
control, although not the most commonly used in chemical processes. Advantage of this
type is that it is inexpensive and extremely simple. The disadvantage lies mainly in the
oscillatory nature of the control with oscillations becoming more rapid as precision is
increased. Therefore this type of control is suitable only for those applications where it
can be used alone and close control is not essential. It is also applicable only to systems
which have a significant capacity as will be seen in a later example.