PC All Chapters PDF
PC All Chapters PDF
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Introduction
What is Process Control?
Process Control is an engineering
discipline that deals with architectures,
mechanisms & algorithms for
maintaining the output of specific
process within desires range.
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Classification of Variables
Input Output
Output variable = F0
Nimesh Prabhakar [email protected] 9
Continuous Stirred Tank Heater(CSTH)
FSt = Steam flow rate
Fi & Ti = Flow rate & temperature of feed
F0 & T0 = Flow rate & temperature of outlet stream
Input variable = Fi, Ti, FSt, Tst
Output Variable = F0 & T0
Objective
• T = Td
• h = hd
Manipulated Control Variables Disturbance
Variables variables
FSt T Fi , Ti, Tst
Fi & F0 h Fi & F0
Nimesh Prabhakar [email protected] 10
L. J. Institute of Engineering & Technology
Department of Electronics & Communication
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Servo & Regulatory Control
• The objective of control system is one of the
following
• Elimination of disturbance
– Regulatory control
• Making the controlled variable follow the
changes in set point
– Servo control
Prhladnagar
YMC
LJIET
[email protected]
Nimesh Prabhakar 4
Stability
• A system is defined as stable if the controlled
variables converge to a steady state after the
disturbance.
• Otherwise, the system is unstable.
[email protected]
Nimesh Prabhakar 5
Stability
If closed-loop poles are located in left half then
system is stable.
G(s) = =
Poles: s =-2 & s = -4
[email protected]
Nimesh Prabhakar 6
Stability
G(s) = =
Poles: s = 2 & s = 4
[email protected]
Nimesh Prabhakar 7
Mosam Pandya [email protected] 8
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Mathematical Modelling
Mathematics Output
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Mass Balance
Energy Balance
Energy
Rate of rate of Rate of energy Rate of
= – +
accumulation input output generation
9
Water In 10 Boiler Steam
Heat Supply
2
Rate of rate of Rate of energy Rate of
= – +
accumulation input output generation
3 = 10 – 9 + 2
Nimesh Prabhakar [email protected] 5
Liquid Surge Tank
Fi = Input water flow rate
F = output water flow rate
h = Height of liquid in tank
A = Cross sectional area of tank
V = Volume of water in tank
Rate of mass rate of Rate of
= –
accumulation input output
( V) = Fi - F • Here State Variable is h.
V • Because it indicate the status of the system.
= Fi - F • If height is very close to the overflow condition then
the status of the tank is it is going to overflow.
A = Fi – F …(1) • If the height is very close to zero the status is it is
going to empty.
Nimesh Prabhakar [email protected] 6
Stirred Tank Heater
Fi = Input water flow rate
Ti = inlet water temperature
F = output steam flow rate
T = outlet water temperature
h = Height of liquid in tank
A = Cross sectional area of tank F,T
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Continuously Stirred Tank
Reactor (CSTR)
A = Fi – F …(2)
Nimesh Prabhakar [email protected] 4
Continuously Stirred Tank Reactor (CSTR)
Component A
Rate of mass rate of Rate of Rate of
accumulation = input – output + generation
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Continuously Stirred Tank
Heater (CSTH)
A = Fi – F …(2)
Nimesh Prabhakar [email protected] 5
Continuously Stirred Tank Heater (CSTH)
Rate of
Rate of rate of Rate of energy
= – +
accumulation input output
Q
V + T(Fi – F) = FiTi – FT +
Cp
Q
V + TFi – TF = FiTi – FT +
Cp
Q
V = Fi (Ti – T) +
Cp
• Dividing both the side by V
Fi(Ti – T) Q
= –
V V Cp
Nimesh Prabhakar [email protected] 7
Continuously Stirred Tank Heater (CSTH)
For CSTH we get Two equation
• Total mass balance
V
= Fi – F F, T
• Energy balance
Fi(Ti – T) Q
= –
V V Cp MV CV
State variables = V, T F V
Output variables = V, T Q T
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Degrees of Freedom
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Linearization of Systems
Deviation Variables
Dead Time
Self-regulating Process
What is Linearization
Linearization is the process by which we
approximate nonlinear system with linear
once.
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
First-order System
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Non-linear system
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Second-order System
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Dynamic Behavior of
First Order System
Dynamic Behavior of
Second Order
System
Nimesh Prabhakar [email protected] 2
Nimesh Prabhakar [email protected] 3
Nimesh Prabhakar [email protected] 4
Nimesh Prabhakar [email protected] 5
Nimesh Prabhakar [email protected] 6
Non-interacting system
Mass balance around tank 1:
𝑑ℎ
q – q1 = A1 1 …(1)
𝑑𝑡
Mass balance around tank 2:
𝑑ℎ
q1 - q2 = A2 2 …(2)
𝑑𝑡
The flow head relationship for the two
linear resistance are given by,
ℎ1
q1 = …(3)
𝑅1
ℎ2
q2 = …(4)
𝑅2
Now by introducing deviation variable Q1(s) = q1 – q1s
and steady state condition and taking
laplace transform we can write, H1(s) = h1 – h1s
H (s) Q2(s) = q2 – q2s
Q1(s) = 1 …(5)
𝑅1
H2(s) H2(s) = h2 – h2s
Q2(s) = …(6)
𝑅2
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Dynamic Behavior of
First Order System
Dynamic Behavior of
Second Order
System
Nimesh Prabhakar [email protected] 2
Dynamic Behavior of First Order
System
𝑑𝑦
𝜏p + y = kpf(t) …(1)
𝑑𝑡
𝜏p = Time constant of the process
kp = Steady-state gain or static gain or process gain
• Transfer function of first-order process is,
y(s) kp
G(s) = = …(2)
f(s) 𝜏ps + 1
• Now we take Step signal as a Input.
f(t) = 0 t<0
A t≥0
A
f(s) =
s
• Now Substituting the value of f(s) in eq(1)
Akp
y(s) = …(3)
s(𝜏ps + 1)
• Now to take inverse Laplace transform of eq(3) we can write
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Multicapacity
Process
Dynamic Systems
with dead time
Nimesh Prabhakar [email protected] 2
Multicapacity Process
• N Capacities in series
• It can be classified in two parts
1. N non interacting capacities
2. N Interacting capacities
N Noninteracting system
• The response has the characteristics of an overdamped system; that is,
it is S shaped and sluggish.
• Increasing the number of capacities in series increase the sluggishness
of the response.
N Interacting system
• Interaction increase the sluggishness of the overall response.
• So, the transfer function between the input f(t) and the
delayed output y(t−td) is given by,
L[y(t−td)] kp𝑒 −tds
= …(1)
L[f(t)] 𝜏p s + 1
• This is called First Order Plus Dead Time(FOPTD) system.
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Inverse Response
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Controller Modes
Process Lag
Error
Control Lag
What is Controller
Modes
Controller modes refer to the
methods to generate different types
of control signals to final control
element to control the process
variable.
Classifications of different
controller modes
Discontinuous Controller Modes
(a) Two-position (ON/OFF) Mode
(b) Multi-position Mode
(c) Floating Control Mode: Single Speed and Multiple Speed
Continuous Controller Modes
(a) Proportional Control Mode
(b) Integral Control Mode
(c) Derivative Control Mode
Composite Controller Modes
(a) Proportional-Integral Control (PI Mode)
(b) Proportional-Derivative Control (PD Mode)
(c) Proportional-Integral-Derivative Control (PID or Three
Mode Control)
Classifications of different
controller modes
Based on the controller action on the control
element, there are two modes:
Direct Action
• If the controller output increases with increase in
controlled variable then it is called direct action.
Example
In level control system, if the level rises(increases),
the valve should be open(drive signal should be
increased)
Classifications of different
controller modes
Reverse Action
• If the controller output decreases with increase in
controlled variable then it is called reverse action
Example
In the simple temperature control from a heater, if
the temperature increases, the drive to the heater
should be decreased.
Controller Modes
• The choice operating mode for any given process
control system is complicated decision.
• It involves not only process characteristics but cost
analysis, product rate, and other industrial factors.
• The process control technologist should have good
understanding of the operational mechanism of each
mode and its advantages and disadvantages.
• In general, the controller operation for the error ep is
expressed as a relation:
p = F(ep)
• where F(ep) represents the relation by which the
appropriate controller output is determined.
Process Lag
• A process load change or transient causes a
change in the controlled variable.
• The process-control loop responds to ensure that,
some finite time later, the variable return to the
set point value.
• Part of this time is consumed by the process itself
and is called the process lag.
Process Lag
• Assume, the Inlet flow is
suddenly doubled
• A large process load
changes radically (reduces)
the liquid temperature.
• The control loop response
by opening the steam inlet
valve to allow more steam
and heat input to bring the
liquid temperature back to
the set point.
• The physical opening of
the control valve is slowest
part of the loop.
Error
• Error is the difference between the measured
variable and the setpoint.
• Error can be either positive or negative.
• The objective of any control scheme is to minimize
or eliminate error.
• The deviation or error of dynamic variable from set
point is given by:
e=r–b
e = error
b = measured indication of variable
r = setpoint of variable(reference)
Error
• To describe controller operation in a general
way, it is better to express the error as percent
of the measured variable range (i.e., the span).
• The measured value of a variable can be
expressed as percent of span over a range of
measurement by the equation,
c −cmin
cp = × 100
cmax−cmin
cp = measured value as percent of measurement
range
c = actual measured value
cmax = maximum of measured value
cmin = minimum of measured value
Error
• We can express the error as percent of span,
r−𝑏
ep = × 100
bmax− bmin
ep = error expressed as percent of span
bmax = maximum value of measured indication of
variable
bmin = minimum value of measured indication of
variable
r = setpoint of variable(reference)
Example
• The temperature in Figure
has a range of 300 to 440
K and a setpoint of 384 K.
Find the percent of span
error when the
temperature is 379 K.
• Here, r = 384, b = 379,
bmax = 440, bmin = 300
r−b
ep = × 100
bmax−bmin
384− 379
ep = × 100
440 − 300
ep = 3.6%
Variable range
• Controlled variable has a range of values within
which control is required to be maintained at
set point.
• This range can be expressed as the minimum
and maximum values of the dynamic variable.
Example
• if a standard signal 4-20 mA transmission is
employed, then 4 mA represents the minimum
value of the variable and 20 mA the maximum
value.
Control parameter (output)
range
• It is the possible range of values of final control element.
• The controller output is expressed as a percentage where
minimum controller output is 0% and maximum
controller is 100%.
• But 0% controller output does not mean zero output. For
example, it is necessary requirement of the system that a
steam flow corresponds to 1/4th opening of valve.
• The controller parameter output as a percent of full scale
when the output changes within the specified limits is
expressed as:
u −umin
p= × 100
umax −umin
p = controller outout as percent of full scale
u = value of output
umax= maximum value of controlling parameter
umin = minimum value of controlling parameter
Example
• A controller outputs a 4- to 20-mA signal to control motor speed
from 140 to 600 rpm with a linear dependence. Calculate
(a) current corresponding to 310 rpm, and
(b) the value of (a) expressed as the percent of control output.
Solution
• We find the slope m and intersect S0 of the linear relation
between current I and speed S, where
Sp = mI + S0
• Knowing Sp and I at the two given positions, we write two
equations:
140 = 4m + S0
600 = 20m + S0
• Solving these simultaneous equations, we get,
m = 28.75 rpm/mA and S0 = 25 rpm
• Thus, at 310 rpm we have, 310 = 28.75I +25
• which gives I = 9.91 mA.
Example
• Expressed as a percentage of the 4- to 20-mA
range, this controller output is,
u −umin
p= × 100
umax −umin
9.91 − 4
p= × 100
20 − 4
p = 36.9%
Control Lag
• Control Lag refers to the
time for the process control
loop to make necessary
adjustments to the final
control element.
Example
• if a sudden change in liquid
temperature occurs, it
requires some finite time for
the control system to
physically actuate the steam
control valve.
Controller Modes
Process Lag
Error
Control Lag
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Two-Position Mode
Two-Position Mode
• It is also known as ON/OFF Controller.
• The most general form can be given by:
p = 0% ep < 0
100% ep > 0
• This relation shows that when the measured
value is less than the setpoint, full controller
output results.
• When it is more than the setpoint, the
controller output is zero.
Two-Position Mode
Example
Space Heater
• If the temperature drops below a setpoint, the
heater is turned ON.
• If the temperature rises above the setpoint, it
turns OFF.
Two-Position Mode
Neutral Zone
• In practical implementation of the
two-position controller, there is an
overlap as ep increases through
zero or decreases through zero.
• In this span, no change in the
controller output occurs which is
illustrated in figure.
• It can be observed that, until an
increasing error changes by ∆ep
above zero, the controller output
will not change state.
• In decreasing, it must fall ∆ep
below zero before the controller
changes to 0%.
• The range 2∆ep is referred to as
neutral zone or differential gap.
Applications
Generally the two-position control mode is best
adapted to:
• Large-scale systems with relatively slow process
rates
Examples
1. Room heating systems
2. Air-conditioning systems
• Systems in which large-scale changes are not
common
Examples
1. Liquid bath temperature control,
2. Level control in large-volume tanks.
Example
• A liquid-level control system linearly converts
a displacement of 2 to 3 m into a 4 to 20 mA
control signal. A relay serves as the two-
position controller to open and close the inlet
valve. The relay closes at 12 mA and opens at
10 mA. Find
a) Relation between displacement level and
current
b) Neutral zone or displacement gap in meters.
Given data: Liquid- level range = 2 to 3 m
Hmin = 2m & Hmax = 3m
Control signal range = 4 to 20 mA
Imin = 4mA & Imax = 20mA
Example
(a) The linear relationship between level and current
is given by
H = K I + H0
The simultaneous equations for the above range are:
For low range signal
2 m = K(4 mA) + H0
For higher range signal
3 m = K(20 mA) + H0
• Solving the above equations we get:
K = 0.0625 m/mA, & H0 = 1.75 m
Therefore, the relation between displacement level
(H) and current (I) is given by
H = 0.0625 I + 1.75
Example
(b) The relay closes at 12 mA, which is high
level, HH
HH = 0.0625 x 12 + 1.75
HH = 2.5 m
• The relay opens at 10 mA, which is low level,
HL
HL = 0.0625 x 12 + 1.75
HL = 2.375 m
• Therefore, the neutral zone is,
NZ = (HH - HL) = (2.5 - 2.375) = 0.125 m
Example
• The temperature of water in a tank is controlled by
two-position controller. When the heater is off the
temperature drops at 2 K per minute. When the
heater is on the temperature rises at 4 K per minute.
The setpoint is 323 K and the neutral zone is ±4% of
the setpoint. There is a 0.5 min lag at both the on
and off switch points. Find the period of the
oscillation and plot the water temperature versus
time.
Given data:
• Temperature drops = 2 K/min
• Temperature rises = 4 K/min
• Control Lag = 0.5 min
• Neutral zone = ± 4%
• Setpoint = 323 K
Example
The natural zone in temperature
is
∆T = ± 4% of (323 K) = 13 K
• Therefore, the temperature
will vary from 310 to 336 K
(without considering the lag)
• Initially we start at setpoint
value. The temperature will
drop linearly, which can be
expressed by
T1(t) = T(ts) – 2 (t – ts)
where ts = Time at which we
start the observation
T(ts) = Temperature when we
start observation i.e. 323.
Example
• The temperature will drop till
- 4% of setpoint (323K),
which is 310 K.
• Time taken by the system to
drop temperature value 310
K is
310 = 323 – 2 (t – 0)
t = 6.5 min
• Undershoot due to control
lag = (control lag) x (drop
rate)
= 0.5 min x 2 K/min = 1K
Due control lag temperature
will reach 309 instead of 310 K.
Example
• From this point the temperature
will rise at 4 K/min linearly till
+4% of set point i.e.336K
which can be expressed by
T2(t) = T(th) + 2 (t – th)
where th = time at which heater
goes on
T(th) = temperature at which heater
goes on
336 = (310-1) + 4 [t – (6.5 +0.5)]
t = 13.75 min
• Overshoot due to control lag =
(control lag) x (rise rate) = 0.5
min x 4 K/min = 2K
Due control lag temperature will
reach 338 instead of 336 K.
Example
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Multiposition Control
Mode
Multiposition Control Mode
What is Multiposition
Control Mode
• It is the logical extension of two-
position control mode to provide
several intermediate settings of the
controller output.
Multiposition Control Mode
• This discontinuous control mode is used in an
attempt to reduce the cycling behavior and
overshoot and undershoot inherent in the two-
position mode.
• This control mode can be preferred whenever
the performance of two-position control mode
is not satisfactory.
• The general form of multiposition mode is
represented by
p = pi ep > ei i = 1, 2, ... , n
• As the error exceeds certain set limits ± ei , the
controller output is adjusted to present values
pi.
Three-position Control Mode
• One of the best example for
multiposition control mode is three-
position control mode, which can be
expressed as,
p = 100% ep>-e1
50% -e1< ep >+e1
0% ep<-e1
• As long as the error is between +e1
and -e1 of the set point, the
controller stays at some nominal
setting indicated by a controller
output of 50%.
• If the error exceeds the set point by
+e1 or more, then the output is
increased to 100%.
• If it is less than the set point by -e1
or more, the controller output is
reduced to zero.
Three-position Control Mode
Limitation
• The three-position control mode usually
requires a more complicated final control
element, because it must have more than
two settings.
Three-position Control Mode
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Floating Control Mode
Floating Control Mode
• In floating control, the specific output of
the controller is not uniquely determined
by error.
• If the error is zero, the output does not
change but remains (floats) at whatever
setting it was when error went to zero.
• When error moves of zero, the controller
output again begins to change.
• Similar to two-position mode, there will be
a neutral zone around zero error where no
change in controller output occurs.
Types of Floating Control Mode
1. Single Speed
2. Multiple Speed
Single Speed
• In this mode, the output of the control element changes
at a fixed rate when the error exceeds the neutral zone.
• The equation for single speed floating mode is:
𝑑𝑝
= ±kF ep > ∆ep …(1)
𝑑𝑡
𝑑𝑝
= rate of change of controller output with time
𝑑𝑡
kF = rate constant
∆ep = half the neutral zone
• If the equation (1) is integrated for actual controller
output, we get
p = ±kF t + p(0) ep > ∆epk
where p(0) = controller output at t = 0
• The equation shows that the present output depends on
the time history of errors that have previously occurred.
Single Speed
• The single- speed controller
action as output rate of
change to input error is
shown in figure a.
• The graph in figure-b shows a
reverse acting controller,
which means the controller
output decreases when error
exceeds neutral zone, which
corresponds to negative kF in
equation (1).
Single Speed
• The graph shows that the
controller starts at some output
p(0).
• At time t1 , the error exceeds the
neutral zone, and the controller
output decreases at a constant
rate until t2 , when the error
again falls below the neutral
zone limit.
• At t3 , the error falls below the
lower limit of neutral zone,
causing controller output to
change until the error again
moves within the allowable
band..
Multiple Speed
• In this mode several possible speeds (rate) are
changed by controller output.
• Usually, the rate increases as the deviation
exceeds certain limits.
• For speed change point epi error there will be
corresponding output rate change Ki.
• The expression can be given by,
𝑑𝑝
= ±kFi ep > ∆epi …(2)
𝑑𝑡
Multiple Speed
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Proportional Control
Mode
Limitation of two-position & multi-
step modes
• The two-position mode had the controller
output of either 100% or 0%, depending on the
error being greater or less than the neutral
zone.
• In multiple-step modes, more divisions of
controller outputs versus error are developed.
Solution
• The natural extension of this concept is the
proportional mode, where a smooth, linear
relationship exists between the controller
output and the error
Proportional Control Mode
• In this mode a linear relationship exits between the
controller output and the error.
• For some range of errors about the setpoint, each
value of error has unique value of controller output
in one-to-one correspondence.
• The range of error to cover the 0% to 100%
controller output is called proportional band,
because the one-to-one correspondence exits only
for errors in this range.
• The analytical expression for this mode is given by:
p = kpep + p0 …(1)
kp = proportional gain between error and controller
output
p0 = controller output with no error (%)
Proportional Control Mode
Direct and Reverse Action
• The equation (1) represents reverse action,
because the term Kpep will be subtracted from p0
whenever the measured value increases the above
setpoint which leads negative error.
• The equation for the direct action can be given by
putting the negative sign in front of correction term
i.e. - Kpep.
Proportional Control Mode
• A plot of the proportional
mode output vs. error for
equation (1) is shown in
Figure.
• In the figure, p0 has been
set to 50% and two
different gains have been
used.
• It can be observed that
proportional band is
dependent on the gain.
Proportional Control Mode
• A high gain (G1) leads to
large or fast response,
but narrow band of
errors.
• On the other side a low
gain (G2) leads to small
or slow response, but
wide band of errors.
• In general, the
proportional l band is
defined by the equation:
100
PB =
kp
summary of proportional control
mode
1. If error is zero, output is constant and equal to
p0.
2. If there is error, for every 1% error, a correction
of Kp percent is added or subtracted from p0,
depending on sign of error.
3. There is a band of errors about zero magnitude
PB within which the output is not saturated at
0% or 100%.
Offset error
What is Offset?
• Proportional control alone is unable to
eliminate the offset error, which is the
difference between the desired value and the
actual value, SP − PV error, as it requires an
error to generate an output.
• An important characteristic of the proportional
control mode is that it produces a permanent
residual error in the operating point of the
controlled variable when a load change occurs
and is referred to as offset.
• It can be minimized by larger constant Kp which
also reduces the proportional band.
Proportional Control Mode
Advantages
• Easy to implement
• low cost
• Easy to tune the proportional constant
Disadvantages / Limits
• Responds only change in error.
• Error can not be reduced to zero (i.e. controlled
value cannot reach Set point)
• Fine controlling is not possible.
Applications
• Whenever there is one-to-one correspondence of
controller output is required with respect to error
change proportional mode will be ideal choice.
• The offset error limits the use of proportional mode,
but it can be used effectively wherever it is possible to
eliminate the offset by resetting the operating point.
• Proportional control is generally used in processes
where large load changes are unlikely or with moderate
to small process lag times.
• If the process lag time is small, the PB can be made
very small with large Kp, which reduces offset error.
• If Kp is made very large, the PB becomes very small,
and proportional controller is going to work as an
ON/OFF mode, i.e. high gain in proportional mode
causes oscillations of the error.
Example
• Consider the proportional-mode level-
control system of figure. Value A is
linear, with a flow scale factor of 10
m3/h per percent controller output.
The controller output is nominally 50%
with a constant kp = 10% per %. A load
change occurs when flow through
valve B changes from 500 m3/h to 600
m3/h. Calculate the new controller
output and offset error.
Certainly, valve A must move to a new
position of 600 m3/h flow or the tank
will empty.
This can be accomplished by a 60%
new controller output because
10 m3/h
QA = (60%) = 600 m3/h
%
Example
• This is a proportional controller, we have
p = kpep + p0
with the nominal condition p0=50%. Thus
p−p0 60 −50
ep = = %
kp 10
ep = 1%
• so a 1% offset error occurred because of the
load change.
Example
• For a proportional controller, the controlled variable
is a process temperature with a range of 50 to
1300C and a setpoint of 73.50C. Under nominal
conditions, the setpoint is maintained with an
output of 50%. Find the proportional offset
resulting from a load change that requires a 55%
output if the proportional gain is (a) 0.1 (b) 0.7 (c)
2.0 and (d) 5.0.
• Given data:
Temperature Range = 50 to 1300C
Setpoint (Sp) = 73.50C
P0 = 50%
P = 55%
ep = ?
Offset error = ? for Kp =0.1, 0.7, 2.0 & 5.0
Example
• For proportional controller:
P = Kpep + P0
p− p0 55 – 50 5
ep = = = %
Kp Kp Kp
(a) when Kp = 0.1 Offset error, ep = 5/0.1 = 50%
(b) when Kp = 0.7 Offset error, ep = 5/0.7 = 7.1%
(c) when Kp = 2.0 Offset error, ep = 5/2.0 = 2.5%
(d) when Kp = 5.0 Offset error, ep = 5/5.0 = 1%
[It can be observed from the results that as
proportional gain Kp increases the offset error
decreases.]
Proportional Control
Mode
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Integral Control Mode
Integral Control Mode
Advantage
• The integral control eliminates the offset
error problem by allowing the controller
to adapt to changing external conditions
by changing the zero-error output.
Integral Control Mode
Working
• Integral action is provided by summing the error over
time, multiplying that sum by a gain, and adding the
result to the present controller output.
• If the error makes random excursions above and below
zero, the net sum will be zero, so the integral action will
not contribute.
• But if the error becomes positive or negative for an
extended period of time, the integral action will begin to
accumulate and make changes to the controller output.
• The analytical expression for integral mode is given by
the equation
𝑡
p(t) = KI 0 ep 𝑑𝑡 + p(0) …(1)
p(0) = controller output when the integral action starts
(%)
KI = Integral gain
Integral Control Mode
• Another way of expressing the integral action is by
taking derivative of equation (1), which gives the
relation for the rate of change of controller output
with error.
𝑑𝑝
= KI ep …(2)
𝑑𝑡
• The equation (2) shows that when an error occurs,
the controller begins to increase (or decrease) its
output at a rate that depends upon the size of the
error and the gain.
• If the error is zero, controller output is not changed.
If there is positive error, the controller output begins
to ramp up at a rate determined by Equation (2).
Integral Control Mode
• Fig a show two different
values of gain.
• It can be observed that the
rate of change of controller
output depends upon the
value of error and the size of
the gain.
• Figure b shows how controller
output will vary for a constant
error & gain.
• It can be observed that the
controller output begins to
ramp up at a rate determined
by the gain.
• In case of gain K1, output
finally saturates at 100%, and
no further action can occur.
summary of integral control mode
• If the error is zero, the output stays fixed at a
value equal to what it was when the error went
to zero (i.e. p(0))
• If the error is not zero, the output will begin to
increase or decrease at a rate of KI %/sec for
every 1% of error.
Area Accumulation
• From calculus we learn that an integral
determines the area of the function being
integrated.
𝑡
p(t) = KI 0 ep 𝑑𝑡 + p(0) …(1)
• Thus, Equation (1) can be interpreted as
providing a controller output equal to the net
area under the error-time curve multiplied by KI.
• We often say that the integral term accumulates
error as a function of time.
• Thus, for every 1% of accumulated error-time
area, the output will be KI percent.
Example
• An integral controller is used for speed control with
a setpoint of 12 rpm within a range of 10 to 15 rpm.
The controller output is 22% initially. The constant KI
= -0.15% controller output per second per
percentage error. If the speed jumps to 13.5 rpm,
calculate the controller output after 2s for a
constant .
• We find ep from Equation
r−𝑏
ep = × 100
bmax−bmin
12 − 13.5
ep = × 100
15 − 10
ep = -30%
Example
• The rate of controller output change is then given by
Equation,
𝑡
p(t) = KI 0 ep 𝑑𝑡 + p(0)
• but ep is constant
p(t) = KI ept + p(0)
• After 2s, we have
p = (0.15)(30%)(2) + 22
p = 31%
Application
• In general, integral control mode is not used
alone, but can be used for stems with small
process lags and correspondingly small
capacities.
Integral Control Mode
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Derivative Control Mode
Derivative Control Mode
• Suppose you were in charge of controlling some
variable, and at some time, t0 ,
• Your helper yelled out,
“The error is zero”
What action do you want to take?
Well, it would seem perfectly rational to answer
“None”
because, after all, the error was zero.
Derivative Control Mode
• But suppose you have a screen that shows the
variation of error in time and that it looks like
Figure.
• You can clearly see that even though the error at t
is zero, it is changing in time and will certainly not
be zero in the following time.
• Therefore, some action should be taken even
though the error is zero! This scenario describes
the nature and need for derivative action.
Derivative Control Mode
• Derivative controller action responds to the rate
at which the error is changing- that is, derivative
of the error.
• The analytical expression for derivative control
mode is given by;
𝑑ep
p(t) = KD …(1)
𝑑𝑡
where KD = Derivative gain (s)
• Derivative action is not used alone because it
provides no output when the error is constant.
• Derivative controller action is also called rate
action and anticipatory control.
Derivative Control Mode
• Figure illustrates how derivative
action changes the controller
output for various rates of change
of error.
• For this example, it is assumed
that the controller output with no
error or rate of change of error is
50%.
• When the error changes very
rapidly with a positive slope, the
output jumps to a large value, and
when the error is not changing,
the output returns to 50%.
• Finally, when error is decreasing -
that is negative slope - the output
discontinuously changes to a
lower value.
Derivative Control Mode
• The derivative mode must be used with great
care and usually with a small gain, because a
rapid rate of change of error can cause very
large, sudden changes of controller output and
lead to instability.
Summary of Derivative Control Mode
• If the error is zero, the mode provides no
output.
• If the error is constant in time, the mode
provides no output
• If the error is changing with time, the mode
contributes an output of KD percent for every
1% per second rate of change of error.
• For direct action, positive rate of change of
error produces a positive derivative mode
output
Derivative Control Mode
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Composite Control
Modes
Composite Control Modes
• It is found from the discontinuous and
continuous controller modes, that each mode
has its own advantages and disadvantages.
• In complex industrial processes most of these
control modes do not fit the control
requirements.
• It is both possible and expedient to combine
several basic modes, thereby gaining the
advantages of each mode.
• In some cases, an added advantage is that the
modes tend to eliminate some limitations they
individually posses.
Type of Composite Control Modes
• Proportional-Integral (PI) control
• Proportional- Derivative (PD) control
• Proportional- Integral - Derivative (PID) control
Proportional-Integral (PI) control
• This control mode results from combination
of proportional and integral mode.
• The analytical expression for the PI mode is
given by:
𝑡
p = KPeP + KPeI 0 eP 𝑑𝑡 + pI(0)…(1)
pI(0) = integral term value at t=0 (initial value)
Proportional-Integral (PI) control
Advantage of this composite control mode
• The main advantage of this composite
control mode is that one-to-one
correspondence of the proportional control
mode is available and integral mode
eliminates the inherent offset.
Proportional-Integral (PI) control
Working
𝑡
p = KPeP + KIeI 0 eP 𝑑𝑡 + pI(0)…(1)
• It can be observed from the equation (1) that the
proportional gain also changes the net integration mode
gain, but the integration gain, through KI, can be
independently adjusted.
• The proportional mode when used alone produces
offset error whenever load change occurs and nominal
controller output will not provide zero error.
• But in PI mode, integral function provides the required
new controller output, thereby allowing the error to be
zero after a load change.
• The integral feature effectively provides a reset of the
zero error output after a load change occurs.
Proportional-Integral (PI) control
• Figure shows the PI mode
response for changing error.
• At time t1 , a load change
occurs that produces the
error shown.
• Accommodation of the new
load condition requires a
new controller output.
• It can be observed that the
controller output is provided
through a sum of
proportional plus integral
action that finally brings the
error back to zero value.
Summary of PI mode
• When the error is zero, the controller output is
fixed at the value that the integral term had
when the error went to zero, i.e. output will be
pI(0) when eP=0 at t = 0.
• If the error is not zero, the proportional term
contributes a correction, and the integral term
begins to increase or decrease the accumulated
value [i.e. initial value pI(0)], depending on the
sign or the error and direct or reverse action.
Application
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Proportional-Derivative
Control Mode (PD Mode)
Proportional-Integral-
Derivative Control Mode (PID
or Three Mode)
Proportional-Derivative Control Mode
• The PD mode involves the serial (cascaded) use
of proportional and derivative modes and this
mode has many industrial applications.
• The analytical expression for PD mode is given
by
𝑑eP
p = KPeP + KPKD + p0
𝑑𝑡
• This system will not eliminate the offset of
proportional controller, however, handle fast
process load changes as long as the load change
offset error is acceptable.
Proportional-Derivative Control Mode
• Figure shows a typical PD
response for load changes.
• It can be observed that the
derivative action moves the
controller output in relation
to the error rate change.
• Figure show PD control
mode response, showing
offset error from
proportional mode and
derivative action for
changing load, for reverse
acting system.
Proportional-Integral-Derivative Control
Mode (PID or Three Mode)
• One of the most powerful but complex
controller mode operations combines the
proportional, integral, and derivative modes.
• This PID mode can be used for virtually any
process condition.
• The analytical expression is given by
𝑡 𝑑eP
p = KPeP + KPKI 0 eP 𝑑𝑡 + KPKD + pI(0)…(1)
𝑑𝑡
pI(0) = integral term value at t=0 (initial value)
Proportional-Integral-Derivative Control
Mode (PID or Three Mode)
• This mode eliminates
the offset of the
proportional mode and
still provides fast
response for changing
loads.
• A typical PID response
is shown in Figure.
• In figure, the response
of the three-mode
system to an error is
shown.
Example
• Suppose the error, Figure, is
applied to a proportional-
derivative controller with KP = 5,
KD = 0.5s, and p0 = 20%. Draw a
graph of the resulting controller
output.
• In this case, we evaluate
𝑑eP
p = KPeP + KPKD + p0
𝑑𝑡
over the two spans of the error.
• In the time of 0 to 1 s where ,
eP = at we have
p1 = Kpat + KPKDa + p0
Here a = 1%/sec
p1 = 5t + 2.5 + 20
Example
• Note the instantaneous
change of 2.5% produced
by this error. In the span
from 1 to 3 s, we have
p2 = 5 + 20 = 25
• The span from 3 to 5 s has
an error of , eP = -0.5t + 2.5
so that we get for 3 to 5s
p3 = -2.5t + 12.5 - 12.5 + 20
OR
p3 = -2.5t + 31.25
Example
• Let us combine everything and
see how the error of Figure
produces an output in the
three-mode controller with KP
= 5, KI = 0.7s-1 ,KD=0.5 s, and
pI(0) = 20%. Draw a plot of the
controller output.
• From Figure, the error can be
expressed as follows:
Example
𝑡 𝑑eP
p = KPeP + KPKI 0 P
e 𝑑𝑡 + K P D 𝑑𝑡 + pI(0)
K
𝑡 𝑑eP
p = 5eP + 3.5 0 P
e 𝑑𝑡 + 2.5 + 20
𝑑𝑡
From 0 to 1 s, we have
𝑡
p1 = 5t + 3.5 e 𝑑𝑡
0 P
+ 2.5 + 20
p1 = 5t + 1.75t2 + 22.5
• This is plotted in Figure in the span
of 0 to 1s.
• At the end of 1 s, the integral term
has accumulated to pI(1) = 21.75%.
Now, from 1 to 3 s, we have
𝑡
p2 = 5 + 3.5 0 (1) 𝑑𝑡 + 21.75
p2 = 3.5(t - 1) + 26.75
Example
• This controller variation is shown
in Figure from 1 to 3 s.
• At the end of 3s, the integral term
has accumulated to a value of
pI(3)= 21.75%.
• Finally, from 3 to 5s, we have
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
ANALOG CONTROLLERS
Two - position Controller
Proportional Mode
Integral Mode
ANALOG CONTROLLER
• An analog controller is a device that implements
the controller modes described previously,
using analog signals to represent the loop
parameters.
• The analog signal may be in the form of an
electric current or a pneumatic air pressure.
Two - position Controller
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Derivative Mode
Composite Controller
Modes
Derivative Mode
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Velocity & Position
Algorithm of PID
Control
Bumpless Transfer
Velocity & Position Algorithm of PID
Control
• In the digital control mode, the
error signal is first sampled
and the controller output is
computed numerically through
a digital processor.
• Now Controller output for a
continuous-type P-I-D
controller:
…(1)
• The above equation can be
discretised at small sampling
interval T0 as shown in Figure.
Velocity & Position Algorithm of PID Control
• Taking the first order
derivative,
…(2)
• The above algorithm is known as Position
algorithm.
• But the major problem here is that the error
values at all the time instants are to be stored
(or at least the second term of the r.h.s of Eqn.
(2) at each instant have to be stored).
• An alternative approach known as velocity
algorithm can be obtained as follows.
Velocity & Position Algorithm of PID Control
…(2)
• From (2), one can write the error signal at the
(k-1)th instant as:
..(3)
• Subtracting eqn. (3) from (2), we can have:
Velocity & Position Algorithm of PID Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Integral Wind Up
Controller Bias
Integral Wind Up
What is Wind Up ?
• When the controller reaches the actuator limit,
then the actuator becomes saturated and the
system effectively operates in open loop
• The integral term and the controller output may
become really large = large overshoot
• The controller signal remains saturated even if
the error begins to increase; hence, very bad
transients
• Example: When a car is on a steep hill, the
throttle saturates when the cruise control
attempts to maintain speed.
Integral Wind Up
The PI Algorithm
Where:
CO = controller output signal (the wire out)
CObias = controller bias or null value
e(t) = current controller error, defined as SP – PV
SP = set point
PV = measured process variable (the wire in)
KC = proportional gain, a tuning parameter
KI = integral gain, a tuning parameter
Integral Wind Up
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Tuning of Controller
Design Problems
Performance Criteria
Time-Integral Performance
Criteria
Why study Controller Tuning?
• Controller tuning refers to the
adjustments in the tuning parameters
(proportional gain, integral gain and
derivative gain) in order to ensure the
best response of the controller.
• In any control process, when a controller
is properly tuned, there is reduced
process variability, maximum efficiency,
minimum energy costs and high
production rates.
• Hence it is important to study controller
tuning.
Design Problems
• Consider the block diagram of general closed-
loop system shown in figure.
• When the load or the set point change, the
response of the process deviates and the
controller tries to brings the output close to the
desired set point.
Design Problems
• Figure shows the response of the controlled
process to a unit step change in the load when
different type of controllers have been used.
• We notice that different controller have different
effects on the response of the controlled process.
Design Problems
• Thus the few design question arises:
1. What type of feedback controller should be used
to control a given process?
2. How do we select the best values for the
adjustable parameters of a feedback controller?
3. What performance criterion should we use for the
selection and the tuning of the controller?
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Controller Tuning
Process reaction curve method
ZN tuning
Controller Tuning
• When the type of feedback controller has been
selected, we still have the problem of deciding
what value to use for its adjusted parameters.
• This is known as the controller tuning problem.
• There are three general approaches we can use for
tuning a controller:
1. Use simple criteria such as
The one-quarter decay ratio,
minimum settle time,
minimum largest error and so on
• This approach is simple and easy to implement
Controller Tuning
2. Use time integral performance criteria
such as
ISE
IAE
ITAE
• This approach is rather cumbersome and
relies heavily on the mathematical model of
process.
3. Use the semi empirical rules which have
been proven in practice.
Controller Tuning
• Process reaction curve method
• ZN tuning
Process reaction curve method
• This method is developed by Cohen and Coon.
• This is basically an open loop technique of tuning.
• Here the process is assumed to be a stable first
order system with time delay.
• The closed loop system is broken as shown in Fig; a
step input is applies at m’ , output is measured at b.
Process reaction curve method
• In fact, a bias input may be necessary so that
the plant output initially becomes close to
the nominal value.
• The step input is superimposed on this bias
value. The input and the output response
are plotted by suitable means as shown in
Figure.
Process reaction curve method
• M,L and K are measured.
• Let us define the following terms
corresponding to Figure.
Slope = N,
Time Constant T=K/N
Lag Ratio R=L/T
Process reaction curve method
• Then, the recommended optimum settings,
for P, P-I and P-I-D controller are as follows.
ZN Tuning Technique
• Unlike the process reaction curve method which uses
data from the open-loop response of a system, the
Ziegler- Nichols tuning technique is a closed loop
procedure.
• It goes through the following steps:
1. Bring the system to the desired operation level
2. Using propotiona; control only and with the
feedback loop closed, introduce a set point change
and vary proportional gain until the system oscillates
continuously.
3. The frequency of continuous oscillation is the
crossover frequency 𝜔CO. Let M be the amplitude
ratio of the system response at the crossover
frequency
ZN Tuning Technique
4. Compute the following two quantities
1
Ultimate gain = KU =
𝑀
2𝜋
Ultimate period of sustained cycling = PU =
𝜔CO
min/cycle
• Using value of KU and PU, set gain according to
given in table.
Controller KC 𝝉l 𝝉D
P Ku/2
P-I Ku/2.2 PU/1.2
P-I-D Ku/1.7 PU/2 PU/8
ZN Tuning Technique
Advantages
• Does not need require expert knowledge.
• Does not require model of system
• Often produce good initial Kp, KD, KI.
Disadvantages
• Not mathematically rigorous
• It require a stable system
• If you do not have model real experiment could be
costly.
• Require a system that can be driven a ustable with
increasing promotional gain
Controller Tuning
Process reaction curve method
ZN tuning
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Feedback control
Feedforward Control
Feedback control
Heat Exchanger
• Figure depict the use of feedforward control in
heat exchanger.
• The objective is to keep the exit temperature of
the liquid constant by manipulating the steam
flow rate.
Feedforward Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Cascade Control
Ratio Control
Cascade Control
Why cascade control Require?
• It should be noted that a simple closed loop control
system is not a panacea. It can not perfectly solve
all problems.
• One of the problems is that non-control engineers
often expect a simple loop to operate perfectly.
Happily there are many design changes we can
make to improve the degree of control.
• Cascade control allows us to share the work
between two or more controllers. Ratio control
allows us to control two or more parameters from a
couple of related setpoints.
Cascade Control
• Cascade control is the technique of nesting one
control loop inside another. It allows the
workload to be shared between the two loops.
• The name derives from the fact that the output
of the outer controller is cascaded into the
setpoint of the inner controller.
Cascade Control
• By sharing the workload between the two
controllers the advantages of the closed loop
control (above) are increased.
• Accuracy, speed of response, settling time
after a disturbance, and any control errors
are all improved.
• The cost is that you need a second
measuring device which can be expensive,
especially when installation costs are
considered.
Cascade Control
• The following is a cascade control system
with level control cascaded into flow control.
The level controller output is fed into the
flow control setpoint.
Cascade Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
SWELL AND
SHRINK REACTION
Inverse Response
SWELL AND SHRINK REACTION
• A sudden increase or decrease in
steam flow changes the pressure
in the steam drum and boiler
circuit.
• The change in pressure will cause
a change in both the boiling point
and density of the water and
steam.
• These combined reactions will
cause the level in the steam drum
to increase or decrease rapidly.
• The increase and decrease in the
water level caused by the pressure
change are commonly referred to
as the swell and shrink reactions.
SWELL REACTION
• A sudden steam load
increase will naturally
produce a drop in the
pressure in the steam
drum, because, initially
at least, the firing rate
cannot increase fast
enough to match the
steam production rate at
the new demand level.
• When the pressure in the
drum drops, it has a
dramatic effect on the
natural convection within
the boiler.
SWELL REACTION
• The drop in pressure
causes a small fraction of
the saturated water in the
boiler to immediately
vaporize, producing a large
amount of boil-up from
most of the tubes in the
boiler.
• During the transient, most
of the tubes temporarily
become risers. The result is
that the level in the steam
drum above the
combustion chamber rises.
SHRINK REACTION
• If the steam output
from the boiler is
reduced suddenly, the
pressure will increase
in the boiler circuit.
• This increase of
pressure will cause the
drum level to shrink
initially and then
increase due to the
higher inflow than
outflow.
Inverse Response
• When you push down on your car’s
accelerator, you expect the car to speed
up, right?
What if it slows down?
• Or even worse: You lift your foot off the
accelerator and your car speeds up.
• And the more you lift your foot, the
more the car speeds up.
• These are almost unthinkable and
certainly scary situations, yet they occur
every day in thousands of boilers and
some other processes around the
world.
• The phenomenon is called an inverse
response.
Inverse Response
• The temperature of the
feedwater flowing into
the drum is normally
below boiling point.
• When we add more of
this colder water to the
boiler, some of the
steam bubbles in the
boiler condense.
• This causes the drum
level to decrease and
the effect is called
inverse response.
Inverse Response
• However, the effect is only
temporary.
• After a while, the higher
rate of feedwater flow
overcomes the lost volume
and the drum level rises .
• The opposite is also true:
when we decrease the flow
rate of the colder feedwater,
steam production increases,
and the additional steam
bubbles cause the drum
level to rise. But after a
while, the drum level begins
to fall, as expected.
SWELL AND
SHRINK REACTION
Inverse Response
L. J. Institute of Engineering & Technology
Department of Instrumentation & Control
Process Control
INSTRUCTOR:
Mr. Nimesh Prabhakar
Mob:9537723297
[email protected]
Feed water &
Drum-Level
Control
Feed water & Drum-Level Control
Limitations
• Single element water level control system is
unable to control the level in big boilers.
• Possible inadequate control option because
of the swelling effect of Boiler
Two Element
Salient features
• The three-element system provides tighter
control for drum level with fluctuating steam
load.
• This system is ideal for fluctuating feedwater
pressure or flow.
• More sophisticated level of control.
Feed water &
Drum-Level
Control