Truck Loading

Batch controllers in truck loading: function, operation and TAS integration

A batch controller loads a preset volume at the bay, stages the valve and stops on time. See how it works, how it links to a TAS and why batches overrun.

Topic
Truck Loading
Updated
13 November 2026
Reading time
4 min
Sections
6
Green bottom loading arms mounted under a gantry at a truck loading bay.
Overview

A batch controller is the controller at a loading bay that receives the ordered volume, opens and closes the valve, reads the flow meter pulses, and stops the loading exactly at the authorized volume.

You will also hear it called a preset controller or preset counter. It sits between the meter and valve on one side and the terminal automation system on the other. How the TAS divides work with the tank and reporting systems is covered in the Citia article on TAS, TMS and TPS boundaries; this article stays at the bay.

What a batch controller does

Function

What a batch controller does

In plain terms, a batch controller turns an order into a measured, stopped flow. It does the counting that an operator with a stopwatch and a valve handle used to do, and it does it the same way every time.

The Endress+Hauser RA33 technical information (2025) lists the functions that most controllers share: valve control for single-stage and two-stage filling, automatic after-run correction, temperature and density compensation according to ASTM D1250-04, a batch report for every run, and remote start and abort. Terminal-grade controllers such as the Emerson DL8000 add additive injection and blending of up to four products.

  • Preset

    Holds the authorized volume for one compartment.

  • Valve staging

    Low flow at start and end, full flow in between.

  • Pulse counting

    Totalizes meter pulses into volume.

  • Compensation

    Corrects volume to a reference temperature.

  • Permissives

    Stops on lost grounding, overfill or emergency stop.

  • Batch report

    Records preset, loaded volume, time and alarms.

Inside one batch: from low flow to stop

Operation

Inside one batch: from low flow to stop

A batch starts slowly, runs fast and ends slowly. The slow start covers the outlet so the product does not splash; the slow end lets the valve close on the exact preset.

The controller switches the valve stages on volume, not on time. As the preset approaches, it closes the second stage and lets the last part run at low flow. After-run correction then moves the final close command earlier by the volume that still flows while the valve travels, and the automatic version keeps adjusting that value as the valve and pump age.

  1. Receive preset

    The TAS or operator enters the volume for the compartment.

  2. Check permissives

    Grounding, overfill sensor and emergency stop must be healthy.

  3. Low-flow start

    First valve stage opens until the outlet is covered.

  4. Full flow

    Second stage opens; pulses are counted continuously.

  5. Low-flow finish

    Second stage closes before the preset.

  6. Close and report

    Valve closes early by the after-run volume; the batch report is stored.

How a batch controller talks to the TAS

Integration

How a batch controller talks to the TAS

The TAS tells the controller how much to load, and the controller tells the TAS how much it loaded. Everything else in the integration is about doing that reliably.

Most controllers offer a serial or Ethernet link. The RA33 offers Modbus as an option, and the DL8000 lists Ethernet, EIA-232 and EIA-485. Some terminals connect the TAS to each controller directly; others pass the data through the bay PLC or an interface unit such as Citia's CATALYST CT-BC, which carries batch controller data into the terminal control layer. The choice depends on how many brands and protocols already sit in the filling shed.

Data between the TAS and the bay
Field
Control
Application
Flow meter

Sends pulses proportional to volume.

Hover, focus or tap a step to read its note.

Agree on the record before writing any code. The TAS needs more than one number back: it needs the gross and compensated volume, the meter totalizer readings, the temperature, the start and end time and any alarm that interrupted the batch.

Totalizer readings matter most. If a batch result is lost in transit, the difference between two totalizer readings lets the terminal rebuild it without guessing. The example on the right shows a typical set of fields.

JSON
// Example only: fields a TAS typically reads back from a
// batch controller after one compartment is loaded.
{
  "bay": "string",
  "arm": "string",
  "compartment": "string",
  "product_code": "string",
  "preset_volume": "number (L)",
  "loaded_gross": "number (L at observed temperature)",
  "loaded_net": "number (L at 15 C, if compensated)",
  "avg_temperature": "number (C)",
  "meter_totalizer_start": "number",
  "meter_totalizer_end": "number",
  "start_time": "ISO 8601",
  "end_time": "ISO 8601",
  "alarms": ["string"],
  "status": "completed | stopped | aborted"
}
Example batch record, field names and types only
Accuracy: what the controller can and cannot fix

Metering

Accuracy: what the controller can and cannot fix

The controller decides when to stop; the meter decides how much actually flowed. A perfect stop on a drifting meter still gives a wrong delivery.

OIML R 117-1:2019 sets the maximum permissible error for complete measuring systems by accuracy class, as the chart shows. For pre-ordered deliveries, it also says the difference between the preset and the indicated quantity at the end must not exceed the minimum specified quantity deviation. Temperature compensation is the other half: the RA33 converts mineral oil volume to 15 °C using ASTM D1250-04, so the TAS can record a net volume that compares with tank stock.

