PEGPEC03
PEGPEC03
CONTENTS
SECTION SUBJECT
1. PURPOSE
2. SCOPE
3. REFERENCES
4. GUIDELINES
4.1 Introduction
4.2 Tight Level Control
4.3 Averaging Level Control
4.4 On-Off Control
4.5 Level-Flow Cascade Control
4.6 Feedforward Control
4.7 Dynamic Compensation
4.8 Two and Three Element Control
ATTACHMENTS
1. PURPOSE
The aim of this guideline is to discuss the various principles of level control
and to use this as a basis for the design and implementation of level control
systems.
2. SCOPE
This guideline looks at the principal aspects of level control that can
influence the specification of level control systems. The objective of level
control differs from the control of other parameters such as temperature,
flow or pressure in that stability of the manipulated variable is often more
important than the absolute level. This guideline does not cover the
mathematics of controller equations, which are covered in Reference 1. A
useful glossary of control system terminology appears in Reference 2.
3. REFERENCES
4. GUIDELINES
4.1 Introduction
There are two main types of level control which are tuned for different
objectives:
• Tight level control is used where the actual level is important and must be
• Averaging level control is used for situations where downstream flow rate
stability is more important than actual level in the vessel. The level is
allowed to fluctuate within limits and hence maximise use of the vessel
surge capacity to improve flow rate stability.
Derivative action is rarely used in level controllers due to the normally noisy
measurement signal. The effect of noise must also be accounted for in
tuning proportional (P) and proportional-plus-integral (PI) level controllers to
avoid exceeding the high liquid level in a vessel.
Noise can be overcome by the use of filters which are normally dynamic (1st
order exponential) but have the disadvantage of slowing down the control
loop response. A non-linear control algorithm (e.g. error squared algorithm)
may also act as an efficient noise filter.
This guideline outlines several techniques for solving level control problems.
Tight level control is used when the level in a vessel must be maintained
close to its setpoint at all times. This is the case in a boiler steam drum,
compressor KO drum, or where a constant level is critical. Proportional or
proportional-plus-integral action may be used for tight level control but
derivative action is not recommended. Note that it is important to check that
the controller is tuned aggressively enough so that expected load changes do
not drain or overflow the vessel.
The disadvantage with proportional only level controllers is that they will
always operate with an offset from setpoint, which can take up valuable
vessel surge capacity.
To tune a proportional level controller, the maximum gain that can be used
without causing oscillation is calculated as:
h. A
K max =
F .t
where:
Note that the maximum controller scan interval must be not greater than
30% of the system time constant, T:
A.h.d
T=
100. f
where:
K = 0.8 K max
A.h
Ti =
F
where:
K = 0.8K min
A.h.d
Ti =
12.5 f
where:
100 f
K min =
d .F
= the gain which will allow the level to just reach the
nearest alarm limit (Use only for Proportional control)
All other terms are as defined in 4.2.1. The derivation of the term Kmin is
given in Attachment 2.
The most common algorithm developed specifically for level control is the
error squared algorithm and this has the advantage of accommodating both
large and small process upsets. The error-squared algorithm is similar to a
PID algorithm but the error term is replaced by the square of the error
(retaining the sign of the error). The controller makes small changes when
the level is close to its setpoint, but will make exponentially increasing
changes as the error increases. The valve position affected by a given
change in level is least sensitive at the midrange. Integral action must be
added to the controller, otherwise the desirable flat portion of the curve
would correspond with the actual valve position only when the valve is 50%
open. This algorithm has the added advantage of the ability to cope with
noise.
Volume based non-linear level controllers have been configured for certain
applications (e.g. LNG plants) to eliminate downstream flow deviations. The
imbalance between inlet and outlet flows is calculated and the outlet flow is
adjusted so that the two flows will be in balance by the time the level
reaches a limit. The flow is then adjusted to return the liquid level to its
setpoint within a given Ahorizon@ time. If a major plant upset occurs and the
vessel level is forced outside its normal surge limits then the algorithm makes
a more drastic change in outlet flow to return the liquid level to within the
surge limit. A typical volume based algorithm is given in Attachment 3. This
type of level control can be used successfully in systems such as gas-oil
separators, where slugs of liquid can occur travelling through the system.
Level
Output
This type of controller has the disadvantage that the control valve (or pump)
is frequently opening and closing, causing mechanical wear.
On-off control may also be implemented through logic rather than a PID
controller with a large gain. In this case the valve or pump switching occurs
at high and low levels. This type of control is most often used where there is
insufficient liquid to merit continuous removal, e.g. KO drums and drain
sumps.
In many instances the liquid outlet from a vessel is the feed to a downstream
unit or piece of equipment. With direct control the level controller output
directly manipulates the outlet control valve. However if there are changes in
pressure at either the source or destination, or changes in the system
pressure drop between the source and destination, then flow through the
valve will change. Eventually this will manifest itself as a change in level and
the controller will take action to restore the level. This can result in an
unsteady flow out of the vessel. By replacing the direct control with a level-
flow cascade, the flow controller rejects any disturbances affecting the flow
rate, resulting in more stable flow out of the vessel and improved level
control. Level-flow cascade is strongly recommended wherever the
destination unit/equipment is sensitive to feed rate changes, e.g. distillation
columns and reactors.
Steam
FI
LIC
Feed Water
PID controllers are designed on the basis that the process they are controlling
is linear with first order characteristics. If the actual process characteristics
deviate from this assumption significantly then control is likely to be poor. To
overcome this dynamic compensation can be used to account for
characteristics such as inverse response and deadtime.
Steam
FI
PI
LIC
LT
Feed Water
Dynamic compensation is rarely used on its own and often involves the
addition of a deadtime lead/lag compensation algorithm.
Steam
FI
LIC
FIC
Feed Water
∆mn = K .en
where:
For a given change in inlet flow of f, then the error after one scan interval is
given by:
f .t
en =
h. A
where:
t = scan interval
h = height between level tappings
A = vessel cross-sectional area
To make the change in outlet flow equal to the change in inlet flow in one
scan interval:
f
∆mn =
F
where:
∆mn f h. A
K max = = .
en F f .t
h. A
=
F .t
∆m = mn − mn −1 = K .(en − en −1 )
where:
If the level is allowed to just reach the nearest alarm limit, then:
where:
For a given change in inlet flow of f, then if outlet flow is changed by the
same amount when the level reaches the alarm setting:
f
malarm − minitial =
F
where:
einitial = 0
d
ealarm =
100
where:
range
Hence:
malarm − minitial
K min =
ealarm
100 f
=
d .F
F i
SP
LIC FIC
Lower surge limit
V L
At any time t the imbalance between inlet and outlet flows can be calculated
by:
(Vt − Vt −1 )
I=
t
where:
2.(VH − Vt )
N=
I .t
If the upper volume limit is not to be exceeded, then after N scans the
increase in outlet flow, F, must be equal to the imbalance, I. Using a simple
average the incremental change in outlet flow, ∆F, on each scan is given by:
I
∆F =
int ( N + 1)
Once the inlet and outlet flows are in balance, the controller should return
the level to setpoint in a specified horizon time. The incremental change in
3.(Vs − Vt )
0.96 2.I −
th
∆Fbal =
( N h 2)
where:
Vs = setpoint volume
th = horizon time
Nh = number of scans until horizon time
On a major plant upset (large rate of change of flow into the vessel) a shorter
upset horizon is used, and the change in outlet flow, ∆Fupset, is calculated
from:
3.(Vs − Vt )
0.962.I −
tu
∆Fupset =
(N u 2)
where: