Manufacturing Execution System June 17, 2026 12 min read

MES Integration Guide: Connecting to ERP, SCADA, and IoT

R
Railes Team
Industry Experts
MES Integration Guide: Connecting to ERP, SCADA, and IoT

Every minute your shop floor data sits trapped in a silo, you are flying blind. Work orders that do not sync with your ERP lead to overproduction. SCADA alarms that never reach your MES delay response times. IoT sensor streams that have no context produce noise, not insight.

A Manufacturing Execution System only delivers its full value when it is connected to the enterprise layer above it and the control layer below it. This guide explains exactly how those connections work: which data flows between systems, which protocols and architectures to use, and how to plan an integration project that does not derail your operations.

Whether you are evaluating MES software for the first time or leading an integration project at an existing plant, this guide gives you the technical and strategic foundation to move forward confidently.

What is MES integration?

MES integration is the process of connecting a Manufacturing Execution System to adjacent software and hardware layers, including ERP platforms, SCADA systems, PLCs, IIoT platforms, and data historians, so that production data flows in real time across the enterprise, eliminating manual re-entry, reducing latency, and enabling end-to-end traceability from raw material to finished goods.

Why MES integration matters

A standalone MES is a powerful tool. A connected MES is a competitive advantage. Here is why the difference matters:

  • Data re-entry errors cost manufacturers an estimated 1 to 3 percent of revenue annually through scrap, rework, and compliance failures.
  • Without ERP integration, production actuals rarely match planned quantities, leading to inaccurate inventory, missed delivery dates, and excess WIP.
  • Without SCADA integration, machine downtime events must be logged manually, if they are logged at all.
  • Without IoT integration, process parameters such as temperature, pressure, and speed are invisible to quality teams until a defect surfaces downstream.

The ISA-95 integration model explained

ISA-95 (also known as IEC 62264) is the international standard that defines the interface between enterprise and control systems. It establishes a five-level hierarchy from field devices (Level 0) up to business planning (Level 4), with MES sitting at Level 3, bridging the shop floor and the enterprise.

ISA-95 defines the data objects exchanged at each interface: work orders, production schedules, equipment status, material lots, quality results, and more. When your MES and ERP vendor both claim ISA-95 compliance, it means they have agreed on what data looks like, which dramatically simplifies integration.

Common integration pain points and what they cost

Before scoping any integration project, it helps to name the failure modes you are solving for:

Pain pointRoot causeBusiness impact
Duplicate work order entryMES and ERP not connected3 to 5 percent data entry error rate
Delayed downtime reportingMES and SCADA not linkedOEE understated by 5 to 15 percent
Missing quality traceabilityNo IoT parameter captureRecall scope expands tenfold
Inventory inaccuraciesNo real-time yield feedback to ERPSafety stock inflated 20 to 40 percent

Connecting MES to ERP

The MES to ERP integration is the most critical and most commonly requested connection in any manufacturing IT stack. ERP systems like SAP S/4HANA, Oracle Cloud Manufacturing, and Microsoft Dynamics 365 manage the business logic of production: planning, procurement, and finance. The MES manages execution. These two systems need to stay in constant sync.

What data lives in MES vs ERP

Originates in ERP, sent to MESOriginates in MES, sent to ERP
Production work ordersActual production quantities
Bill of materials (BOM)Material consumption actuals
Production schedulesLabor time and machine time
Material master dataQuality inspection results
Routing and operationsBatch and lot traceability records
Customer demand signalsWIP and inventory updates

Integration methods: REST API, middleware, and native connectors

There are three primary approaches to MES to ERP integration:

  • Direct REST API integration. Modern MES and ERP platforms expose REST APIs. Point-to-point API calls are the fastest to set up for simple workflows such as pushing work order completions. The downside is tight coupling: any ERP upgrade can break integrations.
  • Middleware and integration platforms (iPaaS). Platforms like MuleSoft, Dell Boomi, or Microsoft Azure Integration Services sit between MES and ERP, handling data transformation, routing, and error handling. This adds resilience and decouples the systems so that a system upgrade on one side does not break the other.
  • Native ERP connectors. Most major MES vendors offer certified connectors for SAP, Oracle, and Dynamics. These use pre-built data mappings certified by the ERP vendor and reduce implementation risk. They cost more upfront but often save 30 to 60 percent on integration labor.

