Professional Documents
Culture Documents
Basic control
considerations
Regulatory Control and PID loop
tuning
Learning Objectives
1
Basic elements
Basic elements
2
Basic elements
Controller
Process
Process lag
3
Process lag
Capacitance
4
Capacity and capacitance
B 4m
A 2m
Capacity = 32 m3 Capacity = 32 m3
Tank A Tank B
B 4m
A 2m
Capacity = 32 m3 Capacity = 32 m3
5
Capacity and capacitance
Tank A Tank B
(32 m3) (32 m3)
Paraffin Water
Resistance
Fluid in Steam in
6
Resistance
Fluid in Steam in
Dead time
The dead time, or transport lag, is the time taken for the
material, discharged from the loading hopper to be detected
by the belt weigher located some distance away.
Loading hopper
Hopper feed
actuator
Material travel
Conveyor belt
Belt weigher
Transport lag = 10 min
7
Dead time
Definition of terms
Process Process
Variable (PV) Demand (PD)
Process
8
Process reaction
? PV PD
Process
Process reaction
Δ PV %
KP
Δ PD%
Process
9
Process reaction
Process
Process reaction
10
Process reaction
Process
11
Process reaction
Process reaction
12
Process reaction
Process reaction
? PV PD
Process
13
First order lag
Q2 k h
where k is a constant determined by the resistance R of the
valve (V2).
14
First order lag
h
(b)
15
1st-order response
1.0
0.8
h
0.6 1 0.632
h 2 0.865
0.4
3 0.950
0.2 4 0.982
5 0.993
0
0 1 2 3 4 5
© 2019 Crabtree Controls Ltd. All rights reserved 31
1st-order response
0.8
0.6
h
0.4
0.2
0
0 1 2 3 4 5
t
© 2019 Crabtree Controls Ltd. All rights reserved 32
16
1st-order response
0.8
0.6
h
0.4
0.2
0
0 1 2 3 4 5
t
© 2019 Crabtree Controls Ltd. All rights reserved 33
1st-order response
/3
/2
/3
/2 /3
2 3
1
© 2019 Crabtree Controls Ltd. All rights reserved 34
17
1st-order response
0.8
0.6
1
h
0.4
2
3
0.2
0 1 2 3 4 5
0
Time constants
© 2019 Crabtree Controls Ltd. All rights reserved 35
1st-order response
18
Self-regulating flow control
PV MV
FT
PD = 30%
PV
19
Self-regulating small volume pressure control
MV PV
PT
MV PV
Steam
TT
Process medium
Condensate
20
Batch end-point control
MV PV
Steam
TT
Process medium
Integrating process
Condensate
Flow in
Output Input
LT
Process medium
Integrating process
21
Boiler tank response
Steam out
Fire stack
Level
indicator
Steam
Fire box V1
Water in
When the water in the boiler is cold the gauge shows the
same level as the internal level.
However with the presence of bubbles the internal level will
be much higher.
Steam Steam
Water Difference
level in levels Water with
Water bubbles
22
Boiler tank response
Steam out
Fire stack
Steam
Level
indicator
Fire box V1
Water in
Where:
a = step input
b = damping factor
= natural frequency of resonance
© 2019 Crabtree Controls Ltd. All rights reserved 46
23
Second Order Response
1.2
1.0
0.8
0.6
h H
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
© 2019 Crabtree Controls Ltd. All rights reserved 47
Under-damped
1.0
0.8
0.6
h H
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
© 2019 Crabtree Controls Ltd. All rights reserved 48
24
Critically damped
1.2
1.0
0.8
0.6
h H
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
© 2019 Crabtree Controls Ltd. All rights reserved 49
Over-damped
1.2
1.0
0.8
0.6
h H
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
© 2019 Crabtree Controls Ltd. All rights reserved 50
25
Dead band plus under-damped 2nd order response
1.2
1.0
0.8
0.6
h H
0.4
0.2
Deadtime
0
0 1 2 3 4 5 6 7 8 9 10
t
Process lag
1.2 r = 0.5
r = 0.7
r = 0.4
1.0
0.8
r = 1.5
r=1
0.6
h H
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
© 2019 Crabtree Controls Ltd. All rights reserved 52
26
Digital sampling
Reconstructed signal
Digital sampling
5s Analog input
Reconstructed signal
27
Digital sampling
5s Analog input
Reconstructed signal
Digital sampling
5s Analog input
Reconstructed signal
28
Aliasing
Anti-aliasing filter
Ideal response
1.0
Signal attenuation
Practical response
-3 dB point
Frequency
29
Process reaction masking
● Here, the PV filter receives the PV signal, reduces the high frequency
noise and passes it on to the controller
30
Dangers of filtering
Dangers of filtering
PV responds well on
10% setpoint change load change
31
Dangers of filtering
● In order to reduce the noise level, filtering has been applied to the
PV.
● The filtered PV seen by the operator shows no sign of overshoot
and the load change reaction shows only a small offset.
Filtered PV
response
32
Correct placement of sensors
Controller
33
Control Valve Characterisation
34
Inherent valve characteristics
100
Quick Characteristic curves
opening
80 ● linear,
Percentage flow
Linear
● equal percentage,
60
● quick opening
40
20
Equal
percentage
20 40 60 80 100
Percentage stroke
Linear characteristic
● Simply a straight line
100
relationship between flow
80 and stroke at constant
pressure drop.
Percentage flow
Linear
60
40
20
20 40 60 80 100
Percentage stroke
35
Inherent valve characteristics
Equal percentage
● equal increments of rated travel
100
will give equal percentage
80 changes of existing flow.
Percentage flow
Quick opening
● The quick opening
100
Quick characteristic produces rapid
80
opening increases in flow with small
stroke increments.
Percentage flow
60
● very close to maximum
40 available flow is achieved at
approximately 30 to 40 % of
20 stroke.
● This form of characteristic is
20 40 60 80 100 most often applied where
Percentage stroke
throttling is not the primary
concern.
© 2019 Crabtree Controls Ltd. All rights reserved 72
36
Characteristic profiling
Characteristic profiling
37
Installed characteristics
Installed characteristics
38
Installed characteristics
100
80
Percentage flow
60
40
P valve
PR
P system
20
20 40 60 80 100
Percentage stroke
39
Installed equal percentage flow characteristic
100
P valve
80 PR
P system
Percentage flow
60
40
20
20 40 60 80 100
Percentage stroke
Installed characteristics
40
Deadband
Deadband
41
Dead band
Hysterisis
42
Hysteresis
Load (M)
Hysteresis
longer length.
decreasing
Hysteresis is thus a path dependent
characteristic that can be attributed
Load to materials not being able to return
increasing to their original shape and size after
being stretched or deformed.
In most pure electronic systems,
Load (M)
hysterisis can be effectively ignored
and thus the deadband and
hysterisis are one and the same.
43
Hysteretic error
Hysteretic error
Input
Deadband + Hysteresis
Input
44
Testing for hysteresis/deadband
Equal input
step changes
Valve stem
position indication % offset in valve
position
45
Sources of hysteresis/deadband
● Undersized actuator
● Seal friction in rotary valves
● Friction in plug valves
● Inadequate air supply
● Loose or worn linkages in actuator connector
● Defective or improper calibration of I/P converter
● Loose or worn linkages in positioner connector
● Defective or improper calibration of positioner
Undersized actuator
● On reversal valve is effectively stuck
● Valve positioner starts to force excess air pressure into
the actuator
● Once it moves and the static friction is overcome,
overshoot occurs
● Result is likely to be continuous cycling
46
Undersized actuator
Equal input
step changes
Valve stem
position indication Overshoot indicates
negative hysterisis
Slip Hysteresis
Stick
47
Testing for non-linearity
50.0
37.5
PV
25.0
12.5
PD
0.0
PD I/P 5 Mechanical
linkage
4 – 20 mA converter 20 -100 kPa
Valve stem
4 position
4 - 20 mA transmitter
48
Exercise G
WHAT YOU SHOULD HAVE OBSERVED IN THIS EXERCISE:
● Without a positioner, stem friction can cause valve sticking –
limiting the resolution of valve travel
● This can be detrimental in any type of feedback loop.
● With a positioner, the effect of stem friction is largely overcome
in the steady state.
● However, a dynamic effect is produced, approximating that of a
relatively high frequency, damped second order system.
● If the valve is in a slow loop (e.g., temperature), this is probably
of no consequence.
● However, if this is in a fast loop, such as a flow loop, this in itself
may have a detrimental effect on loop behavior.
Signature analysis
• The spikes at each end of the curve verify that a solid stop
has been reached at both ends of travel.
• The top stop is often used as the reference point when
establishing benchset.
160
Top stop
140
Actuator pressure (kPa)
80
60
40
20
0 Bottom stop
10 0 10 20 30
Travel (mm)
© 2019 Crabtree Controls Ltd. All rights reserved 98
49
Signature analysis
160
Top stop
140
Actuator pressure (kPa)
80
60
40
20
0 Bottom stop
10 0 10 20 30
Travel (mm)
© 2019 Crabtree Controls Ltd. All rights reserved 99
Signature analysis
160
140
Actuator pressure (kPa)
120
100
Closed
80
60
40
20
0
10 0 10 20 30
Travel (mm)
© 2019 Crabtree Controls Ltd. All rights reserved 100
50
Footprint torque characteristic
Galled
seat
Torque demand
Stem requires
lubrication
Packing
too tight
Footprint
torque profile
Definition of Noise
51
Electrical Coupling of Noise
Impedance Coupling
Unbalanced lines
A A
B B
C C
52
Impedance Coupling
53
Capacitive coupling
Capacitive coupling
to the signal lines
C1 C2
R1 R3
I1
Transducer RL
I2
R2 R4
Capacitive coupling
i
C
R1 C3 R3
i
I1
Transducer RL
I2
R2 C4 R4
54
Shielding performance
Capacitive Coupling
55
Inductive coupling
Inductive coupling
Transducer RL
Induced voltages
56
Equivalent circuit for inductive coupling
D Vinduced
D
Transducer RL
Vinduced
Inductive coupling
Transducer RL
57
Use of twisted cable
Transducer RL
Performance ratios
10 twists/m (Category 3) 14:1
40 twists/m (Category 5e) 140:1
© 2019 Crabtree Controls Ltd. All rights reserved 115
58
Magnetic shielding
Transducer RL
Magnetic shielding
Transducer RL
59
Inductive shielding
● In practice, good magnetic shielding is achieved by :
using a balanced connection with twisted pairs
running signal lines in steel conduit or SWA
conduit or SWA grounded at both ends
inductive shield should NOT be part of the signal path
Conclusions
60
Practical recommendations
Cable spacing
IEEE 518-1982
Level 1. Analog signal less than 50 V
Level 2. Analog signal greater than 50 V
Level 3. Switching signal greater than 50 V and up to 20 A.
Level 4. Switching signal up to 1000 V and up to 800 A.
61
Covers
● Trays manufactured of
metal
● Earthed with full continuity
for full length
● Fully covered
Cable spacing
62
Do’s and don’ts
63
Do’s and don’ts
64
Section 2. PID control
Regulatory Control and PID loop
tuning
Speed = f (A)
A = accelerator Speed = Process
position Variable
1
PID control
PID control
2
ON/OFF control
Steam in
V1
SP
Product in
Thermocouple Steam
out
Product
out
© 2019 Crabtree Controls Ltd. All rights reserved 5
ON/OFF control
Valve
Closed Closed Closed
160ºC
+10ºC
Temperature (ºC)
20ºC
Time
© 2019 Crabtree Controls Ltd. All rights reserved 6
3
ON/OFF control
Output (Max)
Output (Min)
_ 0 +
Error (ERR)
Valve
Closed Closed Closed
160ºC
Temperature (ºC)
+10ºC
Off Off Off
150ºC Setpoint
6ºC Dead-band
144ºC
On On
-10ºC
134ºC
20ºC
Time
4
ON/OFF control
Proportional control
SP
Summing block
ERR = SP - PV Controller Reverse action
KC
OP
PV
PD
Thermocouple
Steam in
Steam out
© 2019 Crabtree Controls Ltd. All rights reserved 10
5
Proportional control
Output
(Max)
Output
(Min)
_ +
Error (ERR)
Proportional control
fully open
As the temperature
increases, the controller
20ºC
reduces the deviation signal,
Time which progressively closes
100% the control valve.
This action continues
Error signal
6
Proportional offset
+SP 150
25 Controller OP = 45%
- KC
PV 125
Proportional offset
25 Controller OP = 45%
- KC
135 15
PV 125
7
Proportional offset
Proportional offset
8
Proportional offset
Reducing proportional
offset
Setpoint
150°
K=8
C
K=4
Process variable
K=1
20°
C
Time
© 2019 Crabtree Controls Ltd. All rights reserved 17
Proportional offset
New set
180ºC
point
Proportional
offset
Set point
150ºC 150ºC
Proportional
offset
125ºC
Time Time
(a) (b)
9
Proportional offset
Proportional control
SP
Manual bias
ERR = SP - PV Controller
KC
control
OP
PV
PD
Error
Thermocouple
Steam in
Steam out
© 2019 Crabtree Controls Ltd. All rights reserved 20
10
Proportional offset
Manual reset
SP
KC
PV
OUTPUT
Process
11
Proportional band
● Proportional Band or PB
● Change in transmitter signal (expressed as percentage of
its range) that is required to produce a 100% change in the
controller output
● Proportional Band is given by:
PB = 100/Kc
Proportional band
100
80
PV span (%)
60
40
20
0
0 20 40 60 80 100
Controller output (%)
© 2019 Crabtree Controls Ltd. All rights reserved 24
12
Proportional band
100
80
PV span (%)
PB = 100%
60
40
20
0
0 20 40 60 80 100
Controller output (%)
© 2019 Crabtree Controls Ltd. All rights reserved 25
Proportional band
100
80
PV span (%)
60 PB = 60%
40
20
0
0 20 40 60 80 100
Controller output (%)
© 2019 Crabtree Controls Ltd. All rights reserved 26
13
Proportional band
100
80
PV span (%)
60 PB = 20%
40
20
0
0 20 40 60 80 100
Controller output (%)
© 2019 Crabtree Controls Ltd. All rights reserved 27
Proportional band
KC =0.2
PB = 500%
100
KC =1
PB = 100%
80
KC =5
PV span (%)
60 PB = 20%
KC =
40 PB = 0%
20
0
0 20 40 60 80 100
Valve opening (%)
14
Automatic reset
Integral action
8 16
7 14
6 12
5 10
Input
4 8 Integral
(number of
squares
3 6 per unit
time)
Input
2 4
1 2
0
0 1 2 3 4 5 6 7 Time8
15
Integral action
8 16
7 14
6 12
5 10
Input Integral
4 8
(number of
squares per
3 6 unit time)
2 4
Input
1 2
0 Time
0 1 2 3 4 5 6 7 8
Integral action
6 12
5 10
4 8
3 6
Input Integral
2 4 (number of
squares per
2 unit time)
1
0 0
-2 -2
-4 -4 Time
0 1 2 3 4 5 6 7 8
16
Proportional control
Integral
SP I
ERR Controller
KC
OP
PV
PD
Error
Thermocouple
Steam in
Steam out
© 2019 Crabtree Controls Ltd. All rights reserved 33
Integral action
0.67 min
1 min
2 min
10% integral
change
Valve position
Long
10%
proportional
change
Time
© 2019 Crabtree Controls Ltd. All rights reserved 34
17
Integral action
0.67 min
1½ repeats/min
1 min
2 min
1 repeat/min
10% integral
change ½ repeat/min
Valve position
10% 1 minute
proportional
change
Time
© 2019 Crabtree Controls Ltd. All rights reserved 35
Integral action
Proportional output
Resultant output
I
Integral output
18
Integral action
Manual Reset
ERR = SP – PV
OP = KC* ERR + MR
SP
ERR MR
KC
PV
OP
19
Integral windup
Integral windup
● In a pneumatic or electronic analog controller, the
integrator output will continue to ramp until a physical limit
such as air supply pressure or a supply voltage, was
reached.
● At this the integrator is 'saturated' or fully 'wound up'.
● However, in a digital computer where there is,
theoretically, virtually no upper or lower limit, the
integrator could carry on until the output reaches a value
close to infinity.
20
Integral windup
SP
P + I controller
PV
Integral windup
PV falling to zero
results in continuous Proportional output
error (ERR)
K
Output saturates at
SP high limit (e.g.20 mA)
I Integral ramps
up towards
infinity
PV falls to zero
when isolating valve
closes
21
Integral windup
Integral windup
PV rising to maximum
results in continuous Proportional output
negative error (ERR)
K
Output remains
SP saturated at its high
limit of, e.g.20 mA
22
Integral windup
Main control
valve ON
OP
SP
PV
Integral windup
Main control
valve OFF
OP
SP
Anti-windup
PV
23
Integral windup
Integral windup
24
Proportional control
Controller Gain = Kc
SP
ERR Controller
KC
OP
PV
Process Gain = Kp PD
Steam in
Steam out
Stability
SP +
- ERR
Controller
Kc = 0.5
PV Loop gain = 1 OP
Kp = 2
25
Stability
SP +
- ERR
Controller
Kc =10
PV Loop gain = 1 OP
Kp = ?
Stability
Kp = 2
PV Disturbance
-2
26
Stability
180° phase
shift
Kp = 2
PV Disturbance
+2
Stability
SP +
- ERR OP
Kc
PV
Kp
ERR = SP - PV ERR = SP - Kp * OP
SP
ERR (1 + Kp * Kc) = SP ERR =
(1 + Kp * Kc)
27
Considerations for Critical frequency
28
Testing frequency response
Input Output
Process
/X/ /Y/
/Y/
/X/ Input
Output
Bode plot
8
6
Since 0 db corresponds to a gain
magnitude of 1, the shaded area lying
4
above 0dB on the upper graph is
2 potentially unstable.
Gain (dB)
Frequency (Hz)
0
0.02 0.04 0.1 0.2 0.4 1 2 4
-2
-4
-6
-8
90
120
Phase lag ()
150
Frequency (Hz)
180
0.02 0.04 0.1 0.2 0.4 1 2 4
210
240
270
© 2019 Crabtree Controls Ltd. All rights reserved 58
29
Bode plot
8
6
4
2
Gain (dB)
Frequency (Hz)
0
0.02 0.04 0.1 0.2 0.4 1 2 4
-2
-4
-6
-8
Here, the shaded area lying at less
90 than 180° is potentially stable.
120
Phase lag ()
150
Frequency (Hz)
180
0.02 0.04 0.1 0.2 0.4 1 2 4
210
240
270
© 2019 Crabtree Controls Ltd. All rights reserved 59
Bode plot
8
The locations at which stability and instability occur,
6 respectively, are termed:
4
2
Gain (dB)
Frequency (Hz)
0
0.02 0.04 0.1 0.2 0.4 1 2 4
-2
-4 Gain crossover
-6
-8
90
120 Phase crossover
Phase lag ()
150
Frequency (Hz)
180
0.02 0.04 0.1 0.2 0.4 1 2 4
210
240
270
© 2019 Crabtree Controls Ltd. All rights reserved 60
30
Bode plot
8
When the gain falls to unity the phase lag is:
6
4
2
Gain (dB)
Frequency (Hz)
0
0.02 0.04 0.1 0.2 0.4 1 2 4
-2
-4
-6
-8
90
120
Phase lag ()
150
Frequency (Hz)
180
0.02 0.04 0.1 0.2 0.4 1 2 4
210
240
270
© 2019 Crabtree Controls Ltd. All rights reserved 61
Bode plot
8
And when the phase lag is 180º the gain is only:
6
4
2
Gain (dB)
Frequency (Hz)
0
0.02 0.04 0.1 0.2 0.4 1 2 4
-2
-4
-6
-8
90
120
Phase lag ()
150
Frequency (Hz)
180
0.02 0.04 0.1 0.2 0.4 1 2 4
210
240
270
© 2019 Crabtree Controls Ltd. All rights reserved 62
31
Bode plot
8 Phase
6 margin 90
Phase
4 crossover 120
Frequency (Hz)
0 180
0.02 0.04 0.1 0.2 0.4 1 2 4
-2 210
Gain
-4 crossover Gain 240
-6 margin 270
-8
32
Polar plot
Polar plot
1.4
1.2
Imaginary axis (90)
1.0
0.8
0.6
0.4
-0.6 0.06 Hz
-0.8
-1.0
(a)
-1.2
-1.4 270
33
Polar plot
1.4
1.2
Imaginary axis (90)
1.0
0.8
0.6
0.4
-0.4 400
-0.6
1.42
-0.8
-1.0 0.18 Hz
-1.2
-1.4 270
Polar plot
1.4
1.2
Imaginary axis (90)
1.0
0.8
0.6
0.4
-0.4 610
-0.6
-0.8 1.23
-1.0
-1.2 0.36 Hz
-1.4 270
34
Polar plot
1.4
1.2
Imaginary axis (90)
1.0
0.8
0.6
0.4
-0.4
800
-0.6
-0.8
1.06
-1.0
-1.2 0.61 Hz
-1.4 270
Nyquist diagram
1.4
1.2
Imaginary axis (90)
1.0
0.8
0.6
3.6 Hz 0.4
3.4 Hz
2.5 Hz 0.2 Real axis (0)
180 1.8 Hz 0.2 0.4 0.6 0.8 1.0 1.2 1.4
-1.4 270
35
Nyquist diagram
-1.0
Nyquist diagram
1.0
Circle of
unity radius
1.0
-1.0
Unstable plot
-1.0
Stable plot
36
Effect of integral action
Proportional
output (in-phase)
Input
P
Resultant output
I
Integral output
(lags by 90°)
Proportional output
Integral output
37
Effect of integral action
Integral
output
Process
lag
Proportional output
Derivative action
Proportional
output (in-phase)
Input
P
Resultant output
D
Derivative output
(leads by 90°)
38
Derivative action
Derivative
output
Proportional output
Derivative action
Derivative
output
Proportional output
Integral output
Resultant
39
Derivative action
Integral
output
Process
lag
Derivative
output
Proportional output
Process
lag
Integral
output Proportional output
40
Proportional control
Integral
SP I
ERR Controller
KC
OP
PV
Derivative
D PD
Thermocouple
Steam in
Steam out
© 2019 Crabtree Controls Ltd. All rights reserved 81
Derivative action
(B)
Error
signal
(A)
Derivative Needle
output pulse
(ideal)
Derivative Stretched
output pulse
(real)
41
PID control
Derivative output
D
Proportional output
P
Resultant
output
I
Integral output
42
Derivative action and noise
43
Digital control
Digital control
44
Digital control
Parallel algorithm
This configuration is
most often used as a
P teaching model
Often referred to as:
» ‘ideal parallel’
Error input Output – Process
(ERR) Demand (PD)
» ‘non-interacting’
I
» ‘independent’
» ‘gain independent’
45
Parallel algorithm
d (ERR)
KC ×ERR
P ERR
PD ERR KC K I ERR dt K D dt
Parallel algorithm
The equation is now:
KI
PD ERR K C s TD K D
KC
P s TI
46
Parallel algorithm
Proportional output
Resultant output
I
Integral output
Parallel algorithm
If the contribution from the proportional block had a magnitude 10%,
then the integral time is given by the time it takes to raise the output a
further 10%.
In other words, the contribution of the integral action has 'repeated' the
proportional contribution in T minutes.
Here, the controller gain KC = 1 and the integral time is set such that it
will repeat the proportional action in T minutes.
Output
10% integral
step
10% proportional
step
T minutes
47
Parallel algorithm
If the gain is halved (KC = 0.5) then for a 10% step change in error,
the proportional action would produce an output step of 5%.
However, in a parallel algorithm the integral action would continue
ramping up at the same rate such that the proportional action is
repeated in half the time (T/2 minutes).
In effect, therefore, when the gain is reduced, because the integral
action remains the same, it gets faster in relation to the proportional
action and the loop tends towards instability.
Output
5% integral step
5% proportional step
T/2
minutes
© 2019 Crabtree Controls Ltd. All rights reserved 95
Parallel algorithm
The phase lag of the resultant
Integral of proportional and integral
action
action is still short of the
conditions for instability:
» a phase lag of 180 and
» a gain of equal to or
48
Parallel algorithm
Integral
action Increasing the integral action
may cause the resultant to meet
the classical conditions for
instability.
Resultant
Parallel algorithm
Resultant
49
Parallel algorithm
Parallel algorithm
65.0
60.0
(engineering units)
Process Variable
PV response
55.0
KC = 1
50.0
I = 0. 17
45.0
0.0 30.0 60.0 90.0 120.0 150.0
Time (seconds)
50
Parallel algorithm
Here, the integral time remains the same at 0.17 minutes but the
proportional gain has been reduced (KC = 0.25).
65.0
60.0
(engineering units)
Process Variable
PV response
55.0
10% Setpoint change
KC = 0.25
50.0
I = 0. 17
45.0
0.0 30.0 60.0 90.0 120.0 150.0
Time (seconds)
Ideal algorithm
Also described as:
‘ideal parallel’,
‘non-interacting’,
‘ISA’,
and at least one company
‘interacting’.
P
SP
OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 102
51
Ideal algorithm
The P, I and D control blocks are (more or less) independent of each
other.
The term ‘ideal non-interactive’ might better be thought of as
identifying the algorithm rather than describing it.
The term ‘ideal’ does not imply that it is an ideal system but rather
that it is only suitable under ideal conditions where an ideal, noise-
free PV exists – not the typical input from a field sensor.
A classical teaching model, frequently used in textbooks, this
algorithm is also used for computer optimisation and process
modelling.
Ideal algorithm
The equation for this algorithm is now:
1
PD KC ERR 1 s TD
s T
I
P
SP
OP
K I
PV
D
52
Ideal algorithm
1
PD ERR K s TD
C sT
I
Ideal algorithm
Integral
action
Resultant
53
Ideal algorithm
Integral
action As the proportional gain is
varied, in this case reduced,
the integral gain is also
reduced.
Resultant
Series algorithm
The origin of the series algorithm has its roots in pneumatic control
Designers found it difficult to build parallel structures using pneumatic
components.
With the introduction of both analog and digital systems, many
manufacturers introduced designs that were based on the series
algorithm.
KI =1 KD =1
SP
ERR OP
KC I D
PV
54
Series algorithm
1
PD K ERR 1 1 sTD
sTI
KI =1 KD =1
SP
ERR OP
KC I D
1
PV 1 1 sTD
sTI
© 2019 Crabtree Controls Ltd. All rights reserved 109
Series algorithm
Error
signal
(A)
Derivative Needle
output pulse
(ideal)
Derivative Stretched
output pulse
(real)
55
Series algorithm
Series algorithm
KI =1 KD =1
SP
PV
56
Series algorithm
This becomes:
1 1
PD K ERR 1 1 sTD
sTI 1 sTLPF
1 1 sTD
PD K ERR 1
s T I 1 sTLPF
KI =1 KD =1
SP
PV
1
1
1
1 sTD
sTI 1 sTLPF
© 2019 Crabtree Controls Ltd. All rights reserved 113
Series algorithm
It is important to appreciate that this filter is not intended to be used as
a noise filter
If excessive noise exists on the PV then use should be made of the
proper noise filter within the system that filters the incoming PV signal.
A serious drawback of this arrangement is that each time the
Derivative value (TD) is changed, it would be necessary to change the
filter time constant.
Consequently, in practice, the low pass filter response TLPF is
configured so that it is directly geared to the value of the derivative
time, TD.
TLPF = TD
where: is a constant and is usually fixed by the manufacturer at
some value between ¼ and 1/8.
With fixed at 1/8 , for example, the derivative component would be 8
times more powerful than the Low Pass filter.
57
Series algorithm
1 1 sTD
PD K ERR 1
sTI 1 sαTD
1 1 sTD
PD K ERR 1
s T I 1 s TD
8
Series algorithm
Users should be aware that the value of is sometimes user
adjustable and arbitrarily set to a nominal default by the manufacturer.
This can lead to ridiculous situations.
Michael Brown, a well known practitioner in the field of loop
optimisation, reported on a plant where the default value of had
been set at unity.
The derivative chain thus becomes:
1 sTD
1 sTD
The filter directly cancels out the derivative term. Totally pointless!
In another incident the manufacturer’s default had been set to 2.5.
Now, the denominator is larger than the numerator and the
complete block acts as large lag.
58
Alternative algorithms – PID
Here, control is based on the ERROR signal – the difference
between the SP and the PV.
The ERROR signal itself cannot thus differentiate between a
disturbance of the PV and a change in the SP. In most processes,
changes in the PV are normally smooth.
However the operator can make a step change to the SP resulting
in a step change in the ERROR signal – with possible major
damage
P
SP
OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 117
P
SP
OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 118
59
Alternative algorithms – I-PD
SP
ERR OP
I
PV
K P
D
© 2019 Crabtree Controls Ltd. All rights reserved 119
SP
ERR OP
I
PV
K P
D
© 2019 Crabtree Controls Ltd. All rights reserved 120
60
Alternative algorithms – PI-D
In any control loop where Derivative action is applied, large set point
changes can result in excessively large changes to the OP.
This is simply the result of the Derivative action acting on the rate of
change of the ERROR step input.
In the ‘Type B equation’, only the relatively slow PV changes are
applied to the Derivative control action.
P
SP
ERR OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 121
P
SP
ERR OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 122
61
Alternative algorithms – PI-D
P
SP
ERR OP
K I
PV
D
© 2019 Crabtree Controls Ltd. All rights reserved 123
Fail-to-open action
80
PV span (%)
60
40
20
0
0 20 40 60 80 100
Controller output (%)
© 2019 Crabtree Controls Ltd. All rights reserved 124
62
Fail-to-open action
Fail-to-open action
PT
Process
63
Normal action
SP ERR = SP-PV Reverse acting
100%
PID
0%
100%
PV
0%
Direct output AO
0% 4 mA
AI 100% 20 mA
I/P
4 – 20 mA 3 psi
PT 15 psi
Process
Reverse action
Direct acting 100%
SP ERR = SP-PV
100%
PID
0%
PV
0%
Reverse output AO
100% 20 mA
AI 0% 4 mA
I/P
4 – 20 mA 15 psi
PT 3 psi
Process
64
Section 3. Loop tuning
Regulatory Control and PID loop
tuning
1
“No amount of advanced control which relies on the
use of poor field instrumentation can be expected to
yield worthwhile benefits.
2
Loop tuning – methods
3
Possible responses
Setpoint change
Unstable:
Increasing
oscillation
Continuous
oscillation (r = 0)
Under damped
(r > 0 < 1)
Critically damped
(r = 1)
Over damped
(r > 1)
Settling time
4
Quarter amplitude damping
A
1/4A
5
Quarter amplitude damping
This means that the valve has to reverse eight times every time
there is a control error change.
Is this really desirable?
Do you really want to work your valves so hard?
6
Minimizing the area
The basic aim is to keep the error signal to a minimum.
Thus the shaded area is the integral of the error and could be
used as an index of performance: the smaller the area, the better
the response.
Process
Setpoint variable
+
+ + +
− − − −
Process
variable
7
Minimizing the overshoot
This may be overcome by taking the integral of the square of
the error – known as the Integral of the Square Error (ISE).
Where:
2
ISE e (t ) dt
0
Process
variable
Process
Setpoint variable
+
+ + +
− − − −
Total area of
the error signal
Time
(b)
© 2019 Crabtree Controls Ltd. All rights reserved 16
8
Minimizing the area
Process
Set point variable
Proportional
offset
Time
(a)
Integral (area under
curve)
Increasing
area of the
error signal
(b) Time
© 2019 Crabtree Controls Ltd. All rights reserved 17
Before we start
9
Before we start
10
Open loop response
65.0
60.0
55.0
50.0
45.0
0.0 20.0 40.0 60.0 80.0 100.0
Time (seconds)
© 2019 Crabtree Controls Ltd. All rights reserved 22
11
Open loop response
Secondly, it is a self-regulating process in which the PV has
evened out to a new steady state value as a result of a step change
applied to the process demand (PD).
65.0
60.0
55.0
50.0
45.0
0.0 20.0 40.0 60.0 80.0 100.0
Time (seconds)
© 2019 Crabtree Controls Ltd. All rights reserved 23
65.0
60.0
55.0 PD
PV
50.0
45.0
0.0 20.0 40.0 60.0 80.0 100.0
Time (seconds)
© 2019 Crabtree Controls Ltd. All rights reserved 24
12
Open loop response
= 10 seconds
65.0
60.0
PD
PV
50.0
45.0
0.0 20.0 40.0 60.0 80.0 100.0
Time (seconds)
65.0
60.0
PD
PV
63.2%
50.0
45.0
0.0 20.0 40.0 60.0 80.0 100.0
Time (seconds)
13
Open loop response
KP = 1.6
= 10.0 seconds
= 20.0 seconds.
P - Control Kc =
Kp
0.9
PI - Control Kc =
Kp
TINT = 3.33
TDER = 0.5
14
Summary of Open Loop Tuning formulae
KP = 1.6
= 10.0 seconds
= 20.0 seconds.
PID Control
1.2 1.2 * 20
Kc = Kc = = 1.5
Kp 1.6 * 10
60.0
(engineering units)
Process Variable
55.0
50.0
45.0
0.0 40.0 80.0 120.0 160.0 200.0
Time (seconds)
15
Lambda response
KC = 0.8
TINT = 30.8 seconds
65.0
60.0
(engineering units)
Process Variable
55.0
50.0
45.0
0.0 40.0 80.0 120.0 160.0 200.0
Time (seconds)
Cohen-Coen response
KC = 6.1
TINT = 8.3 seconds
65.0
60.0
(engineering units)
Process Variable
55.0
50.0
45.0
0.0 40.0 80.0 120.0 160.0 200.0
Time (seconds)
16
Typical analyser response
KC = 4.1
TINT = 30.0 seconds
65.0
60.0
(engineering units)
Process Variable
55.0
50.0
45.0
0.0 40.0 80.0 120.0 160.0 200.0
Time (seconds)
Approximate FOPDT
17
Approximate FOPDT
100%
of PV
PD
Indeterminate area
Approximate FOPDT
0.632
PV
PD
Deadtime Response time
18
Approximate FOPDT
Tangent to point
of steepest rise
100% of PV
63.2
% of
PV
PD
19
Approximate FOPDT
It is not always easy to precisely determine the steepest
part of the curve and hence the point at which the tangent
crosses the line may not be exact.
In such cases, where some uncertainty exists, is it better
to round the figures are up or down?
Here it is useful to examine the Ziegler Nicholls formulae
again:
1.1
Gain (KC)
KP
Integral time (TI) 2.0 θ
Approximate FOPDT
20
Approximate FOPDT
If you estimate the response time () too long, you are
estimating that the process is easier to control than it really
is.
This over-estimation results in a higher calculated value
for the gain (KC) – again tending towards instability
Consequently, if there is any uncertainty in estimating the
process parameters, the basic rules are:
21
Lambda Closed loop response
22
Lambda tuning procedure
τ
K
+
C
λ θ
P
TI
θ2
=τ+
λ + θ
TD
=
E
R
23
Lambda Closed loop response
Percentage
SP PV
63.2%
Time (seconds)
Integrating processes
In some cases the process may not reach a new steady-
state value.
Such integrating processes are typical of level-control
loops.
A pseudo-integrating process can also exist in, for
example, a temperature loop in which the new equilibrium
value is well above the normal operational region.
In either case, it is no longer possible to determine the
gain graphically.
However, there is nonetheless, sufficient information to
allow us to determine the controller tuning values.
Draw a tangent to the point of steepest rise and extend it
below the initial equilibrium value to intersect the vertical line
representing the step function change in the PD.
24
Integrating process
C = vertical distance
Tangent to point of
steepest rise
KP C
τ θ PD
C
1 .1 τ
KC
K P θ
PD
Why?
1. Whilst the deadtime () and the response time () can
often only be approximated, the period can be measured
very precisely.
2. This means that the quality of the tuning parameters is
much higher.
3. The loop stays in Auto – thus making it safer for difficult
and very fast loops.
4. The test includes the effects of valve hysterisis and dead-
band as well as system non-linearities that are dependent
on direction and rate of change.
5. The test also includes the dynamics and special features
of different controller algorithms.
25
Continuous Cycling Method
Why not?
Despite these advantages there are several reasons why it is
difficult to implement the closed loop test:
1. In many applications, a sustained oscillation may not be
acceptable to supervisory and operations personnel.
2. It is sometimes difficult to control the amplitude of the
oscillation – with a small change in set point yielding a
larger than expected oscillation amplitude.
3. Several tests may be required over a relatively long period
of time – during which the production output is out of spec.
4. This again, may not be acceptable to the production
personnel.
26
Continuous Cycling Method
Continuous constant
amplitude oscillation
A
SP
PU
Quarter
amplitude
damping
A
SP 1/4A
27
Continuous Cycling Method
Quarter
Continuous constant amplitude
amplitude oscillation damping
1/4A
A
SP
PU
P - Control Kc = 0.5 x Ku
PI - Control Kc = 0.45 x Ku
TINT = Pu /1.2
28
Default settings
Process type K I D
Flow 0.8 0.1 -
Liquid level 5 10 -
Reactor temperature 5 5 I/4
In-line temperature 0.5 1 I/4
Column temperature 0.5 5 I/4
Liquid pressure 0.3 0.1 -
Gas pressure 5 5 0.05
Reactor pH 1 2 0.5
Neutraliser pH 0.1 5 1.2
Inline pH 0.2 0.5 -
29
Improving ‘as found’ tuning
Period (P)
A
Amplitude
Time
TINT 0.6 P
30
Improving ‘as found’ tuning
For QAD, the decay ratio should be around 0.25.
If not we make an adjustment to the gain (KC) according
to the gain adjustment chart:
1.6
1.4
Multiply present gain by:
1.2
1.0
0.8
0.6
0.4
0.2
0
0 0.25 0. 5 0.75 1.0
Decay ratio
31
Improving ‘as found’ tuning
● What’s the P/TINT ratio?
● According to the data it’s:
P/TINT ratio = 16.2/2.5
= 6.48
● Since this is greater than 2, the rule is to choose a new
integral time according to:
TINT 0.6 • P
0.6*16.2 = 9 min.
32
Improving ‘as found’ tuning
● What’s the P/TINT ratio?
● According to the data it’s:
P/TINT ratio = 17.5/9
= 1.9
● Since this is less than 2, we leave the integral alone and
turn our attention to the gain (KC).
0.6
0.4
0.2
0
0 0.25 0. 5 0.75 1.0
Decay ratio
33
Improving ‘as found’ tuning
● With the gain (KC) set to 2.1 the integral time (TINT) is
now 9 minutes.
● Here’s the result of the next step setpoint change:
1.2
how much do we
1.0 increase the gain by?
0.8 ● According to the chart the
0.6 gain is now set to 1.2 *
2.1 = 2.52
0.4
0.2
0
0 0.25 0. 5 0.75 1.0
Decay ratio
34
Improving ‘as found’ tuning
● So, the gain (KC) is now 2.52
● And the integral time (TINT) is still 9 minutes.
● Here’s the result of the next step setpoint change:
TINT 0.6• P
35
Improving ‘as found’ tuning
● So, the integral time (TINT) is now 8 minutes
● And the gain (KC) is still 2.52
● Here’s the result of the next step setpoint change:
1.2
So what’s the new level?
1.0 Well it was to 2.52 so
0.8 the new gain should be:
0.6
0.4 KC =2.65
0.2
0
0 0.25 0. 5 0.75 1.0
Decay ratio
36
Improving ‘as found’ tuning
37
Tuning according to Pessen 1
K C = 0.2 * KU
PU
TINT =
3
PU
TDER = 2
K C = 0.33 * KU
PU
TINT =
2
PU
TDER = 3
38
Comparison of methods
TINT Pu /2 Pu /3 Pu /2
Pu /8 Pu /2 Pu /3
TDER
Level control
LC
UL%
SP%
LT
LL%
FOUT
39
Averaging level tank control
1 %
0 -
0
% S
Then calculate:
K
=
U
L
P
%
C
1
1 %
0
0 -
% L
K
=
S
P
L
%
C
2
KC is then set as larger of KC1 and KC2
Finally calculate:
4 Q
V K
TI
=
N
T
C
1 01 6
0 -0 0
0 60 -
K
=
=
1
0
SP%
U
L
P
%
8m
C
1
0
LL%
K
=
=
5
S
P
%
L
%
4
0
C
2
Since KC1is the larger of the two
values we set:
KC = 10
4 Q
V KC
4 5
1 1
0 0
0
4m
TI
=
N
T
© 2019 Crabtree Controls Ltd. All rights reserved 80
40
Simplified level tank control
FIN
LC
LT
L
FOUT
FIN
LC
LT
L
FC
FT
FOUT
41
Idealised level tank control
Attributes Implications
The tank has a constant cross- The control loop constitutes a
sectional area. linear system
The level controller is cascaded There is no effect from the
to a flow controller. upstream or downstream
pressure, or line loss.
A valve positioner is installed The system is not affected by
on the flow control valve. the size of the valve.
All inflow goes to outflow – the There is no dead time in the
tank is merely a buffer storage. loop.
The size of the tank is The dynamics of the flow loop
substantial. are significantly faster than the
dynamics of the vessel.
The level controller operates at Response to set point need not
a constant set point. be considered
42
Tight tank level control
Q
u
a
n
t
i
t
y
o
f
f
l
u
i
d
b
e
t
w
e
e
n
u
p
p
e
r
a
n
d
l
o
w
e
r
l
e
v
e
l
t
a
p
s
TR
M
a
x
i
m
u
m
f
l
o
w
r
a
t
e
t
h
r
o
u
g
h
v
e
s
s
e
l
π 4
d
h
2 F
TR
=
m
where:
D = diameter of vessel (ft. or m)
H = distance between upper and lower level taps (ft. or m)
Fm = maximum controllable throughput through vessel (ft3/min
or m3/min)
T
Flow
V
F
L
43
Tight level tank control 1
L
T
Level
F T
Valve
V T
K
=
=
1
K
=
N
C
C
M
A
0
.
7 1
4 .
2
0
0
.
7 K
4 C
TL
TI
=
=
1
4
.
8
m
i
n
4m
TI
=
0
44
Section 4. Advanced control
Regulatory Control and PID loop
tuning
Cascade control
1
Single Loop Feed Heater Control
Inlet Outlet
SP
T
TC
PV
Condensate OP
out
Steam
in
© 2019 Crabtree Controls Ltd. All rights reserved 3
Problem
OP drives valve position independently of fuel flow
pressure
Fuel flow pressure changes disturbance on outlet
temperature
Solution
Add another control loop to keep fuel flow constant
2
Cascade Control
Inlet Outlet
SP
T
OP
TC
PV SP
Condensate
out PV
FC
OP
Steam
in F
© 2019 Crabtree Controls Ltd. All rights reserved 5
3
Principle of Cascade Control
4
Cascade Control
Inlet Outlet
SP
T
OP
TC
PV SP
Condensate
out PV
FC
OP
Steam
in F
© 2019 Crabtree Controls Ltd. All rights reserved 9
Cascade control
Inlet Outlet
SPtemp
T
OPtemp
TC
PVtemp SPflow
Condensate
out PVflow
FC
OPflow
Steam
in F
5
PV tracking
Cascade control
Inlet Outlet
SPtemp
T
OPtemp
TC
PVtemp SPflow
Condensate
out PVflow
FC
OPflow
Steam
in F
6
Initialisation
Cascade control
Inlet Outlet
SP
T2
OP
TC
PV SP
Condensate
out PV
FC
OP
Steam
in F
7
Feedforward control
Control
action
Controller
Disturbance: flow
changes
8
Would this work?
Feedforward control
9
Single Loop Feed Heater Control
Inlet Outlet
SP
T2
TC
PV
Condensate
out
OP
Steam in
© 2019 Crabtree Controls Ltd. All rights reserved 19
Feedforward control
Inlet Outlet
F1 T1 SP
OP OP
FC
FC
Condensate
out PV
F
Steam in
F1 C
F T 2 T 1 Lead/Lag
h
C h T2
© 2019 Crabtree Controls Ltd. All rights reserved 20
10
Feedforward control
Advantages
Operates much faster
Cannot cause instability
Can reduce load upsets by an order of magnitude
Corrects disturbance before it upsets the measured
variable
Tuning is generally less critical
Even poorly tuned feedforward control is better than
none on processes with slow response to load
response
Feedforward control
Disadvantages
Cannot correct for unmeasured load disturbances
Does not take into account the control error
Therefore PV will drift over time
Solution:
Combined Feedforward/Feedback control
11
Inlet Outlet
T2
T2
TC
F1 T1
Condensate SP
OP OP
out FC
FC
PV
F
F
F1 C
T 2 T1 Steam in Lead/Lag
h
C h T2
© 2019 Crabtree Controls Ltd. All rights reserved 23
12
Tuning approach
Ratio control
13
Ratio control
Ratio Control is used when the control of one flow must
be in a fixed relation to another.
Two or more inputs to a process must be varied to
satisfy process demand.
The values of the variables must be kept in a
prescribed ratio to satisfy the composition or condition
of an end product.
Basically, there are two groups of control
configurations:
» Series
» parallel
Series configuration
Master
controller
RSP
‘LEADER’ Control Flow variable A
system
A
RSP
‘FOLLOWER’ Control Flow variable B
system
B
14
Series configuration
Parallel configuration
Master
controller
RSP
‘LEADER’ Control Flow variable A
system
A
RSP
‘FOLLOWER’ Control Flow variable B
system
B
15
Parallel configuration
Parallel configuration
16
Single series ratio loop with fixed ratio
A
P
PV I/P
x Controller
A OUT
RSP
SP determined by consistency
of final mixed product
Master
controller
x I/P
P
B
P
PV I/P
x Controller
A OUT
RSP
SP determined by consistency
of final mixed product
Master
controller
x I/P
P
B
17
Single series ratio loop with adjustable ratio
P
PV I/P
x Controller
A OUT
RSP
SP determined by consistency
of final mixed product
Master
Ratio controller
x I/P
relay
P
B
P
PV I/P
x Controller
A OUT
RSP
RSP
Controller
Ratio PV
B OUT
x I/P
relay
P
B
Master
controller
SP determined by consistency
of final mixed product
18
Series ratio loop using remote set-point flow controller
A
P
PV I/P
x Controller
A OUT
RSP
RSP
Controller
Ratio PV B OUT
x I/P
relay
P
B
Master
controller
SP determined by consistency
of final mixed product
Deadtime compensation
19
Dead time
Loading hopper
Hopper feed
actuator
Material
travel
Conveyor
Belt
belt
weigher
Transport lag = 10
min
The dead time, or transport lag, is the time taken for the
material, discharged from the loading hopper to be detected
by the belt weigher located some distance away.
During this period any changes produced by the actuator
will not be detected.
Dead time
Loading hopper
Hopper feed
actuator
Material
travel
Belt
weigher
20
Dead time in paper forming and drying section
Calendering
rollers
Basic weight
Headbox measurement
Dryer section
Calendering
rollers
Basic weight
Headbox measurement
Dryer section
21
Dead time in paper forming and drying section
Calendering
rollers
Basic weight
Headbox measurement
Dryer section
Calendering
rollers
Basic weight
Headbox measurement
Dryer section
If the controller expects a result before the deadtime has
elapsed, and none occurs, it will assume that its last change had
no effect and will continue to increase its output until the PV
senses a change has occurred.
By this time it will be too late and the controller will have
supplied too much or too little material from the headbox.
© 2019 Crabtree Controls Ltd. All rights reserved 44
22
Solutions
Solutions
23
Smith Predictor
SP
Smith Predictor
SP Industrial
process
Controller Dynamic
Dead-time response
+
Simulator
Dynamic
-
Dead-time response
Error = 0
24
Smith Predictor
SP Industrial
process
Controller Dynamic
Dead-time response
Dead-time Dynamic +
simulation simulation
Dynamic
-
Dead-time response
Error = 0
Smith Predictor
SP Industrial
process
Controller Dynamic
Dead-time response
Dynamic Dead-time +
simulation simulation
Dynamic
-
response Dead-time
Error = 0
25
Smith Predictor
SP Industrial
process
Controller Dynamic
Dead-time response
Dead-time Dynamic +
simulation
simulation
Dynamic
-
response Dead-time
Error = 0
26
Section 5. System integration
Regulatory Control and PID loop
tuning
1
Understand the process
● Review P&IDs
● Consult with:
process engineers
instrument technicians
operators
● Look for the fundamental reasons for this part of the process.
Does it exist to:
reduce variation?
blend?
change the product?
2
Top 20 Mistakes
Mistake No. 1
3
Mistake No. 2
Mistake No. 3
4
Mistake No. 4
Mistake No. 5
5
Mistake No. 6
Mistake No. 7
6
Mistake No. 8
Mistake No. 9
7
Mistake No. 10
Mistake No. 11
8
Mistake No. 12
Mistake No. 13
9
Mistake No. 14
Mistake No. 15
10
Mistake No. 16
Mistake No. 17
11
Mistake No. 18
Mistake No. 19
12
Mistake No. 20
13
Section 6. Laplace transforms
Regulatory Control and PID loop
tuning
Laplace Transformations
1
Transfer Functions
Transfer Functions
Vi G Vo Vo G Vi
2
Transfer Functions
Vi G1 Vo G2 Vo
Vo G1 G2 Vi
Very simple!
Why?
There is no time dependency
Transfer Functions
Ri 1
Ri C f
Vi – Vo Vi dt A
Vo
+
3
Transfer Functions
Ri 1
Ri C f
Vi – Vo Vi dt A
Vo
+
Laplace Transforms
4
Laplace Transforms
Laplace Transforms
ODE problem
Difficult
ODE solution
5
Laplace Transforms
Algebraic
ODE problem Laplace Transform
problem
Very Easy
Algebraic
ODE solution Inverse Laplace Transform
solution
Laplace Transforms
6
Laplace Transforms
d
s
dt
Laplace Transforms
sTd
1
sTi
7
Transformation blocks
1
G =1 1 sT
Gain block First order lag
1
sTd 1 sT1 1 sT2
Derivative block Second order lag
1 sT
sTi 1 sT
Integral block Lead block
Laplace Transforms
The table below shows a number of standard Transforms
for different types of inputs
Unit impulse 1
1
Unit step
s
1
Unit ramp
s2
1
e at sa
sin t
s2 2
8
Laplace Transforms
1 1
G =1
s s
Step input Step output
Laplace Transforms
1 1
s s Ti
O
u
t
p
u
t
1
s 2 Ti
1 1
1
s sTi s 2 Ti
Step input
9
Laplace Transforms
Unit impulse 1
1
Unit step
s
1
Unit ramp
s2
1
e at sa
sin t
s 2
2
Laplace Transforms
1 1 1
2
s sTi s T
i
Step input Ramp output
10
Laplace Transforms
1
s
sTd 1.Td
Step input
Laplace Transforms
Unit impulse 1
1
Unit step
s
1
Unit ramp
s2
1
e at sa
sin t
s2 2
© 2019 Crabtree Controls Ltd. All rights reserved 22
11
Laplace Transforms
sTd
Step input Impulse output
K K
1 s
1 s
Response time
12
Deadtime
e θs e θs
Deadtime
FOLPDT
K e - s K e - s
1 s 1 s
Deadtime Response time
13
The process of applying Laplace transforms to analyze a
linear system involves the following basic steps:
1. Convert the system transfer function, or differential
equation, to the s-domain by replacing ‘d/dt’ with ‘s’.
2. Convert the input function(s) to the s-domain using
the transform tables.
3. Algebraically combine the input and transfer function
to find an output function.
4. Use partial fractions to reduce the output function to
simpler components.
5. Convert the output equation back to the time-domain
using the tables.
14
LABORATORY EXERCISE 1
OBJECTIVE: To become familiar with various forms of process dynamic characteristics, and to learn a
method of constructing a simple process model from step test data.
Optional: To become familiar with obtaining data from frequency response tests.
BACKGROUND: All process have both steady state and dynamic characteristics. From a process
control standpoint, the most important characteristic is the process gain. That is, how much does the
process variable (PV) change for a change in controller output. If both the PV and the controller output
are expressed as normalized variables (i.e., 0 - 100%), then the process gain is a dimensionless number.
The two most important dynamic characteristics of a process are the amount of dead time in the process
and its time constant. Real processes rarely exhibit a response of a pure first order lag (time constant)
and dead time, but can often be approximated as a first order lag and dead time.
This exercise tests for the process gain, dead time and time constant for both a “pure” process (can be
exactly represented as first order lag plus dead time) and for a more realistic process which can only be
approximated as a first order lag plus dead time.
Run PC-ControLAB.
Highlight “Folpdt.mdl" (First Order Lag Plus Dead Time) and press Open.
Press Zoom and change the PV scale range to 50-75. (Note that the PV scale has already been
converted to 0 – 100% of measurement span.)
With the controller in MANUAL, press Out. Note the initial values:
(Hint: After the numerical value is keyed in, wait until a vertical green line on the grid is just crossing the
grid boundary before pressing ENTER. This will make it easier to estimate subsequent times.)
Process Gain:
∆ PV (%)
KP =
∆ OP(%)
________
How long after the controller output change before the PV started changing?
How long after the PV started changing (i.e, at the end of the dead time) before the PV crossed the
63.2% point?
Select Process | Change Parameters. Observe the values listed for Dead Time and
Time Constant. Do these parameter values agree with what you observed?
________
Press CLEAR.
Page 7.1.2
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Change the controller output from 35.0 to 45.0. Observe the response. Is this what you would expect?
________
You have just observed the response of a pure first order lag and dead time process. Very few, if any,
processes are this “clean.” We will now look at a process with unknown dynamics, but we will attempt to
approximate it with a first order lag plus dead time model.
3. UNKNOWN PROCESS
Click on Process | Select Model. Highlight “Generic” and press Open.
Notice that the PV scale is now in Engineering Units, rather than in percent.
(If not, then select View | Display Range | Engineering Units)
Span of PV ________
Press ‘OUT’
When the PV reaches (apparent) equilibrium, press Pause. Does this look like a true
first order lag plus dead time process? ________
Does it look ‘approximately’ like a first order lag plus dead time process? ________
What is the final value of the PV (to the nearest whole number)? ________
To estimate the dead time, draw (or visualize) a tangent to the PV curve, drawn at the point of steepest
rise. From the time of controller output change to the intersection of this tangent with the initial steady
state value is the apparent dead time.
Different observers might estimate anywhere between 1½ to 2 minutes. For the purpose of calculating
controller tuning parameters, it is better to take the longer value where there is any uncertainty, since that
will produce more conservative controller tuning.
Page 7.1.3
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
The apparent time constant is the time from the end of the dead time to 63.2% of the process rise.
NOTE: One of the uses that can be made of the estimates of process gian, dead time and time constant
is to calculate controller tuning parameters. (See Laboratory Exercise 9, PID Tuning from Open Loop
Tests.) Since dead time is more difficult to control than a first order lag, then if you estimate dead time too
short, you are estimating that the process is easier to control than it really is. This will result in controller
tuning parameters that cause the loop to be overly aggressive. Similarly, if you estimate the time constant
too long, you are estimating that the process is easier to control than it really is, and again the resulting
controller tuning parameters will cause the loop to be overly aggressive. On the premise that is one is to
make an error, it is better to err in the conservative direction than in the aggressive direction, then the
following pragmatic guidelines can be given:
If there is any uncertainty in estimating the process parameters, estimate the dead time on the
long side, and estimate the time constant on the short side.
Page 7.1.4
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Increase the controller output by 10%. When the PV reaches equilibrium, record the following:
Process Gain:
∆ PV (%)
KP =
∆ OP(%)
= ________
4.2 Integrating Process
An integrating process is one which will not achieve a natural equilibrium. The control of liquid level,
where either the vessel inflow or vessel outflow is fixed by an external set point, is a common example of
an integrating process.
This process model simulates a level control application in which the tank outflow is an independent
process disturbance (load), and the controller controls a valve in the inflow line. This process model has
some elements of "realism" that are not needed in this exercise; These features will be used in
subsequent laboratory exercises. For the present, we will eliminate these "realism" elements.
Highlight the parameter labelled ‘Valve Pos: 0 = No; 1 =Yes.’ (Block 9) Change this parameter value to
1.0.
Select the parameter labelled ‘Levl Noise: 0=No; I =Yes’. (Block 64) (Use the scroll bar at the left hand
side of the parameter list, if this parameter is not visible initially.)
Page 7.1.5
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Press Clear.
Change the controller output from 35.0 to 38.0. This simulates an increase in inflow to the
tank.
Before the PV reaches a limit (0 or 100), press the button StepIncr above the controller faceplate. This
simulates an increase in outflow from the tank. Note the increase in the trace labeled 'LOAD'.
If the PV is now falling, then the rate of outflow must exceed the inflow. Slightly increase the controller
output (to increase the tank inflow) to attempt to stabilize the level. If the PV is rising, decrease the
controller output.
Can you eventually (approximately) stabilize the level by manual control? ________
Occasionally the process response to a step change in controller output, or to a load change, is initially in
the opposite direction to that expected from "first principles.' This is normally due to some underlying,
second order effect. Once the second order effect disappears, then the process responds in the expected
manner. A response such as this is called an "inverse response.” An example of inverse response is the
“shrink-and-swell” effect of steam boiler drum level. If the steam draw-off and steam rates are in
equilibrium, then the drum level will be constant. On an increase in steam draw without a corresponding
increase in feedwater rate, a decrease in drum level would be expected. Initially, however, due to the
reduction in pressure and consequent flashing of water into steam, the level rises; if the excess steam
draw is maintained, the level eventually begins to drop. This is qualitatively demonstrated in this exercise.
Select the parameter labeled 'BLK 57 LEAD TIME". (Block 57) Change the value of this parameter from
1.5 to -3.0.
Press Clear.
Press Steplncr. This simulates an increase in steam flow from the boiler drum.
(This is the drum level "swell” effect. If the steam flow had have been decreased, rather than increased,
we would have seen the opposite effect, or the “shrink”.)
Page 7.1.6
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Suppose a feedback level controller had been in Automatic and controlling the feedwater rate (drum
input). Upon sensing the initial change In level, would the level controller Increase or decrease the
feedwater rate?
Laboratory Exercise 23, Drum Level Control, will demonstrate a control technique widely used in steam
generation applications for overcoming this problem.
After a number of data points are taken, a Bode plot of the data can be constructed. This portion of this
laboratory exercise will determine a few data points for a Bode plot.
Through the Process | Select Model menu, read in ‘Generic1’ process model. Be sure you are
using the FEEDBACK control strategy (read the right hand side of the display title bar).
Scroll down until you see ‘Enable Sinusoidal Output.’ Click on ‘YES’
Period, minutes: 60
Amplitude, Peak-to-Peak: 10
Press Clear then press On on the controller to initiate sinusoidal testing of the process.
Page 7.1.7
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Repeat this test for periods of 30, 15, 7.5 and 3.75 minutes. (You may have to increase the
amplitude of the input signal at the shorter periods. This is alright, since it is only the ratio of the
output and input amplitudes that you are seeking.)
(Note: On many Bode plots, decibels, rather than amplitude ratio, is plotted on a linear scale.
Also, frequency is usually plotted on a logarithmic scale reading in radians per time unit, rather than
cycles per time unit. A complete Bode plot is beyond the scope of this laboratory exercise, however.)
Page 7.1.8
Regulatory Control and PID loop tuning Exercise 1. Process dynamic characteristics
Page 7.1.9
LABORATORY EXERCISE 2
BACKGROUND: A control valve is the most common type of final control element for process control
loops. The position of the valve stem (typically somewhere between 0 and 100% open) sets the flow rate
of fluid through the valve. The response is typically non-linear, however; an incremental change in valve
position will produce a different change in fluid flow, depending upon the initial position of the valve. Two
factors which cause the non-linear response are the type of valve (i.e., the valve characteristics) and the
effect of the rest of the process piping network on the pressure drop through the valve.
Two common forms of valve characteristics are equal percentage and linear. These characteristics are
determined by the physical shaping of the valve internals by the valve manufacturer; hence they are
termed the manufactured characteristics. If the pressure drop across the valve were constant at all
valve positions, then the flow rate would vary with valve position according to the manufactured
characteristics. However, in most practical applications, as the flow rate increases other portions of the
process piping begin to take some of the available system pressure drop; hence the pressure drop across
the valve will decrease. This gives rise to the term installed characteristics, which describes how the
flow rate varies with valve position in a particular installation.
The variation in pressure drop across the valve can be characterized by a factor termed the ‘pressure
drop ratio’ (PDR), where:
A PDR of 1.0 indicates that the valve takes all of the available pressure drop at all valve positions; the
balance of the components in the piping network take none of the pressure drop. In other words, this
indicates that there is a relatively small valve in a very large line. If the PDR becomes smaller
(approaching but never reaching zero), then the indication is that the line is smaller relative to the size of
the valve. The usual practice is to size the valve and the other components in the piping network so that
the valve will take 25% to 50% of the available system pressure drop when it is wide open. This
corresponds to a PDR of 0.25 and 0.5, respectively.
Run PC-ControLAB.
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
2. PREPARATION
Click on View | Display Size | Bigger
Select View | Horizontal Grid Scale | Seconds. (Note that the grid now displays the last 60 seconds of
operation, not the last 60 minutes.) Most flow loops are very fast, so it is better to run the chart on a fast
time scale for this exercise.
This process exhibits flow measurement noise, which is typical of many real flow processes. For this
exercise, however, we will use a noise-free measurement. Therefore, select Process | Change
Parameters. Then highlight ‘Meas Noise: 0=Off; 1=On’ (Block 40). Enter a new value of 0.0, then press
OK then Clear.
Note from the coordinates at the right hand side of the trend display that the maximum flow rate is 50
GPM.
For this exercise, we will use percent, rather than engineering value. Select View | Display Range |
Percent of Span. Notice that the scale is now 0 . 100%.
For convenience in reading numerical values of flow rate, in percent of span, click on View | Data
Monitor. Leave the Data Monitor on display for the rest of this exercise.
Select Process | Change Parameters and check or set the following process parameter:
For three different cases (three different pressure drop ratios) determine the flow rate at a series of
controller output values (with the controller in Manual). Make the settings and record the flow data in the
Table 1.
(Note that the theoretical flow rate for an equal percentage valve does not go to zero at zero valve
position. This is one reason why is it not good practice to use a the control valve as a shut-off valve.)
Page 7.2.2
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
Plot the data from Table 1 for each of these cases on the graph, Figure 1, below:
Page 7.2.3
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
NOTE: These curves are based on a .theoretically ideal. equal percentage valve. A real valve with equal
percentage characteristics will approximate these curves.
The data with a pressure drop ratio of 1.0 represents the manufactured characteristics ofthe valve. The
other two data columns, with a pressure drop ratio of 0.3 and 0.1represent installed characteristics of the
valve, since the pressure drop ratio (if it is less than 1.0) is a function of the actual line characteristics into
which the valve is installed.
Select Process | Change Parameters and check or set the following process parameter:
For three different cases (three different pressure drop ratios) determine the flow rate at a series of
controller output values (with the controller in Manual). Make the settings and record the flow data in
Table 2 below.
Page 7.2.4
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
Plot the data for each of the cases in Table 2 on the following graph.
NOTE: These curves are based on a .theoretically ideal. linear valve. A real valve with linear
characteristics will approximate these curves.
(This is perhaps oversimplified, because it only considers the steady state gain; in actuality, the dynamics
of the loop may also vary with operating point.)
Suppose that our operation covers the upper 75% of the flow range (25 . 100%). From the data taken, if
the valve has a typical pressure drop ratio of 0.3, which appears to be the better selection of valve
characteristics in order to maintain approximately the same response (without changing the tuning
parameters) over most of the range of the valve?
________________________________________
Page 7.2.5
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
If the application happens to be such that a relatively constant pressure drop is maintained across the
valve, which appears to the better selection of valve characteristics?
________________________________________
1. Set the process model and controller tuning parameters as listed above for column 1. Put the controller
in Auto and set the set point at 40%. Then make set point changes of 10%, within the range of 40% to
90%. (For comparison purposes it might help to ‘PAUSE’ between each measurement).
Does the closed loop response appear to be approximately the same at all points within this range?
__________
Set the set point at 40%, then make 10% set point changes to 30%, 20% and 10%. Does the loop appear
to get more sluggish at lower flow rates?
__________
Could this be predicted from the graph, Figure 1, for case 2-EP? __________
Yes. The curve you plotted for Case 2-EP shows a relatively constant slope (process gain) in the upper
half of the range, but a lower slope in the lower half.
2. Set the process model and controller tuning parameters as listed above for column 2.
Page 7.2.6
Regulatory Control and PID loop tuning Exercise 2. Control valve characteristics
With a the controller in Auto and the same controller tuning as used above, start with a set point of 10%.
Make 10% set point changes to 20%, 30%, 40%, 50%,60%, 70%, 80%. The control loop should first
appear overly sluggish (for a flow loop), then less sluggish, finally more and more oscillatory as the set
point is increased. Do you observe this?
__________
Does this indicate that for best tuning the controller gain should be increased or decreased at the higher
set points
____________________
(For this situation, the controller gain should be decreased to compensate for the
higher process gain at higher set points.)
3. We will now repeat parts 1 and 2 of .Confirmation of Interpretation., but this time with a linear valve. Set
the process model controller tuning parameters as listed for column 3.
Put the controller in Auto and set the set point to 20%. When the loop has settled out, change the set
point to 30% and observe the response.
Now change the set point to 70%. When the loop has settled out, change the set point to 80% and
observe the response.
For a 10% set point change, where was the loop the most sluggish, at low operating point or high
operating point?
____________________
4. Set the process model and controller tuning parameters listed for column 4. Put the controller in Auto
and set the set point to 20%. When the loop has settled out, change the set point to 30% and observe the
response.
Now change the set point to 70%. When the loop has settled out, change the set point to 80% and
observe the response.
For a 10% set point change, where was the loop the most sluggish, at low operating point or high
operating point, or about the same?
____________________
Page 7.2.7
LABORATORY EXERCISE 3
BACKGROUND: Frequently the process control valve actuator consists of an air-filled chamber
closed on one side by a diaphragm which is attached to the valve stem, either directly or through some
type of mechanical linkage. If a valve positioner is not being used, the air pressure in the diaphragm is
that of the control signal to the valve. This pressure creates a force equal to the pressure times the
diaphragm area. Opposing this force is a force due to the compression of a spring; the amount of
compression is a function of the valve stem position. Thus, the net force on the stem is the difference
between the force due to signal to the valve and the spring compression due to valve position. (There
may also be a force due to the pressure drop of the process fluid through the valve.)
Valve sticking (sometimes called “stiction”) is due to static friction between the stem and packing gland. It
determines the net force on the stem (difference between signal to the valve and the actual stem position)
required to initiate movement of the stem from a resting condition. Deadband (or hysteresis) is due to
dynamic friction between the stem and packing gland. It is the amount of signal reversal required to cause
the stem to move in the opposite direction. Collectively, these two phenomena are usually called the
"dead band" of the valve.
Thus, friction between the stem and the packing gland manifests itself in two ways:
1) If there is a reversal in the direction of change of the signal to the valve, there will be a deadband, or
finite amount of reversal of signal before the valve stem exhibits movement in the opposite direction. Until
the signal reversal equals or exceeds this amount, the valve stem remains motionless.
2) If the signal to the valve is changing in a constant direction, and if the valve stem is currently not in
motion, the stem will “stick” at that position until there is sufficient unbalance in forces to cause the stem
to “slip” to a new position.
If a valve positioner is installed, it provides a local feedback system, comparing actual valve stem position
with desired valve position (signal to valve). One of its purposes is to overcome the effect of stem friction.
However, the combination of the stem friction and the high gain of a positioner will often cause the stem
positioning response to a change in control signal to exhibit a second order underdamped response. This
will be a fairly fast response and is of no consequence in relatively slow loops, like temperature or level.
In fast loops such as flow, however, the response of the positioner-actuator-stem combination and the
response of the flow itself are both relatively fast and may occur at approximately the same frequency. In
that case, the interaction between the positioner and the process flow itself may result in undesirable loop
behaviour.
If a positioner is not being used, then due to the volume of the air chamber and the restriction air signal
line, the actual diaphragm pressure may lag valve signal. If a positioner is used, this lag will not be
present, due to the small size of the receiving bellows in the positioner.
Regulatory Control and PID loop tuning Exercise 3. Valve and positioner response
Run PC-ControLAB.
2. PREPARATION
Click on View | Display Size | Bigger
If the Feedback strategy is not already up (check the top line of the display, right hand end), then select
Control | Select Strategy | Feedback. We will not actually be using Feedback control. We select this
strategy simply because the strip chart provides recording of thee process variables, PV-1 (valve
position), PV-2 (diaphragm pressure) and PV-3 (signal to valve).
Select View | Horizontal Grid Scale | Seconds. (The chart now displays the last 60 seconds of
operation rather than the last 60 minutes.)
Select Process | Select Model. Choose the VALVE.mdl and press Open.
Select View | Variable Plot Selection. Select YES for PV-1, PV-2 and PV-3. Select NO for all other
variables.
Press Clear.
3. SIMULATED EQUIPMENT
The laboratory equipment model (see the figure) consists of a ramp generator which generates a
triangular wave signal to the valve, the valve itself, and finally a recording of the signal to the valve (PV-3,
cyan trace), the diaphragm pressure (PV-2, magenta trace) and the actual valve stem (PV- 1, red trace).
Two switches permit selection of the modes of operation. One switch selects the signal source to be the
ramp (triangular wave) generator or a manually set value. The other signal selects the destination of the
signal as the valve positioner or directly to the valve, bypassing the positioner. The feedback controller is
not used in this exercise.
Page 7.3.2
Regulatory Control and PID loop tuning Exercise 3. Valve and positioner response
4. EXERCISE
Note from the chart record the triangular wave signal to the valve (PV-2). The actual stem position (PV-1)
is lagging the signal to valve, and changes in steps.
Observe the chart record when the signal is approximately in the middle of either an increase or decrease
cycle. When the valve stem moves, approximately how much does it move?
__________
When the signal reverses, about how much does it have to change in order to get the initial stem
movement following the reversal?
__________
If you think some other values of deadband and slip-stick may be more reasonable, change these
values. (Select Process | Change Parameters. Highlight either Deadband or Stick-slip and
enter a new value.) Does the response look reasonable?
__________
Select Process | Change Parameters. Highlight “0=No Pos; 1=Pos” (Block 80). Enter 1.0.
Does the actual valve stem position now accurately track the signal to valve?
__________
We have been examining the static response of the valve stem to relatively slow changes in
signal. We will now make step changes in signal, to see the dynamic response of the valve stem,
both with and without a positioner.
If you changed the values for deadband and stick-slip from their original values, re-enter:
Deadband = 5%
Stick-slip = 2%
Also, take the positioner OFF the valve (“0=No Pos; 1=Pos”. Enter 0.0), and turn the ramp
generator off (‘Ramp Gen: 0=Off; 1=On’. Enter 0.0)
Page 7.3.3
Regulatory Control and PID loop tuning Exercise 3. Valve and positioner response
Note that the signal to the valve is now a constant value. Due to stem friction and the absence of
a positioner, the actual stem position probably will not match the signal. True or False?
_________
Without a positioner, the actuator dynamics can be approximately modelled as a first order lag with a fast
time constant. The effect of stem friction is still present, however.
In the “Change Parameters” list, select “Manual Signal Source” (Block 40) and enter a value of 70%.
Except for the stick-slip effect, does the valve stem respond approximately as a first order lag?
__________
What is the (approximate) time constant? (Remember that the chart width represents 0 - 60
seconds.)
__________
In the “Change Parameters” list, note the ‘Actuator time constant (minutes)’ (Block 80)
__________
Now put the positioner on the valve. (“0=No Pos; 1=Pos”. Enter 1.0).
With a positioner, a valve positioner-actuator-stem system can act as an underdamped second order
system. This is due to the fact that if there is a tendency of the valve to stick at one position, the
positioner puts out increasingly higher air pressure until the stem moves. At that time, the air pressure
may be too high, so the valve stem will overdrive the requested position, causing the positioner to
decrease the air to the actuator. The net effect is a slight oscillating response, characteristic of a second
order, underdamped system.
Change the “Manual Signal Source” to 50%. Is the response what is expected (underdamped, second
order type of behavior)?
__________
Without a positioner, stem friction can cause valve sticking, limiting the resolution of valve travel
and causing an excessive amount of signal reversal to initiate stem movement in the opposite
direction. This can be detrimental in any type of feedback loop. With a positioner, the effect of
stem friction is largely overcome in the steady state. However, a dynamic effect is produced,
approximating that of a relatively high frequency, damped second order system. If the valve is in
a slow loop (e.g., temperature), this is probably of no consequence. However, if this is in a fast
loop, such as a flow loop, this in itself may have a detrimental effect on loop behaviour.
Exercise 4, Flow Control Loop Characteristics, will illustrate this.
Page 7.3.4
LABORATORY EXERCISE 4
BACKGROUND: Exercise 2 covered the relation between valve stem position and flow rate, for both
equal percentage and linear valve characteristics, at varying pressure drop ratios. Exercise 3 covered
valve actuators and their tendency to “stick” if not well maintained. Also covered in Exercise 3 was the
effect of adding a valve positioner.
This exercise demonstrates additional characteristics of a flow loop, including measurement noise which
is often present, typical speed of response and the effect of a sticking valve in a control loop.
Start PC-ControLAB.
2. PREPARATION
Click on View | Display Size | Bigger
Gain: 0.8
Select Process | Change Parameters and highlight “Meas Noise Maximum” (Block 40.2).
Change the value from 1.0 to 0.5. Does that reduce the amplitude of the noise?
________
Regulatory Control and PID loop tuning Exercise 4. Flow control loop characteristics
Select Process | Change Parameters and highlight “Meas Noise Correlation” (Block 26).
Change its value from 0.8 to 0.95. Does that tend to smooth out the noise?
________
This action was roughly equivalent to filtering the signal at the transmitter.
Select Process | Change Parameters and highlight “Valve Pos: 0=No; 1=Y” (Block 40.2). Change the
value
from 0.0 to 1.0.
Put the controller in Auto and change the set point to 30 GPM.
How much time elapsed between the changing of the set point and when the PV first
crossed the set point?
________
4. STICKY VALVE
The simulation realistically exhibits flow measurement noise. However, because that tends to
masks the points we wish to illustrate, we will remove it. We will also remove the positioner.
Select Process I Change Parameters and highlight "Meas Noise: 0=No; 1=Yes” (Block 40.1).
Enter 0.0.
Select Process | Change Parameters and highlight “Valve Pos: 0=No; 1=Y” (Block 26).
Change the value from 1.0 to 0.0.
Gain: 1.0
Put the controller in Auto. Then change the set point 30 GPM.
Observe the response. Both the controller output and the PV are moving up and down more or
less like triangular waves. This type response is sometimes called “oscillation,” although it does
not appear to be the sinusoidal wave typical of oscillation due to poor controller tuning.
Page 7.4.2
Regulatory Control and PID loop tuning Exercise 4. Flow control loop characteristics
Note: If you did not change the horizontal scale to seconds, you will see both the PV and the controller
output changing quite rapidly. This is due in part to the change of time scale, but possibly also due to
numerical instability due to the attempt to simulate a fast process at a slow time scale. Better to be on the
seconds scale for this exercise.
Suppose you (erroneously) interpreted the cause of the “oscillation” as improper tuning. Your action might
be to reduce the gain of the controller. Change the gain from 1.0 to 0.5. Then record the following:
Note that the amplitude of oscillation did not change appreciably, but the period got longer.
REASON. Suppose the flow rate is below set point. The integral action of the controller will gradually
increase the controller output. However, the valve itself will not respond until there is a sufficient
difference in the signal to the valve and the spring force corresponding to the valve stem position. When
there is a sufficient difference in force, the valve will move in a jump to a new position, consequently
causing a jump in flow rate. If the flow rate is then above set point, the integral action will begin
decreasing the signal to the valve, and the action repeats, except in the opposite direction. (Review the
results of Exercise 3, Valves and Positioners.)
To see what the valve stem itself is actually doing, select View I Variable Plot Selection, then click on
“yes” for PV-2. This is the signal which would be displayed if there were a valve position transmitter
installed on the valve.
The amplitude of oscillation is really determined by the amount of “stiction” in the valve itself. Reducing
the gain (or lengthening the reset time), merely slows down the rate of change of the controller output
hence increases the period of oscillation. This is the wrong solution to the problem.
A proper solution might be to perform maintenance on the valve to reduce the stem friction. Or add a
positioner to the valve. The positioner, however, while overcoming the effect of packing and stem friction,
can introduce a dynamic problem of its own. Before we install a positioner, let’s see the best that could be
achieved under ideal conditions, that is, with no stem friction and no measurement noise.
Go through Process I Change Parameters and change both “Deadband” and “Stick-slip” to 0.0.
Change the tuning parameters back to Gain = 1.0; Reset = 0.05 minutes/repeat.
Start with a set point of 25 GPM, then increase the set point by 5 GPM. Is the response acceptable?
__________
Put the set point back at 25 GPM. When the loop comes to equilibrium, put the controller in Manual.
Now add a positioner. (Select Process I Change Parameters. Highlight “0=No Pos; 1=Pos”. Enter 1.0.)
Change the controller output by 10%. (You should still have the stem position record on display.)
How did the stem position respond to a step change in signal to the valve?
Page 7.4.3
Regulatory Control and PID loop tuning Exercise 4. Flow control loop characteristics
Both the flow loop without a positioner and the positioner-stem-actuator combination are responding as
slightly underdamped systems at approximately the same frequency. When we close the loop with a
positioner on the valve, these two responses may interact, causing a “ringing” of the response (e.g.,
continuing oscillation, with very slight damping).
Put the controller in Auto. Set the set point at 25 GPM. When the loop settles down, change the set point
to 30 GPM.
Is the loop more oscillatory than it was before adding the positioner? ________
Page 7.4.4
LABORATORY EXERCISE 5
BACKGROUND: Temperature control loops often have a number of similar characteristics. These
include:
If the primary load disturbance is a change in process throughput (for example, feed rate to a
process heater), then the process characteristics change with throughput. Specifically, as the
process throughput decreases, the process gain, time constant and dead time all tend to
increase.
Due to this last characteristic, it is often beneficial to combine ratio and cascade control, where the
Primary controllers output does not directly set the set point of the Secondary, but rather sets the required
ratio of secondary PV to process flow. For example, a process heater outlet temperature controller may
set the required fuel-to-feed ratio.
Run PC-ControLAB.
2. PREPARATION
Click on View | Display Size | Bigger
Confirm that FEEDBACK control strategy is being used. (See top line of the display.)
Select View I Variable Plot Selection. Select ‘Yes’ for PV-2. Leave all others the same. Press Clear.
The label above the controller, reading ‘Temperature (PV-1)’, should be highlighted in red. If it is not, click
on It. Note the range of heater outlet temperature measurement. (Read scale at right of grid.)
Click on the label above the grid that reads ‘Feed Rate’. Note the range of feed rate measurement.
Click on the label above the grid that reads ‘Fuel Flo (PV-2)’. Note the range of fuel flow
measurement.
Press Process I Change Parameters. Note the type of valve characteristics and the pressure drop ratio.
For a gaseous fuel, a pressure regulator upstream of the valve would maintain a constant upstream
pressure. The valve acts as a variable choked nozzle, hence the flow characteristics are as if there were
a constant pressure drop across the valve, even though the burner back pressure will vary.
We will test the process for process gain and dynamic characteristics at four different process
flow rates. Our tests will always be such that the temperature remains in the vicinity of its normal
operating region, 275 - 300 °F. We will determine the process gain in two ways.
Temperature (%)
KP1 =
∆ Signal to valve (%)
This is the process gain seen by the controller when a simple feedback control loop is used (that
is, when the controller output goes directly to the valve).
Temperature (%)
KP1 =
∆ Fuel flow rate (%)
This is the process gain seen by the controller when a cascade loop is used (that is, when the
temperature controller output sets the set point of a fuel flow controller).
Click StepDecr 8 times to decrease the feed rate (Designated ‘LOAD’ on grid) to 140 GPM = 35%.
(You can read the scale on the LH side of the grid.)
At 35% process flow and 10% controller output, read and record in the table below the temperature (PV-
1), fuel flow rate (PV-2), and signal-to-valve (controller output). (Use PAUSE to read the values.)
Page 7.5.2
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
Then change the controller output to 13% and read and record the same variables. Also estimate and
record the dead time and time constant due to the change in controller output.
Then calculate ΔTemp (%), ΔFuel Flow (%) and the two process gains listed above.
Click StepIncr 4 times to increase the process flow to 220 GPM (55%).
Repeat the procedure above for the controller output at 25%, then at 28%.
Click Steplncr 4 times to increase the process flow to 300 GPM (75%).
Repeat the procedure above for the controller output at 35%, then at 38%.
Click StepIncr 4 times to increase the process flow to 380 GPM (95%).
Repeat the procedure above for the controller output at 42%, then at 45%.
Page 7.5.3
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
The process gain, as determined by the ratio of temperature change to change in fuel flow rate,
decreases with increasing process flow rate, or conversely, increases with decreasing process flow
rate. Thus, if a Cascade control loop were applied (Temperature Controller setting the set point of
a Flow Controller), and if the process is operated at widely varying flow rates, then there could be a
problem with controller tuning. If the Temperature Controller were tuned properly for a high process
flow rate, it would probably be overly aggressive at a low process flow rate. If it were tuned properly
for a low rate, it would probably be too sluggish at a high process flow rate.
(Don't give up on Cascade control just yet, however. There are other reasons why it is beneficial.
When we explore Ratio and Feedforward control, we will see how we can overcome the non-
linearity problem.)
The process gain, as determined by the ratio of temperature change to valve position change,
stayed relatively constant as the process load increased. This is due to the fact that we are using
an equal percentage valve with a constant pressure drop. The inherent non-linear characteristics of
the valve (see Exercise 2) offsets the non-linear characteristics of the process. If we had used a
linear valve, rather than an equal percentage valve, then we would have seen the same type of
decrease in process gain as the process flow rate increased.
You should also have observed the changing dynamics (decrease in dead time and time constant)
as the process flow is increased. Since the ratio of these does not very nearly as widely as does
the process gain, this is not of as serious of consequences as is the gain variation, however. It may
still cause a different control loop response at high and low process flows.
4. CONFIRMATION OF OBSERVATIONS
This section pertains to a process heater with a simple temperature controller on the heater outlet.
The following is a process and instrumentation diagram for sub-sections 4.1 and 4.2.
Page 7.5.4
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
Controller output 35 %
Gain: 1.0
When the loop settles out, change the set point to 300 °F. Compare the response to the previous
response when the load was 300 GPM:
When the loop settles out, change the set point to 250 °F. Compare the response to
the previous response when the load was 300 GPM:
When the loop settles out, change the set point to 300 °F. Compare the response to
the previous response when the load was 300 GPM:
Page 7.5.5
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
Due to changing dynamics at lower process flow rates, the control loop becomes slightly more
aggressive. However, we can probably live with it at all flow rates.
Gain 1.2
Put the controller in Auto and change the set point to 300 °F.
Put the controller in Auto and change the set point to 300 °F.
Page 7.5.6
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
With the linear valve and an effective constant pressure across the valve, the nonlinearity of the
process unit dominates and causes the loop to become unstable at low process flow rates.
Select the Fuel Flow controller and enter the following tuning parameters:
Gain 0.5
Select the Temperature controller and enter the following tuning parameters:
Gain 1.0
Reset 15 minutes/repeat
Put the Fuel Flow controller in the cascade mode (press Casc) and the Temperature controller in the
Automatic mode (press Auto).
Page 7.5.7
Regulatory Control and PID loop tuning Exercise 5. Temperature control loop characteristics
With the Temperature controller selected, make a series of set point changes:
With the Temperature controller selected, press StepIncr 4 times to increase the process flow to
380 GPM (95%). When the loop settles out, make the same series of set point changes as
above.
How does the response compare with the response when the process flow was 300 GPM (75%)?
With the Temperature controller selected, press StepDecr one step at a time to reduce the process flow
rate, eventually to 140 GPM (35%). Let the control system settle out between each step. What happens
to the response as the process load is decreased?
Due to the increasing process gain (KP2 in section 3) at lower process flows, the Cascade control
becomes increasingly more aggressive, and eventually becomes unstable, as the process flow is
decreased.
But don't give up on Cascade yet; there are other reasons to use it. And when we look at Ratio and
Feedforward control (Exercises 14, 16 and 17) we will see what can be done to overcome the
nonlinearity.
Page 7.5.8
LABORATORY EXERCISE 6
BACKGROUND: Pressure control loops can be characterized in several ways, including by the state
of the flowing medium and by the relative position of the pressure sensor and the control valve.
Liquid phase pressure loops are controlled by maintaining a flow balance into and out of an enclosed
volume. The loops are fast and have somewhat the characteristics of flow control loops.
Two-phase (gas and liquid) pressure loops are usually controlled by the addition or removal of heat to
vaporize liquid into the gas phase or condense gas into the liquid phase. An example is the control of
steam header pressure leaving a steam generator. Two phase pressure control loops are relative slow
and noise free; hence they have characteristics similar to temperature control loops.
Pure gas phase pressure control loops, with the exception of pressure control for a long pipeline, are
typically fast, noise free and exhibit essentially no dead time. Consequently they can be controlled with
high gain proportional controller with less emphasis placed on reset action.
In terms of the relative position of the sensor and control valve, if the sensor is located downstream of the
control valve, the application is usually called a "pressure regulator" or "pressure reducer station." If the
sensor is located upstream of the control valve, the application is usually called a "back pressure
regulator."
The process models in this laboratory exercise simulate a gas pressure reducing station and a pressure
regulator for a gas separator. Neither process model exhibits significant dead time. Process disturbances
are the upstream pressure (accessible as a load change), downstream flow demand and enclosed
volume. These latter effects are set via the "Change Parameters" feature of the process model.
Run PC-ControLAB
2. PREPARATORY
Click on View | Display Size | Bigger
Be sure you are using the FEEDBACK control strategy. (Check the top line of the display.)
Select Process | Select Model, then highlight “pressure.mdl” and press Open.
Regulatory Control and PID loop tuning Exercise 6. Pressure control loop characteristics
Click on Load (in the Menu bar), then in the sub-panel labelled “Auto Load Change – Random Walk”,
click in the data field by the label “Correlation”.
Press Esc on your keyboard, then key in a new value of 0.97. Press the Enter button, then click on
Clear.
Observe that the process response is fast with relatively no dead time. It can be controlled with a
controller with high gain proportion-only control action (i.e., no integral action).
Select Control | Control Options. In the first section of the drop-down list of options, ‘Control Algorithms’
select “Proportional Only.” Then press Clear.
Gain: 10.0
Press AutoLoad.
You are seeing a randomly varying load demand. Note that the pressure remains fairly
close to set point even though the controller is proportional-only (no reset).
If the load (read gray trace vs. coordinates on left hand side of grid) is above 50% when AutoLoad
was discontinued, press StepDecr until the load is below 50%.
Press SP and change the set point from 50 to 54 psig. Describe the initial response of the
controller output:
___________________________
Because of the high gain, a step change in set point produces a very large proportional response. Very
quickly, the feedback action removes a large proportion of this proportional response. Even so, to avoid a
proportional "spike" on the output, we should probably, it possible, avoid making step changes in set
point. There are several alternative possibilities available with various makes of commercial systems (all
of these are available with PC-ControLAB):
• Use the configuration option "Proportional Mode on Measurement." Then on a set point change,
the integral action gradually moves the output to a new value.
• If set point jog buttons are available, use these for making gradual set point changes.
• The set point can be ramped (changed gradually at a user selectable rate) to new set point value.
In practice, pressure control loops, probably more so than many other types of loops, frequently
operate for long periods of time without encountering a set point change
Page 7.6.2
Regulatory Control and PID loop tuning Exercise 6. Pressure control loop characteristics
Use the down jog button (on the right hand side of the vertical scale on the controller) to gradually move
the set point down to about 48 psig. Do you see the large change in controller output that you saw when
you made a step change to the set point?
__________
Press Process | Change Parameters. Highlight “Supply Pressure-psig” and change it from 75.0 to 95.0
Does this tend to cause the valve to close (after equilibrium is reached)?
__________
As the upstream pressure rises, the valve must move toward closed to maintain approximately the same
downstream pressure.
Change the Supply pressure to 55.0 psig. Does this tend to cause the valve to open? __________
As the upstream pressure falls to just above the required output pressure, the valve must move wider and
wider open to accommodate the demand. Hence with proportional-only control, we see a larger deviation
from set point when the upstream pressure is low and the controller output is correspondingly high.
Press AutoLoad to reactivate random load changes. The random variations of the demand will cause the
controller output to move up and down. Observe it at some time when the controller output is
approximately 35%. At that time, what is the relation of the PV to the set point?
(Press StepIncr or StepDecr if necessary to force the load into a region you want to observe.)
When the controller output is above 35% (higher demand), what is the relation of the PV and SP?
When the controller output is below 35% (lower demand), what is the relation of the PV and SP?
These later demonstrations have illustrated the gas pressure control loop’s tolerance to both demand
changes and set point changes, even though a simple proportional controller without reset action is being
used. In fact, this entire exercise has demonstrated that a gas pressure control loop is a fairly easy loop
to control, being relatively insensitive to load changes as well as parameters within the control loop itself.
There are undoubtedly exceptions to this statement, but for most gas pressure control loops, these
characteristics should hold true.
Page 7.6.3
Regulatory Control and PID loop tuning Exercise 6. Pressure control loop characteristics
We will now read in a process model for a gas separator. The inflow is a two-phase stream, with the gas
phase exhausted through a pressure control valve to a vent header. The valve is failopen; in the event of
a signal failure to the valve, the valve opens and relieves the vessel pressure to the vent header.
When the model opens, press Pause. While in Pause, make the following changes:
Scroll down until you see a sub-panel labelled “Reverse Output”. Select Yes.
Press Load (in the Menu bar). In the sub-panel labelled “Auto Load Change” click in the field adjacent to
the label “Correlation”. Press the ESC key on you keyboard, then key in a value of 0.97. Press Enter on
your keyboard, then click on Clear.
Gain: 10.0
Press AutoLoad. The simulation now represents a varying amount of gas flow into the separator.
The controller output that is being trended represents the percent open condition of the valve. This is
NOT the same as the signal to the valve, however. Since the valve is failopen, then a 0% signal to the
valve causes the valve to be fully open, and a 100% signal to the valve causes the valve to be fully
closed. To achieve this, we reversed the output when we were in Control Options, above.
To see the actual signal going to the valve, press View | Variable Plot Selection. Select “Yes” for PV-2.
You should see a magenta trace which is the mirror image of the controller output (blue) trace.
OK? __________
Page 7.6.4
Regulatory Control and PID loop tuning Exercise 6. Pressure control loop characteristics
In many applications of this type, in the event of failure of the signal to the valve, the valve would go fully
open, relieving the gaseous contents of the vessel to the vent header. We will now simulate a signal
failure to the valve.
Press View | Discrete Controls. In the sub-panel labelled “D-Out#1”, select Off.
Observe that the magenta trace immediately goes to 0, indicative of a break in the signal line. The valve
opens fully (the actual valve position is unseen), causing the vessel pressure to drop. Because the
controller is still in Auto, it tries (in vain) to close the valve to correct for the low pressure, hence its output
drops.
You have observed a gas pressure control loop for a large vessel which does not respond as rapidly as
the pressure station in Section 3. You have observed a typical configuration for a fail-open valve, and you
have observed the need for a direct acting controller, where, on an increase in PV, the controller output
must increase. (If you wish to continue experimenting with the pressure control system, select On in the
Discrete Control Panel, to reconnect the signal.)
Page 7.6.5
LABORATORY EXERCISE 7
BACKGROUND: Whereas most processes exhibit some degree of self-regulation, level control
applications are usually non-self regulating. That is, unless the inflow and outflow are exactly equal, the
level will continue to rise or fall until the vessel overflows or becomes empty. For most self-regulating
processes, three parameters (process gain, dead time and time constant) can be used to approximate the
process dynamic characteristics. For most liquid level loops, one, or at most two, parameters characterize
the process. Instead of process gain, a relevant parameter is the tank residence time, TR. For a vertical
tank, the residence time of the vessel is given by:
π d2 h
TR =
4Fm
where:
d = diameter of vessel (feet)
If the level controller is cascaded to a flow controller, then Fm is simply the maximum reading of the flow
transmitter, and d and h come from tank geometry.
If the level controller output goes directly to a valve, then TR for the current operating point can be found
by making a process test. In addition, another parameter, KV, the valve gain, can also be found from the
same test.
Test procedure:
1. When the tank is in a steady state condition, put the controller in Manual.
3. The level should start to change at a constant rate. Before the level reaches an extreme
(either 0% or 100%), put the controller output back to its original value. The level should stop
changing. Your chart or trend record should look something like this:
Regulatory Control and PID loop tuning Exercise 7. Level control loop characteristics
∆F
KV =
∆V
Run PC-ControLAB.
Be sure the control strategy is Feedback and that the controller is in Manual.
Select View I Variable Plot Selection. Select .Yes. for PV-2. Press Clear.
This displays the outflow as a magenta trace. It may not be visible immediately, since it is the same as
the inflow and is covered up by the grey trace labelled “Load”.)
Page 7.7.2
Regulatory Control and PID loop tuning Exercise 7. Level control loop characteristics
Click on the label above the trend chart reading ‘Inflow’. Note the maximum flow rate of inflow from the
scale at the right of the trend graph.
Then click on the ‘Liquid Level (PV-1)’ label above the controller.
Before the level reaches a limit, change the controller output back its original value. Then press Pause.
If you weren't fast enough, select Process I Initialize so you can try again. You will have to again select
View I Variable Plot Selection and select “Yes” for PV-2. This time, after you have made the initial
change to the controller output, press Pause. Then you can change the controller output back to its
original value while the program is suspended. Press Run to resume program operation.
With the controller output at the decreased value, does it appear that the level will ever come to
an equilibrium?
________
(Be sure to convert your flow reading to %. See the maximum flow factor determined at the end of
Section 1.)
Valve gain:
∆F
KV =
∆V
_________________
Page 7.7.3
Regulatory Control and PID loop tuning Exercise 7. Level control loop characteristics
With the Outflow controller selected (if the label reading ‘Outflow (PV-2)’ is NOT highlighted in red, click
on the label, or press Sel on the controller), note the maximum outflow rate (PV scale at right hand side of
trend chart).
________GPM.
π d2 h
TR =
4Fm
T R = _________mins.
(Your answer should be close to the tank residence time you determined experimentally in Section 2. If
not, recheck your results, either here or in Section 2.)
The tank residence time, TR, and the valve gain, KV, will be used to calculate the level controller tuning
parameters in Exercise 12.
Page 7.7.4
LABORATORY EXERCISE 8
Run PC-ControLAB
2.1 Set Up
Check the top line of the display. Be sure that you are using the GENERIC process model, the
FEEDBACK control strategy. Be sure that the controller is in Manual.
While you still have the Control Options box on display, be sure the following options are selected:
Set Pt Tracking NO
Select Yes for “Use substitute value instead of value from process sensor?”
Select View | Display Proportional Band. (An auxiliary bar display will appear between the strip chart
and the instrument faceplate. Its use will be explained later.
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
GAIN 2.0
MANUAL RESET 35
Click on the Options tab and select “Display proportional tuning parameter as” Prop Band
What value and what name does the Tuning Display now show in place of GAIN?
Recall that:
100
Prop Band =
Gain
100
Gain =
Prop Gain
ERROR = SP - PV
and the top and bottom of the proportional band can be calculated from the present values of set point
(SP), manual reset (MR) and gain (or PB).
Calculate the PBtop and PBbot and confirm the figures from viewing the PB bar (CYAN coloured) at the
right of the strip chart.
Page 7.8.2
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Put the controller in AUTO. Change the Set Point to 65. Did the PB bar move as expected? ________
Does the theoretical output agree with the observed output? ________
From an observation of the Proportional Band bar, what value of PV would cause the controller output to
go:
to zero? ________
to 100%? ________
(Recall that the Proportional Band is the range through which the PV must travel to cause the
controller output to change by 100%. For a reverse acting controller, as the PV drops from PBtop
to PBbot , the controller output goes from 0% to 100%.)
Select Control | Measurement Options. In ‘Substitute Value’ press ESC and then enter a substitute PV
value of 82.5 and then ENTER.
(At this point it is difficult to tell whether the controller output has been calculated at 0.0, or
whether it is actually some lower value, but "pegged out" at 0.0. Therefore, back off on the PV
slightly by entering a substitute value of 82. That should produce a controller output just slightly
above 0.0.)
(You can raise the substitute PV value slightly, say to 33, to demonstrate that the output value
was truly at 100.0, not just pegged out at the top of the chart.)
Select Control | Measurement Options. Click “Yes” for “Use substitute value ..., then enter a substitute
value of 70.0
Observe the PB bar and the present value of the PV. Make a visual estimate of the fraction of PB down
from PBtop to the PV value.
________
Page 7.8.3
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Change the Set Point to 65. When the control loop comes to equilibrium, note:
PV ________
SP ___ 65___
Calculate the error, then calculate the theoretical controller output from the equation given previously.
The PV and SP do not agree. Which way, increase or decrease, should the Manual Reset be adjusted to
bring the PV into agreement with the SP? ________
Experimentally adjust the Manual Reset until the PV matches the SP.
Did the PB bar move as you adjusted the Manual Reset? ________
Select Control | Control Options and set or check the following options:
Page 7.8.4
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Press CLEAR
Gain: 1.0
Controller Output: 40
Change to AUTO.
(You should now see the control loop simulation in stable operation with measurement
and set point both at 50% and the valve signal at 40%.)
Observe:
The controller output signal immediately drops from 40% to 30%.
(Reason: The controller is reverse acting, so a measurement increase causes a controller output
decrease. The GAIN is 1.00, so the change in controller output due to proportional action is 1
times the measurement change.)
The controller output then begins to ramp downward, at the rate of 2% per minute.
Note that the ramping action continues until the output reaches a saturation limit (0%). This
condition is called “reset windup.”
Page 7.8.5
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Be sure the controller is in a steady state condition, with the measurement at 50% and controller output
signal at 40%
Observe:
The proportional response is now only 5%.
4.1 Set Up
Put the controller in MAN.
Gain: 0.5
Set Point: 50
Controller output: 40
In the Control | Measurement Options, select Yes for “Use substitute value …?”, then enter a substitute
measurement value of 50
Verify that the controller is in stable operation with set point and process variable at 50, and controller
output signal at 40.
Page 7.8.6
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Select Up.
Observe:
The process variable ramping upward from its initial value of 50% at the rate of 4%/minute.
The controller output ramping downward from its initial value of 40% at 2%/minute, stopping at
15% when the measurement reaches 100%.
Rate: 4%/minute
Direction: UP
Observe:
The controller output signal makes an almost immediate change from 40% to 30% then ramps
downward at the rate of 2% per minute to 5%, when the measurement has reaches 100%. As
soon as the measurement ramp stops, the controller output signal makes an almost immediate
change from 5% to 15%, then remains constant.
Page 7.8.7
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
= 10 %
If the controller had no derivative (as in the first trial), you can estimate approximately
how long, from the initiation of the ramp, was required for the controller output signal to
change from its initial value (40%) to some chosen value (say, 20%). Your estimate
should be approximately 10 minutes, with proportional control only.
With derivative (as in this trial), estimate the time required for the controller output signal
to change from its initial value (40%) to the same point (20%). Your estimate should be
approximately five minutes.
Conclusion: With a derivative time of 5 minutes, the controller output signal should lead
(or get to the same chosen point) by 5 minutes its behavior with proportional control
only.)
Repeat this part of this laboratory exercise, this time with a measurement ramp rate or a derivative time of
your choice. You should observe:
The “ – “ sign is due to the fact that the derivative contribution is always in a
direction which opposes the direction of measurement change.
4.4 Derivative Gain and Set Point Changes Using Derivative (Optional)
A block diagram for the classical form of PID controller is shown below.
Many commercial manufacturers of controllers, however, place a filter, in the form of a first order lag, in
the derivative portion of the controller. This results in the modified block diagram shown below:
Page 7.8.8
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
The usual practice is for the time constant of the first order lag to be some fraction of the derivative time
setting. This is accomplished by dividing the time constant by a factor known as “derivative gain” (DG). In
commercial controllers, the value of DG is usually in the range of 8 to 15.
1. If there is measurement noise, the filtering action minimizes the amount of noise amplification
placed on the controller output by the derivative unit.
2. With the classical form of PID, a step change in set point will result in a spike in the controller
output caused by the derivative unit. Theoretically this spike will be of infinite height and
infinitesimal width. As a practical matter, the spike height is limited by the maximum or minimum
controller output. With the filter added, the spike height following a step set point change will be
the value of DG times the proportional response. The output will then decay to normal with the
time constant of the first order lag.
Select Process | Initialize (This returns all options to their original settings.)
Select Control | Control Options and set Derivative on Error. (The default setting is Derivative on
Measurement.)
Gain 2.0
(This large of value for derivative gain essentially eliminates the filtering action on the derivative.)
Set Point 55
Observe:
Even with this moderate set point change, the controller output “spikes” all the way to 100%, then
very quickly drops back to a normal control range. In a real world situation, you probably would
not want to send a severe shock like that to your process.
Page 7.8.9
Regulatory Control and PID loop tuning Exercise 8. PID controller characteristics
Observe:
This time the controller output spike is limited. The immediate change in controller output should
be:
2 x 2.0 x 10 = 40%
(Quantization error in the digital algorithm may cause some deviation between the actual value and the
theoretical value):
Also note that the return to the normal operating range is not as abrupt.
Observe:
With derivative on measurement, the immediate response of the controller output is the
proportion response only – there is no derivative spike. Now one of the purposes of the filter on
the derivative component has been removed, but the filter is still useful in minimizing the effect of
measurement noise being amplified by the derivative unit.
Page 7.8.10
LABORATORY EXERCISE 9
Start PC-ControLAB.
If PC-ControLAB is already running, then re-read the “GENERIC” process model to initialize the program:
Note: The Generic model will not produce similar tuning results from Open Loop testing (this Laboratory
Exercise) and from Closed Loop testing (Laboratory Exercise 10.) If similar results are desired, use
Generic2 model rather than Generic.
Control Strategy FEEDBACK (see the top line, right hand side)
With the controller in Manual, change the output to 45%. (On a real process, you may not be able to
make that much change in controller output. Estimate (see Figures 1 and 2 at the back of this exercise for
methods of estimating process parameters.)
∆PV (%)
Process gain Kp (%) =
∆OP (%)
___________
Calculate tuning parameters for a P, PI and PID controller, using the Ziegler-Nichols equations.
(See Table 1 at the back of this Exercise.) Enter these in the table below.
For each type of controller, enter the parameters, put the controller in Auto and test the loop for a set
point change. (Suggestion: Change the set point, either up or down, by 50 °F. On the job, you probably
cannot make that large of change.)
NOTE: For the Proportional Only controller, with the controller in Manual, select Control | Control
Options, and select the Proportional only control algorithm. For the PI and PID controllers, with the
controller in Manual, select Control | Control Options, and select PID-Non-interacting control algorithm.
Calculate or measure the decay ratio, period and (for the PI controller only) the period-to-integral time
ratio. (This will be used in a subsequent Laboratory Exercise.)
For each type of controller, make a 5% (40 GPM) load change. Press StepIncr or StepDecr.
PID control appears to be better than PI for both a set point change and a load change. However, what
you have seen so far is a perfectly noise-free process. Real processes usually have some noise on the
measurement.
Page 7.9.2
Regulatory Control and PID loop tuning Exercise 9. PID tuning from open loop tests
Enter the PID tuning parameters from the table above, then, with the controller in Auto:
___________________________________________________________________________________
Frequently the measurement signal is filtered to “hide” the effect of the noise. (The noise is still there -
you just can’t see it!) We will put a filter on the measurement. This is equivalent to implementing a
software filter on the analog input block on a DCS. EXCEPT: Due to the relatively slow sampling rate of
this simulation, as compared with the typical sampling rate of a DCS, we will use a larger filter time
constant here than would be used in real life.
Press Clear
__________________________________________________________________________________
Page 7.9.3
Regulatory Control and PID loop tuning Exercise 9. PID tuning from open loop tests
∆PV (%)
Process gain Kp (%) =
∆ Valve (%)
Draw a tangent at the point of steepest rise. Be sure it intersects the initial equilibrium line; it is not
necessary to carry the tangent all the way until it intersects the final equilibrium line.
Dead Time: θ = Time from valve change to intersection of tangent with initial
equilibrium line.
Time Constant: τ = Time, from end of dead time (as determined above) until the process
changes by 63.2% of its final amount.
Page 7.9.4
LABORATORY EXERCISE 10
PREREQUISITE: Completion of Laboratory Exercise 9, PID Tuning from Open Loop Tests
BACKGROUND: Tuning by closed loop process testing involves putting the controller in
AUTOMATIC, removing all Reset and Derivative, and setting the Gain just high enough to cause a
sustained process oscillation. From this test, the relevant parameters are the period of oscillation in
minutes, and the Gain which ultimately caused the sustained oscillation. These are called the “ultimate
Period” and “ultimate Gain”, respectively. From this data, the tuning parameters can be calculated.
NOTE: The open-loop (the subject of Exercise 9) and the closed-loop methods (the closed-loop method
is the subject of this exercise) may or may not produce similar tuning values, even when using the same
process model. The “Generic” process model is used in these exercises; there is some difference in the
results. For demonstration purposed, is you wish to obtain similar results from t he two methods, use the
Generic2” model.
Run PC-ControLAB
2.1 Setup
Confirm the following:
Control Strategy FEEDBACK (see the top line, right hand side)
If PC-ControLAB has already running, you may have to do any or all of the following:
Press Tune then select the Options tab. Select Reset Action OFF.
Regulatory Control and PID loop tuning Exercise 10. PID tuning from closed loop tests
Reset: Off
If there is no oscillation, or if the oscillation dies out, increase the Gain (or decrease the Proportional
Band) and repeat the set point change. (The Gain can initially be changed approximately 50% of its
present value, or the PB can be changed to one-half of its present value. As the response gets closer to
sustained oscillation, smaller changes should be made.) You should not have to observe the response for
more than three cycles to determine whether or not the oscillation is decaying or not.)
Use the table for the closed-loop Ziegler-Nichols method (Table 1 at the back of this exercise) to calculate
tuning parameters for a P, PI and PID controller. Enter these in the table below:
(First calculate Gain (KC), Integral time (TI) and Derivative (TD) from the equations. Then, if your system
uses PB rather than Gain, or Reset Rate rather than Reset Time, calculate those values.)
Before testing for the closed loop response, go to Tune | Options tab and set Reset Action ON.
For each type of controller, enter the parameters, put the controller in Auto and test the loop for a 10% (of
full scale) set point change.
Calculate or measure the decay ratio, period and (for PI controller only) the period-to-integral time ratio.
(This will be used in a subsequent exercise.)
Also, for each type of controller, make a 5% load change. (Press StepIncr or StepDecr.) Mark which
controller type has the best, and the worst, response to a load change.
Page 7.10.2
Regulatory Control and PID loop tuning Exercise 10. PID tuning from closed loop tests
Page 7.10.3
LABORATORY EXERCISE 11
BACKGROUND: Quite often a control systems engineer or instrumentation technician is called upon
to improve the behaviour of a loop that is currently in operation, but without resorting to either the open
loop or closed loop testing methods. Assuming that the loop is not behaving acceptably at present, and
that process and equipment problems (e.g., sticking valve) have been eliminated, then most persons
resort to “trial and error” tuning. For novice tuners, this is often simply an exploratory procedure; “How
about changing this knob in this direction and see what happens”.
This laboratory exercise presents a method for directed trial and error tuning, where each tuning
parameter change is made for a deliberate reason. The objective is to go from the current unacceptable
behaviour to acceptable behaviour as efficiently as possible; i.e., in the fewest number of tuning
parameter changes.
This method is based upon the premise that if a PI controller, controlling a self-regulating process, is well
tuned (that is, exhibiting a slightly underdamped oscillation with a quarter wave decay), then there will be
a predictable relationship between the period of oscillation (P) and the integral time (TI). This relationship
(stated in three different ways) is:
P
1.5 ≤ ≤2.0
TI
1.5 TI ≤ P ≤2.0 TI
1.5 P ≤ TI ≤2.0 P
I
This premise leads to the following rule-based procedure:
2.1. If the Period is between 1.5 and 2.0 times the integral time (or the period-to-reset ratio is
between 1.5 and 2.0), then either increase or decrease the gain as required to obtain the desired
decay ratio (such as quarter wave damping)
2.2. If the Period is greater than 2.0 times the integral time (or the period-to-reset ratio is greater
than 2.0), then choose a new integral time according to the criterion:
0.5P ≤ T I ≤ 0.67P
Regulatory Control and PID loop tuning Exercise 11. Improving ‘as found’ tuning
2.3. If the Period is less than 1.5 times the integral time (or the period-to-reset ratio is less than
1.5), then:
2.3.1. If the decay ratio is greater than 1/4, then decrease the gain, say by 25 to 50%,
depending upon how much the decay ratio exceeds 1/4.
2.3.4. If the decay ratio is less than, or approximately equal to, 1/4, then choose a new
integral time, using the criterion given in 2.2.
3. After each adjustment, make a slight set point change to test the response to the latest
combination of tuning parameters.
Start PC-ControLAB
2. LOOP TUNING
Select Control | Retrieve Strategy and Tuning. Highlight “Feedbck1” (not “Feedback”) and
press Open.
Observe from the top row that this opens the normal Feedback control strategy, as well as the Generic
process model which you have worked with in previous laboratory exercises. The thing that is different
here is that the loop has already been tuned – for better or for worse. Press Tune and note the existing
tuning parameters.
If the PV scale is not in engineering units, select View | Display Range | Engineering Units.
NOTE: The following two procedures will NOT product the same response:
Make the set point change first, then put the loop into AUTO.
Put the loop in AUTO first, then make the set point change.
For the purpose of the procedure described in this laboratory exercise, it is important for you to see the
set point response with the loop already in AUTO. Therefore, the correct procedure is to put the loop into
AUTO then make the set point change.
Observe the response. Suppose that this is the behavior of the loop when you are asked to
make tuning parameter changes. In other words, this is your “as found” condition.
Page 7.11.2
Regulatory Control and PID loop tuning Exercise 11. Improving ‘as found’ tuning
If so, list the “as found” conditions in the top line of the table below. Then use the procedure listed
in “BACKGROUND”, or use the flowchart, to make tuning parameter changes. Keep track below
of each tuning change you make. (Suggestion: Use set point values of 275 °F and 300 °F.)
3. A COMPARISON
Many (novice) loop tuners, faced with the “as found” condition, would simply reduce the controller Gain
until acceptable damping (e.g., quarter-wave decay) was achieved. We will demonstrate why that may not
be a good idea.
With the loop in Automatic, set the set point at 275 °F and let the loop come to equilibrium. Working
between set point values of 275 and 325 °F, adjust the Gain until quarterwave damping is achieved. Do
not change the reset.
Gain: ________
Change the set point to 275. When the loop comes to equilibrium, make a 10% disturbance (load change)
by clicking twice - rapidly - on StepIncr.
Record:
How long before loop “settles down” to within 1/2% (± 2.5 Deg) of SP ________
Page 7.11.3
Regulatory Control and PID loop tuning Exercise 11. Improving ‘as found’ tuning
3.2 Enter your final tuning parameters from part 2.0. (These should have produced a quarter wave decay
response following a set point change, and a period-to-reset ratio which meets the criterion stated in
“BACKGROUND”.
With the loop in Automatic, set the set point at 275 °F and let the loop come to equilibrium.
Record:
3.3 Which tuning combination produces the best response to a load change?
Page 7.11.4
LABORATORY EXERCISE 12
BACKGROUND: Whereas most processes exhibit some degree of self-regulation, level control
applications are usually non-self regulating. That is, unless the inflow and outflow are exactly equal, the
level will continue to rise or fall until the vessel overflows or becomes empty.
For most self-regulating processes, three parameters (process gain, dead time and time constant) can be
used to approximate the process dynamic characteristics. For most liquid level loops, one, or at most two,
parameters characterize the process. Instead of process gain, a relevant parameter is the tank residence
time, TR. For a vertical tank, the residence time of the vessel is given by:
π d2 h
TR =
4Fm
where:
d = diameter of vessel (feet)
If the level controller is cascaded to a flow controller, then Fm is simply the maximum reading of the flow
transmitter, and d and h come from tank geometry.
If the level controller output goes directly to a valve, then TR for the current operating point can be found
by making a process test. In addition, another parameter, KV, the valve gain, can also be found from the
same test.
The significance of these parameters is that from them plus the tuning parameters, gain (KC) and integral
time (TI ), the behaviour of the level control loop can be predicted. Alternatively, if a certain behavior is
desired, such as a particular decay ratio, then the required tuning parameters can be calculated.
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
K C K V TI
[2]
TR
for applications where the level controller output connects directly to a valve, or
K C TI
[3]
TR
for applications where the level controller is cascaded to a flow controller.
To avoid duplication, we will use equation [2] for both circumstances, with the understanding that for
cascade applications, KV should be set equal to 1.0.
KC KV TI
If > 4.0, the level control loop will be overdamped.
TR
KC KV TI
If = 4.0, the level control loop will be critically damped.
TR
KC KV TI
If < 4.0, the level control loop will be underdamped.
TR
.
Two special cases.
KC KV TI
If = 0.185 (or approximately 0.2), the level control loop will respond with a
TR
quarter-decay
KC KV TI
If TR
= = 0.743 (or approximately 0.75), the level control loop will respond with
a 1/20 decay ratio (the second peak overshoot will be 0.05 times the first overshoot).
In most liquid level control applications, the set point is rarely changed. Instead, the purpose of the
control loop is to maintain the level at (or acceptably near) set point in the presence of load changes.
Hence we will focus on the response to a load change, rather than to a set point change in this exercise.
Run PC-ControLAB.
Page 7.12.2
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
The simulation is of a liquid level controller cascaded to a flow controller. All we will work with in this
exercise is the level controller. Both controllers are initially tuned.
Type in .20.0. and press Enter on the keyboard. Then click Clear.
Press Tune. Note the initial tuning parameters for the level controller.
Gain = __________
Record the value for tank residence time and valve gain found from Exercise 7.
TR __________ minutes
KV _______________
Press Sel on the Level controller, then press StepIncr twice in rapid succession. This causes a 10%
step change in inflow.
Observe the response of the level. Does this look like approximately a quarter-decay? __________
From the tank residence time and controller tuning, what type of response should we expect? (Since in
this application, the level controller is cascaded to a flow controller, use Kv = 1.0, rather than the value
found in Exercise 7.)
Page 7.12.3
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
____________________________________________________________________________________
Suppose you want less oscillation? A conventional approach would be to reduce the gain. With the Level
controller still Selected, change the controller gain from 1.0 to 0.5.
Press StepDecr twice in rapid succession. (Same size load change, only in the opposite direction.)
Reduce the gain by half again. Change the Level controller gain from 0.5 to 0.25, then press StepIncr
twice in rapid succession.
This has illustrated the fact that rules of thumb often used for other types of loops are counter-intuitive
when applied to liquid level loops.
DECAY RATIO KC TI
Page 7.12.4
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
NOMENCLATURE
KC = Controller gain
TaF = Outflow arrest time, minutes. Time of maximum deviation of outflow from inflow
TaL = Level arrest time, minutes. Time when level first reaches maximum deviation from set point
For each type of response, enter the parameters you calculated. When the loop is in equilibrium, make a
10% step change in inflow by pressing Steplncr or StepDecr twice in rapid succession.
Use Table 2 to spot check a few of the parameters below, to see if the predicted value comes close to
what you actually observe:
Considering both performance of the level control and the effect on outflow (this may be potential
disturbance to a downstream process unit), which form of response do you like best?
Crit. Damped ________ 0.05 Decay Ratio ________ 0.25 Decay Ratio _________
Page 7.12.5
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
Select Control I Control Options. Select Direct Acting for Control Action.
Select Load.
In the sub-panel labeled .Auto Load Change., click in the field adjacent to the label ‘Correlation’.
Press Clear.
From Table 1, calculate parameters for the 0.05 decay ratio. Use KV value found in Exercise 7.
Gain ____________
Press AutoLoad. The simulation now exhibits a randomly changing load. Observe this for at least two full
screen changes. What is the maximum deviation from set point?
________
Select Control I Control Options. For the option ‘Error Squared’ select Yes.
Press Clear.
Enter (or retain) the tuning parameters for the 0.05 decay ratio from the previous section.
Page 7.12.6
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
After observing the response for about an hour (simulated time) estimate the following:
Note that there is much more deviation in level. You should also observe that there is a considerably
lower frequency activity in the controller output. If the outflow were the feed rate to a downstream process
unit, then the disturbances to that unit would be much less severe than with ordinary PI control. This is
accomplished at the expense of greater fluctuation in the level measurement. If the deviation is too great,
you can increase the controller gain and shorten the reset time, recognizing that there will be an increase
in the outflow activity, consequently an increased disturbance to the downstream process unit.
Gain: 10.0
Reset: 30 minutes/repeat
After observing the response for an adequate amount of time, estimate the maximum deviation
from set point:
________
Put the controller in Manual and press AutoLoad to deactivate random load changes.
Press Pause.
Suppose we want to maintain the level within ± 10% of set point (that is, between 40 and 60%).
Gain: 5
Manual Reset: 50
Press Run.
Page 7.12.7
Regulatory Control and PID loop tuning Exercise 12.Tuning liquid level control loops
Does the theoretical value agree with the actual output value? ____________
Press StepIncr until the load (inflow) is just below 100%. What is the PV? __________%
Press StepDecr until both the load and the controller output are above 0%. PV? __________%
Press AutoLoad to activate random load changes. Observe the response for some time.
We are guaranteed of keeping our level within the desired bounds of 40 . 60%. The penalty we pay is
that, even with a constant load, the level will not be at set point. This control scheme shows up very well
for surge tank level control, where we can tolerate more variation in level. Suppose we allow the level to
vary ± 25% (or from 25% to 75%). This would require a proportional band of 50%, or a controller gain of
2.0.
With AutoLoad on, observe the response for some time. Does the level remain within the
bounds of 25% to 75%?
__________
Page 7.12.8
LABORATORY EXERCISE 13
SCHEDULED TUNING
OBJECTIVE: To demonstrate the benefits of scheduled tuning for non-linear processes.
BACKGROUND: If a process is highly non-linear and is operated over a wide operating region, then
either the tuning parameters must be changed for different operating conditions, or else the controller will
be tuned for the .worst case. condition, resulting in less than optimum tuning at other conditions. One
means of coping with this is to issue instructions to the operator to change tuning parameters for different
operating conditions. Another possibility is to develop a set of tuning parameters for each operating
condition and employ some mechanism which applies the correct tuning parameter set for each condition.
This is known as .scheduled tuning. (also sometimes called .adaptive gain.). A basic premise is that the
operating condition can be indexed by a single variable, such as the measured process variable, the set
point, controller output, or a disturbance variable to the loop. This variable can then become the key to
finite regions of the operating zone, each with its own set of tuning parameters. A slight variation of the
above is to assign nominal parameters, then apply a unique multiplying factor to each of the parameters
for each defined region. This is the approach used by PC-ControLAB.
Start PC-ControLAB
2. INITIAL TUNING
2.1 Preparatory
Confirm that you are running the Feedback control strategy.
We’re going to be making fairly small set point changes, so press Zoom and change the vertical scale of
the PV from 0 . 100 to 55 . 65 °C. (Why small SP changes? To avoid having the controller output hit a
limit when we are working at high loads.)
Regulatory Control and PID loop tuning Exercise 13.Scheduled tuning
With the controller in Manual, change the controller output from 48% to 53% (a 5% change). Use the
open loop testing method (Laboratory Exercise 9) to determine an initial set of tuning parameters for a PI
controller.
Enter these parameters. Put the controller in AUTO. Fine tune these parameters if necessary, using the
‘Improving As Found Tuning’ method (Laboratory Exercise 11).
When you have determined satisfactory tuning parameters for this condition (load variable = 75 m3/hr),
record them below:
Now make load changes of 5% (Press StepDecr once. After the PV settles out, press StepIncr once.)
and observe the response.
Also make load changes of 5% (press StepDecr once. After the PV settles out, press StepIncr once.)
Observe the responses.
.
How do these responses (to SP and load changes) compare with what you observed when the load was
at 75%?
_______________________________________________________________________
Change the process load to 55% of full scale. (Press StepDecr 8 times).
Also make load changes of 5% (Press StepDecr once. After the PV settles out, press StepIncr once.)
Observe the responses.
How do these responses (to SP and load changes) compare with what you observed
when the load was at 75%?
_______________________________________________________________________
What you should have observed so far: Starting with the controller tuned acceptably when the load is
75%, a significant load increase with the same tuning parameters causes the control loop to be slightly
more sluggish. A significant load decrease with the same tuning parameters causes the loop to be to
aggressive.
Page 7.13.2
Regulatory Control and PID loop tuning Exercise 13.Scheduled tuning
Now go to 95% load and adjust the tuning parameters to get approximately the same type
of response as you did when the load was 75%.
Region 1 Load < 65%. (Actually, we never use a load less than 50%.)
Since we said that in our base case (See Section 2.2) the load was 75%, then Region 2 is our base
operating region. We will enter tuning parameters for that region as our nominal parameters, and adjust
the parameters for the other regions by multiplicative factor. (The multiplicative factor for Region 2 will be
1.00.)
Calculate the Gain multiplier and Reset (Min/Rpt) multiplier for Region 1 and Region 3.
Enter these values into the table below. (Note that the Deriv multipliers can be left at the default value of
1.0, since the base Deriv value is 0.0. Also note that Region 2 represents our base case, so those
multipliers are 1.0.)
Page 7.13.3
Regulatory Control and PID loop tuning Exercise 13.Scheduled tuning
Select PV-4 for the Key variable. (This process model has PV-4 connected directly to Load-1, which
represents the process flow disturbance.)
Return to the Tuning tab. Re-enter the tuning values you determined for the base case (Section 2.2).
For each load value between 55% and 95%, make set point changes to 62, then to 60.
Observe the response. Then increment (press StepIncr) the load to the next level and repeat.
Ideally, you should see a fairly satisfactory response at each load level. If not, consider what changes you
might make to the schedule. Consider changing one or more of the following:
Number of regions
Multiplying factors.
Page 7.13.4
LABORATORY EXERCISE 14
BACKGROUND: Ratio control is used when it is necessary to maintain a certain ratio between the
flow rate of two streams. One stream, called the “wild” flow, is measured only. It is the pacing stream. The
other stream, the controlled flow, is controlled so as to maintain a specified ratio between the two. There
are two general types of ratio control. In one type, illustrated in this laboratory exercise, the ratio is
manually set. In the other type, the ratio is automatically set by the output of a Primary feedback
controller.
That type of ratio control is illustrated by Laboratory Exercise 17, Multiplicative Feed forward Control. A
typical configuration of ratio control is shown in the following figure. For illustrative purpose, this
laboratory exercise assumes that the controlled flow is Steam Flow, with a measured range of 0 – 1000
P/hr. The “wild” flow is a process stream, with a measured range of 0 – 400 gpm.
Run PC-ControLAB.
2. CONTROLLER SET UP
Press Tune and enter the following tuning parameters (representative of a flow loop).
Gain: 0.5
Observe:
Present value of “wild” variable, in engineering units (gray trace, labeled LOAD) ________
(Click on the label “GPM” to change the vertical scale from the PV to the wild flow.)
PV % of span
Ratio : ________
Wild flow % of span
Click on the button labeled R on the controller faceplate to access the present calculated ratio, as well as
the set ratio. Calculated ratio: ________
In concept, the set ratio back could be calculated from the present ratio of measured variables; this would
provide bumpless transfer from the AUTO mode to the RATIO mode. This would probably not be wise,
however, since the required ratio is normally set by process conditions or product specifications. The
operator, not the system, should be the one to enter the required ratio.
Therefore, the set ratio is not back-calculated in this program or in most commercial systems. When the
ratio is set by the output of a feedbacfk controller (for instance, in the Multiplicative Feedforward control
strategy – see Exercise 17), the ratio is back calculated, thus producing the output for the Primary
controller. This provides for bumpless transfer from Manual to Auto for the Primary.
If you change the controller to the Ratio mode now, where do you think the controller set point will go?
________
Try it! Put the controller in Ratio. What is the SP? ________
You probably observed that that made quite a “jolt” to the flow loop. A wise operator probably would not
change from Auto to Ratio when there was that much difference between the existing ratio and the ratio
setting. Instead, he/she would probably set the ratio setting to whatever the application or product
specifications required, then adjust flow set point until actual ratio met the required ratio. Then the switch
to Ratio mode would be made.
Page 7.14.2
Regulatory Control and PID loop tuning Exercise 14. Characteristics of ratio control
PV % of span
Ratio ________
Wild flow % of span
Did the controlled flow (PV) follow it at the set ratio? ________
Press StepDecr twice, then press AutoLoad. This simulates a randomly varying wild flow.
Does the controlled flow (PV) follow it at the set ratio? ________
Page 7.14.3
LABORATORY EXERCISE 15
BACKGROUND: With cascade control, the output of one feedback controller (the “primary”) sets the
Set-point of a second feedback controller (the “secondary”). A significant advantage is that disturbances
to the inner loop, controlled by the secondary, have minimal effect on the primary process variable.
Run PC-ControLAB.
You can call in a CASCADE control strategy with the controllers already tuned for a particular process
model. Select Control | Retrieve Strategy, Model and Tuning.
The default configuration of the Cascade control strategy is that of cascade control loop, with the
Secondary controller (right hand controller on display) controlling a relatively fast process (Flow) and the
Primary Controller (left hand controller on display) controlling a slower process (Temperature). The
measurement range for the Primary controller is 0 to 500 DegF. For the Secondary Controller, the
measurement range is 0 – 1000 P/hr of steam flow. The simulation represents control of temperature
leaving a heat exchanger. A disturbance to the primary loop is feed rate to the exchanger; a disturbance
to the secondary loop is the steam pressure to the control valve. Disturbances (load upsets) can be
introduced separately into either the secondary loop or primary loop.
Press SEL on the Secondary Controller to enable accessing the Secondary Controller tuning parameters.
(The label above the Secondary Controller should be red with white letters when it is selected.)
Press TUNE.
Regulatory Control and PID loop tuning Exercise 15. Characteristics of cascade control
Note the following tuning values have already been entered for the Secondary Controller:
Gain: 0.5
Press Clear.
Confirm acceptable operation of the Secondary Controller. Change the Secondary Controller to
Automatic, and change the set point to 400 P/hr.
Return the Secondary set point to 280, then place the Secondary Controller in Cascade. (Note the
change in color of the LEDs on the Primary Controller. This signifies that the Primary Controller can now
send a signal to the Secondary.) Use the controller output buttons on the Primary to make slight changes
in its output. You should observe changes to the Secondary set point.
Press SEL on the Primary controller, then press Out and change the Primary controller output to 28%.
This returns the Secondary set point to 280 P/hr.
Note that the following tuning values have already been entered for the Primary Controller:
Gain: 2.5
Check the Secondary Controller. Is it in Cascade? (It should be, if you followed instructions.) If so, put the
Primary Controller in Automatic. Increase its set point to 325. (Select the Primary Controller.
Page 7.15.2
Regulatory Control and PID loop tuning Exercise 15. Characteristics of cascade control
When the loops have stabilized, read and record the values for the following variables:
In order to have a better display of the process response in the following sections, you may want
to SELect the Temperature controller and zoom the PV scale to 250 – 300 degF.
Select the Primary Controller. (Very important that the PRIMARY is selected!) Press StepIncr (above the
faceplates) once, to make a load change on the primary loop. (This simulates an increase in process
flow.) The primary control loop load variable affects the outer loop process, but has no effect on the inner
loop process.
You have observed a load change on the outer loop. To compensate for this, the Primary Controller
increased the demand on the inner loop; i.e., it changed the set point of the Secondary Controller. To
meet this additional demand, the Secondary Controller output also changed.
With the Primary Controller still selected, press StepDecr to return to the load to its original value.
When the control loops have stabilized, select the Secondary Controller. (Very important here
that the SECONDARY is selected!) Press StepDecr once to cause a disturbance to the
secondary loop. (This simulates a drop in steam pressure.)
Primary Controller output (secondary set point) after inner loop load change: ________
You have just observed a load change on the inner loop. Since the load on the outer loop has not
changed, the long term demand of the Primary Controller on the inner loop (i.e., the set point of the
secondary controller) does not change - it may undergo some fluctuation in the short term. But to
compensate for the changed load on the inner loop, the Secondary Controller output had to change.
Page 7.15.3
Regulatory Control and PID loop tuning Exercise 15. Characteristics of cascade control
The most significant observation is that the secondary process load change was contained within the
inner loop. The effect on the primary process variable was fairly slight.
Before going on, while the Secondary Controller is still selected, press StepIncr to return the secondary
load to its original value.
First, switch both controllers to Manual. (In a real control system, you can’t make changes to the
configuration of a controller that is in Automatic. The same thing applies here.)
With either controller selected, select Control | Control Options. Use the scroll bar at the left of the
options table to scroll to the end of the table. Choose the option YES for "Bypass Secondary Controller."
You have just “softwired” around the Secondary Controller. The Primary Controller output now goes
directly to the valve. This operation was performed without bumping the process, since the primary
controller’s output was initialized to be the same as the output of the Secondary Controller before the
switch was made. The display still shows both faceplates, although the Secondary Controller is inactive.
Are the tuning parameters the same as previously set for this controller? ________
Although the control structure has been altered, the process itself has not. There is still a
secondary process which feeds a primary process, with independent load disturbances to
each.
With the Primary Controller Selected, press StepIncr once to increase the load (increase the
process flow rate) on the primary loop.
Is this response approximately the same or significantly different from the response with cascade
present?
________
Press StepDecr to return the primary process load to its original value.
When the control loop is stabilized, select the Secondary controller and press StepIncr to cause a load
change (drop in steam pressure) on the secondary process.
Page 7.15.4
Regulatory Control and PID loop tuning Exercise 15. Characteristics of cascade control
Is the response to this load change approximately the same or significantly different from the
response to the same load change with cascade present?
________
Is the response to this load change approximately the same or significantly different from the
response to a primary load upset, both without cascade control being present?
________
You have observed load upsets on both the secondary and primary processes, without cascade control
present. Since there is no closed inner loop to compensate for the load upset on the secondary process,
the responses are approximately the same. Comparing the response to a secondary load upset both with
and without cascade, you should observe that there is a very significant improvement when cascade is
present.
Page 7.15.5
Regulatory Control and PID loop tuning Exercise 15. Characteristics of cascade control
Page 7.15.6
DEMONSTRATION EXERCISE 16
An application scenario around which the demonstration exercise is written involves a batch
reactor, or other batch operated process unit, in which there is a repetitious heating-cooling cycle. Figure
1 shows a possible process and control configuration.
Suppose the temperature controller is always left in automatic, with a constant set point. Suppose further,
that at the end of the heating cycle, the heat source (say, steam) is removed simply by closing a remote
operated block valve in series with the temperature control valve. The effect will be for the temperature to
drop. The controller, still being in AUTO, will sense the drop in temperature and drive the control valve
wide open.
On the next heating cycle, when the block valve is reopened, the controller will be in AUTO with its
measurement far below its set point. The control valve will be wide open. Under these circumstances, full
steam will be applied to the process. Without anti-reset windup, the proportional band will have shifted to
the top of the scale, so that the temperature will have to rise a significant amount before the steam valve
even begins to cut back. The result will be a significant temperature overshoot of the set point.
Regulatory Control and PID loop tuning Demonstration exercise 16. Ant-reset windup
Following the same scenario, but with anti-reset windup in the controller, the proportional band will initially
rise to the top of the scale, then forced downward by the action of the anti-reset windup function. When
the next heating cycle commences (when the block valve is opened), full steam will initially be applied to
the process as before. However, with a depressed proportional band, the valve will begin cutting back as
soon as the temperature begins to rise. The result will be a significant reduction in temperature overshoot,
as compared with the non-anti-reset windup situation. This exercise demonstrate the scenario described
above.
Run PC-ControLAB.
2. SET UP
Verify that the control strategy is FEEDBACK, and that the GENERIC process model is in use.
Select Control | Control Options. In the “Anti-Reset Windup” panel, Verify that NO is selected.
Gain: 3.0
When all values have been entered, press OK to clear the tuning dialog box.
PV: 275
Select View | Display Proportional Band. Observe the proportional band (light blue bar) extends from
about 182 °C to 325 °C, or a span of 143 °C.
100 100
Proportional Band = = = 28.6
Gain 3.5
Page 7.16.2
Regulatory Control and PID loop tuning Demonstration exercise 16. Ant-reset windup
The control loop should now be in normal operation, with the set point and process variable at 275 °C and
the controller output at 35%. Confirm this by making a set point change to 325. When the loop stabilizes,
return the set point to 275. When the process restabilizes, proceed.
In the panel labeled “System Heat”, notice that the current state of the shutdown system is ON. In
the panel labeled “Sol Valve”, notice that the solenoid valve is now ON. Click OFF for the
System Heat, and notice that the solenoid valve goes to OFF.
This simulates blocking the heat source from the control valve. Observe:
The proportional band bar rises toward the top of the scale, stopping when the output
reaches a limit, then remains in a fixed position.
When the process variable has fully decayed, select System Heat: ON to reopen the block valve.
Observe:
The process variable (temperature) begins to rise almost immediately; Since the proportional
band is approximately in the middle of the scale, the process variable must rise a considerable
distance before the valve even begins to cut back. (The valve begins to cut back before the
measurement actually reaches the proportional band, due to the presence of derivative action in
the controller.)
Note the amount that the process variable overshoots the set point.
Amount of Overshoot 30 °C
Observe the length of time after the process variable begins to rise before the valve starts to cut back.
3 mins
Page 7.16.3
Regulatory Control and PID loop tuning Demonstration exercise 16. Ant-reset windup
Select Control | Control Options. In the “Anti-Reset Windup” panel, select YES. Then press Clear.
Observe:
The process variable (temperature) drops;
The valve goes to a wide open position;
The proportional band bar initially rises, but when the controller output reaches the top of the
scale, then the anti-reset windup feature causes the proportional band to shift downward.
(Colloquially, this is called "dumping the reset.") The proportional band comes to rest when the
top of the PB is the “Preset” (percent of proportional band) below the set point.
When the process variable has fully decayed to the bottom of the scale, reopen the block valve.
Observe:
Observe the length of time after the process variable begins to rise before the valve starts to cut back.
1.5 mins
“Output maximum” limits the maximum controller output. In addition, when the controller output reaches
this point, the anti-reset windup function begins to shift the proportional band downward. “Anti-reset
windup preset” limits the amount by which the proportional band can be shifted downward. For example,
suppose the controller is Reverse Acting, with a PB of 40% (GAIN = 2.5) and the set point is at 60%. Also
suppose that the anti-reset windup preset is set for -25%. On a shut down, the anti-reset windup would
force the PB down to where the top of the PB is at 50% of the PV scale. That's 10% below the set point,
where 10% of PV scale is 25% of the PB width. (0.25 x 40% = 10%)
Page 7.16.4
Regulatory Control and PID loop tuning Demonstration exercise 16. Ant-reset windup
If the anti-reset windup preset is set too high, the proportional band will not be shifted downward far
enough, resulting still in an unwanted amount of overshoot.
On the other hand, if the anti-reset windup preset is set to low, the proportional band will be shifted
downward an excessive amount, resulting in the process variable beginning to cut back before reaching
the set point. In essence, the anti-reset windup preset becomes an additional tuning parameter that must
be matched to process dynamics and load conditions for optimum response.
Select Control | Controller Options. Change the anti-reset windup preset from its present value (0.0) to
-25.
Put the controller in Auto and repeat the shut down-start up procedure. This time you should see
essentially the optimum response, meaning minimum overshoot.
6. DISCUSSION
Some manufacturers achieve a similar function in different manners. For instance: Some manufacturers
implement two-sided anti-reset windup. (This program only demonstrated one-sided anti-reset windup,
effective when the controller output reached an upper limit.)
One manufacturer leaves the proportional band at the top of the scale, but then when the measurement
begins to recover, the integral time is reduced by a factor of 16, thus shifting the proportional band
downward 16 times as fast as would a normal PID controller. This minimizes overshoot in start-up or
recovery from loss of control. Some manufacturers simply limit the contribution to the controller output by
the integral mode and refer to this as “anti-reset windup.” This should not be confused with the form of
anti-reset windup demonstrated here.
Page 7.16.5
Regulatory Control and PID loop tuning Demonstration exercise 16. Ant-reset windup
Page 7.16.6