Skip to main content
Brands & ManufacturersPrinter Partners
GCC / EN:UAE/KSA/QA/KW/OM/BH
AIQR LogoFree GS1 QR codes

Factory & packaging line

How ERP, Printer, Scanner and Packaging Line Work Together

Who owns what on a serialized line: the ERP, line software, coder, camera, PLC and cloud platform, with a system-of-record table and common integration pitfalls.

Updated 6 min readintermediate

The short answer

On a serialized packaging line, each system should own one kind of truth. The ERP owns products, orders and (often) serial values. Line software owns what physically happened to each serial. The coder marks, the camera reads, the PLC moves and rejects, and cloud platforms add traceability and consumer services around the same identity. Problems start when two systems think they own the same fact.

  • Name a single system of record for each fact — serial values, physical status, carton contents, event history.
  • The ERP should not be in the line's real-time loop; line software bridges the two speeds.
  • Devices report what they did, not what is true about the product; software combines their reports into evidence.
  • Agree interfaces, failure behaviour and reconciliation rules before choosing hardware.

A serialized packaging line involves at least five kinds of system: an ERP, line software, one or more coders, cameras or barcode readers, and the line's own control system. Often there is a cloud platform too. Each is good at something different, and each is tempted to take on jobs that belong to another.

This guide sets out who should do what, which system is the record for which fact, and where integrations usually go wrong.

The cast of characters

The ERP (enterprise resource planning system) is the company's business backbone: products, GTINs, production orders, batches, stock and, in many serialization designs, the authority that issues serial numbers. It works at business speed — seconds to minutes are fine.

Line software (a line gateway or edge controller) lives on the factory network. It takes serials from the ERP, feeds the coder, tracks each pack, compares camera reads, decides rejects, records carton contents and reports results back. It works at line speed.

The coder prints variable data — including the serialized code — on each pack, and acknowledges each message it handles.

The camera or barcode reader images each pack after the coder and returns what it decoded.

The PLC (programmable logic controller) runs the machinery: conveyors, sensors, reject devices, stack lights. It handles machine timing and safety interlocks.

Label printers and packing stations create carton and pallet labels — often carrying an SSCC — and capture which items go into which carton.

A cloud platform (optional) builds services around the product identity: traceability views, partner data sharing, consumer pages, authentication checks, loyalty.

Who owns which fact

The most useful thing an integration team can produce is a table like this, agreed before any hardware is bought.

FactSystem of recordOthers may…
Product master and GTINERPRead
Production order, batch, expiryERP (or MES)Read
Serial values for an orderERP or serialization systemRead; line holds a local copy
Which serial went to which packLine softwareReport upstream
Printer handled the messageCoder (reported to line software)—
Code on pack decoded and matchedLine software (from camera result)Report upstream
Pack physically rejectedLine software (from confirmed reject signal)Report upstream
Carton and pallet contentsLine software, then ERP once registeredRead
Stock and serial status after productionERPRead
Shareable supply-chain event historyEvent repository (for example EPCIS-based)Query, subject to access rules
Consumer scan history and engagementCloud platformRead, as agreed

Two principles sit behind the table:

  1. One owner per fact. If both the ERP and line software can create serials from the same range, duplicates are only a matter of time.
  2. Devices report; software decides. The coder, camera and PLC each report what they did. Line software combines those reports into a decision about the pack. No single device knows the full truth.

How a single pack flows through them

  1. The ERP releases a production order and a block of serials for batch 25A117.
  2. Line software downloads the serials into its local pool.
  3. A sensor (via the PLC) signals a pack at the coder. Line software sends the next serial; the coder prints and acknowledges.
  4. The camera decodes the pack; line software compares it with the expected serial.
  5. On a mismatch or no-read, line software tells the PLC to reject; the PLC fires the reject device and a chute sensor confirms removal.
  6. Verified packs are packed. Line software records carton contents and has a carton label printed.
  7. Line software queues the carton registration and delivers it to the ERP.
  8. Optionally, event data — aggregation of packs into cartons, for instance — flows to a traceability repository or cloud platform.

The full station-by-station story is in the journey of a serialized product through a packaging line.

Two speeds, one bridge

The ERP and the line operate at very different speeds. The line needs answers every half-second; the ERP can take seconds and occasionally much longer. That is why line software exists as a bridge: it keeps time-critical work local and synchronises with the ERP in the background. We explain the reasons in why edge software matters on a packaging line.

ERP and EPCIS are not the same thing

Teams sometimes ask whether supply-chain event data replaces the ERP. It does not. The ERP manages business transactions and stock. EPCIS is a GS1 standard for capturing and sharing event data — what happened, when, where and why — between and within companies. They answer different questions and usually coexist. See EPCIS vs ERP.

Common integration pitfalls

  • Two serial authorities. The ERP issues serials, and someone also configures the coder's built-in counter. Duplicates follow.
  • ERP in the real-time loop. Every print waits for an ERP call. The line stops whenever the ERP is slow.
  • Silent identity changes. A new code format — for example, switching from a GS1 element string to a QR code carrying a GS1 Digital Link — is introduced at the coder without re-validating the camera, packing station and ERP mapping.
  • Unclear failure behaviour. Nobody has decided what the ERP should do when it receives a carton registration twice, or what line software should do when the ERP rejects one.
  • Assumed device compatibility. A coder or camera is chosen from a datasheet. Protocol, firmware, substrate, speed and reader behaviour all need testing on the actual line.

A worked example of ownership in practice

At Maison Ardent, a fictional perfume house, the ERP team wants carton registrations within a minute of carton closure. The line team wants production never to wait on the ERP. The agreed design:

  • the ERP issues serials per production order and is the record for serial values;
  • line software is the record for pack and carton facts until registration;
  • registrations are queued locally and delivered in the background, each with a stable registration ID the ERP uses to ignore duplicates;
  • if the ERP rejects a registration for a business reason, it becomes an exception on the supervisor's screen, not an automatic retry;
  • a daily reconciliation compares issued, packed, rejected and returned serials across both systems.

Nothing in this design is exotic. What makes it work is that every fact has an owner and every failure has a defined response. For the serial-level detail behind it, see what happens after an ERP creates a serial number, and for how cartons and pallets carry the hierarchy forward, how individual products become cartons and pallets.

Talk to us about your ERP and line integration

Frequently asked questions

Can the ERP talk directly to the printer?

Some setups do this for simple batch and expiry printing. For serialization, a direct link usually lacks pack tracking, camera comparison, reject handling and outage tolerance, so most designs put line software in between.

Who should own the SSCC for cartons and pallets?

Either the ERP or the line software can generate SSCCs, as long as only one system allocates from a given range. Some designs let the line generate them from a reserved block, because cartons are built at line speed and should not wait on the ERP.

Where does a MES fit?

A manufacturing execution system (MES), where present, often manages production orders, recipes and quality on the shop floor. It may sit between the ERP and line software, or take on some of the line-software responsibilities. The ownership principles stay the same.

Does the cloud platform need to be online for production?

It should not. Cloud services such as traceability portals or consumer experiences receive data after the fact. If a cloud outage stops the line, the architecture has put a non-critical system in the critical path.

Sources and further reading

Standards references last reviewed 1 October 2026.