All blog topics
MES Practical Insights

Connecting machines to an MES: define acceptance criteria before rollout

A technically functioning connection to a machine does not guarantee reliable MES data. Acceptance requires signal meanings, timestamps and production order allocation to be correct. This article shows how companies can turn these requirements into testable criteria for the pilot machine and subsequent rollout.

MES8 min readUpdated 10 November 2026Softwarecheck Editorial Team

Define the acceptance scope across the machine, interface and MES

Acceptance testing for a machine connection should cover a clearly defined processing chain: from the signal provided by the machine, through the gateway, driver or integration service, to its agreed use in the MES. A successful connection test merely demonstrates that systems can communicate with each other. It does not prove that the required information reaches the intended MES process. The acceptance scope for each pilot machine must therefore specify which data sources, transmission paths and MES functions will actually be tested. The direction of data flow must also be documented: data collection alone does not include sending order parameters back to the machine.

At each handover point, deliverables and responsibilities must be clearly distinguished. Who makes the data available in the controller, who configures the interface adapter, and who handles processing in the MES? The components involved, together with their software versions and configurations, must be documented. If a fault occurs, it must be possible to identify the handover point at which the agreed functionality ends or fails to materialise. Testing an interface separately does not replace evidence that the entire agreed chain works.

Explicit exclusions are equally important. Changes to machine logic, safety functions or higher-level ERP processes must not silently become part of interface acceptance. If such changes are prerequisites for the connection, they need a separate test assignment and a traceable link to MES acceptance. This allows the pilot machine to be tested within a sound framework, without treating successful data transmission as approval for untested machine functions.

  • Define the test boundaries: specify the machine, data source and target process in the MES rather than referring broadly to a “machine connection”.
  • Record the components: controller, gateway, interface service and MES, including relevant versions and configurations.
  • Describe the handover points: the functionality provided and technical responsibility for each component involved.
  • Document prerequisites and exclusions, particularly controller changes, write-back functions and connected systems.

Clearly define the operational meaning of signals and quantity counting

For every machine signal received, it must be clear which operational conclusions the MES may draw from it. A “cycle complete” signal, for example, does not automatically indicate a completed good part: depending on the process, it may represent several parts, an intermediate product or simply a completed processing step. Likewise, “machine running” is not unambiguous evidence of productive manufacturing without further definition. Acceptance therefore requires an agreed signal catalogue specifying each signal's meaning, unit, trigger condition and permitted interpretation. Production and automation engineering teams must jointly confirm these definitions; a description of variable names alone is not enough.

For quantity signals, the first step is to distinguish whether the machine supplies individual events, quantities per cycle or a cumulative counter reading. The next step is to define how total, good and scrap quantities are derived from these. For multi-cavity tooling, the conversion must not assume a constant number of parts without verification if individual cavities can be disabled. Rules are also needed for setup parts, test samples and rework: a reprocessed part must not appear as an additional unit produced simply because it passes through another machine cycle. If quality is still unknown at the counting point, the quantity must initially be recorded without classifying it as good parts.

These rules become testable through defined production scenarios with independently established reference quantities, for example based on a documented part count. For each scenario, compare the machine display, the transmitted signal value and the MES quantity derived using the agreed operational rules. What matters is not that every display shows the same number, but that any differences can be fully explained by the agreed counting logic. If a signal cannot distinguish good parts from scrap, acceptance testing must not assume that it can; additional information appropriate to that purpose is required.

  • Define the counting point: after which processing step is a part recorded towards the production quantity?
  • Specify conversions: which unit does the machine provide, and how are cycles, cavities or packs converted into parts?
  • Distinguish quantity types: which information determines whether a quantity is classified as good parts, scrap or not yet assessed?
  • Define special cases: how do setup parts, test samples and rework affect the respective quantity totals?

Test timestamps and order allocation against boundary cases

Time-based allocation requires a clear definition of which timestamp is authoritative for operational purposes: when the event occurs at the machine, when it reaches the interface service, or when it is processed in the MES. These times may differ and must not silently be treated as equivalent. Acceptance testing must therefore demonstrate which clock provides the event time, how time zones and daylight saving time are handled, and whether clock synchronisation is monitored. The permissible time deviation depends on the process: it must be small enough for events at order and shift boundaries to be allocated unambiguously.

An order change during an active machine cycle is particularly critical. If a workpiece starts under order A and finishes after order B has been activated, a binding rule is needed for its allocation. Depending on the production process, the order assignment at cycle start or a workpiece identifier carried through the process may be decisive; the order active when the message arrives is not always a sufficient criterion. The acceptance test should deliberately trigger the change within a cycle and immediately before and after its completion. For each scenario, define in advance which order the event must be assigned to.

Events without a clearly valid order also belong in this area of testing, for example during setup or between the end of one order and the release of the next. The MES must not silently assign them to the last active order or an order already preselected. Testing must also cover how the machine distinguishes parallel orders, multiple processing stations or separate workpiece carriers, where these operating modes are intended. Ultimately, allocation must be traceable using the event time, order assignment and, where applicable, the station or workpiece identifier.

  • Order change during an active cycle: allocation follows the operational rule agreed in advance.
  • Identical timestamps for an order change and cycle completion: a defined sequence or additional identifier resolves the ambiguity.
  • Shift changes, midnight and clock changes: event sequence and order assignment remain clearly traceable.
  • No released order: the event remains visibly unassigned rather than automatically receiving an inappropriate order allocation.

