You are on page 1of 23

eHANDBOOK

Level
Measurement
Spring 2019
www.controlglobal.com

TABLE OF CONTENTS
When is reducing variability wrong?  4
Level may vary the most when process and product variation are minimized.

Solutions to prevent harmful feedforwards  8


How to correct issues in boiler, distillation column and neutralization control.

Understanding P, I and D  12
The simple mathematics can be clarified with mechanical analogies and
an example of level control.

Is global warming like level control?  20


Comparing the processes sheds light on the problem of regulating Earth’s temperature.

AD INDEX
Endress+Hauser • http://www.us.endress.com  11
Krohne • http://us.krohne.com/radar  3
Vega • http://www.vega.com/radar  7

eHandbook: Level Measurement, Spring 2019 2


gal
ft

cf t

fact
bbl

Safe and accurate level measurement


in chemical and petrochemical applications
OPTIWAVE series –
technology driven by KROHNE
• New 24 and 80 GHz FMCW radar level transmitters for liquids,
pastes and solids in process and storage applications
• Over 28 years of experience with FMCW radar technology:
from basic applications to agitated and corrosive liquids
in narrow tanks with internal obstructions
• Measures media with dielectrics ≥1.4, process conditions
up to +200 °C / +392 °F and 100 barg/ 1450 psig

products solutions services

More facts about our new radar portfolio: us.krohne.com/radar


www.controlglobal.com

When is reducing
variability wrong?
Level may vary the most when product and process variation are minimized.
by Greg McMillan

H
aving the blind wholesale goal of downstream users. This objective has a
reducing variability can lead to positive name of absorption of variability.
doing the wrong thing that can What this is really indicative of is the prin-
reduce plant safety and performance. Here ciple that control loops don’t make vari-
we look at some common mistakes made ability disappear, but transfer variability
that users may not realize until they have from a controlled variable to a manipulated
better concepts of what is really going on. variable. Process engineers often have a
We seek to provide some insightful knowl- problem with this concept because they
edge here to keep you out of trouble. think of setting flows per a Process Flow
Diagram (PFD) and are reluctant to let a
Is a smoother data historian plot or a statis- controller freely move them per some al-
tical analysis showing less short-term vari- gorithm they don’t fully understand. This is
ability good or bad? The answer is no for seen in predetermined sequential additions
the following situations, misleading users of feeds or heating and cooling in a batch
and data analytics. operation rather allowing a concentration or
temperature controller do what is needed
First of all, the most obvious case is surge via fed-batch control. No matter how smart
tank level control. Here we want to maxi- a process engineer is, not all of the situa-
mize the variation in level to minimize the tions, unknowns and disturbances can be
variation in manipulated flow, typically to accounted for continuously. This is why fed-

eHandbook: Level Measurement, Spring 2019 4


www.controlglobal.com

We need to teach chemical and biochemical

engineers process control fundamentals,

including the transfer of variability.

batch control is called semi-continuous. I variables to indicate what is happening.


have seen where process engineers, believe For tight control and infrequent setpoint
or not, sequence air flows and reagent flows changes to a process controller, what is
to a batch bioreactor rather than going to really happening is seen in the manipulated
Dissolved Oxygen or pH control. We need variable (e.g., analog output).
to teach chemical and biochemical engi-
neers process control fundamentals, includ- A frequent problem is data compression in
ing the transfer of variability. a data historian that conceals what is really
going on. Hopefully, this is only affecting
The variability of a controlled variable is the trend displays and not the actual vari-
minimized by maximizing the transfer of ables being used by a controller.
variability to the manipulated variable. Un-
necessary sharp movements of the ma- The next most common problem has been
nipulated variability can be prevented by extensively discussed by me, so at this point
a setpoint rate of change limit on analog you may want to move on to more pressing
output blocks for valve positioners or VFDs, needs. This problem is the excessive use of
or directly on other secondary controllers signal filters that may even be more insidi-
(e.g., flow or coolant temperature), and the ous because the controller doesn’t see a de-
use of external-reset feedback (e.g., dy- veloping problem as quickly. A signal filter
namic reset limit) with fast feedback of the that is less than the largest time constant in
actual manipulated variable (e.g., position, the loop (hopefully in the process) creates
speed, flow or coolant temperature). There dead time. If the signal filter becomes the
is no need to re-tune the primary process largest time constant in the loop, the previ-
variable controller by the use of external- ously largest time constant creates dead
reset feedback. time. Since the controller tuning based on
largest time constant has no idea where
Data analytics programs need to use ma- it is, the controller gain can be increased,
nipulated variables in addition to controlled which, combined with the smoother trends,

eHandbook: Level Measurement, Spring 2019 5


www.controlglobal.com

