Professional Documents
Culture Documents
on
ey
w
4528.04.R380.02
Fo
I el
r S ss l P
h
C e d op u e r
ig Ho in A nd
rv ll 2 se 9 e
ed 0 nt
09 on ia
ly l
1
H
2
2
on
ey
Fo w
I el
r S ss l P
h
C e d op u e r
op ll/ t ri
Basic Control Theory
yr Aff o S eta
Al igh lia h ry
l r t te ell a
ig Ho in A nd
ht n te p
s e rn ril C
re yw a 2 on
se e l u 00 fid
rv ll 2 se 9 e
ed 0 nt
09 on ia
ly l
Basic Control Theory 3
Workshop
l
ia
nt
Process control, on a working level, involves the control of
variables such as flow rate, temperature, and pressure in a
rv ll 2 se 9 e
continuously operating plant. Process control, in a general sense,
se e l u 00 fid
attempts to maximize profitability, ensure product quality, and
improve the safety and operability of the plant.
ly
re yw a 2 on
09 on
While a steady state simulation in UniSim Design allows the design
engineer to optimize operating conditions in the plant, dynamic
s e rn ril C
simulation allows you to:
ig Ho in A nd
choosing one that may be suitable for implementation
l r t te ell a
stress the system with disturbances as desired to test for
ed 0
ht n te p plant performance
Al igh lia h ry
Fo
Learning Objectives
In this module you will:
3
4 Basic Control Theory
Process Dynamics
l
ia
nt
As a precursor to understanding the concepts of process control,
the dynamic characteristics of the process will be discussed. The
rv ll 2 se 9 e
task of designing a control scheme is best carried out if there is a
se e l u 00 fid
good understanding of the process system being studied. A process
response to a change can vary considerably depending on the
ly
re yw a 2 on
manner in which the input is applied to the system, and the nature
of the system itself. Therefore, it is important to understand the
09 on
dynamic characteristics of the process system before proceeding
s e rn ril C
with the process control design.
ig Ho in A nd
Many chemical engineering systems are non-linear in nature.
However, it is convenient to define some essential characteristic
parameters of a process system by approximating the system as
l r t te ell a
ed 0
linear.
ht n te p
Al igh lia h ry
Characteristic Parameters
yr Aff o S eta
Figure 1
ey
I
h
on
H
Fo
4
Basic Control Theory 5
l
flow relation first order liquid level system: The conservation of
ia
material in the tank is expressed as follows:
nt
dV dH
rv ll 2 se 9 e
------- = A ------- = F i F o (2)
se e l u 00 fid
dt dt
ly
re yw a 2 on
09 on
Where: H = the liquid height in the tank
s e rn ril C
A = the cross sectional area of the tank, assumed
constant
ed 0
Fo = the exit flow rate
ht n te p
Al igh lia h ry
bottom of the tank, Fo, and the liquid height in the tank, H. In
order to express Equation (2) as a first order linear differential
equation, it must be assumed that the exit flow varies linearly with
op ll/ t ri
does not vary considerably over time. The exit flow, Fo, can be
expressed in terms of the linearity constant, R (the valve
r
resistance):
r S ss l P
e
el
H
F o = ----
u
(3)
R
w
ey
I
h
dH H
H
dt R
dH
RA ------- + H = RF i (5)
dt
5
6 Basic Control Theory
l
state gain, K, and the time constant, :
ia
nt
dy
------ + y ( t ) = Ku ( t )
rv ll 2 se 9 e
(6)
dt
se e l u 00 fid
ly
re yw a 2 on
Where: y(t) = the output of the system
09 on
u(t) = input to the system
s e rn ril C
K = the steady state gain
ed 0
The change in liquid level, H, is the change in the output of the
ht n te p
Al igh lia h ry
system, y(t). The change in the input to the system, u(t), is the
change in flow into the tank, Fi.
yr Aff o S eta
Similarly, the time constant, , and the steady state gain, K, can
be expressed as (7):
op ll/ t ri
C e d op
= AR and K = R (7)
r
r S ss l P
Fo
6
Basic Control Theory 7
Figure 2
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
As shown, the output, y(t), attains 63.2% of its final steady state
value in one time constant, . The Process Variable (PV) can be
assumed to equal its final value after approximately four time
op ll/ t ri
Variable (PV). In the flow example given above, the dead time
u
previous example.
H
Fo
Process Gain
The process gain is defined as the ratio of the change in the
process output to the change in the process input. The change in
the process input is defined in Equation (5),(6) as u(t). The change
in the process output is defined as y(t). The first term in
Equation (6) is transient and becomes zero at steady state.
Therefore the gain can be calculated as shown in Equation (8).
7
8 Basic Control Theory
y( t )
Steady-state gain = --------- = K
l
(8)
u( t)
ia
nt
Time Constant
rv ll 2 se 9 e
se e l u 00 fid
The time constant, , defines the speed of the response. The
ly
re yw a 2 on
response of the system will always follow the profile shown on the
09 on
previous page. After time units, the response y(t) equals 0.632
s e rn ril C
PV or 63.2% of the final PV value. This will always be true for first
order systems.
ig Ho in A nd
Dead Time
l r t te ell a
ed 0
ht n te p
While capacitance is a measure of how fast a system responds to
Al igh lia h ry
Capacity
u
w
ey
Definition 1
I
h
on
Fo
C = --- (9)
R
8
Basic Control Theory 9
l
ia
response of the system for a given forcing function.
nt
In first order systems, the capacity of a system has no effect on
the process gain. However, the capacity varies in direct proportion
rv ll 2 se 9 e
with the time constant of a system.
se e l u 00 fid
ly
Definition 2
re yw a 2 on
09 on
A systems capacity is also defined as its ability to attenuate an
s e rn ril C
incoming disturbance. Attenuation is defined as (10):
ed 0
(10)
ht n te pAttenuation = 1 Amplitude Ratio
Al igh lia h ry
yr Aff o S eta
Controller Setup
op ll/ t ri
C e d op r
The PID Controller operation is the primary tool that you can use
r S ss l P
9
10 Basic Control Theory
Terminology
l
ia
Before reviewing the major control operations that are available in
nt
UniSim Design, it is useful to describe some terms.
rv ll 2 se 9 e
Disturbances
se e l u 00 fid
ly
re yw a 2 on
A disturbance upsets the process system and causes the output
09 on
variables to move from their desired set points. Disturbance
s e rn ril C
variables cannot be controlled or manipulated by the process
engineer. The control structure should account for all disturbances
that can significantly affect a process. The disturbances to a
ig Ho in A nd
process can either be measured or unmeasured.
l r t te ell a
ed 0
Open Loop Control
ht n te p
Al igh lia h ry
Figure 3
r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
10
Basic Control Theory 11
l
ia
Feedback control is achieved by feeding back process output
nt
information to the controller. The controller makes use of the
current information about the process variable in order to
rv ll 2 se 9 e
determine what action to take to regulate the process variable.
se e l u 00 fid
This is the simplest and most widely used control structure in
chemical process systems.
ly
re yw a 2 on
Figure 4
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
2. Compare the measured value, PV, with the desired set point
I
value, SP. Calculate the error, E(t), between the two values.
h
on
11
12 Basic Control Theory
Kc dE ( t )
ia
OP ( t ) = K c E ( t ) + ------ E ( t ) + K c T d ------------- (11)
T i dt
nt
rv ll 2 se 9 e
se e l u 00 fid
Where: OP(t) = controller output at time t
ly
E(t) = error at time t
re yw a 2 on
09 on
Kc = proportional gain of the controller
s e rn ril C
Ti = integral (reset) time of the controller
ig Ho in A nd
l r t te ell a Td = derivative (rate) time of the controller
Figure 5
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
difference between the output process variable and the set point.
The error is defined differently depending on whether the process
has a positive or negative steady state gain. For a process with a
positive steady state gain, the error should be defined as reverse
acting.
E ( t ) = SP ( t ) PV ( t ) (12)
12
Basic Control Theory 13
l
ia
PV(t) = measured output process variable
nt
That is, if the PV rises above the SP, the OP, or input to the
rv ll 2 se 9 e
process, decreases. If the PV falls below the SP, the OP increases.
se e l u 00 fid
For a process with a negative steady state gain, the error should
ly
be set as direct acting (13):
re yw a 2 on
09 on
s e rn ril C
E ( t ) = PV ( t ) SP ( t ) (13)
ig Ho in A nd
That is, if the PV rises above the SP, the OP, or input to the
process, increases. If the PV falls below the SP, the OP decreases.
l r t te ell a
ed 0
ht n te p
A typical example of a reverse-acting controller is in the
Al igh lia h ry
in the vessel rises past the SP, the OP decreases, in effect closing
the steam valve and reducing the flow of heat.
op ll/ t ri
_____________________________________________________
e
el
u
w
Stability
ey
I
Fo
the input forcing function, the output typically will respond in one
of three ways:
13
14 Basic Control Theory
Figure 6
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
Tuning parameters
Non-linearities in the process
Range and non-linearities in the instruments
Interactions between control loops
Frequency of disturbance
Capacity of process
14
Basic Control Theory 15
l
ia
Available Control
nt
Operations
rv ll 2 se 9 e
se e l u 00 fid
Modeling Hardware Elements
ly
re yw a 2 on
09 on
The plant may be simulated more accurately by modeling the
s e rn ril C
hardware elements of the control loop. Non-linearities may be
modeled in the Valve operation on the Actuator page of the
ig Ho in A nd
Dynamics tab.
l r t te ell a
Sensors
ed 0
ht n te p
Al igh lia h ry
modes for the valve. If valve dynamics are very quick compared to
w
Fo
15
16 Basic Control Theory
l
ia
the desired OP% position from the controller.
Linear The actuator can be modeled to move to the desire
nt
OP% at a constant rate. This rate is specified in the
Parameters group.
rv ll 2 se 9 e
First Order A first order lag can be modeled in the response of
se e l u 00 fid
the actuator position to changes in the desired OP%.
The actuator time constant can be specified.
ly
re yw a 2 on
Similarly, a first order lag can be modeled in the
09 on
response of the actual valve position to changes in
the actuator position. The valve stickiness time
s e rn ril C
constant is specified in the Parameters group. In
effect, a second order lag can be modeled between
the valve position and the desire OP%.
ig Ho in A nd
Second Order A second order lag can be modeled in the response of
the actuator position to changes in the desired OP%.
l r t te ell a
The actuator time constant and the Damping
ed 0
ht n te p Coefficient can be specified.
Al igh lia h ry
valve percent opening and the valve type. Valve type may be
C e d op
Design. The valve types are specified in the Ratings tab in the
w
16
Basic Control Theory 17
l
ia
Figure 7
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
Feedback Control
yr Aff o S eta
op ll/ t ri
Digital On/Off
C e d op
is below the set point, the heating element turns on. When the
el
temperature rises above the set point, the heating element turns
u
w
off.
ey
controller output turns on when the PV falls below the set point.
Fo
17
18 Basic Control Theory
l
ia
nt
One main characteristic of the On/Off controller is that the PV
rv ll 2 se 9 e
will always cycle about the set point.
se e l u 00 fid
Figure 8
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
Leaving the values for and the cycling does not destabilize the rest of the process.
ey
TI and TD as <empty>
I
control.
18
Basic Control Theory 19
OP ( t ) = OP ss + K c E ( t )
l
(16)
ia
nt
The value of the bias, OPss, is calculated when the controller is
rv ll 2 se 9 e
switched to Auto(matic) mode. The set point is defaulted to equal
se e l u 00 fid
the current PV. In effect, the error becomes zero and OPss is then
set to the value of OP(t) at that time.
ly
re yw a 2 on
09 on
A sustained offset between the process variable and the set point
will always be present in this sort of control scheme. The error
s e rn ril C
becomes zero only if:
ig Ho in A nd
Kc becomes infinitely large
l r t te ell a
ed 0
However, Kc cannot practically become infinitely large. The
ht n te p
Al igh lia h ry
magnitude of Kc is restricted by the stability of the closed loop
system.
yr Aff o S eta
Figure 9
w
ey
I
h
on
H
Fo
19
20 Basic Control Theory
l
state offsets are unimportant, or when the process possesses a
ia
large integrating process (has a large capacity). Many liquid level
nt
control loops are under P only control. If a sustained error is
undesirable, integral action is required to eliminate the offset.
rv ll 2 se 9 e
se e l u 00 fid
Proportional + Integral Control (PI)
ly
re yw a 2 on
Unlike P-only control, proportional + integral control can dampen
09 on
out oscillations and return the process variable to the set point.
s e rn ril C
Despite the fact that PI control results in zero error, the integral
action of the controller increases the natural period of the
oscillations. That is, PI control will take longer to line out (dampen)
ed 0
ht n te p
Al igh lia h ry
Kc
OP ( t ) = K c E ( t ) + ------ E ( t ) (17)
yr Aff o S eta
T i
Notice that the time
that it takes to reach
op ll/ t ri
response.
eliminate the error. The closed loop response of a process with PI
r S ss l P
Figure 10
u
w
ey
I
h
on
H
Fo
20
Basic Control Theory 21
The integral time, Ti, is defined as the amount of time required for
T
l
Because the relationship between Ti and the control action is
ia
reciprocal, increasing Ti will result in less integral action, while
nt
T
rv ll 2 se 9 e
Due to the reciprocal
return the process variable to the set point. Any more action will
se e l u 00 fid
effect, setting TI to zero only serve to lengthen the response time.
means that there will be
ly
re yw a 2 on
an infinite integral PI control is suitable when offsets cannot be tolerated. The
effect. To minimize the
majority of controllers in chemical process plants are under PI
09 on
integral effect, set TI to
control. They combine accuracy (no offset) with a relatively quick
s e rn ril C
a large value (1000*KC)
response time. However, the added integral action acts as a
destabilizing force which may cause oscillations in the system and
ig Ho in A nd
cause the control system to become unstable. The larger the
integral action the more likely it will become unstable.
l r t te ell a
ed 0
ht n te p Proportional Integral Derivative Control
Al igh lia h ry
(PID)
yr Aff o S eta
Kc dE ( t )
u
OP ( t ) = K c E ( t ) + ------ E ( t ) + K c T d -------------
w
(18)
T i dt
ey
I
h
on
only response will be ramped, as well. For the same ramped input
the derivative only response will be constant.
21
22 Basic Control Theory
l
infinity in either the set-point or the measured process variable is
ia
not physically possible, signals which have short rise and fall times
nt
can occur. This adversely affects the output of the derivative term
in the control equation, driving the controller response to
rv ll 2 se 9 e
Derivative action cannot saturation.
se e l u 00 fid
be used in systems
where the PV signal will Derivative action control is best for processes which have little or
ly
contain noise.
re yw a 2 on
no dead times and large capacities. Processes such as these,
having large lags benefit from the additional response speed that
09 on
derivative action provides. While the integral term in PID control
s e rn ril C
schemes reduces the error to zero, it also adds a considerable lag
to the response compared to P-only control. It is the derivative
ig Ho in A nd
action in PID control which shortens the controllers response to be
comparable to the response of a P-only controller. However, if a
Notice that the time to controller has a very noisy input which cannot be filtered or
l r t te ell a
ed 0
steady state is shorter
minimized in the process, PID control is not a suitable control
ht n te p
for the PID controller
Al igh lia h ry
Fo
22
Basic Control Theory 23
Feedforward Control
l
ia
Feedforward control may be used in cases for which feedback
nt
control cannot effectively control a process variable. The main
disadvantage of feedback control is that the controller must wait
rv ll 2 se 9 e
until disturbances upset the process before responding. With
se e l u 00 fid
feedforward control, the controller can compensate for
disturbances before the process is affected. Cascade control is
ly
useful when measured disturbances significantly affect the input to
re yw a 2 on
a process. On the other hand, feedforward control is useful if there
09 on
are measured disturbances which affect the output of the process.
s e rn ril C
With feedback control, the controller requires information about the
controlled process variable, PV, and the set point, SP, in order to
ed 0
the feedforward controller requires information from two variables:
ht n te p the set-point of the process variable, SP, and the disturbance
Al igh lia h ry
Feedforward page of
C e d op
controllers.
r
r S ss l P
e
el
u
w
ey
I
h
on
H
heat exchanger.
23
24 Basic Control Theory
Figure 13
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
It is desired to control the exit stream temperature, T2, at a certain
l r t te ell a
T
ed 0
set point (SP), using the steam flow as the manipulated variable.
ht n te p
However, the process suffers from frequent changes in the feed
Al igh lia h ry
T2 (19):
C e d op
F s FC p ( T 2 T 1 ) = 0 (19)
r
r S ss l P
e
el
From this process model, the desired value of steam flow into the
Fo
Cp
F s = ------- F ( SP T 1 ) (20)
24
Basic Control Theory 25
l
opening of the steam valve. Therefore the final form of the
ia
feedforward controller equation is (21):
nt
Cp
rv ll 2 se 9 e
steam valve span
OP ( t ) = ------F ( SP T 1 ) ---------------------------------------------- (21)
se e l u 00 fid
100%
ly
re yw a 2 on
09 on
There are some points to consider in order to successfully
s e rn ril C
implement a feedforward control system:
ig Ho in A nd
If unexpected disturbances enter the process when pure
feedforward control is used, no corrective action is taken and
the errors will build up in the system.
l r t te ell a
ed 0
ht n te p
5. A fairly accurate model of the system is required.
Al igh lia h ry
valve dynamics are not accounted for in this control scheme, and
u
w
that the valve opening percent is not related linearly to the flow in
most dynamic simulation applications, there will probably be an
ey
offset between the actual controlled variable and its desired set-
I
h
Fo
25
26 Basic Control Theory
General Guidelines
l
ia
nt
Effect of Characteristic
rv ll 2 se 9 e
se e l u 00 fid
Process Parameters on
ly
re yw a 2 on
Control
09 on
s e rn ril C
The characteristic parameters of a process have a significant effect
on how well a controller is able to attenuate disturbances to the
ig Ho in A nd
process. In many cases, the process itself is able to attenuate
disturbances and can be used in conjunction with the controller to
l r t te ell a
achieve better control. The following is a brief discussion outlining
ed 0
ht n te p
the effect of capacity and dead time on the control strategy of a
Al igh lia h ry
plant.
yr Aff o S eta
Capacity
op ll/ t ri
K
Attenuation = 1 ----------------------------
e
el
(22)
( ) 2 + 1
u
w
ey
26
Basic Control Theory 27
Dead Time
l
ia
The dead time has no effect on attenuating disturbances to open
nt
loop systems. However, it does have a significant negative effect
on controllability. Dead time in a process system reduces the
rv ll 2 se 9 e
amount of gain the controller can implement before encountering
se e l u 00 fid
instability. Because the controller is forced to reduce the gain, the
process is less able to attenuate disturbances than the same
ly
process without dead time. Tight control is possible only if the
re yw a 2 on
equivalent dead time in the loop is small compared to the shortest
09 on
time constant of a disturbance with a significant amplitude.
s e rn ril C
It is generally more effective to reduce the dead time of a process
than increase its capacity. To reduce dead time:
ig Ho in A nd
Relocate sensor and valves in more strategic locations
l r t te ell a
ed 0
Minimize sensor and valve lags (lags in the control loop act
ht n te p
Al igh lia h ry
like dead time)
yr Aff o S eta
Controller
u
w
ey
for the set point variables, and what acceptable limits they must
h
on
27
28 Basic Control Theory
l
should be used
ia
If there is no significant noise in the process, and the
nt
capacity of the system is large and there is no dead time, a
rv ll 2 se 9 e
PID controller may be appropriate
se e l u 00 fid
It is apparent why the PI controller is often the most common
controller found in a plant. There are three possible conditions that
ly
re yw a 2 on
a PI controller can handle, whereas the PID controller requires
09 on
a specific set of conditions in order to be used effectively.
s e rn ril C
Choosing Controller Tuning
ig Ho in A nd
Parameters
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
The following rules are approximate. They will provide you very
close to tight control. You can adjust the tuning parameters further
r
response.
u
w
gradually.
Fo
28
Basic Control Theory 29
l
System KC Ti (minutes) TD (minutes)
ia
Flow 0.1 0.2 <empty>
nt
Level 2 10 <empty>
rv ll 2 se 9 e
Pressure 2 2 <empty>
These values are
se e l u 00 fid
estimations only. They Temperature 1 20 <empty>
will generally provide
ly
adequate control under
re yw a 2 on
most circumstances.
Flow Control
09 on
s e rn ril C
Since the flow control is fast responding, it can be used effectively
as the secondary controller in a cascade control structure. The non-
linearity in the control loop may cause the control loop to become
ed 0
ht n te p
Al igh lia h ry
element. The liquid pressure loop can be tuned for PI and Integral-
only control, depending on your performance requirements.
r
r S ss l P
and 5 minutes.
29
30 Basic Control Theory
l
ia
Gas pressure control is similar to the liquid level process in that it
nt
is capacity dominated without dead time. Varying the flow into or
out of a vessel controls the vessel pressure. Because of the
rv ll 2 se 9 e
capacitive nature of most vessels, the gas pressure process usually
se e l u 00 fid
has a small process gain and a slow response. Consequently, a
high controller gain can be implemented with little chance of
ly
instability.
re yw a 2 on
09 on
s e rn ril C
Temperature Control
ig Ho in A nd
PI controllers are widely used in industry; however PID control can
be used to improve the response time if the loop is slow.
l r t te ell a
ed 0
ht n te p
Tuning Methods
Al igh lia h ry
yr Aff o S eta
Fo
4. When the process variable (PV) crosses the set point, move the
valve position +2h%.
30
Basic Control Theory 31
l
6. Record the amplitude of the response, A. Make sure to express
ia
A as a fraction of the PV span.
nt
Figure 14
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
Ultimate Gain 4h
K u = ------
a
Ultimate Period
r
Controller Gain Ku
K c = -------
3.2
e
el
31
32 Basic Control Theory
l
K u = Controller gain that produces limit cycle
ia
Ultimate Period
nt
P u = Period taken from limit cycle
rv ll 2 se 9 e
Controller Gain Ku
K c = -------
se e l u 00 fid
2.2
ly
re yw a 2 on
09 on
Autotuner
s e rn ril C
The Unisim Design Autotuner function provides tuning parameters
ig Ho in A nd
for the PID controller based on gain and phase margin design.
The Autotuner itself can be viewed as another controller object
that has been embedded into the PID controller. The Autotuner
l r t te ell a
ed 0
ht n te p is based on a relay feedback technique and by default incorporates
Al igh lia h ry
are default values The PID controller parameters that are obtained from the
specified for the PID
tuning. Before starting
Autotuner are based on a design methodology that makes use of
the Autotuner you must a gain margin at a specified phase angle. This design is quite
op ll/ t ri
ensure that the similar to the regular gain and phase margin methodology except
C e d op
controller is in the that it is more accurate since the relay has the ability to determine
Man(ual) or Auto(matic)
mode and the process
points in the frequency domain accurately and quickly. Also, the
r
is relatively steady. relay experiment is controlled and does not take a long time during
r S ss l P
32
Basic Control Theory 33
Setting up a Control
l
ia
Strategy in UniSim Design
nt
rv ll 2 se 9 e
This section outlines a possible way to create a control strategy in
UniSim Design. You should first follow the guidelines outlined in
se e l u 00 fid
Section 1.5.2 - Moving from Steady State to Dynamics in the
ly
Dynamic Modeling manual in order to setup a stable dynamic case.
re yw a 2 on
In many cases, an effective control strategy will serve to stabilize
09 on
the model.
s e rn ril C
You can install controllers in the simulation case either in Steady
State or Dynamics mode. There are many different ways to setup a
ed 0
ht n te p
PID and Digital
Al igh lia h ry
On/Off controllers
are not active while
1. Select the Controlled Variables
yr Aff o S eta
UniSim Design is in
in the Plant
Steady State mode.
op ll/ t ri
objective and maintain stability within the plant. Either design the
controllers in the plant according to your own standards and
r
33
34 Basic Control Theory
l
specification to behave sinusoidally or follow a ramp, you can
ia
attach the variable to the Transfer Function operation. A variety of
nt
different forcing functions and disturbances can be modeled in this
manner.
rv ll 2 se 9 e
se e l u 00 fid
The behavior of controlled variables is determined by the type of
controller and the tuning parameters associated with the controller.
ly
re yw a 2 on
Typically, the number of control valves in a plant dictates the
possible number of controlled variables. There will be more
09 on
variables to control in Dynamics mode than in Steady State mode.
s e rn ril C
For instance, a two-product column in Steady State mode requires
two steady state specifications. The simulator will then manipulate
ig Ho in A nd
the other variables in the column in order to satisfy the provided
specifications and the column material and energy balances. The
same column in Dynamics mode requires five specifications. The
l r t te ell a
ed 0
three new specifications correspond to the inventory or integrating
ht n te p
Al igh lia h ry
specifications that were not fixed in steady state. The inventory
variables include the condenser level, the reboiler level, and the
yr Aff o S eta
column pressure.
op ll/ t ri
throughput.
e
el
u
Fo
34
Basic Control Theory 35
Connections Tab
l
ia
Process Variable (PV)
nt
The process variable can be specified in the Connections tab by
rv ll 2 se 9 e
clicking the Select PV button. The controller measures the
se e l u 00 fid
process variable in an attempt to maintain it at a specified
set point, SP.
ly
re yw a 2 on
09 on
Operating Variable (OP)
s e rn ril C
The operating variable, OP, can be specified in the Connections
ig Ho in A nd
tab by clicking the Select OP button. The output of the controller
is a control valve. The output signal, OP, is the percent opening of
the control valve. The operating variable may be specified as a
l r t te ell a
ed 0
physical valve in the plant, a material stream, or an energy
ht n te p
Al igh lia h ry
stream.
yr Aff o S eta
Operating Description
The output of a Variable
controller is always a
control valve, unless Physical Valve It is recommended that a physical valve be used as the
op ll/ t ri
the controller is the operating variable for a controller. The controllers output
primary controller in a signal, OP, is the desired actuator position of the physical
C e d op
cascade control setup. valve. With this setup, a more realistic analysis of the effect
of the controller on the process is possible. Material flow
through the valve is calculated from the frictional resistance
r
It is possible to have a The actual flow of the material stream is calculated from
h
on
OP ( % )
avoided by checking the ------------------ ( Flow m ax Flow min ) + Flow m in
100
Check Valve.
35
36 Basic Control Theory
Operating Description
Variable
l
ia
Energy Stream If an energy stream is chosen as an operating variable, you
may choose a Direct Q or a Utility Fluid Duty Source by
nt
clicking the Control Valve button.
If the Direct Q option is chosen, you must specify the
rv ll 2 se 9 e
maximum and minimum energy flow of the energy stream.
se e l u 00 fid
The actual energy flow of the energy stream is calculated
similarly to the material flow:
ly
re yw a 2 on
Energy Flow = (24)
09 on
OP ( % )
s e rn ril C
------------------ ( Flow max Flow min ) + Flowmin
100
ig Ho in A nd
If the Utility Fluid option is chosen, you need to specify
the maximum and minimum flow of the utility fluid. The
heat flow is then calculated using the local overall heat
l r t te ell a
transfer coefficient, the inlet fluid conditions, and the
ed 0
ht n te p process conditions.
Al igh lia h ry
yr Aff o S eta
Parameters Tab
The action of the controller, the controllers PV range, and the
op ll/ t ri
Set the range on the control valve at roughly twice the steady
Fo
state flow you are controlling. This is achieved by sizing the valve
as Linear with an opening of 50% at the steady state pressure
drop and flow rate. If the controller uses a material or energy
stream as an operating variable (OP), the range of the streams
flow can be specified explicitly in the Control OP Port view of the
material or energy stream. This view is displayed by clicking on the
Control Valve button in the PID Controller view.
36
Basic Control Theory 37
l
time constants which can be accounted for in UniSim Design. It is
ia
suggested that a linear valve mode be used to characterize the
nt
valve dynamics of final control elements. This causes the actual
valve position to move at a constant rate to the desired valve
rv ll 2 se 9 e
positions much like an actual valve in a plant. Since the actual
se e l u 00 fid
valve position does not move immediately to the OP% set by the
controller, the process is less affected by aggressive controller
ly
re yw a 2 on
tuning and may be more stable.
09 on
s e rn ril C
4. Set up the Databook and Strip
Charts
ig Ho in A nd
l r t te ell a
Setting up strip charts for your model allows you to easily view
ed 0
ht n te p
several variables while the simulation is running. The procedure for
Al igh lia h ry
1. Open the Databook window and select the variables that are
to be included in the strip chart in the Variables tab.
op ll/ t ri
Figure 15
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
2. From the Strip Charts view, add a new strip chart by clicking
the Add button and activating the variables to be displayed on
the strip chart.
37
38 Basic Control Theory
Figure 16
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
No more than six
variables should be
ly
active on any given
re yw a 2 on
strip chart, having more
09 on
than sic active variables
will make the strip chart
s e rn ril C
difficult to read.
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
Click on the Strip Chart button in the View group box to see
yr Aff o S eta
the strip chart. Size as desired and then right click on the strip
chart and choose Graph Control. There are several tabs, where
you can set the numerical ranges of the strip chart for each
op ll/ t ri
variable, the nature of the lines for each variable and how the strip
chart updates and plots the data.
C e d op
Plates
u
w
ey
display the controllers face plate. The face plate displays the PV,
h
on
SP, OP, and Mode of the controller. Controller face plates can be
arranged in the UniSim Design work environment to allow for
H
parameters.
38
Basic Control Theory 39
Figure 17
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
integration time step is 0.5 seconds. Reducing the step size will
Fo
cause the model to run slower, but during the initial switch from
During start up of a
Steady State to Dynamics mode, the smaller step size allows the
dynamic simulation, it system to initialize better and enables close monitoring of the
may be useful to use a controllers to ensure that everything was set up properly. A smaller
small step size. step size also increases the stability of the model since the solver
However, once the
system has stabilized, a
can more closely follow changes occurring in the plant. Increase
larger value can be the integration step size to a reasonable value when the simulation
used. case has achieved some level of stability. Larger step sizes
increase the speed of integration and may be specified if the
process can maintain stability.
39
40 Basic Control Theory
Figure 18
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
and then put back in manual mode. This will initialize the
r S ss l P
variables should line out once the Integrator is run. The transition
I
h
not open loop stable like many of the unit operations in UniSim
Fo
40
Basic Control Theory 41
l
variables to a unit operation should be stabilized first. For
ia
example, the feed flow to a column should be controlled
nt
initially. Next, try to control the temperature and pressure
profile of the column. Finally, pay attention to the
rv ll 2 se 9 e
accumulations of the condenser and reboiler and control those
se e l u 00 fid
variables.
ly
3. Start conservatively using low gains and no integral action.
re yw a 2 on
Most unit operations can initially be set to use P-only control. If
09 on
an offset cannot be tolerated initially, then integral action
s e rn ril C
should be added.
ig Ho in A nd
satisfactory closed-loop performance is obtained.
ed 0
perform as desired. For example, the control strategy can be
ht n te p
Al igh lia h ry
modified to maintain a desired product composition. If energy
considerations are critical to a plant, different control strategies
yr Aff o S eta
Stability
C e d op
OP%
ey
K c = ----------------------------------------
I
(25)
PV PV Range
h
on
H
the actual process. This is achieved by using the effective gain, Keff,
which is essentially the controller gain with units. The effective gain
is defined as Equation (26):
41
42 Basic Control Theory
l
ia
provided and the maximum flow allowed by the control valve.
Decreasing the PV range increases the effective gain, Keff, and
nt
therefore decreases the stability of the overall closed-loop
response. Decreasing the final control elements flow range
rv ll 2 se 9 e
decreases the effective gain, Keff, and therefore increases the
se e l u 00 fid
stability of the closed-loop response.
ly
re yw a 2 on
09 on
The process gain has units which are reciprocal to the effective
s e rn ril C
gain.
ig Ho in A nd
have the simulation case become unstable due to modifications in
the PV range or Cv values of a final control element.
l r t te ell a
ed 0
ht n te p
You should also consider the effect of interactions between the
Al igh lia h ry
controllers.
r
r S ss l P
References
e
el
u
w
[1] Svrcek, W.Y., Mahoney, D.P., and B.R. Young. A Real Time Approach
ey
to Process Controls John Wiley & Sons Ltd, Chichester (2000) p. 125
I
h
[2] Ogunnaike, B.A. and W.H. Ray. Process Dynamics, Modelling, and
on
Fo
42