Maximum permissible error by accuracy class

00.511.5%Class 0.3: 0.3%0.3%Class 0.3Class 0.5: 0.5%0.5%Class 0.5Class 1.0: 1%1%Class 1.0Class 1.5: 1.5%1.5%Class 1.5
Class 0.5 is the default class for measuring systems not listed elsewhere in Table 2.Source: OIML R 117-1:2019, Table 3, line A (complete measuring system)
Maximum permissible error by accuracy class (%)
LabelValue
Class 0.30.3%
Class 0.50.5%
Class 1.01%
Class 1.51.5%
Why loadings overrun, and how to find the cause

Troubleshooting

Why loadings overrun, and how to find the cause

An overrun is a batch that ends above its preset. It is usually a valve or tuning problem, not a counting problem.

  • A slow or sticking valve keeps flowing after the close command, so the after-run volume grows.
  • A fixed after-run value set years ago no longer matches the pump and valve as they are today.
  • Pump pressure changes when several bays load at once, which changes the flow at the moment of closing.
  • Pulse noise or a loose pulse cable adds counts, which shows as a meter error rather than a valve error.

Start with the batch reports. If the overrun grows slowly over weeks, look at the valve. If it jumps between batches, look at pressure and wiring.

From the field: metering integration at Pertamina sites

Field notes

From the field: metering integration at Pertamina sites

Most batch controller work at running terminals is integration, product changes and replacement of single bays. Three Citia records show the range.

At Pulau Layang, the avtur metering integration connects an ISOIL VEGA II flow computer, the CS-Flow application and a machine user interface, so operators see flow rate, gross and net volume, preset and loaded volume, temperature and status in real time.

For Jambi, meters 5 and 6 were brought into CS Flow with tag mapping and communication tests. The Padalarang B50 product update changed product codes in FD Flow and ran test transactions before use.

Terms used in this article

Batch controller
Bay controller that loads a preset volume and stops the flow.
Preset
The volume authorized for one batch or compartment.
After-run
Volume that still flows after the close command, while the valve moves.
Two-stage valve
Valve with a low-flow and a full-flow position.
Totalizer
Running total of all volume a meter has measured.
Flow computer
Device that calculates corrected flow and volume from meter and sensor inputs.
Overrun
A batch that ends above its preset.

Frequently asked questions

What is the difference between a batch controller and a flow computer?

A batch controller controls a loading and stops it at the preset, while a flow computer calculates corrected volume from meter and sensor inputs. Many terminal controllers combine both roles, but a custody transfer point may still use a separate flow computer.

How does a batch controller communicate with the TAS?

A batch controller communicates with the TAS over a serial or Ethernet link, often using Modbus or a vendor protocol. The TAS sends the preset and start command, and reads back the batch result and totalizers.

What causes a volume overrun at the loading bay?

Overrun is usually caused by a slow valve, an outdated after-run setting or pressure changes when several bays load at once. Pulse noise on the meter cable is a less common cause.

Can one batch controller serve several loading arms?

Yes, many terminal-grade controllers handle more than one meter or arm, and some blend products. The Emerson DL8000, for example, supports sequential and ratio blending of up to four products.

Does a batch controller correct volume for temperature?

Yes, when it has a temperature input and the compensation function is enabled. The Endress+Hauser RA33 converts mineral oil volume to 15 °C using ASTM D1250-04.

Sources and further reading

  1. Technical Information RA33 Batch Controller (TI00163K) (opens in a new tab)Endress+Hauser · bdih-download.endress.com ·
  2. DL8000 Preset Controller (opens in a new tab)Emerson · emerson.com
  3. OIML R 117-1:2019 Dynamic measuring systems for liquids other than water, Part 1 (opens in a new tab)International Organization of Legal Metrology (OIML) · oiml.org · 2019
  4. API MPMS Chapter 6.2A: Metering Assemblies, Truck and Rail Loading and Unloading Measurement Systems (opens in a new tab)American Petroleum Institute (listing by BSI) · knowledge.bsigroup.com · 2021
  5. CATALYST CT-BC Batch Controller Interface (opens in a new tab)PT Citia Engineering Indonesia · citia-engineering.com
  6. Pertamina Pulau Layang: aviation fuel metering integration (opens in a new tab)PT Citia Engineering Indonesia · citia-engineering.com · 2025
  7. Cover photo by Kanon Loading Equipment B.V, CC BY-SA 3.0 (cropped and colour graded) (opens in a new tab)Wikimedia Commons · commons.wikimedia.org

Next step

Prepare the technical discussion for your facility.

Bring the equipment list, diagrams and symptoms you have. The Citia team helps map the next step.

Related products and solutions

Keep reading