can lead one to believe the large filter was For gas pressure control, any measure-
beneficial. The key here is a noticeable in- ment filter, including that due to transmitter
crease in the oscillation period, particularly damping, generally needs to be less than
if the reset time was not increased. Signal 0.2 sec, particularly if volume boosters on
filters become increasingly detrimental as valve positioner output(s) or a variable-
the process loses self-regulation. Integrat- frequency drive is needed for a faster
ing processes such as level, gas pressure response.
and batch temperature are particularly
sensitive. Extremely dangerous is the use of Practitioners experienced in doing Model
a large filter on the temperature measure- Predictive Control (MPC) want data com-
ment for a highly exothermic reaction. If the pression and signal filters to be completely
PID gain window (ratio of maximum to mini- removed so that the noise can be seen and
mum PID gain) reduces due to measure- a better identification of process dynamics,
ment lag to the point of not being able to especially dead time, is possible.
withstand nonlinearities (e.g., ratio less than
6), there is a significant safety risk. Virtual plants can show how fast the ac-
tual process variables should be changing,
A slow thermowell response, often due to revealing poor analyzer or sensor resolution
a sensor that is loose or not touching the and response time, and excessive filtering.
bottom of the thermowell, causes the same In general, you want measurement lags to
problem as a signal filter. An electrode that total up to less than 10% of the total loop
is old or coated can have a time constant dead time, or less than 5% of reset time.
that is orders of magnitude larger (e.g., 300 However, you can’t get a good idea of the
sec) than a clean, new pH electrode. If the loop dead time unless you remove the
velocity is slightly low (e.g., less than 5 fps), filter and look for the time it takes to see a
pH electrodes become more likely to foul change in the right direction, beyond noise,
and if the velocity is very low (e.g., less than after a controller setpoint or output change.
0.5 fps), the electrode time constant can
increase by one order of magnitude (e.g., For more on the deception caused by a
30 sec) compared to an electrode seeing measurement time constant, see the Con-
recommended velocity. If the thermowell trol Talk Blog, “Measurement Attenuation
or electrode is being hidden by a baffle, the and Deception.”
response is smoother but not representa-
tive of what is actually going on.

eHandbook: Level Measurement, Spring 2019 6


The ultimate for
small tanks!
The future is 80 GHz: a new generation
of radar level sensors

When it comes to contactless level measurement of liquids in


small containers, smaller is better. With the smallest antenna of
its kind, VEGAPULS 64 is simply the greatest! With its excellent
focusing and insensitivity to condensation or buildup, this new
radar sensor is truly exceptional. Simply world-class!

www.vega.com/radar

Wireless adjustment via Bluetooth with


smartphone, tablet or PC. Compatible retrofit to
all plics® sensors manufactured since 2002.
www.controlglobal.com

Solutions to prevent
harmful feedforwards
How to correct issues in boiler, distillation column and neutralization control.
by Greg McMillan

H
ere we look at applications where minus the correction path deadtime. The
feedforward can do more harm FF lead time is set equal to the correction
than good, and what to do to path lag time. The FF lag time is set equal
prevent this situation. This problem is to the load path lag time. If the FF arrives
more common than one might think. In the too soon, we create inverse response,
literature, we mostly hear how beneficial and if the FF arrives too late, we create
feedforward can be for measured load a second disturbance. Setting up tuning
disturbances. Statements are made that software to identify and compute the FF
the limitation is the accuracy of the feed- dynamic can be challenging. Even more
forward and that, consequently, an error of problematic are the following feedforward
2% can still result in a 50:1 improvement in applications that do more harm than good
control. This optimistic view doesn’t take despite dynamic compensation.
into account process, load and valve dy-
namics. The feedforward correction needs 1. Inverse response from the manipulated
to arrive in the process at the same point flow causes excessive reaction in the
and the same time as the load disturbance. opposite direction of load. The inverse
This is traditionally achieved by passing response from a feedwater change can be
the feedforward (FF) through a deadtime so large as to cause a boiler drum high or
block and lead-lag block. The FF dead- low level trip, a situation that particularly
time is set equal to the load path deadtime occurs for undersized drums and miss-

eHandbook: Level Measurement, Spring 2019 8


www.controlglobal.com

The result is a feedforward that arrives too late,

creating a second disturbance and worse control

than if there was no feedforward.

