Short answer: For custody transfer metering, a flow computer is usually preferred: standard calculation methods, parameter protection, a non-editable event log, archives and software identification come built in. A PLC or DCS can do the same calculation, but the project must design, document and prove each of these. Under legal metrological control, use an approved or conformity-assessed volume converter or calculator.
The answer to "flow computer vs PLC" is not "a PLC can never be used." A PLC can be used in two cases: when the measurement is outside legal metrological control and the contracting parties accept it, or when, for a measurement under legal control, the competent body accepts a PLC-based calculator whose required functions have been demonstrated.
What decides the matter is not whether the calculation can be done. It is whether the result, and the chain that produced it, can be proven to the contracting parties, the network operator or the legal metrology authority.
Flow computer vs PLC: what is the core difference?
The core difference lies in the evidence, not in the calculation. A flow computer delivers calculation, recording and protection functions out of the box; with a PLC or DCS, each of the same functions has to be built and documented separately in the project.
Criterion | Flow computer | PLC / DCS |
Standard calculation library | AGA, ISO and API methods are ready in the manufacturer's library and selected by configuration | The method is coded in the project; its edition, numerical precision and testing against reference values must be documented |
Burden of proof | Built into the device; the project is responsible for configuration and installation | Designed, documented and submitted for acceptance in the project |
Cost and flexibility | Device cost applies; limited flexibility for non-metering logic | Hardware cost looks low on an existing platform; the burden of verification, documentation and change management grows |
Typical use | Custody transfer, fiscal metering, natural gas metering stations, tanker loading | Process monitoring, internal allocation, check metering, station control, valve control |
The detailed function-by-function comparison is in the matrix below.
If a PLC can do the calculation, why is it not enough?
Because a billing figure only carries weight together with the records that support it. The requirements apply to wherever the calculation is performed, not to the name of the device.
OIML R 140 defines the calculator in gas fuel metering systems by its function, not by a device type: the part of the system that receives the signals from the flowmeter (and from associated measuring instruments, if any), transforms them and, where appropriate, stores the results in memory until they are used (R 140, T.1.3). The same recommendation states that the term "conversion device" also covers the conversion function inside a calculator. If the calculation is performed in a PLC, the requirements for the calculator carry over to the PLC.
R 140 defines the audit trail as the set of records that allows a complete review of the measured variables, parameter settings and calculation results. This set can include volume at metering conditions, pressure, temperature, calorific value (superior calorific value), the conversion equation and its parameters, base volume and energy, calibration data and alarm records. OIML R 140 is an international recommendation; its requirements become binding to the extent that national legislation or a contract refers to them. The recommendation covers gas metering systems with Qmax ≥ 100 m³/h at base conditions and an absolute operating pressure ≥ 2 bar, excluding systems with diaphragm meters.
In a dispute, this is exactly what gets asked: with which parameters and which software version, and under a configuration changed by whom and when, was the result calculated? How were fault periods flagged?
How does the status of the measurement change the decision?
The right architecture depends on the status of the measurement. Even within the same station, the custody transfer meter run and the process measurements can fall under different rules.
Measurement status | Who decides | Calculation in a PLC/DCS |
Process monitoring, control, internal allocation | The operator's quality and engineering rules | The normal option; the level of verification and recording is chosen to suit the operator's needs. |
Contractual custody transfer (outside legal control) | The contracting parties and, where applicable, the network operator's specification | Possible if the parties accept it; calculation verification, event logging, archiving and change management should be written into the contract. |
Measurement under legal metrological control | National legislation, the competent or notified body | Only within the scope of the relevant approval or an arrangement accepted by the national authority; in most cases an approved converter/calculator is preferred. |
In the European Union, the reference in this area is the Measuring Instruments Directive (MID, 2014/32/EU). The MID governs placing instruments on the market and putting them into service; whether an MID-compliant instrument is mandatory at a specific metering point depends on national regulations.
If the status is unclear, the contractual and regulatory requirements should be clarified in writing before design begins.
Example: Türkiye
In other countries, national legislation and the network operator's code answer the same question; the Turkish framework below shows how the layers fit together. In Türkiye there are two layers: the placing on the market and use of measuring instruments, and the metering rules of the natural gas market. Which one applies at which point should be confirmed at the start of the project.
The MID has been transposed into Turkish law by the Measuring Instruments Regulation (2014/32/EU), administered by the Ministry of Industry and Technology (Official Gazette, 29.06.2016, No. 29757). This regulation, and the conformity assessment it refers to, govern the placing on the market of instruments such as gas meters and volume converters. Inspection of instruments in service is governed by Law No. 3516 on Measures and Calibration and the inspection legislation based on it; since instruments used in commercial transactions can fall within this scope, the room for "custody transfer outside legal control" in natural gas may be narrow.
Which instrument at a metering point is subject to legal control, and which certificate is required, should be confirmed with the relevant legislation and the competent body.
Custody transfer metering of natural gas is also a matter of market regulation. The legislation of EPDK (the Energy Market Regulatory Authority) and network operator rules, such as the BOTAŞ Transmission Network Operation Code on the transmission network, may set conditions for the metering system, records and data transfer. On a distribution network, the technical specification of the distribution company concerned may be decisive.
This article does not interpret any specific provision. The applicable conditions should be verified for each project against current legislation and the network operator's specification.
Which technical criteria change the decision?
Seven technical topics decide between a flow computer and a PLC. Each corresponds to a function that has to be proven separately in the project if a PLC is used.
Implementation and verification of the standard calculation: Which edition of the AGA, ISO or API method was coded, comparative test records against reference values, numerical precision and cycle time. R 140 requires the conversion factor to be recalculated at intervals of no more than 30 s (R 140, 8.6.1.3).
Protection of non-measured data: Values such as base conditions, gas composition and meter factor must be present in the calculator before the measurement and must be displayable. Changing them must require breaking a seal or updating the audit trail (R 140, 8.7.1).
Intervention logging and authorization: For parameters not protected by a mechanical seal, R 140 provides for authorized access via a changeable code or a hardware key. All interventions between two verifications must be recorded with date and identity, traceable for at least 2 years (R 140, 7.6.2.1). If the record memory is full, the oldest record is deleted; the national authority may consider a code insufficient.
Archives and fault behavior: Stored values must not be changeable without breaking a seal; when the memory is full, deletion must follow recording order and require a special manual operation. If the calculator stops, the main values must be preserved and remain accessible for at least 6 months (R 140, 8.4.3, 8.4.4, 8.7.2).
Software identification: MID Annex I requires metrologically critical software to be identified and secured, and evidence of an intervention to remain available for a reasonable period (Annex I, 8.3). In a modifiable PLC program, this means a version identifier, a checksum and a controlled change process.
Operation outside the specified range: MID Annex MI-002 requires an electronic volume conversion device to detect when it is operating outside the specified operating range and to stop integrating the converted quantity (MI-002, 9.1). The quantity during this period may be totalized separately.
Time and communication: Alignment of hourly and daily records with the contract day start, a single time source and logging of clock corrections. The integrity of the link between field device and calculator also falls under this topic.
Which functions must be proven when calculating in a PLC/DCS? (function and responsibility matrix)
The matrix below can be used as a checklist in a specification or a review meeting. The "Typical flow computer equivalent" column summarizes general practice; the documentation and approval scope of each device must be checked separately.
Function | Typical flow computer equivalent | What must be proven if done in a PLC/DCS | Approval / responsibility |
Standard calculation (AGA, ISO, API) | Ready methods in the manufacturer's library; selected by configuration | Edition of the coded method, test report against reference values, precision, cycle time, boundary cases | Prepared by the integrator; accepted by the contracting parties or, under legal control, the notified body |
Non-measured data (base conditions, composition, meter factor) | Parameter menu behind a seal or access level | Display and printout; changes impossible without breaking a seal or being logged | Operator; the body performing verification |
Parameter changes and authorization | Access levels, hardware security switch | Per-user authorization, changeable code, prevention of online changes to the PLC program | Operator and integrator; under legal control, the national authority |
Event and alarm log | Internal event and alarm log; not user-editable, overwritten from the oldest entry when memory is full | Input failure, out-of-range operation and communication loss records kept linked to the measurement data and non-editable | Operator; the parties in a dispute |
Hourly/daily archives and retention | Periodic and batch reports in non-volatile memory | Archives aligned with the contract hour, retention period, sequential deletion, no later modification | Contracting parties; applicable legislation |
Fault and shutdown behavior | Separate fault totalizer; last values preserved on shutdown | Stopping the valid totalizer, keeping the fault quantity separate, data retention test on shutdown | Designed by the manufacturer/integrator; demonstrated at verification |
Software identification and change | Fixed firmware version; may be named in the approval certificate | Version identifier, checksum, change procedure; notification of changes to an approved type | Software owner and approval holder; notified body |
Sealing / write protection | Physical sealing point, security switch | Sealable switch or cabinet, electronic seal equivalent, intervention evidence retained | The body performing verification; operator |
Type approval / conformity | A certificate may exist for specific functions and configurations; read its scope | Separate conformity assessment for a PLC-based calculator, or a documented arrangement accepted by the authority | Applicant (manufacturer/integrator); notified body or national authority |
Time synchronization | Internal clock; network synchronization option | Single time source, clock correction log, day-start rule | Operator; contract |
Communication and data integrity | The result is produced in the device; SCADA receives a copy | Security of the field link, integrity check of transferred data, which record the invoice is taken from | Integrator and operator; contract |
Who is responsible: the manufacturer or the integrator?
With a flow computer, the calculation and protection software is largely owned by the manufacturer. In a PLC/DCS solution, that software is project-specific and owned by the integrator or the operator.
With a dedicated flow computer, the project side is responsible for configuration and installation. In a PLC/DCS-based solution, the entire calculation program, record structure and protection logic are written within the project.
For a type approval application, R 140 requires a description of the electronic seals and a software flow chart. The approval certificate then states, where applicable, the version of the metrological part of the evaluated software, and changes to the approved type are notified to the issuing body (R 140, 10.2.2.2, 10.2.3, 10.2.4). For a PLC whose program is updated frequently, who carries this burden should be written down from the outset.
Type P and type U
WELMEC Guide 7.2 is an advisory software guide prepared for the MID. It defines as "type P" purpose-built measuring instruments that run embedded software, have a fixed software environment and give the user no means to modify the program or load software.
If these conditions are not fully met, the "type U" (universal computer) requirements apply and stricter measures are expected for software integrity. The notified body decides how a programmable PLC is assessed; still, the distinction shows that a modifiable program increases the burden of proof.
When is a PLC/DCS a reasonable choice?
A PLC/DCS is the natural choice for non-billing measurement and for functions around the flow computer. For custody transfer metering, it can only be used with the acceptance of the parties or the authority.
Non-billing measurement: Process monitoring, energy management and in-plant allocation.
Check metering: Comparison measurement alongside the custody transfer meter, with deviation alarms.
Peripheral functions: Transferring the results, archives and alarms produced by the flow computer to SCADA/DCS, station control and valve control.
Acceptance by the parties: When the contracting parties explicitly accept the PLC calculation and the evidence in the matrix (calculation test, event log, archives, software identification, sealing) is documented.
Acceptance by the authority: When the competent body accepts a PLC-based calculator under a conformity assessment or a documented arrangement.
Under what conditions is a PLC unsuitable for custody transfer metering?
Where approval is required, a PLC calculation cannot be used; where the program is uncontrolled or invoices are taken from SCADA history, the result is very hard to defend. There are also cases where a flow computer alone is not enough.
Approval requirement: If the regulation or the network specification requires an approved volume converter or calculator, a PLC calculation outside the approval scope cannot be used as the billing value.
Uncontrolled program: If the PLC program can be changed online, no version identifier is kept and changes are not logged, the system is very hard to defend in a dispute.
SCADA history: SCADA historical data is usually a sampled and compressed copy; unless the contract says otherwise, it does not replace the billing archive.
A flow computer on its own: Approval of the calculator does not demonstrate the conformity of the meter, the transmitters, the installation or the metering system as a whole. Approvals are often tied to a specific configuration; check that the certificate is current and which directive and standard edition it is based on.
Scope of this article: This text does not replace a country-specific legal metrology procedure or contract provision; confirm with the relevant authority and the parties.
Example scenario: a dispute at a PLC-calculated station
Even if the calculation is correct, questions that cannot be answered from the records leave the measurement open to dispute. The fictional example below illustrates this.
An industrial plant transfers part of the gas it receives to another business on the same site under a contract. At this sub-metering point, pressure and temperature correction is performed in a PLC, and invoices are prepared from the daily totals in SCADA. When the totals do not match the volume converter at the main metering station, the parties want to compare records. The first questions will be:
Which method and which gas composition were used for the compressibility calculation in the PLC?
Who last changed the composition, and when?
When a transmitter failed, did the valid totalizer stop, and was the fault quantity kept separate?
Is the SCADA copy identical to the PLC archive?
Had a flow computer been used at the same point, most of these answers would be readily available in the device's event log and archive; the discussion would narrow largely to the accuracy of the meter and transmitters.
How does TLY Enerji split tasks between the flow computer and the PLC?
TLY Enerji is an engineering, procurement and fabrication company for metering skids and stations and the Türkiye distributor of Ex~i Flow Measurement; it supplies the SFC3000 flow computer and integrates it into its projects. We keep the billing calculation in the flow computer, and monitoring and control in the PLC/DCS/SCADA.
We apply this architecture in custody transfer natural gas metering stations, RMS/PRMS gas pressure reduction and metering stations and fuel custody transfer metering systems. We integrate the SFC3000 flow computer into our metering skids and stations.
This approach does not exclude the PLC, DCS or SCADA; it clarifies the division of tasks. Calculation, archives and the event log are produced in the flow computer; results, alarms and archive data are transferred to the plant's PLC/DCS/SCADA system for monitoring, station control and reporting.
Which device is used with which certificate is determined for each project by the status of the measurement, the contract and the network operator's specification. For details, see our page on flow computer solutions for fiscal and custody transfer metering.
What data is needed for a quotation or review?
To recommend the right architecture, we first need to know the status of the measurement, the fluid, the measurement chain and the existing automation structure. The list below is a starting point for quotation and review requests.
Measurement status: Process, contractual custody transfer or legal metrological control; the relevant contract clauses and the network/regulator specification.
Fluid and quantity: Natural gas, liquid hydrocarbons, LPG, etc.; the quantity to be measured (base volume, mass, energy) and the required calculation method.
Measurement chain: Meter type and signal, pressure/temperature and, if needed, the composition or density source; number of meter runs.
Automation architecture: Existing PLC/DCS/SCADA structure, protocols to be used and which record the invoice will be taken from.
Archives and time: Archive intervals (hourly, daily, batch), retention period, contract day start time and time source.
For existing facilities: Sample archive and event records, parameter list, software version and any dispute records.
For gas stations, our article on the process data an RMS/PRMS station quotation needs covers the process side, and orifice or ultrasonic for natural gas metering covers meter selection.
Frequently asked questions
Flow computer vs PLC: which should be chosen for custody transfer metering?
For custody transfer metering, a flow computer is usually chosen, because standard calculation, a non-editable event log, archives, sealing and software identification come built into the device. A PLC can perform the same calculation, but each of these proofs must be designed and documented in the project and accepted by the contracting parties or the competent body.
Can a PLC be used for custody transfer metering?
A PLC can be used for custody transfer metering if the measurement is not under legal metrological control and the contracting parties accept it. In that case, calculation verification, a non-editable event log, archives, software identification and sealing must be designed and documented within the project. If the regulation requires an approved volume converter or calculator, a PLC calculation can only be used within the scope accepted by the competent body.
What does a flow computer do in custody transfer metering?
A flow computer combines the volume or flow signal from the meter with pressure, temperature and, if needed, composition or density data to calculate base volume, mass or energy. It does this with standard calculation methods and stores the results together with an audit trail, event log and archives. The flow computer is one of the key components that make the result provable in custody transfer metering; the conformity of the meter, transmitters and installation is also required. For the general role of the flow computer in the measurement chain, see flow computer solutions for fiscal and custody transfer metering.
What is the difference between a volume converter and a flow computer?
A volume converter is a measuring instrument within the scope of the MID that converts the volume measured by a gas meter to base conditions using pressure, temperature and compressibility correction; it is typically used in single-meter distribution and industrial inlet applications. A flow computer can perform the same conversion and also cover multi-run configurations, different meter types, energy calculation, batch operations and liquid applications. In gas applications, many flow computers are certified as volume converters under MID MI-002 for their conversion function. Under OIML R 140, the requirements apply to the conversion function, not to the name of the device.
Can SCADA data be used for invoicing?
SCADA historical data is usually a sampled and compressed copy; unless the contract explicitly states otherwise, it does not replace the billing archive. The correct approach is to take the invoice from the flow computer's archive and use SCADA as the monitoring and reporting copy of that record. Which record prevails should be written into the contract.
Is it right to run the AGA 8 Detail / ISO 12213-2 calculation in a PLC?
Running the AGA 8 Detail / ISO 12213-2 compressibility calculation in a PLC is technically possible, but the edition the method was coded to, its testing against reference values, its numerical precision and its behavior at boundary conditions must be documented. The newer GERG-2008 method is defined in ISO 20765-2; which method applies should be stated in the contract or the network specification. Non-measured data such as composition must also be protected, and every change must be logged. In custody transfer metering, this burden generally carries less risk with a flow computer that provides the calculation in a ready, verified library.
If the DCS value differs from the flow computer value, which one prevails?
When the DCS and the flow computer disagree, the value that prevails is the record of the metering system defined in the contract and, where applicable, in the network operator's rules. If the billing calculation resides in the flow computer, the DCS value remains a comparison for control purposes, and the difference is investigated through a deviation alarm. Setting this rule in writing at the start of the project prevents disputes.
Related pages
Flow computer solutions for fiscal and custody transfer metering: The role of the flow computer in the measurement chain and selection criteria.
SFC3000 flow computer: The multi-run flow computer platform from Ex~i Flow Measurement.
Custody transfer natural gas metering stations: The scope of the gas metering system in which the calculator sits.
Fuel custody transfer metering systems: Sealing, recording and audit trail expectations on the liquid side.
Let's decide together where the calculation should run at your custody transfer metering point and how tasks are split with your PLC/DCS. Send us the measurement status, the fluid and your existing automation architecture via the TLY Enerji contact page; our engineering team will come back with a metering and integration proposal and a quotation for your project.