Home / Insights / Business Operations and Integration

Business Operations and Integration

MES and ERP Integration for Small and Mid-Size Manufacturers: Patterns That Work

Most smaller manufacturers already have an ERP and some form of shop-floor system. The trouble starts in the gap between them: rekeyed work orders, late confirmations and stock figures nobody trusts. This guide sets out the integration patterns that hold up in plants without a large IT department.

TopicsBusiness Operations and IntegrationArchitecture and Modernization

Key takeaways

  • Decide the system of record for each data object (items, routings, work orders, confirmations, stock, quality holds) before choosing any technology.
  • For most small and mid-size plants, a scheduled API or middleware integration with idempotent messages beats real-time point-to-point links on both cost and reliability.
  • Use ISA-95’s Level 3 and Level 4 split as a shared vocabulary between operations and IT, not as a heavyweight standard to implement in full.
  • Design for failure from day one: duplicate messages, offline shop-floor terminals and mismatched units of measure cause most integration incidents.
  • Run a daily reconciliation report between MES and ERP; it is the cheapest control you can build and the one auditors and finance teams value most.

A typical scenario in a 50 to 300-person manufacturer: the ERP holds customers, items, bills of materials and costing; production runs on a mix of spreadsheets, a whiteboard and a recently purchased MES or a custom shop-floor app. Planners export work orders, supervisors key in completions at the end of the shift, and finance closes the month with manual stock adjustments. Each step works in isolation. Together they make inventory, lead times and product costs unreliable.

This article is for operations directors, IT managers and owners of smaller plants who need the two systems to talk without commissioning an enterprise-scale programme. It assumes you already understand what an MES does; if not, start with our overview of manufacturing execution systems, their architecture and implementation. Here the focus is narrower: the interface between MES and ERP, the patterns that suit smaller teams, and the design decisions that determine whether the link is trusted or quietly bypassed.

It reflects the approach we take in manufacturing software projects, where ERP and machine integrations are scoped as a separate technical assessment because no two plants expose data the same way.

What should flow between MES and ERP, and who owns it?

The most useful framing comes from ISA-95, published by the International Society of Automation and also adopted as IEC 62264. The ISA-95 standard defines a five-level functional hierarchy and concentrates on the interface between Level 3, manufacturing operations management (MES and SCADA), and Level 4, business planning and logistics (ERP). You do not need to implement the standard to benefit from it. Its split of responsibilities gives operations and IT a common language.

The principle: one owner per data object

Integration failures usually trace back to two systems believing they own the same record. Agree the owner first, then the direction of flow.

Data objectUsual system of recordDirectionTypical frequency
Items, bills of materials, routingsERPERP to MESOn change, or nightly
Production orders (planned and released)ERPERP to MESOn release
Detailed sequencing and machine allocationMESStays in MESContinuous
Operation confirmations (good, scrap, time)MESMES to ERPPer operation or per shift
Material consumption and backflushMES captures, ERP postsMES to ERPPer operation or batch
Finished goods receiptsERP posts on MES eventMES to ERPOn completion
Quality results and holdsMES or QMSMES to ERP (status only)On inspection result
Inventory balancesERPERP to MES (read-only)On demand

What stays out of the interface

Machine signals, cycle-by-cycle sensor values and operator screens belong at Levels 2 and 3. Pushing them into the ERP bloats transactions and slows posting. The ERP needs summarised business events: an operation completed, so many units good, so much material consumed, a batch placed on hold.

Action: fill in this table for your own plant with planners, supervisors and finance in the same room. Every disagreement you surface now is an incident avoided later.

Which integration patterns are available?

Five patterns cover almost every small and mid-size plant we see. They differ mainly in who carries the complexity: your team, a vendor, or a piece of middleware.

1. ERP-native MES module

Some ERPs offer a production or shop-floor module. Integration is built in, but functionality is often thinner than a dedicated MES, particularly for quality capture, offline terminals and machine connectivity.

2. Direct API integration (point to point)

The MES calls the ERP’s APIs, or vice versa. Quick to start and cheap for one or two flows, but each new flow adds coupling, and error handling is often an afterthought. Our guide to integrating with SAP, Odoo and NetSuite covers the API characteristics of common ERPs.

3. Scheduled file or batch exchange

Exports and imports via CSV, XML or staging tables on a schedule. Unfashionable, but robust, easy to audit and sometimes the only option with older on-premises ERPs.

4. Integration layer (middleware or iPaaS)

A small service or integration platform sits between systems, transforming, queueing and retrying messages. It adds one more component to run, but centralises mapping, logging and monitoring.

5. Event-driven with a message broker

Systems publish events to a broker and subscribers react. On the shop floor, MQTT is common: the MQTT project describes it as a lightweight publish/subscribe OASIS standard used in manufacturing, with three quality-of-service levels and persistent sessions for unreliable networks. For machine-level data, OPC UA provides structured information models and security; the OPC Foundation lists encrypted sessions, message signing, certificate-based application authentication and audit logging among its features.