ing feedwater heaters due to misguided air is not sufficiently heated. The inverse
attempts to save on capital costs. The response from the ideal gas law can cause
solution here is to use a traditional three- a pressure trip. An increase in cold air flow
element drum level control, but added to causes a decrease in gas temperature and,
the traditional feedforward is an uncon- consequently, a relatively large decrease
ventional feedforward with the opposite in gas pressure at the furnace pressure
sign that is decayed out over the period of sensor. A decrease in cold air flow causes
the inverse response. In other words, for a an increase in gas temperature and, con-
step increase in steam flow, there would be sequently, a relatively large increase in gas
initially a step decrease in boiler feedwater pressure at the furnace pressure sensor.
feedforward added to the three-element
drum level controller output that is trying 2. Deadtime in the correction path is
to increase feedwater flow. This prevents greater than deadtime in the load path. The
shrink and a low level trip from bubbles result is a feedforward that arrives too late,
collapsing in the downcomers from an creating a second disturbance and worse
increase in cold feedwater. For a step de- control than if there was no feedforward.
crease in steam flow, there would be a step This occurs whenever the correction path
increase in boiler feedwater feedforward is longer than the load path. An example is
added to the three-element drum level a distillation column control when the feed
controller output that is trying to decrease load upset stream is closer to the tempera-
feedwater flow. This prevents swell and ture control tray than the corrective change
a high level trip from bubbles forming in in reflux flow. The solution is to generate the
the downcomers from a decrease in cold feedforward signal for ratio control based
feedwater. A severe problem of inverse re- on a setpoint change that is then delayed
sponse can occur in furnace pressure con- before being used by the feed flow control-
trol when the scale is a few inches of water ler. The delay is equal to the correction path
column and the incoming manipultaed deadtime minus the load path deadtime. The

eHandbook: Level Measurement, Spring 2019 9


www.controlglobal.com

same problem can occur for a reagent injec- a decrease in manipulated flow and there
tion delay that often occurs due to conven- is a coincidental increase in feed flow that
tionally-sized dip tubes and small reagent corresponds to an increase in manipulated
flows. The same solution applies in terms of flow or vice-versa, the feedforward does
using an influent flow controller setpoint for more harm than good. The solution is to
feedforward ratio control of reagent, and compute the required rate of change of
delaying the setpoint used by the influent manipulated flow from the unmeasured
flow controller. disturbance, and add this to the computed
rate of change for the feedforward correc-
3. Feedforward correction makes re- tion needed, paying attention to the signs
sponse from an unmeasured disturbance of the rate of change. If the required rate
worse. This occurs in unit operations of change of manipulated flow for the un-
such as distillation columns and neutral- measured disturbance is in the opposite di-
izers where the unmeasured disturbance rection, the feedforward correction rate of
from a feed composition change is made change in manipulated flow is decreased. If
worse by a feedforward correction based it exceeds the computed feedforward cor-
on feed flow. Often, feed composition is rection rate of change in the manipulated
not measured and is large due to parallel flow, the feedforward rate of change is
unit operations and a combination of flows clamped at zero to prevent making con-
that become the feed flow. For pH, the trol terribly worse. If the required rates of
nonlinearity of titration curves increases change for the manipulated flow are in the
the sensitivity to feed composition. Even if same direction, the magnitude of the feed-
the influent pH is measured, the pH elec- forward rate of change is correspondingly
trode error or uncertainty of the titration increased.
curve makes feedforward correction for
feed pH to do more harm than good for I am trying to see how all this applies in my
setpoints on the steep part of the curve. responses to known and unknown upsets to
If the feed composition change requires my spouse.

eHandbook: Level Measurement, Spring 2019 10


We understand you need insightful process
information to help you run your plant e�ciently.

MEASURED VALUE
+ ADDED VALUE You make confident decisions backed by process data and
a complete portfolio of services and solutions to support you.

Customers around the world trust us when it comes to


process automation. Our shared goal is plant safety, availability
and e�ciency. We are with you every day, everywhere.

People for Process Automation

Do you want to learn more?


www.us.endress.com
www.controlglobal.com

Understanding P, I and D
The simple mathematics can be clarified with mechanical analogies
and an example of level control.
by R. Russell Rhinehart

I
t is important to understand what the trolled variable, CV, is the liquid level in the
proportional, integral and derivative tank, h, and the manipulated variable, MV, is
terms do within the PID controller. That the valve stem position, U. Recognize that
understanding is essential to choose ap- your region or community may use alternate
propriate action, troubleshoot controllers, terminology. The nominal, initial steady state
choose appropriate modifications, or set values are h0 and U0.
up advanced controllers. Unfortunately, the The controller, also shown in Figure 1, is
controller synthesis approach, in which PID a mechanical lever, a proportional-only
magically appears within Laplace Transform controller. If the liquid level rises somewhat,
analysis, does not provide that functional then the float rises the same amount, which
understanding. Hopefully, this more intuitive raises the lever that opens the valve an ad-
development of PID will be helpful. ditional amount by the lever proportional-
Chosen as an example is a commonly un- ity. This releases fluid faster, which seeks
derstood process—level control in a tank of to counter the rising liquid inventory. If the
liquid (Figure 1). The inflow is a wild variable, liquid level falls somewhat, the lever closes
or disturbance, that will upset the level, which the valve proportionally.
is an indication of liquid inventory. The slide The liquid level may rise or fall for any
valve on the outflow will open or close to re- number of reasons. The inflow rate, Fin,
lease more or less fluid to keep the level at may change, the viscosity of the fluid may
the desired setpoint. As notation, the con- change affecting its outflow speed, or the

