Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Al-Nahrain Journal for Engineering Sciences (NJES) Vol.20 No.3, 2017 pp.

600-614

Design of SCADA System for Oil Pipeline Control Using


LabVIEW
Laith Abed Sabri Subhi Aswad Mohammed Mohammed Ibrahim Issa
Dep. of Mechatronics Eng. Dep. of System Engineering Oil Pipeline Company (OPC)
University of Baghdad University of AL-Nahrain Ministry of Oil
laith.sabri@yahoo.com subhiaswad@yahoo.com mechano84@yahoo.com

Abstract is that the user can easily monitor the status of


The paper describes a design and simulation the overall system.
of a Supervisory Control And Data Acquisition Z. Aydogmus [2] has implemented SCADA
(SCADA) system to control oil pipeline and depot system control via Programmable Logic
plant. The aim of the process is to control oil Controller (PLC) for a fluid level control system
transportation through a shared pipeline and to with fuzzy controller to achieve the parameters
minimize products contamination. The study of the membership functions, Matlab/Simulink
attempts to fulfill an optimal sequence of batches program has been used.
of refined products to satisfy the customer A. M. Ali [3] has presented study for scarce
demands in term of: volume , maximum flow water resources. The research design SCADA
rate, optimizing the total operational cost, and system for managing the water pumping stations
reducing products contamination. for 40 wells.
The proposed system introduces a control K. Parwal [4] presents an implementation of
algorithm to perform process control system fuzzy technique based on LabVIEW for control
functions and for achieving the tasks and actions gas system, and develop a special testing machine
in specific sequences and precedence. The for testing the weak points at the pipe connections
control algorithm performs processing of e.g. pipe bends, and intermediate connections.
pumping station control, sharing single oil The remainder of this paper is organized as
pipeline, maintaining tanks level, and depot follows: in section 2, a brief overview of SCADA
inventory control. This paper investigate many system architecture. In section 3, present oil plant
factors which effects the length of transmix process control system architecture. Section 4
segment, which enable to offer optimum solutions specifies oil pipeline network. In section 5,
to reduce products contamination. discuss batch scheduling operation, their
LabVIEW software is used for performing problems of sharing pipeline and their transmix
various signals acquisition and monitoring, also problem description. Mathematical and state
for simulating and designing the control system space model of system are presented in section 6.
strategy. Section7 describe process operations mangement
and design HMI for SCADA, and the result of
Keywords: SCADA System, Oil Pipeline, scada system simulation shown in section 8 . In
Labview, Slob/Transmix, Oil Depot. section 9 conclusions are shown and future work
is suggested.
1. Introduction
Scheduling the products as batches in 2. SCADA System Architecture
pipelines is a complex task having many The SCADA system consists of the following
constraints. Both producer’s production main components as shown in Figure (1). [5]
schedules and market demands with the
operational constraints are forbidding some
products to be pumped one after another, all of
these are to be considered. Actual inventories
available in the storage tanks at the source and
the distribution terminals as well as the product
batches are already in transit to the nominated
destination.
SCADA systems are types of industrial
control system used to collect data and to
perform controlling process from a remote
location. They can control water transportation
systems, refineries, chemical plants, and a wide Figure (1): SCADA System Architecture
variety of manufacturing operations in the
industry [1]. One advantage of a SCADA system

600
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

a. Remote Terminal Unit ( RTU ) The pipeline system is divided into different
The RTU gathers status data from field segments (pipes) that connect the nodes of the
devices, monitoring, controlling of the remote distribution network. Each pipe is modeled as a
location and transmit data and control signals to a fixed-size FIFO queue with a single server at the
central monitoring and control station (MTU). pipe extreme that permits the movement of
b. Communications and Network System material entities from one position to another by
In order for the central MTU to communicate combining different pipes, with particular sizes
with the RTUs that are located at the distant and service rates [6].
locations a communication link must exist to When an entity enters a pipeline segment at
transfer data from one location to another. the inlet point, it pushes the entity positioned at
the other extreme out of the queue. In other
c. Human Machine Interface (HMI) words, at every pipe end, a reservoir is located
The SCADA operates using HMI to presents
that dispatches the first entity on the queue
data to the operator, configure, monitor the
whenever a new entity enters the pipe at the inlet
system state and generate different control
section. Since the system transports multiple
activities.
products, the model keeps track of every pipeline
d. SCADA Software fill by updating the reservoir queues at every time
There are several software packages used for event.
designing HMI and SCADA. WINCC,
CIMPLICITY HMI, and LOOKOUT are 4.Oil Pipeline Operation Batch
examples for commercial SCADA packages. Scheduling
e. Master Terminal Unit (MTU) The problem of interest in this research is
The MTU is the centralized controller for the concerned with the sequencing of batches of
SCADA system. MTU initiates all different refined products to be shipped via single
communication, gathers data, stores information, pipeline system in order to minimize the total
and interfaces with operators. MTU processes the operational costs in a given period of time. Also
information received, sends it to the RTU sites, satisfying the considered operational constraints
and presents it to human operators in a form that of the system and the demand satisfaction of the
the operators can work with it. different products at the different market zones
within the corresponding delivery time.
3. Oil Plant Process Control System The challenge is to achieve an optimal
Process control system for distribution of oil sequence of batches of refined products to satisfy
product, which consists of the following the customer demands while optimizing the total
components: operational cost of the system or another
• Oil Field operational objective of interest. [6]
• Refinery Plant
a. Problems of Sharing Oil Pipeline
• Pumping Station Products transfer must satisfy the volume and
• Oil Depot Plant maximum flow rate that are the constraints in the
• Pipeline Network pipeline. There are also forbidden of specific
• Oil Product Distribution Terminal batch sequences of products in the pipeline. The
Operation of multiproduct pipelines has a unique
The oil plant started from filed to distribution feature, product contamination. Although
terminal output as shown in Figure (2). pipelines provide a safe mode of transportation,
product contamination is inevitable and it occurs
at the interface of two miscible products.
As products are transported by only one
pipeline and very large distances must be covered,
it is critical mission that the correct decisions
should be made.