Common pitfalls and how to avoid them

  • Master data misalignment. If your ERP has 12,000 material codes and your MES has 14,000, integration will fail silently. Conduct a master data audit before go-live.
  • Timing mismatches. ERP batch updates (nightly) and MES real-time events do not naturally align. Define which workflows require real-time sync vs batch, and build accordingly.
  • No error handling. An API call that fails silently is worse than one that fails loudly. Build retry logic, alerting, and a dead-letter queue for failed transactions.

Connecting MES to SCADA and PLCs

If ERP integration connects MES to the business, SCADA integration connects MES to the machine. SCADA systems (Supervisory Control and Data Acquisition) and PLCs (Programmable Logic Controllers) generate the real-time machine data, including speeds, temperatures, pressures, and alarms, that MES needs to track performance and quality.

MES vs SCADA: where the boundary lies

SCADA handles real-time supervisory control: monitoring machine states, issuing control commands, and managing alarms. It operates at millisecond to second latency. MES handles execution management: tracking production orders, logging operator activity, and managing genealogy. It operates at second to minute latency.

The integration layer between them is typically read-only from the MES perspective: MES reads machine states, cycle counts, and downtime events from SCADA, but does not issue control commands. This separation is a deliberate safety architecture that keeps MES out of the control loop and prevents business logic from interfering with safety systems.

OPC-UA and MQTT as integration protocols

Two protocols dominate MES to SCADA connectivity:

  • OPC Unified Architecture (OPC-UA) is the industrial interoperability standard for secure, reliable data exchange between SCADA, PLCs, historians, and MES. OPC-UA is vendor-neutral, supports rich data models, and includes built-in security. Most modern SCADA platforms such as Ignition, FactoryTalk, and WinCC, along with most MES vendors, support OPC-UA natively.
  • MQTT is a lightweight publish/subscribe protocol well suited to high-frequency, bandwidth-constrained data streams. MQTT brokers such as EMQX or HiveMQ aggregate device data and feed it to MES via a structured topic hierarchy. MQTT Sparkplug B extends MQTT with a defined payload format for industrial applications.

Edge computing and buffering for reliability

Network interruptions between the OT and IT layers are common in industrial environments. An edge computing layer, a lightweight server or industrial PC on the plant floor, buffers SCADA data locally and forwards it to MES when connectivity is restored. This prevents data loss during network maintenance, switch failures, or IT/OT network segmentation events.

Connecting MES to IIoT platforms

The Industrial Internet of Things (IIoT) layer sits alongside or above SCADA in the modern manufacturing stack. IIoT platforms, including AWS IoT, Azure IoT Hub, PTC ThingWorx, and on-premise data historians like OSIsoft PI, aggregate sensor data from across the plant and enable analytics, digital twin, and predictive maintenance applications.

MES as the IIoT data hub

Raw IoT data, such as a temperature reading of 182°C, is meaningless without context. MES provides that context: this reading came from Reactor 4, during Work Order WO-10234, producing Lot L-8891, at 14:32 on June 3rd. By enriching IoT data with production context, MES transforms sensor streams into traceable, auditable quality records.

This context is essential for regulated industries. In pharmaceutical manufacturing (FDA 21 CFR Part 11) and food production (FSMA), process parameters must be linked to specific batches, equipment, and operators. MES is the system that makes that linkage possible.

Cloud vs on-premise IIoT connectivity models

ModelBest forKey consideration
On-premise historian (OSIsoft PI)High-frequency data, air-gapped facilitiesHigh performance, no cloud dependency
Cloud IIoT (AWS IoT / Azure IoT)Multi-site analytics, digital twinNetwork latency, data residency rules
Hybrid edge plus cloudMost manufacturing environmentsBalance of latency, cost, and resilience

Integration architecture options

Once you have defined what needs to connect, you need to decide how to connect it. Three architectural patterns emerge in practice:

1. Point-to-point

Direct connections between each pair of systems. Simple to implement for 2 to 3 integrations. Becomes a maintenance challenge at scale because each new system requires N new connections. Suitable for small plants or pilot projects.

2. Middleware and Enterprise Service Bus (ESB)

A central integration layer handles all data transformation and routing. Systems connect once to the bus, not to each other. Easier to maintain as system count grows. Common middleware choices: MuleSoft, Dell Boomi, IBM MQ, and Apache Kafka. Best for enterprises with 5 or more integrated systems.

3. Unified Namespace (UNS)

An emerging architecture pattern where all systems, including MES, ERP, SCADA, and IIoT, publish and subscribe to a single shared data namespace, typically built on MQTT Sparkplug B. The UNS acts as a real-time, contextualized data backbone. It eliminates transformation layers and enables any system to consume data from any other system without bilateral agreements. Increasingly adopted at Industry 4.0-leading manufacturers.

How to plan an MES integration project

Most MES integration failures are not technical. They are organizational. Systems that work in isolation break when they share data because teams never agreed on what that data should look like. Here is a proven approach:

Key stakeholders to involve

  • IT: network architecture, security, API governance, cloud connectivity
  • OT and Controls engineering: PLC/SCADA architecture, protocol support, safety boundaries
  • Manufacturing operations: process knowledge, data quality requirements, operator impact
  • ERP team: data model, change management, master data governance
  • Finance and quality: compliance requirements, audit trail expectations

MES integration checklist

#Task
1Document all systems to be integrated and their current data models
2Conduct a master data audit: material codes, equipment IDs, work center names
3Define data flows: which system is the system of record for each data object
4Choose integration architecture (point-to-point, middleware, or UNS)
5Agree on data exchange formats and frequency (real-time vs batch)
6Define error handling, retry logic, and alerting requirements
7Build a test environment that mirrors production connectivity
8Run integration tests with real production data samples
9Define rollback plan and cutover procedure
10Document the integration and assign ongoing ownership

Frequently asked questions

How long does MES integration take?

A basic MES to ERP integration covering work orders and production confirmations typically takes 4 to 8 weeks for a single plant. Full integration including SCADA and IoT connectivity for a greenfield deployment can take 3 to 6 months. Legacy system complexity, master data quality, and IT/OT network readiness are the biggest time drivers.

Can MES integrate with SAP?

Yes. Most enterprise MES platforms offer certified SAP connectors that support PP (Production Planning), QM (Quality Management), and PM (Plant Maintenance) integration out of the box. SAP's own MES solution, SAP ME/MII, is native to the SAP ecosystem. Third-party MES vendors typically integrate via SAP's standard BAPIs or IDocs, or through an integration middleware layer.

What is OPC-UA in manufacturing?

OPC Unified Architecture (OPC-UA) is the international standard (IEC 62541) for secure, vendor-neutral data exchange between industrial devices, SCADA systems, and higher-level software. Unlike older OPC protocols, OPC-UA works across operating systems, includes built-in encryption and authentication, and supports complex data models rather than just raw tag values. It is the dominant protocol for MES to SCADA connectivity in modern plants.

Does MES integration require custom development?

Not necessarily. Most MES vendors offer pre-built connectors for major ERP platforms and OPC-UA connectivity for SCADA. Custom development is typically required for legacy systems, non-standard ERP configurations, or when your integration architecture uses a custom middleware layer. Budget for some custom work even with certified connectors because master data mapping always requires plant-specific configuration.

What is the difference between a data historian and an IIoT platform?

A data historian such as OSIsoft PI or Aspentech IP.21 is purpose-built for high-frequency time-series data storage and retrieval in industrial environments. An IIoT platform such as AWS IoT, Azure IoT Hub, or PTC ThingWorx adds analytics, device management, and application development capabilities on top of data storage. Many manufacturers use both: a historian for high-fidelity on-premise storage and an IIoT platform for analytics and cross-site visibility.

ManufacturingTechnologyInnovation