eHandbook: Level Measurement, Spring 2019 12


www.controlglobal.com

downstream pressure or in-pipe flow restric-


tions may change, affecting Fout. The reason
Fin
for a rise or fall in level is immaterial for the b
controller. This lever action moves the valve ho
in the appropriate direction, and in a manner a
Uo
proportional to the level change.
Fout

PROPORTIONAL ACTION
LEVEL
F CONTROL EXAMPLE
The lever arm length ratio, b/a, is the gain in
b will
Figure 1: Here, inflow is a variable that
of the controller. By changing the relative upset the
ho level gauge float, which acts on
d
lengths of the lever arms, perhaps by chang- the lever arm that controls a the slide valve
on the outflow.
+ eThe controlled
U variable,
Uo Y
ing the position of the fulcrum, the controller YSP C P
CV, is the liquid level in the tank, h, and the
can be more or less aggressive. If the level, h, - Fout
manipulated variable, MV, is the valve stem
starts at a base case of h0, which is also the position, U.
setpoint, hSP, then using simple relations, the
equation for the change in the valve stem po-
sition with respect to level is: d

+ e U Y
YSP C P
∆U = b ∆h = - b (hSP - h) = Kc e (1) +
a a e - Kc U
+
b Uo Fixed bias
Where Kc = - a represents the controller gain
and e = (hSP - h) represents the actuating er- LEVEL CONTROL BLOCK DIAGRAM
ror, the deviation of the CV from its setpoint. Figure 2: A block diagram of the control
scheme in Figure 1 shows the information
Since ∆U = U - U0 , then the equation rep-
transfer between controller and process,
resenting the lever-type control is: not +The block labeled C
e material exchange.
Kc U
is the controller, which represents
+ the lever,
but could be a calculator that executes Turnbuckle
U = U0 + Kc e (2) Uo Fixed bias
Equation
Fin (2): it multiplies Kc times e, then
adds it to U0. b
Figure 2 shows a block diagram of a con- ho
trolled process using generic symbols for a
U
the MV, U; the CV, Y; and the disturbance, d. Note that although termed the process
o
out-
Contrasting the illustration of the physical Fout
put, Y, the level of the liquid does not come
process of Figure 1, this represents the path out of the tank. The material liquid goes in Turnbuckle
of cause-and-effect information exchange. or comes
Fin out, and level is a measure of the
b
The controller is shown acting on the actu- inventory response of the in-tank contents.
ho
ating error, e. The block diagram revealsa the information
Uo

eHandbook: Level Measurement,+Springess2019 Fout 13


e Kc U
www.controlglobal.com

transfer between controller and process, not put. These are simple arithmetic operations
material exchange. The lines in Figure 2 are (not calculus or Laplace-transformed magic).
not pipes. The block labeled C is the control-
ler, which represents the lever, but could be Note that It does not matter whether the
a calculator that executes Equation (2). It is controller in Figure 1 is an actual physical
simple arithmetic: the controller multiplies Kc float-and-lever device, or whether it’s a digi-
times e, then adds it to U0. tal calculation of Equation (2) in a computer
that sends the valve stem position target to
Equation (2) seems very much like what is an i/p device to move the valve stem. The
often presented as a proportional control- logic and action are identical.
Fin
ler, U = Kc e. However, if U = Kc e was the b

relation, then if the CV were at the setpoint STEADYho STATE OFFSET


a
(e = 0), the controller would set U = 0, and AND INTEGRAL ACTION
Uo
close the valve, which would make the level P-only control is often good enough, but
Fout
rise, and cause it to deviate from the set- its problem is steady state offset. Consider
point. In Equation (2), the term U0 is the what happens if Fin increases and holds at
controller bias—it’s the value of U for which a new value, when the level is initially at the
the initial MV position is required to hold setpoint. Initially, Fout remains the same be-
d
the CV at setpoint. As illustrated in Figure 1, cause h has not yet changed, and the valve
+ e U Y
this is about 50%. stem
YSP position is at the
C initial U0. Then, Psince
- is greater than the outflow,
the new inflow
The user chooses the controller gain. Nor- level rises. As h rises, this increases U, which
mally, the controller starts in manual mode increases Fout Eventually, Fout will match Fin
(MAN) with the user deciding the MV value, and the level will stop rising, but at this new
then when the CV is at the setpoint, the
user switches the controller to automatic
+
(AUTO) mode. For bumpless transfer, the e Kc U
+
bias is usually set by the controller as the
Uo Fixed bias
MV value when the controller is switched
from MAN to AUTO.
PROPORTIONAL ONLY
Figure 3: A block diagram of the P-only
Figure 3 shows a block diagram of the arith- control calculation of Equation (2) shows the
actuating error is multiplied by the controller
metic operations in the P-only control logic
gain, and then added to the bias to deter-
of Equation (2). The actuating error is multi- mine the controller output. These are simple
arithmetic operations (not calculus or Laplace-Turnbuckle
plied by the controller gain, and then added
transformed
F magic).
in
to the bias to determine the controller out- b
ho
a
eHandbook: Level Measurement, Spring 2019 14
Uo
Uo Fixed bias