b. Transmix Problem Description


The main problem in the single pipeline
system is sharing pipeline resource for
transporting oil product from the source to the
storage plant (oil depot). The sequential
pumping of products will leads to a mixing of
different oil products called (transmix) as shown
Figure (2): Oil Plant and Pipeline System in Figure (3) .[7]

601
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

in the flow. It has point velocity vectors in all


directions
Pipe flow will be laminar for a Reynolds
Number (Re) less than 2100 and it will be
turbulent for a (Re) greater than 4000.
For (2100 < (Re) < 4000), called the
transition region, the flow may be either laminar
or turbulent, depending upon factors like the
entrance conditions into the pipe and the
Figure (3): Transportation in Single Pipeline roughness of the pipe surface [8].

The study of transmix characteristics allows


defining the quality of product based on the
contamination value when different products are
dispatch through a single line continuous
succession.
There is always a mixing at the boundary of
two adjacent streams and a slug of contaminates
is formed between batches of different
uncontaminated products. This slug of Figure (4): Types of Flow
contaminated material gradually increases in
length as two streams flow along the line in the
The Reynolds Number for flow in pipes is
direction of the receiving points
A, B: Pure Products; C: interface length as defined as:
𝐷𝐷𝐷𝐷𝐷𝐷
shown in Figure (3), the contamination length is 𝑅𝑅𝑒𝑒 = (1.1)
the distance between two points in the interface 𝜇𝜇
where sampling indicates a change in Where:
composition from 99% of one product to 99% • D is the diameter of the pipe in (m)
purity of the other. • V is the average fluid velocity in (m/s)
There are many effective factors which effects The definition of average velocity is:
on the length of transmix segment: V = Q/A
i. The distance transfer by the interface Where:
(Transmix). • Q is the volumetric flow rate
ii. The mean velocity of the flow in the • A is the cross-sectional area of flow
pipeline. 3

iii. The internal diameter of pipeline and the • ρ is the density of the fluid in (kg/m )
2
curvature of the pipe. • μ is the viscosity of the fluid in (N.s/m )
iv. The Reynolds s number.
v. The kinematic viscosity of the product 5.1 The Bernoulli Equation
mixture. The Bernoulli equation is an approximate
vi. The pipe friction coefficient and the relative relation between pressure, velocity, and elevation,
roughness in the pipe. and is valid in regions of steady, incompressible
flow where net frictional forces are negligible. it
5. Mathematical Model Of Oil Pipeline has proven to be a very powerful tool in fluid
mechanics[8].
System
There are three type of flow in the pipe:
i. Laminar Flow
All of the fluid velocity vectors line up in the
direction of flow.
ii. Transition Flow
The flow fluctuates between laminar and
turbulent flows before it becomes fully
turbulent.
iii. Turbulent Flow
Takes place in flow situations with high
fluid velocity and low fluid viscosity. Figure (5): Bernoulli Equation
The Figure (4) illustrate differences between
laminar and turbulent flow in a pipe. Turbulent
flow is characterized by turbulence and mixing

602
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

𝑃𝑃 𝑉𝑉 2
+ + 𝑔𝑔𝑔𝑔 = 𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐 (1.2)
𝜌𝜌 2

