Controls, data and cyber security

OPC UA and PackML for Packaging Line Integration

Use PackML machine states and OPC UA data models to create consistent line interfaces, production data and maintainable integration requirements.

Updated 1 September 2026Evidence-led production guidance7–10 minute read

Direct answer

Define the operational state model, commands, modes, tags, ownership and exception behaviour before choosing a protocol. PackML can provide consistent machine states and interfaces; OPC UA can expose structured machine information securely to line and supervisory systems.

Why this matters

A network connection alone does not create useful integration. Data meaning, timing, quality, authority and fail-safe behaviour must be agreed between machine suppliers and the site.

Decision table

Interface layerDefineExample
Machine stateConsistent modes and statesExecute, stopped, held or aborted
Line handshakeReady, blocked, starved and fault ownershipControlled product flow
Production dataCounts, speed, rejects and reason codesOEE and diagnosis
RecipesParameters, version and accessRepeatable changeover
SecurityAccounts, certificates, ports and update ownershipManaged OT connection

Information to collect

  • Create a tag and state responsibility matrix.
  • Agree which controller owns each command.
  • Define timestamp and count boundaries.
  • Name communication-loss behaviour.
  • Separate production data from safety functions.
  • Plan certificates, accounts, backups and change control.

Practical method

  1. 1

    Use one common machine-state convention.

  2. 2

    Map data to business questions before collecting it.

  3. 3

    Test normal and abnormal handshakes.

  4. 4

    Validate time synchronisation and counter reconciliation.

  5. 5

    Document the final interface after commissioning.

Common mistakes to avoid

  • Assuming identical tag names mean identical meaning.
  • Letting supervisory systems write uncontrolled recipe values.
  • Using network status as a safety function.
  • Collecting every tag without purpose.
  • Commissioning interfaces without fault scenarios.

Questions people also ask

What is PackML?

PackML is a common operational model intended to make machine states and interfaces more consistent across production equipment.

What is OPC UA used for?

It provides a structured framework for exposing and exchanging machine information.

Do all machines need the same PLC?

No, but interfaces, data meaning, security and fault behaviour must be compatible and documented.

Can OPC UA calculate OEE?

It can supply structured data; OEE still depends on agreed boundaries, definitions and business logic.

Official and primary sources

These references support the regulated, standards-led or security points in this guide. Check the current source before making a project decision.

Relevant machinery routes

Continue from the requirement to the equipment

Use the specialist route that matches the product, pack and process. Final suitability requires representative samples, output targets and site information.

Ask a production question