www.controlglobal.com

steady state, h is not at the setpoint. It must


Turnbuckle
be above the setpoint for the valve to be
Fin
open enough to let the outflow be higher. b Opposite
threads
ho
This h deviation is steady state offset. a
Uo
It is immaterial whether the disturbance is
Fout
the inflow rate or some other aspect that af-
fects either the inflow or outflow, or wheth-
INTEGRAL IS LIKE A TURNBUCKLE
er the level falls or rises as a response to the Figure 4. Integral action eliminates steady
state offset, like adding a turnbuckle to the
disturbance. If the disturbance persists, the
valve stem. If the buckle is turned in one
process will not settle at the setpoint. e
direction, the stem
Kc
+ is eshortened
ss and the
U
valve opens; if turned
+ in the other direction,
the stem is lengthened and the valve closes,
A method to eliminate steady state offset without a change
1 dt
τ1 ∫ +in the tank level.

+
is to add integral action. But, that calculus
Uo
terminology has little physical meaning, so only needs to be turned a little. In contrast,
to add understanding, consider the injection a large level deviation indicates a large
of a turnbuckle to the valve stem (Figure 4). upset has occurred, which justifies a large
turnbuckle readjustment. And, of course, a
In a turnbuckle, the ends of the rods are level rise or drop
τ s would direct turns in the
p
+
threaded to fit into the threaded holes of ê opposite
Kc direction. Û
+
the buckle. The threads go in opposite 1
τ1s

directions. So, if the buckle is turned in one So, let’s have an observer follow this rule:
direction, the two sections of the valve stem At each sampling, observe the level devia-
are pulled together, the stem is shortened, tion from setpoint, and make an incremental
and the valve opens. If turned in the other change in the turnbuckle angle that’s pro-
direction, the stem is lengthened and the portional to the level deviation. In Equation
valve closes. This permits opening and clos- (3), ∝ represents the thread pitch (axial
ing of the valve without a change in tank distance per angle), β is the proportionality
level. rule to change angle due to level deviation
from setpoint (angle per h deviation), and
If you notice that the liquid level has risen, c=∝β is their product:
you know that some disturbance is acting,
and the buckle needs to be turned to short- ∆U = ∝ ∆θ = ∝ βe = ce (3)
en the stem, to open the valve a bit more
than the original, pre-disturbance position After the most recent sampling, the ith ob-
for the tank level. If the level rises a little bit, servation, control action changes the valve
there is only a small upset, and the buckle stem length from the previous length:

eHandbook: Level Measurement, Spring 2019 15


www.controlglobal.com

Ui = U i - 1 + cei  (4) ess


+
e Kc U
+
The sequence of the past two adjustments is:

Ui = U i-2 + cei + ce i-1  (5)


1

τ1 dt
+

+
Uo
Continuing to include past adjustments
generates an equation that indicates how all STANDARD PI CONTROLLER
Figure 5. A block diagram of the standard
of the adjustments have contributed to the form of the PI controller shows the integral
value (the sum of incremental changes) is
current valve stem length change from the
added to the initial bias to make the control-
initial value, l0: ler bias adjust at each sampling. The notation
indicates the function (inside the box) and
the function argument (the τps box input value).
Ui = U0 + c∑Ni=1 ei  (6) +
ê Kc Û
+
In Equation (6), the number of items in the your understanding. There
1 is no calculus to
t τ1s
sum is N = ∆t , where t is the total time that the doing of control.
the controller has been in AUTO, and ∆t is the
controller sampling interval. Multiplying and A common form of the controller calcula-
dividing the sum by ∆t reveals that the sum tion is to incrementally sum (integrate) the
c
of rectangles (e-height times ∆t-base) is just scaled error, KC e, which means that the ∆t

the rectangle rule of integration, which can be coefficient needs to be divided by KC. Since
tKC
represented by the calculus notation. the term c
only has dimensions of time, τi,
one can represent the PI controller function
U(t) = Ui = U0 + c
∆t
∑ ei ∆t = U0 + c ∫t
∆t o
edt(7) as the block diagram of Figure 5. It shows
the integral value (really, it’s just the sum of
Note that, even though the integral symbol incremental changes) is added to the initial
is used in Equation (7), no calculus proce- bias to make the controller bias adjust at
dure was used by the turnbuckle adjuster. If each sampling. The block diagram nota-
this were to be implemented by a comput- tion indicates the function (inside the box)
er, the Equation (4) adjustment in the valve and the function argument (the box input
stem length is not calculus, but a simple value). But again, don’t be thinking calculus,
algebraic multiplication and addition. Fur- the integral operation is simply an arithme-
ther, in the computer, the subscripts are not tic incremental accumulation.
needed. The assignment statement repre-
senting the Equation (4) action is U: = U + In the standard form, KC is the controller
ce. Don’t let the integral symbol misdirect gain that multiplies both the P and I terms,