This is the famous Bernoulli equation (Figure


(5)), which is commonly used in fluid mechanics
for flow along a streamline in in viscid regions of
flow. The Bernoulli equation can also be written
between any two points on the same streamline
as:
𝑃𝑃1 𝑉𝑉 2 𝑃𝑃2 𝑉𝑉 2
+ + 𝑔𝑔𝑔𝑔1 = + + 𝑔𝑔𝑔𝑔2 (1.3)
𝜌𝜌 2 𝜌𝜌 2
Where:
𝑽𝑽𝟐𝟐
• as kinematic energy
𝟐𝟐
• gz as potential energy
𝑷𝑷
• as flow energy
𝝆𝝆
All per unit mass. Therefore, the Bernoulli
equation can be viewed as an expression of Figure (6): Schematic Diagram of The System
mechanical energy balance and can be stated as
follows: The sum of the kinetic, potential, and 𝑞𝑞𝑖𝑖 = 𝑘𝑘𝑖𝑖 𝑣𝑣𝑖𝑖 (1.5)
flow energies of a fluid particle is constant along 𝑦𝑦𝑖𝑖 = 𝑘𝑘𝑠𝑠 ℎ𝑖𝑖 (1.6)
a streamline during steady flow when Where;
compressibility and frictional effects are • V is the applied voltage to the pump motor
i
negligible. • Q is the input flow rate;
i
• h is the liquid level;
5.2 Physical Model of Pipeline System 1

Mathematical models are developed that • y is the output voltage


1
describe the relationship between different • K is the pump characteristic;
quantities of process system. It concerns with i

quantitative rather than a qualitative treatment of • K is the sensor characteristic


s
the process.
Typical oil industry consists of various 5.3 Modeling of Storage Tank System
processes and measurements, operated with Initially consider the single tanks with valve A
different parameters in order to implement closed and valve B open. This system is a single
specific tasks. If we consider mass balance tank process that can be drawn as shown in Figure
equation it is used to describe the relation (7).
between the mass input and mass output for just
one of the tanks as shown in eq.1.4. [8]
(Mass flow in - Mass flow out) =
(Rate of change of liquid level volume)
𝑑𝑑ℎ
𝐴𝐴 = −𝑄𝑄𝑜𝑜𝑜𝑜𝑜𝑜 + 𝑄𝑄𝑖𝑖𝑖𝑖 (1.4)
𝑑𝑑𝑑𝑑
Where:
2
• A is the cross sectional area of tank (m )
• V is the volume of liquid in tank (m/s)
(V = A.H)
3
• Q is the pump flow rate for inlet (m /s)
in
3
• Q is the flow rate outlet (m /s) Figure (7): Tank System
out
The overall system represent schematically in
Figure (6). The system model is described eq. 1.7, and
determined by relating the flow into the tank to
that leaving via valve B. Hence, [8]
(Rate of mass accumulation) =
( Rate of mass in - Rate of mass out)
(Q – Q) = Rate of change of liquid volume
i b

603
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

𝑑𝑑𝑑𝑑 𝑑𝑑ℎ 𝑑𝑑ℎ𝑖𝑖 𝑎𝑎𝑜𝑜𝑜𝑜𝑜𝑜 × 𝑘𝑘𝑣𝑣


𝑄𝑄𝑖𝑖 − 𝑄𝑄𝑏𝑏 = = 𝐴𝐴 (1.7) − = �2𝑔𝑔�ℎ𝑖𝑖 + ℎ𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 − ℎ𝐿𝐿 �
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
𝑄𝑄𝑖𝑖
If valve B is assumed to behave like a standard + (1.12)
𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
sharp edged orifice, then the flow through valve B
will be related to the fluid level in the tank, H , by Where the parameters used above are;
1
applying Bernoulli equation eq. 1.7, 𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 is the cross-sectional area of tank
𝑎𝑎𝑜𝑜𝑜𝑜𝑜𝑜 is the cross-sectional area of outlet hole
𝑃𝑃1 𝑉𝑉 2 hi is the Product level in tank i
+ + 𝑍𝑍1 + ℎ𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝
𝜌𝜌 2 g is the acceleration due to gravity 9.81 m/s2
𝑃𝑃2 𝑉𝑉 2
= + + 𝑍𝑍2
𝜌𝜌 2 5.4 State Space Models
+ ℎ𝐿𝐿 (1.8) A general compact form of the state-space
model is [9].
Assumption of present case study: 𝑥𝑥̇ = 𝐴𝐴𝐴𝐴 + 𝐵𝐵𝐵𝐵 (1.13)
P1 = P2, Z1=h1 , V1=0, Z2=0 𝑦𝑦 = 𝐶𝐶𝐶𝐶 + 𝐷𝐷𝐷𝐷 (1.14)
𝑉𝑉 2 Where x is the state vector and u is the input
ℎ1 + ℎ𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 = + ℎ𝐿𝐿 vector to the system. A is referred to as the
2𝑔𝑔 system matrix. In case of the tank process, the
2g (ℎ1 + ℎ𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 – ℎ𝑙𝑙 ) = 𝑣𝑣22 system has (h) variables are denoted as (x). The
𝑄𝑄𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 = 𝑄𝑄2 two input variables, v1 and v2, are denoted as u
correspondingly. Matrix D = 0 because its
= 𝑎𝑎𝑏𝑏 × 𝑘𝑘𝑣𝑣 �2𝑔𝑔(ℎ1 + ℎ𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 − ℎ𝐿𝐿 ) (1.9) auxiliary parameter, the variables can be
The eq.1.9 above it is applied when the assembled in a matrix-vector form that
discharge form each tank occurs by head of the corresponds to eq.1.13 and eq.1.14.
tank level without using pump. The represented of the transfer equation
describes study system in eq.1.11.The model is
𝑎𝑎𝑏𝑏 is the cross sectional area of the orifice.
represented by closed loop system shown in
𝐾𝐾𝑉𝑉 is the discharge coefficient of valve. Figure (9).
2
g is the gravitational constant = 0.98 (m/s ). Where x is the state vector and u is the input
vector to the system. A is referred to as the
The mathematical model of the inherent valve
system matrix. In case of the tank process, the
characteristic, through the relation eq. 1.10. The
system has (h) variables are denoted as (x). The
Figure (8) describe this relation
two input variables, v1 and v2, are denoted as u
correspondingly. Matrix D = 0 because its
.
auxiliary parameter, the variables can be
Figure (8) Overview of a Control Valve
assembled in a matrix-vector form that
corresponds to eq.1.13 and eq.1.14.
The represented of the transfer equation
describes study system in eq.1.11.The model is
represented by closed loop system shown in
Figure (9).
Figure (8): valve architecture
𝑄𝑄
𝐾𝐾𝑣𝑣 = (1.10)
∆𝑃𝑃
� 𝑟𝑟
𝜌𝜌
Where:
• h is the movement of the valve plug’s
• Q is the debit of the fluid
• ΔPv is the drop pressure on control valve
• Kv is the valve characteristic.
The mass balance and the Bernoulli's law are
extended to other tanks to obtain a non-linear Figure (9): Closed Loop System
model, which is described by the system The non-linear model of eq.1.12 can be linearized
differential equations as follows in the equation; around the chosen working point given by the
𝑑𝑑ℎ level in the tanks we get:
𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 = −𝑄𝑄𝑂𝑂𝑂𝑂𝑂𝑂 + 𝑄𝑄𝑖𝑖𝑖𝑖 (1.11)
𝑑𝑑𝑑𝑑

