Which coding data should come from ERP, MES, PLC or the printer?
Coding data architecture

Which coding data should come from ERP, MES, PLC or the printer?

ERP or MES should normally own authorised product and production data, the PLC should control the physical line sequence, and the printer should execute an approved message. The exact boundary depends on the existing systems and printer interface, so ownership must be documented field by field.

Direct answers for the coding decision

Use the answers as a project checklist, then confirm model suitability with production samples and the real line conditions.

Which system should own dates, batch numbers and product codes?

Each field should have one authoritative source. Product identifiers and shelf-life rules may come from controlled business or production master data; a batch may come from the manufacturing order; and the PLC may associate that authorised data with the physical line state. The printer should not create a competing version unless that behaviour is deliberately specified.

Build a field schedule that names the source, calculation rule, permitted edit, validation and destination for every variable item.

What should the printer store locally?

The printer may store approved templates, fonts, logos, communication settings and controlled jobs needed for normal operation or recovery. Local storage should not allow an obsolete product or unrestricted variable field to bypass the authorised workflow.

Define which jobs remain available, how they are versioned, who may edit them and how the current job is confirmed at start-up and after a communications interruption.

When should the PLC control message selection?

PLC-controlled selection is useful when the packaging machine already owns the active product recipe and can pass an unambiguous job identifier to the printer. It can reduce manual selection, but only if recipe mapping, handshaking, fault states and recovery are validated.

The PLC should not be assumed to own commercial or quality rules that belong in another system. Keep product data ownership separate from the signal that tells the physical line which approved job to run.

What should happen if the network or database connection is lost?

The system should enter a predefined state: stop or hold production, continue only with an already authorised job under controlled conditions, or require a verified manual recovery. Retaining the previous message without an alarm can create stale data, while automatically clearing it can also interrupt safe recovery.

Challenge communications loss during FAT or SAT and confirm the line permission, operator message, affected product boundary, reconnection and first released pack.

How should operators be prevented from editing controlled fields?

Use role-based access, locked templates, validated input ranges, barcode or recipe selection and clear separation between authorised and free-text fields where supported by the selected systems. The interface should show the values that matter to the operator without granting unnecessary editing rights.

Access control should be tested with each user role. A password policy alone is not enough if the message template still exposes a critical field through another workflow.

What evidence should be retained for data-interface approval?

Retain the field and signal schedule, system ownership, approved message versions, mapping tables, user roles, communication settings, normal changeover results, loss-of-data challenges, recovery sequence and examples of the final printed pack. This evidence links software behaviour to the physical coding result.

Use the integration guide for signal detail and the evidence guide for controlled handover.

A practical ownership split

Record the condition and the evidence needed to prove the final production result.

AreaInformation to defineEvidence to retain
ERP or MESAuthorised product, order, batch, date rule or master data where the business already controls it.Field values and rules remain consistent with the released production instruction.
PLC or line controllerRecipe state, product tracking, trigger, encoder, permissives, fault response and reject sequence.The right physical pack is associated with the right authorised job.
Printer or coding controllerApproved layout, rendering, local print execution and supported device status.The complete message is printed inside the qualified operating window.
Inspection or record systemPresence, comparison, decode or verification result and product disposition where required.Good, failed, held and uncertain outcomes are distinguishable and reconcilable.

Turn this answer into an application review

Provide the current system architecture, variable fields, recipe flow, line sequence and required fault behaviour for an interface review.

Contact Lancing
Contact us