eHandbook: Level Measurement, Spring 2019 16


www.controlglobal.com

and the integral time, τi, divides the integral of how e would respond to a change in a
(which is actually calculated by incremental disturbance, ∆d, is:
summation).
de
τd + e = Kd (∆d) = eanticipated (8)
dt
Recall, the purpose of the proportional ac-
tion was to immediately counter the effect The value of eanticipated is the steady, fully de-
of a disturbance, but its problem is that it veloped, anticipated value.
leaves a steady-state offset. The integral
purpose was not to be the primary control Note that if the disturbance could be mea-
action, but to remove the offset left by the sured and the process gain to the distur-
P-action. Accordingly, tune the P first (KC) bance were known, then eanticipated could be
to set the aggressiveness of the controller, calculated from Kd (∆d) = eanticipated. However,
then adjust the I-action (τi ) to remove the those are often unmeasured and unknown.
residual offset at a desirable rate. Fortunately, Equation (8) reveals that one
can estimate the anticipated future error
ANTICIPATED ERROR based on the current actuating error and
AND DERIVATIVE MODE its rate of change, the values of which are
In the description of P-action, the controller already known by the controller.
acts on the initial impact of the disturbance
de
on the CV. However, the initial reveal that a eanticipated = τd + e (9)
dt
disturbance has happened might be a small
CV deviation, but, if allowed to fully develop Equation (9) does not specify what the dis-
over time, it might evolve to a large value. turbance is. The deviation could indicate a
The fully developed CV deviation, not the confluence of several disturbances, includ-
initial indication, represents the magnitude ing the MV. Equation (9) is called a “lead,”
of the disturbance that’s causing the CV which should be familiar. It represents what
to start deviating. With derivative action, a ball thrower must do to have a running
the controller will take proportional action target catch the ball. The ball must be
based on the anticipated error, not just on thrown to where the receiver will be when
the initial reveal of the CV deviation. The the ball gets there. The PI controller with
question is how to forecast the anticipated the P-action based on eanticipated is:
error, the fully developed result of a distur-
KC
bance? U = KC eanticipated + τi ∫ edt + U0 (10)

If the process is linear and has a first-order When Equation (9) is substituted into Equa-
response to a disturbance, then the model tion (10) and rearranged, the PI controller

eHandbook: Level Measurement, Spring 2019 17


Uo Fixed bias
www.controlglobal.com

with P-action on the anticipated error is the to describe the functions all are simple
classical PID relation: arithmetic operations.

KC de Turnbuckle
U = KC e + τi ∫ edt + KC τd
dt
+ U0  (11) PID IN SUMMARY
Fin
Proportional control is the simple concept
b
Although Equation (11) looks like calculus of takingh immediate proportional action on
o
de
with its ∫ edt and dt
representation, the the actuating error, but P-only
a control,
integral is actually just the incrementally U = KC e + b0, with a fixed bias, leavesUo
updated sum, and the derivative will be cal- steady state offset. The user chooses the
Fout
(enew - eold)
culated from a numerical approach ∆t
value for KC to set controller aggressive-
, which, again, is simple arithmetic subtrac- ness.
tion and division. Integral action incrementally adjusts the
bias to remove steady state offset. Note, al-
PD-action is equivalent to P-action on though called “integral,” there’s no calculus
the anticipated error. Whether D action in the action in the incremental accumula-
+ ess
is used or not, one still needs incremental tion.
e The user
Kc chooses the value for τi to set
U
adjustment to the bias, I-action, to remove the speed at which offset is +
removed.
steady-state offset.
1
τ1 dt∫
Derivative action forecasts
+
what the actuat-
+
If the process measurement is noisy, the ing error will be, as a result of past influenc-
Uo
numerical derivative amplifies the noise im- es, if they’re left uncontrolled. It’s the lead
pact. And, if the process is relatively quick commonly used in hitting a moving target.
to respond, there’s no need to use the antic- PD-action is equivalent to P-action on the
ipated error concept. So, only use D-action anticipated error, and leaves steady state
on noiseless and slow-to-evolve processes. offset. Note, although called “derivative,”

In block diagram notation, the PID con- τps


+
troller (a PI controller with P based on the
ê Kc Û
anticipated error, and the incremental ad-
+
justment to remove steady state offset) is 1
τ1s
represented in Figure 6. The figure uses the
Laplace transformed notation, where s in- STANDARD PID CONTROLLER
dicates the operation to take the derivative Figure 6. This block diagram of a PID control-
ler uses the Laplace transformed notation,
of the input to the function block, and 1/s where s indicates the operation to take the
indicates to integrate the input. But, again, derivative of the input to the function block,
and 1/s indicates to integrate the input.
regardless of the symbols or calculus words