PatternUpfront effortRunning effortLatencyBest when
ERP-native moduleLowLowNear real timeSimple routings, limited quality or machine needs
Direct APILow to mediumRises with each flowReal timeOne or two flows, modern ERP APIs
File or batchLowLow to mediumMinutes to hoursOlder ERP, tolerance for shift-level posting
Integration layerMediumMedium, but predictableSeconds to minutesThree or more flows, several systems
Event-driven brokerMedium to highMedium; needs skillsSub-second to secondsMany machines and consumers, multi-site

Action: list which patterns your ERP and MES actually support today (APIs, webhooks, file import, database access) before you fall in love with an architecture.

How do you choose the right pattern for your plant?

For smaller manufacturers the right answer is usually the simplest pattern that meets the business latency requirement, with a clear path to grow. Real-time is rarely the true requirement; trustworthy data by the time someone acts on it usually is.

Questions that drive the choice

  1. How quickly does someone act on the data? If planners replan once per shift, shift-level confirmations are sufficient. If you run kanban replenishment from consumption, minutes matter.
  2. How many systems and flows will exist in two years? Two systems and three flows rarely justify a broker. Add a WMS, a QMS, a customer portal and a second plant, and an integration layer pays for itself.
  3. What does your ERP expose? A documented REST API, a SOAP interface, flat-file import or nothing but database tables all point to different patterns.
  4. Who will support it at 2 a.m.? If you have one IT generalist, choose something they can monitor and restart without a specialist.
  5. What happens when the network drops? Shop-floor terminals must keep working; the pattern must buffer and replay.
Plant profile (illustrative)Suggested starting patternGrowth path
Single site, 60 staff, older on-premises ERP, shift-based reportingScheduled file exchange with validation and a reconciliation reportMove to an integration layer when the ERP is upgraded
Single site, 150 staff, cloud ERP with REST API, new MESSmall integration service with a queue, calling ERP APIsAdd machine data via OPC UA gateway later
Two sites, 300 staff, ERP plus WMS plus QMSIntegration layer with event publishing for production eventsIntroduce a broker for machine and IoT data

For example, a 120-person metal fabrication shop might start by sending released work orders from its ERP to a tablet-based MES every 15 minutes and posting confirmations back in batches, with a nightly reconciliation. That design is modest, but it removes rekeying and gives finance accurate work-in-progress without a large platform investment.

Action: write down the latency each flow really needs, in minutes, and let that number, not vendor demos, pick the pattern.

How should the interface itself be designed?

The pattern is the plumbing. The interface design is what determines whether the data is right.

Make every message safe to receive twice

Networks fail, retries happen and terminals resend. The Idempotent Receiver pattern from Enterprise Integration Patterns describes the two remedies: detect and discard duplicates explicitly, or define messages so that processing them again changes nothing. In practice, give every confirmation a unique ID generated at source and have the receiving side reject IDs it has already posted. A duplicated scrap confirmation that posts twice is a stock error someone will chase for days.

Agree identifiers and units

  • Identifiers: work order numbers, operation numbers, item codes, machine and work-centre IDs must map one to one. ISA-95 Part 7 exists specifically for mapping equivalent identifiers across domains, which tells you how common this problem is.
  • Units of measure: kilograms in the MES and tonnes in the ERP, or pieces against boxes of 50, cause silent errors. Convert in one place only.
  • Time zones and shift dates: a night shift that crosses midnight can post to the wrong accounting day. Define the production date rule explicitly.

Model state changes, not just quantities

Work orders move through states: released, started, partially confirmed, completed, closed, cancelled. Changes made in the ERP after release (quantity, due date, routing) must either be blocked or propagated with clear rules. Decide what happens if a planner changes a quantity after the shop floor has started.

Handle quality holds deliberately

When an inspection fails, the MES should send a status event that blocks the affected batch or lot in the ERP so it cannot be shipped or consumed. Keep the detailed inspection data in the MES or QMS; send only what the ERP needs to act on.

Buffer at the edge

Shop-floor applications should queue confirmations locally when connectivity drops and replay them in order once it returns, relying on idempotency to make replays safe.

Action: produce a one-page interface specification per flow covering trigger, payload fields, identifiers, units, idempotency key, error handling and owner. If you cannot fill it in, the flow is not ready to build.

How do you implement it step by step?

A staged implementation keeps risk low and lets the plant gain confidence before relying on the link.

  1. Clean master data first. Align item codes, routings and work centres. Integration will expose every inconsistency, so fix them before go-live rather than during.
  2. Start with one inbound flow. Send released work orders from ERP to MES. It is low risk because nothing posts back to finance yet.
  3. Add confirmations in shadow mode. The MES sends confirmations, but they are compared with manual entries for two to four weeks (illustrative) rather than posted.
  4. Switch confirmations live for one line or cell. Keep the old process available for rollback.
  5. Add material consumption and goods receipts. These affect stock valuation, so involve finance in testing.
  6. Add quality holds. Test blocking and release paths with real inspection scenarios.
  7. Roll out line by line, with a cutover rehearsal for each. Our article on pilots, UAT waves and cutover rehearsals describes how to structure those waves.
  8. Introduce reconciliation and monitoring before the last line goes live, not after.

