Tank Volume
Introduction
The PLC Shift Tank Volume application calculates liquid volumes in storage tanks using measured liquid levels and tank geometry. The application supports oil and water tanks and can be used for inventory monitoring, production measurement and batch transfers.
Key features include:
-
Volume calculation using tank geometry or a certified strapping table.
-
Support for tanks containing oil, water, or oil with a water interface.
-
Temperature and pressure correction for crude oil using API MPMS 11.1.
-
Batch measurement with manual or automatic start and stop.
-
Minute, hour and day history records.
-
Direct polling of supported level sensors using Modbus.
-
Configurable input alarms and historical data storage.
Tank Configuration
Use settings in the 'Tank Configuration' group to configure the tank type and dimensions.
The application supports vertical cylindrical, horizontal cylindrical and rectangular tanks. For tanks with irregular geometry, use a strapping table to define the relationship between liquid level and tank volume.
When using a strapping table, the application interpolates between the configured points to calculate the volume at the measured level. Certified strapping tables should be used when accurate volume measurement is required.
Measurement Type
The application supports oil and water measurement. For oil tanks, the application can be configured to measure either the total liquid level or both the total liquid level and the oil/water interface level.
When an interface measurement is available, the application calculates the water volume below the interface and subtracts it from the total volume to determine the oil volume.
For water tanks, the total calculated volume is treated as water.
Oil Volume Correction
The application uses API MPMS 11.1 to calculate correction factors for the measured oil volume during batches (loading or unloading). Inputs include the representative liquid temperature, pressure and density. Density can be provided at flowing conditions or as a fixed density at base conditions.
The calculated correction factors are used to convert the measured oil volume to the equivalent volume at base conditions.
Oil correction can be disabled when corrected volumes are not required. Gross oil and water volumes remain available independently of the oil correction calculation.
Direct Sensor Polling
The PLC Shift Tank Volume application can receive level measurements from a PLC connected to instrumentation, or it can poll supported level sensors directly. Supported instruments include:
-
Rosemount 5301 and 5302 (530x)
-
VEGA VEGAFLEX 81 and 82 (8x)
-
Endress+Hauser FMP5xDirect polling uses Modbus. Configure the sensor type, communication settings and measurement inputs using the appropriate configuration parameters.The application monitors measurement validity and sensor status. Invalid measurements are excluded from volume change calculations.
Alarms
Use settings in the 'Input Alarms' group to configure alarms for the measured values. Enabled alarms are logged when they become active or return to normal. Alarm counts are included in minute, hour, day and batch history records.Freeze Inputs
Use the 'Freeze Inputs' control parameter in the 'Control' group to hold the input measurements at their current values. When inputs are frozen, the application continues to execute using the held measurements. This can be useful during instrument maintenance or testing. When inputs are frozen, direct polling of sensors is also disabled, if enabled.Batch Measurement
The Tank Volume application supports batch measurement for tank filling and draining operations.A batch can be started and stopped using the 'Batch Control' parameter, or automatically based on changes in tank volume. When automatic operation is selected, configure the start and stop flow rate thresholds and their associated delays.A batch record contains the starting and ending levels and volumes, the volume transferred, average measurement values, correction factors and alarm count. Separate oil, water and water and sediment volumes are calculated where applicable.The batch record also includes the batch ID, user number and description. Batch history is generated and retained independently of minute, hour and day history.Volume History
The Tank Volume application generates the following types of records: -
Minute Data. Each record contains starting and ending liquid levels and volumes, calculated changes, timestamps and alarm count for the minute.
-
Hour Data. Each record contains starting and ending levels and volumes, calculated changes, timestamps and alarm count for the hour. Recent hourly records are also available as tags in the 'Hourly History' group.
-
Day Data. Each record contains starting and ending levels and volumes, calculated changes, timestamps and alarm count for the contract day. The contract day ends at the configured contract hour. Recent daily records are available as tags in the 'Daily History' group.
-
Batch Data. A record is generated when a batch is completed. Each record contains information about the liquid transferred during the batch.
-
Alarm Records. Records are generated when configured alarms become active or return to normal.
-
Configuration Records. Configuration records provide a record of application settings associated with measurement operations.
History records are stored locally and can be retrieved for reporting and analysis.
Data Export
Use the application export settings to configure the export of historical records to external systems. See the 'Data Export' section for additional information about exporting data from PLC Shift applications.
Troubleshooting
View the application's diagnostic for detailed troubleshooting information. See the 'Log Files' section for more details.