eHandbook: Level Measurement, Spring 2019 18


www.controlglobal.com

The real experts are not necessarily


the mathematicians of control theory.
They are the ones who can implement control.

there is no calculus in the action of numeri- the bias, which prevents integral windup,
cally estimating the CV rate of change. The and is especially useful in override and con-
user chooses the value for τd to lead the aim straint strategies. Another common modifi-
of the controller. cation is the rate-before-reset or interacting
controller, which can be created if incre-
We communicate the PID procedure with mental changes to the bias are also based
calculus, or Laplace or Z-transforms, or oth- on the anticipated error. For a discussion
er advanced mathematical symbols. With a of such modifications, see Rhinehart, R. R.,
bit of sarcasm, it seems the reason to use H. L. Wade, and F. G. Shinskey in the Instru-
fancy mathematics is to make people think ment Engineers’ Handbook, Vol II, Process
it’s difficult, so they need to hire an expert. Control and Analysis, 4th Edition, B. Liptak,
But, the reality is that the PID calculations Editor, Section 2.3, “Control Modes – PID
are simple arithmetic procedures. By con- Variations,” pp. 124-129, Taylor and Francis,
trast, an expert’s focus on the mathematics CRC Press, Boca Raton, Fla., 2005.
distracts those intellects from the impor-
tant aspects of control, such as structuring For a procedure to tune the controller,
ratio, cascade and override, or choosing see “Criteria and procedure for control-
appropriate modifications, anti-windup and ler tuning” by R.R. Rhinehart (Control, Jan
initialization procedures. The real experts ’17, p. 54-55, www.controlglobal.com/
are not necessarily the mathematicians of articles/2017/criteria-and-procedure-for-
control theory. They are the ones who can controller-tuning).
implement control.
R. Russell Rhinehart, engineering coach, R3eda, North

There are many modifications to the PID Carolina State University, can be reached at russ@

equation. Reset feedback, for example, is r3eda.com.

an alternate method to incrementally adjust

eHandbook: Level Measurement, Spring 2019 19


www.controlglobal.com

Is global warming
like level control?
Comparing the processes sheds light on the problem
of regulating Earth’s temperature.
by Béla Lipták

Q
In a previous column, you wrote 1.5 °C during the past century, and today
that understanding the control we’re just beginning to see its consequenc-
of global warming is very similar es (melting ice, wildfires, hurricanes). This
to understanding level control. Could you rate of rise is still slow (2.0-3.0 °C per cen-
explain this in more detail? In what respect tury) but is accelerating. My estimate is it
are the two processes similar?
2.0
Z. Friedmann
1.5
solarh2cell@aol.com
Temperature anomaly (°F)

1.0

0.5

0
A: You hit upon a large subject, one that will
-0.5
take up a full chapter in my upcoming book -1.0

to be published by ISA. I will try to give you -1.5

-2.0
a brief answer. 1880 1900 1920 1940 1960 1980 2000 2020
Year

Figure 1 shows the rise of the surface tem- TEMPERATURE OVER TIME
Figure 1: The average surface temperature of
perature of the oceans during the indus-
the world’s oceans, using the baseline of 1971
trial age. Now, if we look at the protection to 2000 average. The shaded band shows
the range of uncertainty in the data based
against climate change as a “control loop,”
on the number of measurements collected
the measurement of that loop is that tem- and the precision of the measurements used.
Source: EPA
perature, which has increased by only about

eHandbook: Level Measurement, Spring 2019 20


www.controlglobal.com

