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.
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.
| Method | How it works | Best for | Watch out for |
|---|---|---|---|
| Database table | Weighing software writes a row; your system polls or triggers on insert | Systems on the same network with a shared database | Schema changes break it silently; agree the table contract in writing |
| Web Service / REST | Weighing software posts a record to an endpoint | Cloud platforms, remote ERPs | Network dependency; needs queuing so a record is not lost when the link is down |
| XML file | A file is written to a folder and picked up by the other system | Older ERPs, batch integration | Folder monitoring is fragile; someone must own the error folder |
| Socket / serial string | Weight is streamed as text, parsed by the receiving system | Real-time display, PLC and DCS integration | No 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.
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.
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.
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.
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.
Yes — commonly the ERP for the commercial record and a separate platform for management reporting. Each push needs its own failure handling.
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.
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.
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.