Professional Documents
Culture Documents
i
= Integral time constant (minutes)
t = Time
b = Bias b = Bias
Integral Action Effect
Integral Saturation or Reset Wind-up
Summary of integral action (Reset)
Integral (Reset) Summary - Output is a repeat of the Integral (Reset) Summary - Output is a repeat of the
proportional action as long as error exists. The units are in terms
of repeats per minute or minutes per repeat.
Advantages - Eliminates error Advantages - Eliminates error
Disadvantages: Makes the process less stable and take longer
to settle down.
Can suffer from integral saturation or wind-up on batch
processes.
Fast Reset (Large Repeats/Min., Small Min./Repeat) ast eset ( a ge epeats/ , S a / epeat)
High Gain
Fast Return to Setpoint
Possible Cycling Possible Cycling
Slow Reset (Small Repeats/Min., Large Min./Repeats)
Low Gain
Sl R t t S t i t Slow Return to Setpoint
Stable Loop
P + I controller is used when offset must be eliminated
automatically and integral saturation due to a sustained offset is automatically and integral saturation due to a sustained offset is
not a problem.
P+ I Controller Reaction at Optimum Settings p g
Derivative Mode
Wh D i ti M d ? Why Derivative Mode?
Some large and/or slow process do not respond well to small
changes in controller output. For example, a large liquid level
process or a large thermal process (a heat exchanger) may p g p ( g ) y
react very slowly to a small change in controller output. To
improve response, a large initial change in controller output may improve response, a large initial change in controller output may
be applied. This action is the role of the derivative mode.
The derivative action is initiated whenever there is a change in
the rate of change of the error (the slope of the PV). The
magnitude of the derivative action is determined by the setting
of the derivative.
In operation, the controller first compares the current PV with the
last value of the PV. If there is a change in the slope of the PV, the
controller determines what its output would be at a future point in
time (the future point in time is determined by the value of the time (the future point in time is determined by the value of the
derivative setting, in minutes). The derivative mode immediately
increases the output by that amount. p y
Summary of Derivative action (Rate)
Rate action is a function of the speed of change of the error. The units
are minutes. The action is to apply an immediate response that is
equal to the proportional plus reset action that would have occurred equal to the proportional plus reset action that would have occurred
some number of minutes in the future.
Advantages - Rapid output reduces the time that is required to return
PV t SP i l PV to SP in slow process.
Disadvantage - Has no effect on offset. Dramatically amplifies noisy
signals; can cause cycling in fast processes. g ; y g p
Large (Minutes):
High Gain
L O t t Ch Large Output Change
Possible Cycling
Small (Minutes):
Low Gain
Small Output Change
Stable Loop
Proportional, PI, and PID Control
By using all three control algorithms together process operators By using all three control algorithms together, process operators
can:
Achieve rapid response to major disturbances with derivative control Achieve rapid response to major disturbances with derivative control
Hold the process near setpoint without major fluctuations with
proportional control
Eliminate offset with integral control
Not every process requires a full PID control strategy. If a small
ff h i h h i l l offset has no impact on the process, then proportional control
alone may be sufficient.
P I and D Responses Graphed P, I, and D Responses Graphed
A very helpful method for understanding the
operation of proportional, integral, and derivative
control terms is to analyze their respective responses y p p
to the same input conditions over time.
The following graphs showing P I and D responses The following graphs showing P, I, and D responses
for several different input conditions. In each graph,
the controller is assumed to be direct acting (i e an the controller is assumed to be direct-acting (i.e. an
increase in process variable results in an increase in
output) output).
Responses to a single step-change
Proportional action directly
mimics the shape of the input
change (a step) Integral change (a step). Integral
action ramps at a rate
proportional to the magnitude
f h i Si h of the input step. Since the
input step holds a constant
value, the integral action
ramps at a constant rate (a
constant slope). Derivative
action interprets the step as p p
an infinite rate of change, and
so generates a spike driving
the output to saturation the output to saturation.
When combined into one PID
output, the three actions
produce this response: produce this response:
Responses to a momentary step-and-return
Proportional action directly mimics
the shape of the input change (an
up-and-down step) up and down step).
Integral action ramps at a rate
proportional to the magnitude of the
input step for as long as the PV is input step, for as long as the PV is
unequal to the SP. Once PV = SP
again, integral action stops ramping
d i l h ld th l t l and simply holds the last value.
Derivative action interprets both
steps as infinite rates of change,
and so generates a spike at the
leading and at the trailing edges of
the step. p
Note how the leading (rising) edge
causes derivative action to saturate
high while the trailing (falling) edge high, while the trailing (falling) edge
causes it to saturate low.
Responses to a ramp-and-hold
Proportional action directly
mimics the ramp-and-hold mimics the ramp and hold
shape of the input.
Integral action ramps Integral action ramps
slowly at first (when the
error is small) but increases )
ramping rate as error
increases. When error
t bili i t l t stabilizes, integral rate
likewise stabilizes.
Derivative action offsets Derivative action offsets
the output according to the
inputs ramping rate. p p g
Summary of Control modes and responses
Controller Tuning
Why Controllers Need Tuning? Why Controllers Need Tuning?
Controllers are tuned to achieve two goals:
h d kl The system responds quickly to errors.
The system remains stable (PV does not oscillate around the
SP) SP)
Controller tuning is performed to adjust the manner in which a
control valve (or other final control element) responds to a co t o a e (o ot e a co t o e e e t) espo ds to a
change in error.
In particular, we are interested in adjusting the controllers
modes (gain, Integral and derivative), such that a change in
controller input will result in a change in controller output that
will, in turn, cause sufficient change in valve position to , , g p
eliminate error, but not so great a change as to cause
instability or cycling.
Before you tune . . .
The recommended considerations prior to making adjustments to
th t i f l t ll the tuning of a loop controller:
Identifying operational needs (i.e. How do the operators want
the system to respond?)
Identifying process and system hazards before manipulating the Identifying process and system hazards before manipulating the
loop
Identifying whether it is a tuning problem, a field instrument
problem, and/or a design problem
PID tuning
PID tuning procedure is a step-by-step approach leading
directly to a set of numerical values to be used in a PID directly to a set of numerical values to be used in a PID
controller.
A l d l i d i i l d i h h A closed loop tuning procedure is implemented with the
controller in automatic mode: adjusting tuning parameters
f to achieve an easily-defined result, then using those PID
parameter values and information from a graph of the
process variable over time to calculate new PID parameters.
Ziegler-Nichols Closed-Loop(Ultimate Gain) Ziegler Nichols Closed Loop ( Ultimate Gain )
The closed loop or ultimate method involves finding
the point where the system becomes unstable and
using this as a basis to calculate the optimum g p
settings.
The following steps may be used to determine ultimate The following steps may be used to determine ultimate
PB and ultimate periodic time:
1. Switch the controller to Manual and set the proportional band to
high value. g
2. Turn off all integral and derivative action.
3. Switch the controller to automatic and reduce the proportional
band value to the point where the system becomes unstable and
oscillates with constant amplitude. Sometimes a small step
change is required to force the system into its unstable mode. g q y
Look for curve B that represents the continuous oscillation
4 The proportional band that required causing 4. The proportional band that required causing
continuous oscillation is the ultimate value Bu.
5. The ultimate periodic time is Pu.
6. From these two values the optimum setting can be
calculated as per the following procedures. calculated as per the following procedures.
Optimum setting calculation Optimum setting calculation
For proportional action only
PB% = 2 Bu %
Proportional + Integral Proportional Integral
PB% = 2.2 Bu %
I t l ti ti P / 1 2 i t / t Integral action time = Pu / 1.2 minutes/repeat
Proportional + Integral + Derivative p g
PB%=1.67Bu
Integral action time = Pu / 2 minutes/repeat Integral action time = Pu / 2 minutes/repeat
Derivative action = Pu / 8 minutes
CONTROL LOOPS CATEGORIES
Control loops can be divided into two
categories:
Single variable loops and Single variable loops, and
Multi-variable loops p
SINGLE LOOP CONTROL
This is the simplest control loop involving just one controlled
variable.
The controller compares the signal from the sensor to the set
point on the controller. If there is a difference, the controller
sends a signal to the actuator of the valve, which in turn moves
the valve to a new position.
Single control loops provide the vast majority of control for
heating systems and industrial processes.
The common terms used for single control loops include:
Feedback control. Feedback control.
Feedforward
Feedback control
Feedback control may be viewed as a sort of information loop,
from the transmitter, to the controller, to the final control element,
and through the process itself, back to the transmitter. Block
diagram of feedback control looks like a loop: g p
Feedback Control loop measures a process variable
d d h ll f and sends the measurement to a controller for
comparison to setpoint. If the process variable is not at
setpoint, control action is taken to return the process setpoint, control action is taken to return the process
variable to setpoint.
Feedback loops are commonly used in the process control
industry.
The advantage of feedback control is that it is a very simple g y p
technique that directly controls the desired process variable
and compensates for all disturbances. Any disturbance affects
the controlled variable, and once this variable deviates from
set point, the controller changes its output in such a way as to
return the variable to set point return the variable to set point.
The disadvantage of feedback control is that it can
compensate for a disturbance only after the controlled compensate for a disturbance only after the controlled
variable has deviated from set point. That is, the disturbance
must propagate through the entire process before the p p g g p
feedback control scheme can initiate action to compensate for
it.
Examples of feedback Control Loops
FeedforwardControl
Feedforward control addresses this weakness by taking a fundamentally Feedforward control addresses this weakness by taking a fundamentally
different approach, basing final control decisions on the states of load
variables rather than the process variable. In other words, a feedforward
control system monitors all the factors influencing a process and decides how control system monitors all the factors influencing a process and decides how
to compensate for these factors ahead of time before they have the
opportunity to affect the process variable. If all loads are accurately measured,
and the control algorithm realistic enough to predict process response for
these known load values, the process variable does not even need to be
measured at all:
Feedforward control is a control system that anticipates
load disturbances and controls them before they can
impact the process variable. In the figure the flow
transmitter opens or closes a hot steam valve based on
how much cold fluid passes through the flow sensor.
An advantage of feedforward control is that error is
prevented, rather than corrected. However, it is difficult to
account for all possible load disturbances in a system
through feedforward control.
Factors such as outside temperature, buildup in pipes,
consistency of raw materials, humidity, and moisture
content can all become load disturbances and cannot
always be effectively accounted for in a feedforward
system.
Multi-Loop Control/ Multi-variable Loops
Multivariable loops are control loops in which
a primary controller controls one process a primary controller controls one process
variable by sending signals to a controller of a
different loop that impacts the process variable different loop that impacts the process variable
of the primary loop.
Th f ll i t d lti l t l The following are termed as multiple control
loops: -
Feedback plus feedforward
Cascade Control Cascade Control
Ratio Control
Limit, Selector, and Override controls
Feedforward Plus Feedback
Because of the difficulty of accounting for every
possible load disturbance in a feedforward system,
feedforward systems are often combined with y
feedback systems.
Controllers with summing functions are used in
these combined systems to total the input from both these combined systems to total the input from both
the feedforward loop and the feedback loop, and
send a unified signal to the final control element.
In the figure a feedforward-plus-feedback loop in which both a
flow transmitter and a temperature transmitter provide
information for controlling a hot steam valve.
Cascade Control
Cascade control is a technique Where two
independent variables need to be controlled with p
one valve.
Its purpose is to provide increased stability to Its purpose is to provide increased stability to
par-ticularly complex process control problems.
In cascade control the output from one controller In cascade control the output from one controller
"called the MASTER" is the set point for another
controller "commonly referred to as the SLAVE" controller commonly referred to as the SLAVE .
The master will have an independent plant
measurement Only the slave controller has an measurement. Only the slave controller has an
output to the final control element.
The advantages: The advantages:
Variations of the process variable measurement by
the master controller are corrected by the slave y
control systems.
Speed of response of the master control loop is p p p
increased.
Slave controller permits an exact manipulation of the
flow of mass or energy by the master (to maintain
the process variable, measured by the master
controller within the normal operating limits) controller within the normal operating limits)
Disadvantage:
However, cascade control is more costly. Thus, it is
normally used when highly accurate control is
required and where random process disturbances are required and where random process disturbances are
expected.
Practical Consideration in Implementing Cascade Control
A necessary step in implementing cascade control is to ensure the
secondary (slave) controller is well-tuned before any attempt is
made to tune the primary (master) controller. made to tune the primary ( master ) controller.
The slave controller does not depend on good tuning in the master
controller in order to control the slave loop. p
If the master controller were placed in manual, the slave controller
would simply control to a constant setpoint. However, the master
controller most definitely depends on the slave controller being well-
tuned in order to fulfill the masters expectations.
If the slave controller were placed in manual mode, the master
controller would not be able to exert any control over its process
variable whatsoever. variable whatsoever.
Clearly then, the slave controllers response is essential to the
master controller being able to control its process variable, therefore g p
the slave controller must be the first one to tune.
Ratio Control
Where the ratio of one flow rate to another is controlled for
some desired outcome Many industrial processes also some desired outcome. Many industrial processes also
require the precise mixing of two or more ingredients to
produce a desired product.
N t l d th i di t d t b i d i Not only do these ingredients need to be mixed in proper
proportion, but it is usually desirable to have the total flow
rate subject to arbitrary increases and decreases so
production rate as a whole may be altered at will production rate as a whole may be altered at will.
A simple example of ratio control is in the production of
i t h b li id t b i d ith paint, where a base liquid must be mixed with one or more
pigments to achieve a desired consistency and color.
All the human operator needs to do now is move the p
one link to increase or decrease mixed paint
production:
Mechanical link ratio-
l control systems are
commonly used to
manage simple manage simple
burners, proportioning
the flow rates of fuel
and air for clean,
efficient combustion.
A photograph of such
a systemappears a system appears
here, showing how the
fuel gas valve and air g
damper motions are
coordinated by a
i l t t t single rotary actuator.
A more automated approach to the general problem of ratio
control involves the installation of a flow control loop on one of control involves the installation of a flow control loop on one of
the lines, while keeping just a flow transmitter on the other line.
The signal coming from the uncontrolled flow transmitter becomes
the setpoint fo the flo cont ol loop The atio of pigment to base the setpoint for the flow control loop: The ratio of pigment to base
will be 1:1 (equal).
We may incorporate convenient ratio adjustment into this system by
adding another component (or function block) to the control scheme: a adding another component (or function block) to the control scheme: a
device called a signal multiplying relay (or alternatively, a ratio station).
This device (or computer function) takes the flow signal from the base
(wild) flow transmitter and multiplies it by some constant value (k) (wild) flow transmitter and multiplies it by some constant value (k)
before sending the signal to the pigment (captive) flow controller as a
set point, the ratio will be 1:1 when k = 1; the ratio will be 2:1 when k =
2 etc 2, etc.
One way to achieve the proper ratio of hydrocarbon gas to steam flow is
t i t ll l fl t l l f th t t t f d to install a normal flow control loop on one of these two reactant feed
lines, then use that process variable (flow) signal as a setpoint to a flow
controller installed on the other reactant feed line. This way, the second
controller will maintain a proper balance of flow to proportionately match controller will maintain a proper balance of flow to proportionately match
the flow rate of the other reactant. An example P&ID is shown here,
where the methane gas flow rate establishes the setpoint for steam flow
control: control:
We could add another layer of sophistication to this ratio control system
by installing a gas analyzer at the outlet of the reaction furnace designed by installing a gas analyzer at the outlet of the reaction furnace designed
to measure the composition of the product stream. This analyzers signal
could be used to adjust the value of k so the ratio of steam to methane
would automatically vary to ensure optimum production quality even if the would automatically vary to ensure optimum production quality even if the
feedstock composition (i.e. percentage concentration of methane in the
hydrocarbon gas input) changes:
A more common method of ratio control is using separate units
t id th ti t I thi fi th t f to provide the ratio system. In this figure, the measurement of
an uncontrolled flow transmitted to a ratio unit where it is
multiplied by a ratio factor, and the output of the ratio unit
becomes the set point of the secondary controller.
The ratio unit normally has a manually adjusted scale to adjust
the ratio between the two variables the ratio between the two variables.
Limit, Selector, and Override controls
h f l l h f l l Another category of control strategies involves the use of signal relays or
function blocks with the ability to switch between different signal values,
or re-direct signals to new pathways. Such functions are useful when we g p y
need a control system to choose between multiple signals of differing
value in order to make the best control decisions.
The building blocks of such control strategies are special relays (or
function blocks in a digital control system) shown here:
Limit Controls
In the following example a cascade control system regulates the In the following example, a cascade control system regulates the
temperature of molten metal in a furnace, the output of the master
(metal temperature) controller becoming the setpoint of the slave (air
temperature) controller A high limit function limits the maximum value temperature) controller. A high limit function limits the maximum value
this cascaded setpoint can attain, thereby protecting the refractory brick
of the furnace from being exposed to excessive air temperatures:
This same control strategy could have been implemented using a low
select function block rather than a high limit:
Selector Controls
Selector control strategy is where we must select a process variable signal
from multiple transmitters. For example, consider this chemical reactor,
where the control system must throttle the flow of coolant to keep the where the control system must throttle the flow of coolant to keep the
hottest measured temperature at setpoint, since the reaction happens to
be exothermic (heat-releasing):
Another use of selector relays (or function blocks) is for the determination
of a median process measurement This sort of strategy is often used on of a median process measurement. This sort of strategy is often used on
triple-redundant measurement systems, where three transmitters are
installed to measure the exact same process variable, providing a valid
measurement even in the event of transmitter failure measurement even in the event of transmitter failure.
The median select function may be implemented one of two ways using
high- and low-select function blocks: high and low select function blocks:
Override Controls
An override control strategy involves a selection between
two or more controller output signals, where only one
controller at a time gets the opportunity to exert control
over a process. All other de-selected controllers are thus
overridden by the selected controller.
In process control systems it often becomes desirable to
limit a process variable to some low or high value to avoid
damage to process equipment or to the product. This is
accomplished by override devices. As long as the variable is
within the limits set by the override devices, normal
f f h l h h functioning of the control system continues; when the set
limits are exceeded, the override devices take
d t i d ti predetermined actions.
Consider this water pumping system, where a water pump is
d i b i bl d l t i t t d t f driven by a variable-speed electric motor to draw water from a
well and provide constant water pressure to a customer:
A t ti l bl ith thi t i th i A potential problem with this system is the pump running
dry if the water level in the well gets too low, as might
happen during summer months when rainfall is low and
customer demand is high.
One solution to this problem would be to install a level switch in
th ll i t l l d h tti ff th l t i t the well, sensing water level and shutting off the electric motor
driving the pump if the water level ever gets too low:
We may create just such a control strategy by replacing the well water
level switch with a level transmitter, connecting the level transmitter to a , g
level controller, and using a low-select relay or function block to select the
lowest-valued output between the pressure and level controllers. The level
controllers setpoint will be set at some low level above the acceptable p p
limit for continuous pump operation:
Bear in mind that the concept of a low-level switch completely shutting
off the pump is not an entirely bad idea. In fact, it might be prudent to p p y , g p
integrate such a hard shutdown control in the override control
system, just in case something goes wrong with the level controller
(e.g. an improperly adjusted setpoint or poor tuning) or the low-select
function. With two layers of safety control for the pump, this system
provides both a soft constraint providing moderated action and a
hard constraint providing aggressive action to protect the pump from
dry operation: