CHAPTER 1
INTRODUCTION
CHAPTER 2
Step 3: The next and the most important step is to analyze the control loops present in
the process. It is during this process the automation engineer decides the control
strategies used for the project. The desalting process involves simple open loops for
monitoring; closed, feed forward and ratio control loops for controlling.
Step 4: Once the control loops are identified it becomes easier to define the input and
output parameters than the other way around. This step marks the starting of the
software programming part. The desalting process involves almost 200 input and output
parameters.
Step 5: The next important step is to identify the logics involved in the process. It is
here that the literature survey brings in dividends, as a clear understanding of process
simplifies the understanding of logics. The desalting process involves complex logics
like 2 out of 3, mode change being the most prominent of them.
Step 6: The input and output parameters and the logics are then utilized to do the backend programming. In Yokogawas Centum VP this involves using various pre-defined
control blocks which simplify the work of the engineer to a certain extent. The project
includes basic blocks like PIO and PVI which aid in monitoring; PID, RATIO and
CASCADE which aid in controlling and REL, ST-16, LC-64 and CALCU which aid in
creating logics.
Step 7: The next step is to define interlocks involved. Although this is a part of the
previous step, a special attention is given to it since it involves loops affecting the
overall safety of the plant. Most often than not, the engineer is provided with a Block
Interlock (BI) diagram explaining the critical interlocks in the process in detail. This
project involves only a level safety interlock.
Step 8: Then the critical parameters which have to be constantly monitored from a
remote location are assigned with faceplates. The important thing to be noted here is that
the faceplate name given to a parameter should be the same as the tag name defined
earlier. It is through these faceplates that the program is checked for any possible errors.
Step 9: The next step involves the creation of front-end graphics to be used in the
engineering station. Much care is given to this step since this is the part of the
programming that is to be used by the customer on a day-to-day basis. So, it is important
to link various blocks and parameters used in the back-end programming to their
counter-parts in the graphic windows. The desalting process consists of an overview
window and four other graphic windows.
Step10: The previous step marks the end of the primary cycle of programming. The next
step is to check the correctness of the program by simulating various operating
conditions. The Centum VP software enables us to perform this by using a tool called
test function. In this step any control loop can be checked by calling the faceplates of
the blocks in that group and forcing values. Once the test function is generated the
values change as if the plant is in operation which enables us to check for any possible
errors.
Step11: If no error is present then the programming part is over and the software can be
installed for real-time application in the corresponding plant after necessary connections
are made between different field instruments and the DCS hardware setup using suitable
bus-communication networks. If any error is present, the automation engineer has to do
the grueling task of retrace his programming path, right from the step involving analysis
of control loops.
These are the basic steps followed while automating a plant using DCS. Though
Goliath of a task, the advantages of a DCS automated plant including the safety and
performance-enhancing features, overshadow the man and machine hours spent in
designing it.
CHAPTER 3
DESALTING THEORY
3.1 INTRODUCTION
Crude oils are complex mixtures containing many different hydrocarbon
compounds that vary in appearance and composition from one oil field to another. Crude
oils range takes form from water to tar-like solids, and in colour from clear to black. An
"average", crude oil contains about 84% carbon, 14% hydrogen, 1%-3% sulphur, and
less than 1% each of nitrogen, oxygen, metals, and salts. Refinery crude base stocks
usually consist of mixtures of two or more different crude oils.
Crude oils are also defined in terms of American Petroleum Institute (API)
gravity. Crude with a high API gravity are usually rich in paraffin and tend to yield
greater proportions of gasoline and light petroleum products. Crude oils that contain
appreciable quantities of hydrogen sulphide or other reactive sulphur compounds are
called "sour." Those with less sulphur are called "sweet."
All crude oils are assayed and valued depending on their potential yield. Crude
oil with low assay numbers is referred to as "Opportunity Crude". This type of oil will
be more difficult to process due to higher levels of contaminants and water. This type of
crude will typically give desalter equipment the most trouble and require the greatest
skill of the operator.
The Desalter removes contaminants from crude oil by first emulsifying the crude
oil with chemicals and wash water to promote thorough contact of the water and oil. The
salts containing some of the metals that can poison catalysts are dissolved in the water
phase. After the oil has been washed and mixed as an emulsion of oil and water,
demulsifying chemicals are then added and electrostatic fields are used to break the
emulsion. Desalters are sized to allow the water and oil to settle and separate according
to Stokes Law.
In addition, solids present in the crude will accumulate in the bottom of the
desalter vessel. The desalter must be periodically washed to remove the accumulated
solids. A "mud washing" system is installed at the bottom of the vessel to periodically
remove the solids. Mud washing consists of recycling a portion of the desalter effluent
water to agitate the accumulated solids so that they are washed out into the effluent
water. These solids are then routed to the wastewater system.
Desalter effluent or "undercarry" is a combination of many things including the
mud wash done at periodic intervals, produced water that come with the crude, and the
brine wash water resulting from the dilution and removal of salts and other
contaminants.
Section 3.2 describes about the operating conditions involved in the process.
Section 3.3 defines the factors affecting the performance of the process and followed by
Section 3.4 which identifies the parameters used for controlling the process.
Once in the pressurized desalter vessel, the salts and sediment settle with wash
water and tend to form emulsions. The wash water is separated by electrostatic
precipitation using de-emulsifiers and acid. The salts that are removed are mainly
chlorides and carbonates. They can cause corrosion and fouling downstream in the heat
exchangers, furnaces, and distillation units, if not removed.
Pump 2
Crude oil
Tank
Fresh Water
Val 2
Electric Power
Alternater
Val 1
Desalted crude
Desalter
Pump 1
Val 4
Val 3
Heater 4
Water waste
Val 5
Solid Wastes
10
11
12
CHAPTER 4
IMPLEMENTATION OF DCS
This chapter completely describes about the hardware and software aspects of
DCS.
4.1 INTRODUCTION TO DCS
The modern problems in industries, which are to be solved by process control,
supervision, control of small parts of production plant to the integral control and
management of a large plant. This, in consequence implies the need of different
approaches for design of hardware and software of the automation systems.
DCS is process control system that created a new era in industrial automation.
As the name implies the control is distributed among various field control stations. Since
the control is distributed if one FCS fails only the loops that are connected to the station
get affected. Also redundancy is available at various levels, which ensures proper
functioning of the process in case of any component failure. The whole process is
incorporated by software, which has been created by various organizations. The software
not only supports the whole process but also provides man machine interface. To control
and monitor the plant from far off places they are web enabled and can be run on open
architecture of a Personal Computer. The first DCS was introduced in the 1970s.
The important components of a DCS are as follows:
1. Field Control Station (FCS)
2. Human Interface Station (HIS)
3. Networks
13
The FCS controls the plant. The FCS is a control system designed to perform
regulatory or sequence control over the terminal device. It has an interface function to
convert process I/O signals from fields into data handled inside the system. An FCS
consists of a Field Control Unit, which performs data processing tasks, up to 8 nodes,
and a remote I/O (RIO) bus that connect each node to the FCU.
HIS form the man machine interfaces. The HIS is mainly used for operation and
monitoring- it displays process variable, control parameters and alarm necessary for
users to quickly grasp the operating status of the plant. It also incorporates the open
interfaces so that supervisory computers can access trend data, messages, and process
data. The networks: the FCS and HIS stations are networked using VNET/IP and
Ethernet.
14
The Section 4.2 describes the architecture of DCS. The next Section 4.3
mentions the applications of DCS. Details about CentumVP are explained in Section 4.4
and following this the control strategies involved in the process are explained in
Section 4.5. The last Section 4.6 gives the details of PID algorithm.
4.2 DISTRIBUTED CONTROL ARCHITECTURE:
1. I/O data handled locally and transmitted only when an event occurs, creating a
less communication intensive architecture.
2. Control does not depend on a master controller, creating architecture less
vulnerable to failure.
3. Control resides close to machinery to establish zone control, station control or
line control.
4. The cost of distributed system is lower than that of centralized system, which
performs the same functions. Small computers are relatively inexpensive and,
when linked together they provide more computing power than a large
mainframe system.
4.3 APPLICATIONS OF DCS
DCS is being used by all the major industries. Today it is the system of choice in
over fourteen thousand installation around the world in key industries such as:
1. Petrochemicals and refineries
2. Pharmaceuticals
3. Refineries
4. Food and beverage industries
5. Paper and pulp
6. Water supply
7. Generation of power and electricity
15
16
17
18
Tuning window
The Tuning window displays a detailed control status for individual function
blocks. This window can be used for monitoring and be used to change tuning
parameters. It can also be used for taking the controller to calibration mode. The tuning
window consists of trend, face plate and tuning option.
The Figure 4.5 shows an example of a tuning window.
19
Trend window
The Trend window acquires different types of process data and displays time series
changes in a graph. The time-series changes for the acquired process data are referred to as
trend data.
There are two types of trends:
1. Real time
2. Historical
In a Trend window, a maximum of eight channels of trend data may be displayed.
4.5 CONTROL STRATEGIES
Many real time embedded systems make control decisions. These decisions are usually
made by software and based on feedback from the hardware under its control (termed the
plant). Such feedback commonly takes the form of an analog sensor that can be read via A/D
converter. A sample from the sensor may represent position, voltage, temperature, or any other
appropriate parameter. Each sample provides the software with additional information upon
which to base its control decisions.
4.5.1 Automatic Mode / Closed Loop System
The control algorithm manipulates the output to hold the process measurements at their
set-point. This should be the most common mode for normal operation. The Figure 4.6 shows
an automatic feedback control.
20
The Figure 4.7 shows a simple closed loop diagram as used in the back-end
programming in CentumVP. The process value can be manually forced through the faceplate
which is shown in the Figure 4.8.
21
22
23
(4.1)
Where,
Kp
Ki
Kd
: Error = SP - PV
This mode has advantages of all modes. The integral mode eliminates the offset error
of the proportional mode and the response is also very fast due to derivative mode. The sudden
response is produced to derivative mode. Thus it can be used for any process condition.With
24
the PID control action; there is no offset, no oscillation with least settling time. So there is
improvement in both transient as well as steady state response.
The Figure 4.12 shows the response of various control modes to unit step load change.
25
CHAPTER 5
RESULTS
This chapter describes the simulation results of the desalting process that are obtained
using CentumVP.
It provides the overall view of the plant, all the processes involved in controlling the
operation of the plant can be controlled through this window and each section can be
individually monitored or operated upon as shown in Figure 5.1. Further, it is used to start/stop
the entire process of the plant.
26
27
28
The
graphic
window
of
this
station
is
shown
in
Figure
5.4.
29
30
31
32
CHAPTER 6
CONCLUSION
Thus the DCS programming for automating a desalting plant in oil refineries has been
successfully done using YOKOGAWAs proprietary software CentumVP. The correctness of
the program is also verified by forcing values through test function so as to assess the
performance in plant operating conditions.