API MPMS Chapter 21.2 (2000): Electronic Measurement Systems for Liquid Hydrocarbons Using Positive Displacement and Turbine Meters

Calibration, Verification, and Compliance Guidance for Electrical and Electronic Metering Systems in Petroleum Custody Transfer

Scope and Application

API Manual of Petroleum Measurement Standards (MPMS) Chapter 21.2, published in 2000, specifies requirements for electronic measurement systems that compute and report flow quantities from positive displacement (PD) and turbine meters used in liquid hydrocarbon services. The standard covers systems where a flow meter produces a pulse train or frequency signal, and an electronic device (flow computer, remote terminal unit, or programmable logic controller) integrates the pulses over time to derive volume.

This standard applies to custody transfer and allocation measurement of crude oil, refined products, and other liquid hydrocarbons with a Reid vapor pressure below 100 psi (690 kPa) at 37.8°C. It addresses the entire electronic measurement chain—from the meter output to the final displayed or transmitted volume—including the flow computer, signal converters, temperature and pressure transmitters, density or specific gravity instruments, and any associated software.

API MPMS 21.2 is a companion to other MPMS chapters, particularly Chapter 4 (Proving Systems), Chapter 5 (Metering), and Chapter 21.1 (Electronic Gas Measurement). It fills a critical gap by defining minimum performance, security, and data integrity requirements for electronic components that were not explicitly covered in earlier mechanical-focused standards.

Technical Requirements

System Architecture and Signal Processing

The standard requires that the electronic system accept pulse inputs from PD or turbine meters with a maximum frequency of at least 10,000 Hz and handle pulse amplitude variations typical of magnetic or modulated carrier pickups. The flow computer must have a resolution of at least one pulse, and the volume integration must be performed using a technique that does not exceed a rounding error of 1×10−6 of the total pulse count.

Accuracy and Performance

Table 1 summarizes the maximum allowable system errors specified in API MPMS 21.2 for primary measurement variables under steady-flow conditions.

ParameterMaximum Allowable Error (including transmitter, A/D, and computation)
Volume (pulse input)±0.05% of reading
Temperature±0.25°C (±0.5°F)
Pressure (gauge)±0.2% of span (or ±0.1% of reading for static pressure > 100 psi)
Density (including specific gravity)±0.2% of reading
Flow time±0.02% of elapsed time
Base volume (calculated)±0.1% of reading (including all corrections)

Note: Errors are based on the combined uncertainty of the measurement chain under reference conditions.

Software and Security

The standard mandates that all measurement software be verified against known algorithms and that any changes be logged with a date/time stamp. The system must provide security such that parameters affecting the calculated volume (e.g., meter factor, K-factor, temperature compensation coefficients) are protected from unauthorized modification. This may be accomplished through hardware switches, password protection, or audit trail checksums.

API MPMS 21.2 also requires that the flow computer perform diagnostic checks every 50 ms or less, including watchdog timers, RAM/ROM tests, and communication integrity tests. In the event of a detected fault, the system must record the failure and take a predefined action (e.g., stop totalizing, flag the batch, revert to default values).

Implementation Tip: When selecting a flow computer, verify that the manufacturer has documented the pulse counting technique (e.g., multi-stream buffered counting) and has provided a declaration of the maximum integration error under 1×10−6. Request the software verification report and the audit trail design to ensure compliance with API MPMS 21.2 Section 6.3.

Calibration and Verification

While detailed procedures for meter proving are given in MPMS Chapter 4, API MPMS 21.2 requires that electronic systems be verified against reference standards at least once every 12 months. The verification must include:

  • Injecting a known number of pulses (simulated or from a test meter) and comparing the reported volume to the calculated volume
  • Checking temperature and pressure channel accuracy against calibrated simulators or secondary references
  • Verifying the correctness of the volume correction factor (VCF) and base density algorithms using hand calculations or approved software
  • Testing the alarm and diagnostic functions for each input

The standard also recommends that a full system validation, including all compensation algorithms, be performed after any software update, hardware replacement, or change to the meter factor.

Implementation and Compliance Notes

Integration with Other MPMS Standards

API MPMS 21.2 is not a standalone document; it must be used in conjunction with:

  • MPMS Chapter 4.5 – Proving systems for displacement meters
  • MPMS Chapter 4.6 – Proving systems for turbine meters
  • MPMS Chapter 5.2 – Measurement of liquid hydrocarbons by displacement meters
  • MPMS Chapter 5.3 – Measurement of liquid hydrocarbons by turbine meters
  • MPMS Chapter 7 – Temperature and pressure determination
  • MPMS Chapter 11.1 – Volume correction factors

