LACT Library

The LACTl flow computer library provides crude oil flow computer and batching features for Wago PFC200 controllers.

The library performs API 12 crude oil calculations for custody-transfer meters. Events, alarms, and hourly history are maintained in a manner consistent with API 21.1. Data is extracted from the PLC using industry-standard .cfx files.

The library maintains daily, monthly, and host-program startable/stoppable ad hoc batches.

Oil Flow Computer Feature Summary

For oil calculations, the library supports meter input as either a flow rate or an accumulated volume. Input can be related to either mass or indicated volume. This arrangement accommodates Coriolis, Turbine, and Positive Displacement meters. The meter can be configured as either a custody-transfer meter or an allocation meter.

Meter Calculations per API 12.2 for custody transfer or API 20.1 for allocation
Meter calculation frequency Full calc once per second
Calculated parameters: custody transfer Indicated Quantity, Indicated Volume, Gross Volume, Gross Standard Volume, Net Standard Volume, S&W Volume, Gross Mass
Calculated Parameters: allocation Indicated Quantity, Indicated Volume, Gross Volume, Gross Theoretical Oil Volume, Net Theoretical Oil Volume, Gross Theoretical Water Volume, Theoretical Flash Gas Volume
Aggregated values available Flow Rate, Current Hour Total, Last Hour Total, Today Total, Yesterday Total, Current Month Total, Prior Hour Total, Lifetime Total
Oil Property Calculations Liquid Correction Factors (CRUDE OIL ONLY) per API 11.1 Table A (2004)
Water Property Calculations Water Correction Factors per API 20.1
Supported Meter Configurations Coriolis, Turbine, Positive Displacement
Contract Hour Configurable Per meter
Units of Measure Customary U.S. units only psig, degrees F, API gravity, barrels per day, mass in lbs
Diagnostics Correction Factors Corrected Density, CTL, CPL, CTPL, CSW, Standard Density


LACT Feature Summary

Batching Ad hoc batch Start/Stop from switch or HMI
Batch Retention Configurable - 35 days minumum
Batch transfer Companion Windows program copies batch files from PLC via Ethernet
Batch Report Printing Print directly from PLC via Ethernet Print to Ethernet printer using PCL
Custom report format templating
Batch reports can also be printed from files copied to your PC
User/Driver Authentication user/password/access database/file file created on Windows/Mac
database/file installed on PLC in encrypted format
PLC program/HMI requests authentication from library


Generic Feature Summary

Data Retention per API 21.1 Periodic (hourly) history, events, alarms
Periodic history retention Configurable by meter. Minimum of 35 days – ranging to file system capacity
Event retention 256 events per meter per “day”
Alarm retention 64 alarms per meter per “day”
Data Transfer Method (Collection) Via CFX files Quorum/FLOWCAL Common File Exchange Format 8.5.0
Minimum of 1 CFX per day
CFX file stored on PLC file system (password protected)
Manual/Local collection Users with limited permissions and network access can copy CFX files from the PLC to another computer for transfer to hydrocarbon accounting system
Remote/SCADA collection Via secure FTP or SSH
SCADA Interface Implemented in PLC program
Configuration Loading/Transfer Via text file Library provides features to save configuration to file
Library provides features to load all or part of the configuration from file
Power Loss Behavior Configuration is retained PLC persistent memory
Flow History is retained PLC persistent memory and file system
Flow that occurs while PLC is not powered Not measured
When power is restored Broken day is saved as CFX file and calculations resume
Licensing Free for developer Library file is free and can be added to any Wago e!COCKPIT instance
Runtime Licensed Library generates a site code on the PLC
Beyond HMI, Inc. generates a license file from site code
License file is installed on the PLC. License is perpetual but only usable on that PLC.
Library features will execute for about 4 days after restart in trial mode. License must be installed before this period expires or data will be lost (unrecoverable).


Licensing

The BhiLibDualFc library is available at no cost to e!COCKPIT users. The library uses runtime licensing. A license is required for each PLC which executes the library code. The program will run for approximately 4 days in trial mode before a license is required. Licenses must be purchased from Beyond HMI, Inc.