Lab Manual
Lab Manual
1. prepare a laboratory notebook where you will record all observations during
preparation and the experiments
2. read these notes carefully
3. download from the LearnServer the installation kit of the “Virtual Process Control
Laboratory” and familiarize yourself with the software and procedure.
4. EXPERIMENTAL PROCEDURE 4. Plot the calibration curve (level versus voltage) and determine the gain and zero of the
instrument by fitting a line to the experimental data. Perform separate fittings of the
increasing and deceasing data, as well as using all data points. Compare the three
I. Sensor Calibration
calibration equations with each other and with the calibration obtained using the data at
point 2.
Introduction
A level sensor is an essential element in all chemical plants. The signal obtained from the device
is usually a standard electric signal (e.g. 0-5 V). This value needs to be correlated with the real
level in the tank to obtain the desired information. This process is called calibration. For II. Calibration and Characteristics of the Control Valve
appropriate level control and monitoring the characteristics of the level sensor needs to be
determined. The level sensor is a linear device, which may exhibit hysteresis in the output. The Introduction
output (voltage) can be related to the input (level) by the equation:
A control valve is a device which allows to change flow resistance, through a changing external
Level (%) = Ks ⋅Voltage(V ) + Zs (1) input signal. A control valve changes the flow of a fluid by altering the valve's flow resistance.
ZK Nagy 3 ZK Nagy 4
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
or Fail Closed (FC), producing minimum flow at minimum signal, giving Installed Characteristics
u − u min When a valve is installed in a pipeline it becomes part of the flow circuit. Because of the flow
l= (7) resistances of the other components of the flow circuit, the pressure drop across such a valve is
u max − u min
no longer constant but varies with the fluid flow rate
where u min and umax are the minimum and maximum values of the external input signal. Usually The installed characteristic of a valve is the flow behaviour when the valve is part of a fluid circuit.
this signal is electric or pneumatic. In our case we can consider a range of 0-100%. For fully turbulent flow through a circuit consisting of a centrifugal pump in series with a control
valve and a fixed flow resistance, the installed characteristic of a linear valve is:
Valve Characteristics
l
Q= (9)
The valve body contains an orifice, through which fluid flows, and a movable plug, which (1 − α)l 2 + α
obstructs the flow. Valves are distinguished by their characteristic, which is the variation in the
fluid flow through the valve as he valve plug is moved. Differently shaped plugs give different where Q = q / q max is the fractional flow, and α is relative valve resistance. To describe the flow
valve characteristics. Motion of the valve plug is reported as changes in the fractional valve stem circuit only one parameter, α , is needed.
position, l .
Relative Control Valve Resistance
Inherent Characteristics
The relative (control) valve resistance is defined as the ratio of the energy dissipated by the valve
The inherent characteristic of a valve is given by the flow behaviour through the valve when the to the energy dissipated by the system, at maximum flow, i.e.,
pressure drop across the valve body is constant. For fully turbulent liquid flows, the inherent
characteristic is reported using the valve sizing coefficient, C v or K v , which is the flow of water ⎡ Energy dissipated by the valve ⎤
α=⎢ ⎥ (10)
at unit pressure drop across the valve body. An overview of the basic valve equations is given ⎢⎣ Energy dissipated by the system ⎥⎦ maximum flow
below.
Properly-sized valves have values of α between 1/3 and 2/3 .
1. Select the controller on MANUAL mode and set the manual control input in the
software interface so that the valve is completely open.
2. Adjust the water supply hand valve below the rotameter in the water inlet line so that a
steady state operation with the maximum level is achieved (this can be achieved for
example by setting the inlet flow such that the water flows out the overflow even when
the valve is fully open). This guarantees that any effect of changes in liquid height in the
tank on flow rate through the control valve is eliminated from the calibration.
3. Determine the range of operation of the valve’s output variable (the flow rate of water)
that corresponds to the valve’s input variable (the signal from the controller, i.e. 0-100%).
4. SET and RECORD the input variable to the valve at a number of points (approximately
10) and MEASURE and RECORD the output variable (flow rate of water through the
valve) from the electronic flowmeter installed on the output line. Cover adequately the
range identified in the previous step.
The valves in the Control Laboratory have linear inherent characteristics: 5. To assess the extent of hysteresis perform the calibration process by strictly increasing the
signal to the valve and then reverse the process using strictly decreasing signals.
C v = C v,max ⋅ l (8)
6. Plot the valve characteristics (flow rate versus signal to valve in %) and comment on the
results.
ZK Nagy 5 ZK Nagy 6
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
Manual Control
(Q −2 − 1) = α(l −2 − 1) (11)
1. With the controller in AUTO mode define a set point (e.g. 50%) and wait until the
−2 −2
system stabilizes.
Plot (Q − 1) versus (l − 1) . Fit a straight line passing through the origin to the data
2. Turn the control mode to MANUAL, and change the setpoint (e.g. to 70%).
points. The slope of the straight line gives α . Comment on the value obtained. Properly
sized valves have a value between 1/3 and 2/3. 3. With the manual action buttons in the Process Diagram pane try to bring the level to the
new setpoint and maintain it at the new value.
4. Repeat the procedure at a different setpoint.
5. Record the data and analyse the observations. Remember that you can record the
measurements in a file by pressing the save button at the moment when you want the
recording to start (e.g. before you change the MANUAL operation mode and change the
setpoint). Alternatively (or simultaneously), you can transfer the data to Excel, by pressing
PLEASE NOTE the Send to Excel button after the experiment. You can also record and paste in a
After Part I and II are completed and before leaving the laboratory, shut-down the rig Word document the figure plotted by the software by right clicking on the figure widow
using the nominal shut-down procedure set out in the appendix. and selecting “Export Simplified Image” and then paste into a word document. In your
report discuss how easy is to maintain the setpoint? This is one of the simplest processes,
where you only had to control one single parameter! What is the control error in the case
of manual control, i.e. what is the maximum deviation from the setpoint?
6. In the final report present the figures showing the outcome of manual control together
with your comments.
The most common controller used in the process industries is the so-called three term controller,
or PID (proportional-integral-derivative) control. The controller calculates the error between the
measured signal and the desired value and changes to manipulated value (valve position) so that
the error is decreased. The amount of change in the manipulated value is a function of the error.
This function in the case of PID control has three main components.
ZK Nagy 7 ZK Nagy 8
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
Procedure
1. Set the control mode to AUTO, and wait until the system stabilizes at the desired
setpoint value (e.g. 40%).
2. Test the performance of the default control parameters by changing the three controller
parameters and comparing how the controller performs in the case of different setpoint
changes. Observe how large the overshoot is, how fast the system reaches the new
setpoint or whether there is a steady state error, and if there is how large it is. Analyse the
form and speed (noise level, oscillations, etc.) of the control action together with the
variation of the water level.
3. in the Controller pane of the software, modify one of the three “PID parameters” at a
time. Test first the P only control by setting Ti=0 and Td=0. Test different gains
(minimum 3 different values). Next, fix Kc and vary Ti, but keep Td = 0, and finally
fixing Kc and Ti vary Td.
4. Record the used control parameters and plot the results in your report. Analyse the effect
of each term on the control performance.
Automatic tuning
The systematic determination of the controller parameters is called tuning procedure. There are
numerous ways to determine the controller parameters based on the criteria considered. The
software includes an “Automatic Tuning Wizard” which can help to determine the set of tuning
parameters.
1. With the control mode on AUTO, wait until the system stabilizes at the desired level.
2. start the “Automatic Tuning Wizard” from the Controller pane of the window by
pressing the “Autotune” button. Follow carefully the procedure. Make sure that you wait
enough when the procedure requires to gather information from the system. During the
procedure observe that the Autotuning wizard will introduce relay signals in the system to
understand it dynamic behaviour. The information is used to determine the control
parameters. At the end of the procedure the new parameters will automatically be saved
into the current PID parameters tag in the controller pane and will be used in the system.
Test the control performance by changing the setpoint and/or introducing disturbance by
changing the input flowrate. Record the controller parameters and the resulted figures.
3. Repeat the autotuning wizard and tests for different controller types. Tune P, PI and PID
The control performance depends strongly on the three parameters of the three term controller: control structures with Fast, Slow and Normal action. It is not necessary to tune all
Proportional Gain ( Kc ) combinations, select e.g. normal action and tune P, PI, and PID structures, and then with
the PI determine the parameters for the fast and slow response.
Integral Time ( τI )
4. With a fixed set of controller parameters test the control performance for different input
Derivative Time ( τD ) flowrates. When the system reaches a stable level increase or decrease the input flow
within the physical limits of the controllable system. This will act as a disturbance in the
system and the controller will open or close the valve accordingly to bring back the level
ZK Nagy 9 ZK Nagy 10
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
to its setpoint value. Determine what the maximum input flowrate is, for which the APPENDIX A
controller is not able to stabilize the system anymore. Explain in your report what the
reason is and give an explanation how the maximum input flowrate, for which the Nominal Start-up Procedure
controller can stabilize the system relates to the output flowrate from the tank.
1. Turn off all hand valves.
Effect of controller sign an system stability 2. Turn on the compressed air at the ball valve on the supply line.
3. Turn on the computer.
1. With the best set of controller parameters change the sign of the controller gain Kc. 4. Turn on the electricity main for the instrumentation.
5. Run the control program.
2. Give a setpoint change and observe and RECORD the controller action and system’s
6. To avoid surges through the glass rotameter, slowly open the water supply hand valve.
behaviour.
7. Set an desired input flow rate. Recommended values:
8. When enough water is in the tank, turn on the outlet pump at the electricity mains.
9. Make sure the controller is in AUTO mode and allow the controller to bring the liquid
level to steady state.
PLEASE NOTE
After Part I and II are completed and before leaving the laboratory, shut-down the rig
Nominal Shut-down Procedure
using the nominal shut-down procedure set out in the appendix.
1. Turn the controller OFF and open the control valve.
2. Turn off the water supply at the hand valve.
3. When the tank is empty, turn off the outlet pump at the electricity mains.
4. Transfer any stored data to a floppy diskette, memory stick, your network drive, or email
to yourself.
5. Turn off the computer at the electricity mains.
6. Turn off the instrumentation’s power supply at the electricity mains.
7. Turn off the compressed air at the ball valve in the supply line.
8. Place beakers under the drain cocks and drain the system.
9. Close all drain cocks.
10. Make sure that all electrical devices are switched off and that water is not dripping from
the mains water supply.
ZK Nagy 11 ZK Nagy 12
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
References
Use proper referencing style and make sure all references are cited in the report.
Appendixes
ZK Nagy 13 ZK Nagy 14
Instrumentation, Control & Industrial Practice Laboratory Manual Instrumentation, Control & Industrial Practice Laboratory Manual
APPENDIX C
The software interface allows you to interact with the experimental rig and record all data. The
main parts of the interface are shown below. There are three panes with different functionality:
Process Diagram
Controller
Configuration
In the first week you need the functionality of the “Process Diagram” pane only, whereas in the
second week you will work with both the “Process Diagram” and the “Controller” panes. The
configuration pane should normally not be used during the laboratory exercise.
Making sure that your data is saved is your responsibility. The software offers several ways to
record you data.
1. - By pressing the save to file button, your data will be saved in a data file, which can
be opened by any standard text editor or Excel. Your data will be saved from the
moment you pressed the button onward, until you stop the data recording. No data
acquired before the moment you activate data recording will be saved in the file. When
you activate data recording the software will prompt you for a file name. You can select a
file name in your home folder (U drive). The data is recorded at every sampling time. The
order of the columns is as follows:
2. - By pressing the “Send to Excel” button, you can send the data from the memory of
Fig. 2. The “Process Diagram” pane of the laboratory software the software to an Excel workbook. This option works in the opposite way as the Save
button. By pressing the button data stored in the memory from the moment you started
the software until the moment the button was pressed will be sent to Excel.
ZK Nagy 15 ZK Nagy 16
Instrumentation, Control & Industrial Practice Laboratory Manual
3. You can also copy paste snapshots of the plot into your report. However to perform the
data analysis you need the values saved with method 1 or 2 above. For the qualitative
analysis part or for the appendix it is acceptable however to use the snapshots. This can
be obtained by right clicking on the figure widow and selecting “Export Simplified
Image…”, then paste it in Word, as shown in the figure below.
ZK Nagy 17