604
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

𝑥𝑥̇ through the flowchart shown in Figure (13).


−1 Table (1) describes the actions performed in the
⎡ 0 0⎤
⎢ 𝑇𝑇1
system operation, these actions generated from

⎢ −1 ⎥ the control system in order to manage the
=⎢0 0 ⎥ 𝑋𝑋 operations in task no.2 and task no.3 shown in
𝑇𝑇2
⎢ ⎥ Figure (11).
⎢0 −1⎥

0
𝑇𝑇3 ⎦
• Detect Pure Oil Products
1 • Detect Slob Fluid
⎡ ⎤
⎢𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇1 ⎥ • Detect Depot Tanks Level
⎢ 1 ⎥ It is required to separate differents oil products at
+ ⎢ ⎥ 𝑄𝑄𝑖𝑖 (1.15) the destination point into a set of depot tanks,
𝐴𝐴
⎢ 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇2 ⎥ considering the mnimization and isolation of the
⎢ 1 ⎥ transmix (slob) into a sperate tank.
⎣𝐴𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇3 ⎦
7. Design SCADA System Using
𝐾𝐾𝑐𝑐 0 0
𝑦𝑦 = � 0 𝐾𝐾𝑐𝑐 0 � 𝑥𝑥 LabVIEW
0 0 𝐾𝐾𝑐𝑐 LabVIEW software provides an efficient tool
+ [0] 𝐷𝐷 (1.16) to build SCADA process control system ,
perform on-line control algorithm, design HMI
Figure (10) shows the simulation results of the oil screen consist of all plant elements as graphical
depot theoretical model. It illustrates system model representation and Data analysis and
specification and system performance when logging for system activity.[11]
applying step input to the eq.1.13 and eq.1.14.
It can be observed that the system response 7.1 Design HMI for SCADA System
behavior is acceptable and does not have LabVIEW Software is used to achieve the
oscillation. tasks and actions described in Table (1), and
according to the sequences and precedence shown
6. Oil Plant Process Operations in the control algorithm in Figure (12).
LabVIEW create HMI for SCADA system to
Mangement describe the task activity execution and real time
The oil plant system operations can be monitoring and control of the system.
partitioned into four phases as shown in Figure LabVIEW tool is used for simulating a
(11). The simulated oil plant mimics a real process of transportion the different refined
system problem, where three batches of different liquid fules products. The oil products are
products (gasoline, kerosine and gas oil ) are transported as batch sequences with sharing a
pumped randomly using one pipeline. [10] single pipeline.
i. First stage (Task no.1) Figure (13) reprsents HMI SCADA system
The refinery refines crude oil to multi product screen designed to monitor and control oil pipline
ii. Second stage (Task no.2) process. The simulation scenario desgind a
This stage contains two phases: the first, is the pumping station to suctions (20000) cm3 oil
input that acts as a temporary storage, which products and feeds it as batches sequences to
contains three tanks each for a different oil depot tanks.
product; the second, represents a pumping station. The density changes of fluid represents the
iii. Third stage (Task no.3) main factor for classification of the product types,
The oil depot plant receives oil products then accordingly it selects the specific pipeline
through a single pipeline from a pumping station. segment that leads to a tank storag. The
This stage consists four different pipeline paths, simulation required about (120)s .
each path leads different products to a separate
depot, and each depot contains two tanks. 7.2 SCADA System Program Structure
iv. Fourth stage (Task no.4) The block diagram structure using
This stage represents distribution terminal to programming terminals with loop, case structure
the consumer. and subroutine. It contains all the internal
The system representes a simulated oil depot as a workings and the background operations of the
real plant. The system operations are controlled