Testing that catches real problems

  • Duplicate messages and out-of-order delivery.
  • Network loss during a shift, followed by replay.
  • ERP unavailable during month-end close.
  • Work order changed or cancelled after production has started.
  • Partial confirmations, rework and scrap at different operations.
  • Unit-of-measure conversions at boundary quantities.

Action: agree the shadow-mode exit criteria (for example, zero unexplained differences for ten consecutive shifts) before you start, so the go-live decision is not made on gut feel.

What are the risks, costs and security considerations?

Where the cost really sits

The software licence or build cost is often the smaller part. The larger, less visible costs are master-data clean-up, process change on the shop floor, testing with real scenarios and the ongoing support of the interface. Budget explicitly for each, and for an owner who monitors the integration after the project team moves on.

Common failure modes

Failure modeSymptomPrevention
Unclear ownershipBoth systems edit the same record; values flipSystem-of-record table signed off by operations and finance
Silent failuresMessages rejected but nobody notices for daysAlerting on errors and on missing expected messages
Duplicate postingsStock or scrap counted twiceIdempotency keys generated at source
Over-integrationERP slowed by machine-level dataSend business events only; keep telemetry at Levels 2 and 3
Workarounds returnSupervisors revert to spreadsheetsFast, offline-capable shop-floor screens and visible error handling

Operational technology security

Connecting ERP (usually on the corporate network or in the cloud) to MES and machines creates a path between IT and OT networks. ISA-95 builds on the Purdue model for network segmentation, and that principle should guide the design: keep machines and controllers on segmented networks, broker data through a controlled layer rather than opening direct connections, and use authenticated, encrypted protocols such as OPC UA with certificate-based authentication. Never expose PLCs directly to the ERP or the internet.

Reconciliation as a standing control

A daily report comparing ERP and MES totals for completed quantities, scrap, consumption and open orders catches drift early. It also gives finance a reason to trust the integration rather than reverting to manual adjustments.

Action: name the person who will look at integration alerts and the reconciliation report every day, and give them the authority to stop posting if numbers diverge.

Checklist: is your MES-ERP integration ready?

  1. A signed-off system-of-record table exists for every shared data object.
  2. Each flow has a documented latency requirement in minutes.
  3. The chosen pattern matches what both systems actually expose.
  4. Every message carries a unique ID and receivers reject duplicates.
  5. Identifiers, units of measure and production-date rules are agreed and mapped in one place.
  6. Work order changes after release follow written rules.
  7. Shop-floor applications buffer offline and replay safely.
  8. Quality holds block stock in the ERP and have a tested release path.
  9. Machines and controllers remain on segmented networks with no direct ERP access.
  10. Alerting covers both errors and missing expected messages.
  11. A daily reconciliation report runs and has a named owner.
  12. Shadow-mode exit criteria are defined before go-live.

If you are also considering assistants for operators on the line, our earlier article on generative AI on the factory floor explains why reliable MES data is a precondition for those tools to be useful.

Action: score your current or planned integration against this list; anything you cannot tick becomes a line item in the project plan.

Frequently asked questions

Do we need a full MES before integrating with the ERP?

No. Many smaller plants start with a focused shop-floor application for work orders, confirmations and quality checks, integrated with the ERP. The interface principles are the same whether the shop-floor system is a commercial MES or a custom application.

Is real-time integration necessary?

Usually not. Most planning and finance decisions work well with confirmations posted every few minutes or per shift. Real-time links add complexity and cost; choose them only where someone genuinely acts on the data within minutes, such as consumption-driven replenishment.

Should we use the ERP vendor’s production module instead of a separate MES?

If your routings are simple and you have limited needs for quality capture, offline terminals or machine connectivity, the native module can be the lowest-risk option. Where those needs are significant, a dedicated MES or custom application with a well-designed interface usually serves the shop floor better.

How long does a typical MES-ERP integration take?

It depends on master-data quality, the ERP’s interfaces and the number of flows. A single inbound work-order flow can be live in weeks; confirmations, consumption and quality holds with shadow-mode testing usually take several months across all lines. A short technical assessment gives a far better estimate than a generic figure.

Can we connect machines directly to the ERP?

We advise against it. Machine data belongs at the supervisory and operations levels. Use a gateway or MES to summarise signals into business events, keep controllers on segmented networks and send only what the ERP needs, such as completed quantities and downtime summaries.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. International Society of Automation: ISA-95 Standard (IEC 62264) — accessed 9 November 2026. Five-level hierarchy, Level 3 and Level 4 interface focus, Part 7 alias service and Purdue model foundation.
  2. OPC Foundation: OPC Unified Architecture — accessed 9 November 2026. OPC UA security features and information modelling for machine connectivity.
  3. MQTT.org: MQTT, the standard for IoT messaging — accessed 9 November 2026. MQTT as a lightweight OASIS publish/subscribe standard with QoS levels and persistent sessions.
  4. Enterprise Integration Patterns: Idempotent Receiver — accessed 9 November 2026. Approaches for handling duplicate messages safely.

Is the gap between your ERP and shop floor costing you accurate stock and costs?

Share your ERP, current shop-floor tools and the flows you want to connect. We will propose a pattern and a staged plan sized for your plant.