will reach a rise of about 5.0 °C by 2075. In ing the inflow of CO2 into the atmosphere
my view, we’ll never stop at 2.0°C (recom- (generated by animal life and man) rough-
mended by the Paris Agreement of 2015) ly equal the outflow (intake of plants and
and particularly not at 1.5 °C (recommended dissipation by the oceans), and therefore
by the U.N. Intergovernmental Panel on Cli- the atmospheric concentration of CO2
mate Change – IPCC in 2018) because this stayed roughly constant, never exceeding
high-inertia process is totally out of control. 280 ppm even during ice ages, chang-
ing sun spot numbers, volcanic activity or
Some believe that because the numbers de- meteor impacts.
scribing the temperature rise are small, the
problem we face is also small. This is not the If we look at the atmosphere as a tank and
case. Let me compare them with our own CO2 concentration as the level in that tank,
body temperature, which is accurately con- then we could say that this level stayed rea-
trolled by our brain. The body temperature sonably constant for a million years because
of a healthy, resting adult human being is it never exceeded 280 ppm (the planet didn’t
98.6 °F (37.0 °C). Our “thermostat” (called need to start “sweating”) as nature took care
the hypothalamus, a portion of the brain) of it. Since the beginning of the industrial
controls body temperature. The span of our revolution, humans gradually took over this
thermostat is 36.4–37.1 °C (97.5–98.8 °F) control from nature, CO2 concentration in the
or about 0.7 °C. This thermostat turns on atmosphere increased from 280 to more than
shivering at 97.5 °F and initiates sweating at 410 ppm, and it’s predicted by most models
98.8 °F. I mention this only to illustrate that that it will reach or even exceed 500 ppm by
certain processes must be controlled within the end of this century.
small limits because small temperature
changes can have large effects. If a control engineer was to bring this
process under control by returning CO2
According to all scientific data (www.nasa. concentration to the stable, pre-industrial
gov/topics/earth/features/co2-temperature. state, the task would be to balance the in
html), the thermostat of global temperature and outflows of this tank, and on top of
control is CO2 concentration in the atmo- that, remove roughly half of the CO2 that
sphere. If it rises, the global temperature rises accumulated during the industrial age. If a
(because the thermal insulation of the planet conventional level controller was installed
increases), and when it dops, the planet cools. on this tank, it would see an error of 410 –
280 = 130 ppm and a past error accumula-
During the past 1 million years, nature tion of some 400-500 Gt (vvvgigatons) of
“controlled” this concentration by keep- carbon. It would immediately close the inlet

eHandbook: Level Measurement, Spring 2019 21


www.controlglobal.com

CARBON IMBALANCE
Figure 2: This figure shows the fast carbon cycle (left - on land, right - in the oceans) in billions of
tons of carbon per year. Yellow numbers are natural fluxes, red are human contributions. White
numbers refer to stored carbon. Source: NASA

valve and open the outlet valve. In short, this outlet valve is almost com-
Unfortunately, in this process, these valves pletely stuck and we have no technology
are stuck. The outflow from the tank (the to open it further except reforestation,
CO2 intake of the plants and dissipation which is unlikely due to overpopulation
by the oceans) can’t be increased. In fact, (during the industrial age, population in-
it has probably decreased during the past creased from 1.0 to 9.0 billion).
century because of deforestation, acidifica-
tion of the oceans, and building of dams/ As shown in Figure 2, every year we send 9
reservoirs, holding 8,000 km3 of water, Gt of carbon into the atmosphere. 3 Gt of
which also emit carbon to the atmosphere. that is taken up by the photosynthesis of

eHandbook: Level Measurement, Spring 2019 22


www.controlglobal.com

plants, 2 Gt is dissipated by the oceans, and http://techchannel.att.com/play-video.


4 Gt remains in the atmosphere for the next cfm/2011/8/25/Science-&-Technology-
20 to 200 years. So, the inflow exceeds the Author-Series-Bela-G-Liptak:-Post-Oil-
outflow by 4 Gt/yr. Energy-Technology.)

We do have some means to reduce this What even the best of our leaders seem
inflow, such as using more bicycles, public to not understand is that, even after we’ve
transport, converting to electric cars, insu- balanced the in and outflows, we will not
lating our homes, using smart thermostats have returned the planet to pre-industrial
and appliances, eliminating animal prod- conditions because even after this tre-
ucts from our diet (which cuts greenhouse mendous technological and political trans-
emissions by more than 10%), introduc- formation effort, we didn’t even start to
ing carbon taxes (not cap-and-trade, but remove the already accumulated 400-500
taxes), and eventually, fully converting the Gt of carbon from the atmosphere, which
energy economy from fossil/nuclear fuels can stay there for 20-200 years. And, as
to carbon-free ones. The speed of conver- long as that accumulation remains, the
sion is a function of both the marketplace CO2 concentration does not drop and the
and government support. Where both are planet will keep warming.
present, the conversion is faster (in Cali-
fornia today, green electricity is 30% of This is obvious to a process control engi-
the total), while where only the market- neer, but not to our well-intentioned leaders
place is driving the conversion, it is much who wrote the Paris Agreement in 2015 or
slower (15% in the U.S. overall). the smarter U.N. experts who participated
in the IPCC meeting in 2018. It is for this
It will probably take a generation or two reason that we who understand process
to overcome the resistance of the fossil control have the responsibility to explain
industry. Leaving some $35 trillion worth that the present uncontrolled rate of carbon
of fossil fuel in the ground justifies some accumulation will reach approximately 500
resistance, and it will take time for society ppm by the end of this century, at which
as a whole to realize that we must con- point the tropical regions of the planet are
vert to solar energy and use hydrogen as likely to become unlivable, and the resulting
the means of storing, transporting and biblical-scale migration could destroy hu-
distributing this energy to areas where man civilization.
insolation is insufficient. (For more solar
storage technology, see my book, Post Béla Lipták

Oil Energy Economy, or tune in the video: liptakbela@aol.com

eHandbook: Level Measurement, Spring 2019 23

You might also like