For a custody transfer installation, the electronic system’s overall uncertainty must be combined with the uncertainty of the meter and prover to demonstrate compliance with the accuracy requirements of the contract or regulation.

Common Compliance Pitfall: Many operators calibrate the primary meter and prover on a regular schedule but overlook the electronic system verification. A drift in the flow computer’s analog-to-digital converter or a change in the pulse conditioning circuit can introduce a systematic error that goes undetected until a full electronic verification is performed. Always include the entire signal path in the annual validation.

Audit and Documentation

API MPMS 21.2 places strong emphasis on traceability and documentation. Operators must maintain records of:

  • Factory acceptance tests (FAT) showing compliance with accuracy requirements
  • Site acceptance tests (SAT) demonstrating proper installation and configuration
  • Annual verification results with pass/fail criteria
  • Software version history and change logs
  • Accident/event reports (e.g., power failure during a batch, alarm conditions)

The standard also states that, in the absence of specific contractual requirements, the total system uncertainty at maximum flow rate should not exceed 0.25% for custody transfer and 0.5% for allocation measurement.

Compliance Success: Companies that implement a comprehensive verification program in accordance with API MPMS 21.2 often reduce unaccounted losses by 0.05–0.1% and improve their custody transfer balance. Including electronic verification as part of the routine maintenance schedule ensures that the entire measurement chain remains within design tolerances.

Special Considerations for Retrofit and Upgradation

When upgrading older metering stations to electronic systems, API MPMS 21.2 requires that all new electronic components meet the performance specifications, but existing mechanical components (meters, piping) may continue to be used as long as they are compatible with the new electronics. However, the overall system uncertainty must be reevaluated using the electronic error contribution. Often, the pulse output from an older turbine meter may have insufficient amplitude or an irregular waveform, which must be conditioned or the meter replaced to meet the signal requirements.

Safety Note: Before performing any verification or maintenance on the electronic system, ensure the area is declassified or that the flow computer and signal converters are certified for the hazardous location (Class I, Division 1 or 2 as applicable). API MPMS 21.2 does not replace local electrical codes (e.g., NEC, IECEx) but should be applied together with them.

In summary, API MPMS 21.2 (2000) remains the definitive standard for electronic components in liquid hydrocarbon metering systems using PD and turbine meters. Its focus on signal integrity, algorithm verification, security, and systematic validation ensures reliable custody transfer data. Any operator involved in the installation, operation, or auditing of such systems must incorporate its requirements into their quality management system.

Q: Does API MPMS 21.2 apply to Coriolis or ultrasonic meters?
A: No. The 2000 edition specifically addresses positive displacement and turbine meters that generate pulse outputs. Coriolis meters are covered by MPMS Chapter 5.6, and ultrasonic meters by Chapter 5.8; the electronic system requirements for those meters are now addressed in later versions of Chapter 21 (e.g., API MPMS 21.2-2023) that cover multiple meter technologies. For the 2000 edition, only PD and turbine meters are within scope.
Q: What is the required calibration frequency for electronic measurement systems per API MPMS 21.2?
A: The standard states that verification of the entire electronic system must take place at least once per year. It also recommends additional verification whenever the meter factor is changed, after any software update, or after any component replacement that could affect accuracy. The verification must include both pulse simulation and analog input checks.
Q: Can a programmable logic controller (PLC) be used as a flow computer under API MPMS 21.2?
A: Yes, provided that the PLC meets all the performance, security, and diagnostic requirements of the standard. This includes pulse counting with sufficient resolution, software verification, audit trail logging, and the ability to apply volume correction equations (like Table 6A/6B). Many operators use dedicated flow computers to avoid the additional software complexity, but a properly configured PLC is acceptable.
Q: Does API MPMS 21.2 require the use of API’s volume correction factor tables?
A: The standard requires that the volume correction algorithm be consistent with the prevailing industry standard, which for most liquid hydrocarbons is the API/ASTM/IP tables (MPMS Chapter 11.1). The correction must be applied to convert the measured volume at flowing conditions to a base volume at standard temperature and pressure. The standard does not mandate a specific version, but the algorithm must be verified.

© 2026 – This technical article is based on API MPMS Chapter 21.2 (2000). For official requirements, consult the latest edition published by the American Petroleum Institute.

📥 Standard Documents Download

🔒
Please wait 10 seconds, the download links will appear after the ad loads

Leave a Reply

Your email address will not be published. Required fields are marked *