605
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Figure (10): System Specifications and Performances

Figure (11): Oil Plant Process Operations

606
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Start

IF
flow Exist in pipe

YES

IF
There is liquid in
Action No.13 Is Applied the pipe

YES

Sensing of density
sensor

Fluid density match Fluid density match Fluid density match Fluid density match
Kerosene density diesel density gasoil density slob density

Yes Yes YES

Action NO.1 Is Applied


Action No.4 Is Applied Action No.7 Is Applied Action No.10 Is Applied

YES IF IF IF
Action No.2 Is Applied IF
No Tank No.5 Is Tank No.7 Is
Tank No.1 Is Full Action No.5 Is Applied Tank No.3 Action No.8 Is Applied Action No.11 Is Applied
Full Full
Is Full

Yes yes yes


Yes

IF IF
IF IF
Tank No.6 Is Tank No.8 Is
tank no.2 is full YES Tank No4. Is Full YES YES
Full Full

NO NO NO
NO

Action No.3 Is Applied Action No.6 Is Applied Action No.9 Is Applied Actio n no.12 is applied

Figure (12): Tasks Execution Algorithm

607
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Table (1): Actions to Perform the Functions algorithm in Figure (12)

ACTION
NO. Fluid Type
Action no.1 Action no.2 Action no.3
a- Open valve no.1-1 a- Open valve no.1-1 a- Open valve no.1-1
b- Close valve no.2-1 b- Open valve no.1-2 b- Close valve no.1-2

