Author: Jayson McAllister, M.Sc., P.Eng., Kamaal Mahmud, P.Eng.
Introduction
With reduced spending on new infrastructure, pipeline operators must take advantage of new technology to optimize existing assets and continue to improve their bottom lines. Emerson’s DeltaV DCS can be an exceptional tool in developing optimization control strategies and cross-PLC applications for pipeline operators. DeltaV can interface with any existing SCADA system via OPC communication, facilitating easy implementation and maintenance of advanced automation solutions. Advanced automation is essential for reducing operator workloads, improving process reliability, pushing process constraints to maximize profits, and coordinating siloed assets. Part II of this blog will focus on advanced automation applications that have been implemented by Spartan Controls for a large pipeline operator customer, made possible with Emerson’s DeltaV DCS.
Butane Blending Model Predictive Control (MPC)
Pipeline operators often source crude from dozens of different producers. The compositions of these crudes are subject to relatively high variability. When negotiating contracts between pipeline operators and downstream clients, the crude oil supplied must meet certain specifications that are agreed upon by both parties. Crude oil is typically sold by volume. The high composition variability of these products generally means that the specifications allow for a relatively large range of product compositions. Pipeline operators can use these specifications to their advantage by increasing the sales volume of the crude by blending in lower cost components. This may include blending certain types of hydrocarbon components such as butane (C4).
Butane can be blended into crude oil to increase the volume of the crude oil for sale. By adding more butane, more revenue is generated due to the significant cost differential between butane and crude oil. Specifications for custody transfer of crude oil often use density and Reid Vapour Pressure (RVP) to regulate product quality. Any product outside of the defined limits results in a violation of the contracts and the potential for monetary punishment for the pipeline operator. When blending in butane, the pipeline operator must ensure that the low density and high RVP constraints are not violated. RVP measurements are taken by expensive analyzers, which generally have large dead times in between sampling times, which can exceed 8-10 minutes. Large dead times mean that changes made now are not observed in the RVP measurement for that length of time. The CRO is typically responsible for micromanaging the butane flow input manually to ensure constraints are met. This presents a difficult and time-consuming task for the CRO since traditional PID control is not well suited for large dead time control applications. To overcome the large dead time challenge as well as optimizing for multiple constraints, Spartan Controls developed and deployed a Model Predictive Control application for blending utilizing the embedded function MPC function block in the DeltaV DCS.
The SCADA system collects process data from the field PLCs and equipment and communicates this to DeltaV via OPC. Figure 1 describes the communication network architecture of the overall system. SCADA collects the relevant measurements from the PLCs in the field and communicates them via an OPC Read pipe. DeltaV receives this information using a customized function block emulation layer developed by Spartan Controls. The emulated modules are then readily available to facilitate advanced control applications. These applications can then communicate the required control actions back through the emulation layer, through an OPC Write pipe, and back to SCADA, where they can be sent to the relevant local PLCs for implementation.
This application was able to significantly reduce operator workload for the customer (on average 75 to 100 fewer operator changes per day). It also reduced RVP target error mean and variability by 98% and 34% respectively, while increasing the amount of blended butane volume by 5.6% in its first month of operation! See Figure 3 below.
Spartan Controls implemented procedure automation on a DeltaV DCS for a 12” pipeline that transports batched products. This automation allows the operator to automate various manual processes in the operation of the pipeline. The pipeline undergoes multiple starts, stops, and product switches between C2 and C3 throughout the day and requires the operator’s full attention to perform these operations safely and in a timely manner. Multiple automation sequences were designed to provide the following automation functionality for the line:
- Start line on C2
- Start line on C3
- Switch line to C2 operation
- Switch line to C3 operation
- Inter-Tank Transfer at the initiating station
- Line shutdown
Reid Vapour Pressure Kalman Filter
An array of machine learning methods are available for use in order to predict measurements. One such method, which was implemented by Spartan Controls, is the Kalman Filter. The algorithm uses a series of analyzer measurements over time and a discrete-time state-space process model to produce more accurate estimates of a particular variable of interest. This Kalman Filter was used to improve an RVP analyzer measurement and was able to be fully implemented within the DeltaV DCS.
The implemented Kalman Filter algorithm attenuates the effect of measurement noise and provides a faster and continuous estimate of the true RVP in between the analyzer sampling times. Figure 4 shows an observed RVP measurement in blue and the Kalman Filtered RVP in green. The figure also shows how the RVP can be predicted when no measurement is available, as well as reject unexplained measurement spikes.
- 59% reduction in over-blending events (i.e., RVP greater than product spec limit)
- 34% reduction in RVP target mean error
- 17% reduction in RVP target variability
- 39% reduction in Butane blend ratio mean
Automated Asset Handling Upon Line Scraper Arrival
This position estimate was used to estimate the arrival time of the line scraper at different assets and perform several types of actions:
- Provide the control room operators (CROs) advanced warning of scraper arrival and prompt them to complete certain actions manually
- Automatically open and close valves to allow line scrapers to pass by infrastructure
- Automatically disable blending applications and isolate blend loops to allow the line scraper to pass by, and then restart blending applications afterwards
Closing