Deliberately test missing, duplicate and delayed events

Fault scenarios should be introduced under controlled conditions during the pilot rather than waiting for random disruptions. A recorded event sequence with a known expected outcome provides a suitable reference: individual messages can be removed, identical messages resent or messages deliberately held back. Each test should initially introduce only one type of fault. This makes it possible to see whether the machine connection handles the fault, merely makes it visible, or passes it unnoticed into MES processing. These interventions must take place in a test environment or through an approved test adapter, not through uncontrolled changes to the live machine controller.

For missing events, the key question is which gaps the interface can actually detect. Sequential numbers can reveal omitted messages; a heartbeat, by contrast, confirms only availability, not the completeness of the payload data. Without suitable evidence, the MES must not treat an incomplete dataset as demonstrably complete. For duplicates, repeating the same event must not produce another operational effect. At the same time, two genuinely distinct events with identical content must not be merged accidentally; this requires a stable event identity or an operationally appropriate alternative rule.

Delayed messages should be introduced both individually and as a batch of backlogged events. Testing must establish whether the MES processes older events retrospectively in a controlled manner, flags them as unresolved or rejects them with a stated reason. A delayed state signal, for example, must not overwrite the current machine state solely because it was received later. The test must also show whether downstream calculations and exports correctly account for retrospective processing: removing a duplicate from the event store is not enough if it has already triggered an additional transaction.

  • Gap test: remove a message from the reference sequence and check whether the gap is detected and the affected data is flagged accordingly.
  • Duplicate test: deliver the same event multiple times, including after restarting the processing service; no additional transaction must be recorded.
  • Distinction test: send two separate events with identical payloads; both must be retained despite duplicate protection.
  • Late-arrival test: deliver older events after newer ones and check whether the current state, calculations and subsequent actions follow the defined processing rule.

Define test evidence, error tolerances and approval responsibilities

Acceptance is only robust when the result can be verified independently of the team that carried out the tests. For each test case, the test report should therefore contain the approved expected result, the actual observed finding and the supporting evidence. This includes the software and configuration version used, along with references to relevant log extracts or MES analyses. A screenshot alone is not sufficient if it shows neither the test conditions nor the assessment. Open deviations must receive a unique identifier so that their resolution and retesting can be tracked.

Error tolerances must be defined and justified on operational grounds before testing begins. They describe not only a permissible deviation but also its reference basis, the period under review and the assessment method. An average, for example, must not conceal individual instances where a limit has been exceeded. Which findings block approval depends on their consequences for production, traceability and downstream decisions. Mandatory requirements must not be weakened retrospectively simply because the pilot fails to meet them. A temporary exception requires a documented risk assessment, effective compensating measures and a binding retest date.

Approval should assess operational suitability and technical readiness separately. Production is responsible for the usability of the results; automation and IT teams confirm the technical evidence agreed for their respective areas. Quality managers must be involved wherever quality-related requirements are affected. The person responsible for the final rollout decision must be named in advance. For conditional approval, outstanding defects, owners, deadlines and stop conditions must be included in the same decision record. This makes clear which risks have been consciously accepted and which unresolved issues continue to block further rollout.

  • Store test evidence together with the test case ID, version details, expected-versus-actual assessment and traceable supporting records.
  • Distinguish faults that block acceptance from deviations that can be tolerated temporarily, and justify the classification on operational grounds.
  • For each exception, document the compensating measure, responsible person, expiry date and required retest.
  • After correcting faults, repeat not only the affected test case but also any previously passed tests that may have been affected.

Apply acceptance criteria to further machines and keep them up to date

For rollout, pilot acceptance should produce a reusable template with an explicitly limited scope. Machines can be grouped according to how they actually provide data: controller version, interface protocol and operating logic are more informative than manufacturer or model series alone. The template separates common requirements from machine-specific additions. Before each reuse, check whether the next machine belongs to the defined group. Deviations, such as retrofitted sensors or different automation, require targeted additional tests rather than unchanged adoption of the pilot approval.

The criteria remain reliable over time only if they are version-controlled alongside the technical configuration. Changes to controller software, interface configuration or MES processing should therefore trigger a documented impact assessment: which previous assumptions remain valid, and which tests need to be repeated? Findings from live operation also belong in the template. If a previously unconsidered special case emerges, the review must cover not just the affected machine but the entire group with comparable connections. This allows the acceptance catalogue to evolve in a controlled way without requiring full reacceptance after every minor change.

  • For each machine group, record the shared prerequisites and explicitly excluded variants in the acceptance template.
  • For every connected machine, document which template version and machine-specific additions apply.
  • Assess technical changes by their impact and use this to determine the scope of retesting.
  • Apply new operational findings to comparable connections and update the affected templates with a clear audit trail.

Related reading