Skip to main content
News & Technical Guides

Connecting a Truck Scale to ERP, WMS or a Cloud Platform

Database table, Web Service, XML or socket: the four practical ways weight leaves a scale, what each costs to maintain, and the questions to ask before you buy.

2026-11-11

The most common integration failure is not technical. It is that nobody wrote down which system owns which number. Before choosing a protocol, decide who is authoritative for weight, who is authoritative for the order, and what happens when the two disagree.

The four practical interfaces

MethodHow it worksBest forWatch out for
Database tableWeighing software writes a row; your system polls or triggers on insertSystems on the same network with a shared databaseSchema changes break it silently; agree the table contract in writing
Web Service / RESTWeighing software posts a record to an endpointCloud platforms, remote ERPsNetwork dependency; needs queuing so a record is not lost when the link is down
XML fileA file is written to a folder and picked up by the other systemOlder ERPs, batch integrationFolder monitoring is fragile; someone must own the error folder
Socket / serial stringWeight is streamed as text, parsed by the receiving systemReal-time display, PLC and DCS integrationNo delivery guarantee; parsing must be defensive

For industrial control — a DCS or PLC that needs weight directly — Modbus and 4–20 mA outputs are also available from the indicator. That is a different kind of integration: it carries weight, not transactions.

What has to be agreed before coding

  1. The record. Exactly which fields, in what format, with what units. Weight in kilograms or tonnes; timestamps in which timezone; plate as string with or without spaces.
  2. Ownership. Which system creates the transaction, and which one may modify it. Two systems that both think they own it will disagree.
  3. Failure behaviour. When the link is down, records queue locally and replay. The receiving system must tolerate a burst of old records arriving at once.
  4. Duplicates. A unique transaction ID, and an idempotent receiver. Without this you will get double entries, usually at month-end.
  5. Corrections. How a weight is corrected after the fact, and whether the correction propagates.

Why local-first matters

If the weighing software depends on a live connection to the ERP to complete a transaction, then an ERP outage stops the yard. The architecture we use keeps the transaction local and treats the ERP as a downstream consumer: the record is written at the scale, then pushed. If the push fails, it is retried. The yard keeps working.

This is also why a cloud-hosted weighing platform should never be the only place a record exists. Local database first, cloud second — the same principle as in our IoT weighing system.

What integration usually costs

It depends entirely on the other system. A database table contract is often a day of work. A Web Service against a documented API is similar. An undocumented ERP with a proprietary file format can take weeks, and the cost is on the ERP side, not on the scale side. Ask for the interface specification before the quotation is finalised; a supplier who quotes integration without seeing it is guessing.

The failure modes nobody writes in the specification

Three integration failures recur across projects, and none of them is a protocol problem. The first is duplicated records: the sending side retries after a timeout, the receiving side has already accepted the first attempt, and nobody built an idempotency key. The symptom appears at month-end as doubled tonnage, which is exactly when it is most expensive to unpick.

The second is timezone. A record created at 23:40 local time and stored in UTC appears on the previous day's report, and the shift totals stop reconciling. Agree the timezone in the interface contract, and store it explicitly.

The third is silent schema drift: somebody adds a column to the table the integration reads, the receiving system's mapping breaks, and records stop arriving without an error anywhere. The mitigation is boring and effective — a daily count comparison between the two systems, alerting when they diverge.

Related: cloud and card systems, unattended operation.

The failure modes nobody writes in the specification

Three integration failures recur across projects, and none of them is a protocol problem. The first is duplicated records: the sending side retries after a timeout, the receiving side has already accepted the first attempt, and nobody built an idempotency key. The symptom appears at month-end as doubled tonnage, which is exactly when it is most expensive to unpick.

The second is timezone. A record created at 23:40 local time and stored in UTC appears on the previous day's report, and the shift totals stop reconciling. Agree the timezone in the interface contract, and store it explicitly.

The third is silent schema drift: somebody adds a column to the table the integration reads, the receiving system's mapping breaks, and records stop arriving without an error anywhere. The mitigation is boring and effective — a daily count comparison between the two systems, alerting when they diverge.

Related: cloud and card systems, unattended operation.

Frequently asked questions

Can the scale push to two systems at once?

Yes — commonly the ERP for the commercial record and a separate platform for management reporting. Each push needs its own failure handling.

What if our ERP has no API?

Then a database table or a file drop is the practical route. Both work; both need an owner on the ERP side who will maintain the contract.

Is cloud storage of weighing records acceptable for audit?

Usually, if you can export the records in a standard format and show they have not been altered. Ask for the export before you buy, and check the audit trail.

Do we need a separate server at the scale?

The industrial PC at the scale is the local server. A separate database server is only needed for multi-scale sites, where records from several scales are consolidated.

Interested in Our Products or Solutions?

Products