Gasoline
c- Close valve no.3-1 c- Close valve no.1-3 c- Open valve no.1-3
1
d- Close valve no.4-1 d- Pumping to tank no.1 with high d- Pumping to tank no.2 with high
e- Pumping with low speed (set speed (set booster main pumps speed (set booster main pumps
booster pump only )
Action no.4 Action no.5 Action no.6

Kerosene
a- Open valve no.2-1 a- Open valve no.2-1 a- Open valve no.2-1
b- Close valve no.1-1 b- Open valve no.2-2 b- Close valve no.2-2
2 c- Close valve no.3-1 c- Close valve no.2-3 c- Open valve no.2-3
d- Close valve no.4-1 d- Pumping to tank no.3 with d- Pumping to tank no.4 with high
e- Pumping with low speed (set high speed (set booster pump and speed (set booster main pumps )
booster pump only ) main pump )
Action no.7 Action no.8 Action no.9

Gasoil
a- Open valve no.3-1 a- Open valve no.3-1 a- Open valve no.3-1
b- Close valve no.1-1 b- Open valve no.3-2 b- Close valve no.3-2
3 c- Close valve no.2-1 c- Close valve no.3-3 c- Open valve no.3-3
d- Close valve no.4-1 d-Pumping to tank no.5 with high d- pumping to tank no.6 with high
e- Pumping with low speed (set speed (set booster main pumps) speed (set booster main pumps)
booster pump only )
Action no.10 Action no.11 Action no.12

Slob
a- Open valve no.4-1 a. Open valve no.4-1 a- Open valve no.4-1
b- Close valve no.1-1 B .Open valve no.4-2 b- Close valve no.4-2
4 c- Close valve no.2-1 c- Close valve no.4-3 c- Open valve no.4-3
d- Close valve no.3-1 d- pumping to tank no.7 with high d- Pumping to tank no.8 with high
e- Pumping with low speed (set speed(set booster main pumps) speed (set booster main pumps)
booster pump only )
Action no.13

Emergency
a. Close valve no.1-1 a. Close valve no.2-2 a. Shut down the main pump

Condition
b. Close valve no.2-1 b. Close valve no.2-3 b. Set alarm signal
5 c. Close valve no.3-1 c. Close valve no.3-2 c. Send signal to the main refinery pump
d. Close valve no.4-1 d. Close valve no.3-3 through the wireless
e. Close valve no.1-2 e. Close valve no.4-2 d. Send SMS to the manger of operation
f. Close valve no.1-3 f. Close valve no.4-3

Figure (13): HMI SCADA of Real Oil Depot System

608
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Code that are built from subroutines shown in products of each batch take about (27) sec. Figure
Figure 14. When system is run, signals and values (19) illustrate the products feeding arrangement as
from control modules flow through the block a batch sequences in a pipeline and the slob
diagram. The programming structure consists of (transmix) generation.
thirteen case structure as follows: As shown in Figure (19), the period time
a. The first module case structure (case 0) is used between (0-28.5) sec represents the time delay for
to implement initialization operation, product products transportation from pumping station to
pumping, products transportation, as shown in the oil depot tanks through pipeline network. The
Figure (15). time duration depends on the following factors:
b. The second, third, and fourth, module case • The length of pipeline network
structure is used to fill kerosene, gasoline and • The pipeline diameter
gas oil product respectively, to specified tanks • Products pumping speed
as shown in Figure (16). • Locations of the sensors in the system
c. The fifth and ninth module case structure is Figure (19) shows the scenario of execution a
used to (fill and discharge) slob to specified first cycle batch sequence as follow:
tank respectively. i. T-Phases 1, 3 and 5: Receive three segment
d. The sixth, seventh, and eighth modules (1900) cm3 of gasoline, kerosene, and gasoil
module case structure is used to discharge during a period time between (28.5-37.5, 40.5-
kerosene, gasoline, and gas oil products 49.5, and 52-61 ) sec respectively, then
respectively. loading in specified tanks.
8. Simulation scenario and Result of ii. T-Phases 2,4 and 6: Generate a segment of
SCADA system (155, 125, and 120) cm3 slob during a period
The system operational follows the batch time between (38-40, 50-51.5, and 58.5-60)
sequences scenario described in Figure (17). sec respectively, and discharge in tank no.7.
Figure (17a) shows a scenario of pumping batch The scenario of execution a second cycle batch
sequences contains three types of oil products, sequence was implemented during the T-phases
therefore two batch cycle are performed in six (7, 8, 9, 10, and 11).
pumping phases: Figure (20) shows the appropriate control
actions generated for valves system to perform
a. Pumping phases (1 and 4) (Pump of
gasoline loading. It is noticed that the system
gasoline product).
produces an ideal control action, because it is
b. Pumping phases (2 and 5) (Pump of behaving according to the ideal simulation
kerosene product). conditions.
c. Pumping phases (3 and 6) (Pump of gasoil Figure (21) shows the responses of the loading
product) gasoline product for tank no.1 and tank no.2.
The scenario of feeding products in the pipeline
has been implemented in eleven transportation Tank no.1 Received (950) cm3 of pure
phases, and each phase represents a specific fluid gasoline, while tank no.2 received (950) cm
segment, as shown in Figure (17b): The difference between the total product
d. Transportation phases (1 and 7) (Transport volume has been pumped and the quantity volume
of gasoline product) has been received through pipeline in the tanks is
e. Transportation phases (3 and 9) (Transport about (100) cm3. This represents a contamination
of kerosene product) that appears as slob segment no.1 product.
f. Transportation phases (5 and 11) (Transport When the pipeline started to receive a second
of gasoil product) product (kerosene), that will causes a
contamination in the product (i.e. transmix or slob
g. Transportation phases (2, 6, 8 and 11)
generate) because of residual gasoline in the
(Transport of slob product).
pipeline. When the density sensor detects
The products (density, level in the tanks, and contamination (slob) during the periods (85-40)
flow rate) are sensed and used as a feedback sec, (50-51.5) sec, (58.5-60) sec, (70-71.5) and
signal to generate a control actions in time. The (81.5-83.5) sec, the control system will generate a
perfect controls will lead to reduce sequence of control action no.10.
contamination product (slob). The pumping of kerosene and its transportation
Figure (18) describe pump station action through the pipeline to their destination tanks are
when feeding products through two cycle of a performed during the following phases:
batch sequences, each batch contains (6000) cm3 • Pumping phases (2) and (5): these are
of three different products. performed in the time periods (9.5-18.5) s
Each product segment in a batch takes (9) sec and (39.5-48.5) s.
to be fully discharged through the shared pipeline
to the oil depot. The total period time for pumping

609
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Figure (14): Block Diagram of HMI SCADA System

Figure (15): Module Structure to implement system Initialization

610
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Figure (16): Module Structure to Fill in Tanks (no.1 and no.2) With Kerosene Product

611
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

Figure (18): Pump Station Feeding of Figure (19): Products Batch Sequences With
Two Cycle Batch Sequences of Products Slob Generation in Pipeline System

Figure (20): Control Action Generated for Valves Figure (21): Response of Loading Gasoline in
during Loading Gasoline Product Specific Tanks

• Transportation phases (3) and (9): these are An appropriate control actions generated for
performed in the time periods (40.5 – 49.5) s and valves system to perform kerosene loading. When
(72-81) s.

612
NJES Vol.20, No.3, 2017 Sabri et al., pp.600-614

the density sensor detect contamination (transmix Department of Electrical, Firuat University,
or slob generate) set of control action generated. Elsevier Journal, Expert Systems with
The pumping of gas oil and its transportation Applications 36, 2009.
through a pipeline to their destination tanks. [3] Ayman M., Ali Hussein, "Supervisory
These tasks are performed during the following Control and Data Acquisition (SCADA) For
phases. The timing sequence for gas oil in the Water Distribution System of Gaza City",
pipeline as follow: Electrical Engineering Depart., Islamic University
• Pumping phases (3) and (6): these are performed of Gaza, MSc thesis, 2010.
in the time periods (19-28) s and (49-58)s. [4] A. K. Pawrwal, G. Parwal, ” Implementation
• Transportation phases (5) and (11): these are of Fuzzy Technique Based on LabVIEW For
performed in the periods (52-61)s and (84-93)s Control Gas System, International Journal of
An appropriate control actions generated for Control and Automation, Vol. 6, No. 3, June,
valves system for loading and unloading gas oil. 2013.
The product contamination in the pipeline [5] Mohammed I. Issa , “Design and
Implementation Oil Pipeline and Depot Process
(transmix generate) was repeated cycle according to Control System”, University of Baghdad, Al-
the products pumping and transportation as a batch Khwarizmi College of Engineering, MSc thesis,
sequence. Baghdad – Iraq, 2014.
[6] Leandro Magatão, L. Arruda, Flávio, "Using
CLP and MILP for Scheduling Commodities in a
9. Conclusions Pipeline", The Federal Center of Technological
This paper proposes a framework to design Education of Paraná, European Symposium on
and build SCADA system to control oil pipeline. Computer Aided Process Engineering Journal,
The simulation develop and deploy a control Elsevier Science, 2005.
algorithm, which contain sets of control action to [7] Rolando J. Amado, "A Multi-Commodity
perform system tasks and functions. The adoption Network Flow Approach for Sequencing Refined
of GUI can improve monitoring system Products in Pipeline Systems", University Of
operations and logging activities execution. Tennessee, PH-Doctor thesis, 2011.
This research is concerned with the [8] Frank M. White, “Fluid Mechanics”,
sequencing of batches of different refined University of Rhode Island, Fourth Edition,
products to be shipped via single pipeline system McGraw-Hill Series in Mechanical Engineering,
in order to minimize the total operational costs in
2011.
a given period of time. SCADA system specified
[9] Samo Gerks, G. D., Damir Vranc,
acceptable contamination in the range of (3-5%),
“Advanced control algorithms embedded in a
while the manual system range about (12-15%).
programmable logic controller”, Control
The minimum amount limit of contamination
Engineering Practice, 2006.
(slob) segment have been generated in the
pipeline depend on many factors (pipeline [10] J. M. Pinto, R. R. J.a, "AN MILP
Formulation for the Scheduling Of Multiproduct
diameter, speed of product pumping, density of
Pipeline Systems", Brazilian Journal of Chemical
product and Reynolds number), and this slob must
Engineering, 2002.
be generated in all condition.
[11] Michael P. Ward, "Architectural Framework
The volume of contamination segment is
for Describing Supervisory Control and Data
inverted relation with respect to the volume of
transmitted products volume. Acquisition (SCADA) Systems", MSc thesis,
Department of Computer Science, Naval
Postgraduate School, California U.S.A.
10. Reference September, 2004.
[1] Nary Subramanian, “Improving Security of
Oil Pipeline SCADA Systems Using Service
Oriented Architectures”, Department Of
Computer Science, University Of Texas, U.S.A,
Springer-Verlag Berlin Heidelberg, pp. 344–353,
2008.
[2] Zafer Aydogmus, “Implementation of a
Fuzzy-Based Level Control Using SCADA”,

613
‫‪NJES Vol.20, No.3, 2017‬‬ ‫‪Sabri et al., pp.600-614‬‬

‫ﺗﺻﻣﯾم ﻣﻧظوﻣﺔ اﻟﺳﯾطرة اﻟرﻗﺎﺑﯾﺔ واﻟﺗﺣﻛم واﻻﺷراف وﺟﻣﻊ اﻟﺑﯾﺎﻧﺎت ﻟﻠﺳﯾطرة‬


‫)‪(SCADA‬ﻋﻠﻰ ﺧطوط اﻷﻧﺎﺑﯾب اﻟﻧﻔطﯾﺔ ﺑﺎﺳﺗﺧدام اﻟﻧظﺎم )‪(LabVIEW‬‬

‫ﻣﺣﻣد أﺑراھﯾم ﻋﯾﺳﻰ‬ ‫د‪ .‬ﺻﺑﺣﻲ أﺳود ﻣﺣﻣد‬ ‫د‪ .‬ﻟﯾث ﻋﺑد ﺻﺑري‬
‫ﺷرﻛﺔ ﺧطوط اﻻﻧﺎﺑﯾب اﻟﻧﻔطﯾﺔ‬ ‫ﻗﺳم ھﻧدﺳﺔ اﻟﻣﻧظوﻣﺎت‬ ‫ﻗﺳم ھﻧدﺳﺔ اﻟﻣﯾﻛﺎﺗروﻧﻛس‬
‫وزارة اﻟﻧﻔط‬ ‫ﺟﺎﻣﻌﺔ اﻟﻧﮭرﯾن‬ ‫ﺟﺎﻣﻌﺔ ﺑﻐداد‬

‫اﻟﺧﻼﺻﺔ‬
‫ﺑﺳﺑب ﻋدم ﺗوﻓر ﺧطوط اﻧﺎﺑﯾب ﻧﻔطﯾﺔ ﻣﺳﺗﻘﻠﺔ ﻟﻧﻘل اﻟﻣﻧﺗوﺟﺎت اﻟﻧﻔطﯾﺔ اﻟﻣﺧﺗﻠﻔﺔ ﻟذﻟك ﯾﺳﺗﺧدم اﺳﻠوب اﻟﻣﺷﺎرﻛﺔ ﻓﻲ اﺳﺗﺧدام ﺧطوط‬
‫اﻧﺎﺑﯾب اﻟﻧﻘل واﺟراء ﻋﻣﻠﯾﺔ اﻟﺿﺦ اﻟﺗﻌﺎﻗﺑﻲ ﻟﻠﻣﻧﺗوﺟﺎت ﻋﺑر اﻻﻧﺎﺑﯾب ﻋﻠﻰ ﺷﻛل دﻓﻌﺎت‪.‬‬
‫ﺗﮭدف اﻟدراﺳﺔ اﻟﻰ ﺗﻘﻠﯾل ﻛﻣﯾﺔ اﻟﺧﻠﯾط واﻟﺗﻠوث ﻓﻲ اﻟﻣﻧﺗوﺟﺎت اﻟﻧﻔطﯾﺔ ﺑﺳﺑب اﻟﻣﺷﺎرﻛﺔ ﻓﻲ اﺳﺗﺧدام ﺧطوط اﻧﺎﺑﯾب اﻟﻧﻘل ﻣﻧﺗوﺟﺎت‬
‫ﻧﻔطﯾﺔ و ﺗﺣﺳﯾن ﺟودة اﻟﻣﻧﺗوﺟﺎت اﻟﻧﻔطﯾﺔ اﺿﺎﻓﺔ اﻟﻰ ﺗﺎﻣﯾن اﺣﺗﯾﺎﺟﺎت اﻟﻣﺳﺗﮭﻠﻛﯾن ﻓﻲ ﺗوﻗﯾﺗﺎت ﻣﺣددة‪.‬‬
‫اﻋﺗﻣدت اﻟدراﺳﺔ اﺳﻠوب اﻟدﻣﺞ ﺑﯾن ﺧﺻﺎﺋص )ﻣﻧظوﻣﺎت اﻟﺳﯾطرة اﻟرﻗﺎﺑﯾﺔ واﻟﺗﺣﻛم واﻻﺷراف وﺟﻣﻊ اﻟﺑﯾﺎﻧﺎت( واﻟﻧظﺎم‬
‫)‪ (LabVIEW‬ﻣﻣﺎ ادى اﻟﻰ اﻛﺗﺳﺎب ﻣﺣﺎﺳن ھﺎﺗﯾن اﻟﺗﻘﻧﯾﺗﯾن‪.‬‬
‫ﺗﺿﻣﻧت اﻟدراﺳﺔ ﺗﺻﻣﯾم ﻣﻧظوﻣﺔ ﻣﻘﺗرﺣﺔ ﻣﺷﺎﺑﮫ ﻟﻣﻧظوﻣﺔ ﺣﻘﯾﻘﯾﺔ وﺑﻧﺎء اﻟﻣودﯾل اﻟرﯾﺎﺿﻲ ﻟﮭﺎ وﺗﻧﻔﯾذ واﺧﺗﺑﺎر اﻟﻣﻧظوﻣﺔ ﺑﺎﺳﻠوب‬
‫اﻟﻣﺣﺎﻛﺎت واﺟراء ﻋدد ﻛﺑﯾر ﻣن اﻻﺧﺗﺑﺎرات واﻟﺗﺷﻐﯾل ﻟﻠﻣﻧظوﻣﺔ ‪ .‬ﯾوﻓر اﻟﻧظﺎم اﻟﻣﻘﺗرح اﻣﻛﺎﻧﯾﺔ اﻟﺗﺷﻐﯾل اﻻﻟﻲ وﺗﻘﻠﯾل ﻧﺳﺑﺔ اﻟﺗﻠوث ﺑﻣﻘدار )‪-3‬‬
‫‪ % (5‬ﺑﺎﻟﻘﯾﺎس اﻟﻰ اﻟﻧظﺎم اﻟﯾدوي‪.‬‬

‫‪614‬‬

You might also like