What Is an MES?
A manufacturing execution system, or MES, is the software layer that manages and tracks production as it actually happens on the plant floor. It sits between the control systems below and the enterprise planning systems above, turning a high-level production plan into executed, documented work. In the ISA-95 model, MES lives at Level 3 - the operations layer between SCADA and ERP.
MES in one line: A manufacturing execution system (MES) is software that manages, monitors, and documents production on the plant floor - scheduling work, tracking materials and product genealogy, and enforcing quality - bridging control systems below and enterprise ERP above, at ISA-95 Level 3.
What an MES Does
An MES coordinates the execution of production. Typical functions include detailed scheduling and dispatching of work orders, tracking materials and product genealogy (what went into each unit and where it came from), collecting production and quality data, managing work instructions, and reporting performance metrics like yield and downtime. It answers the operational questions ERP cannot: what is being made right now, on which line, with which materials, and to what quality.
The MES draws real-time data from the control layer - PLC, DCS, and SCADA - and hands finished production and inventory results up to ERP. This makes it the translation layer between the fast, physical world of the plant floor and the slower, financial world of the enterprise. In heavily regulated industries, the MES is also where electronic batch records and compliance documentation are captured.
MES and Its Neighbors
MES is easy to confuse with SCADA and ERP, but each has a distinct job. SCADA monitors and controls equipment in real time. ERP plans the business - orders, procurement, finance - over days and weeks. MES fills the gap between them, managing the execution of production shift by shift. SCADA data feeds the MES; MES results feed the ERP.
MES is fundamentally a discrete- and batch-manufacturing concept - think automotive, pharmaceuticals, food and beverage. In oil and gas, classic MES is less common; upstream and midstream operations lean on SCADA, production accounting, and hydrocarbon allocation systems that play a similar Level 3 role without always carrying the MES label. Where a Level 3 system needs live field data, a cloud SCADA platform like Merobix can supply it through APIs after reading devices over Modbus, OPC UA, and other protocols.
The ISA-95 Stack at a Glance
The cleanest way to place an MES is the level model from ISA-95, which assigns each class of system a layer and a time horizon:
| Level | What lives there | Time horizon |
|---|---|---|
| Level 4 | ERP: orders, procurement, finance | Days to months |
| Level 3 | MES and operations management | Shifts and days |
| Level 2 | SCADA and HMI supervision | Seconds to minutes |
| Level 1 | PLCs, RTUs, and basic control | Milliseconds to seconds |
| Level 0 | Sensors and actuators on the process | Continuous |
The value of the model is not academic tidiness; it is that each boundary is an interface someone has to build and maintain. The Level 3 to Level 4 boundary carries orders down and production results up. The Level 2 to Level 3 boundary carries live process data up and, sometimes, setpoints or recipe parameters down. Most MES project pain lives at those two boundaries, not inside the MES itself. When someone proposes that the MES should talk directly to the PLCs, the model is also the polite way to explain why that couples the enterprise to the process and usually ends badly.
Integrating an MES with the Control Layer
An MES consumes control-layer data with context attached: not just a flow value, but which order, material, and batch that flow belonged to. Building that context is the real integration work. The plumbing is comparatively standard - OPC UA or database exchange upward from SCADA, and structured message models derived from ISA-95 for the traffic between MES and ERP - but mapping raw tags to orders and materials is site-specific engineering that no product does for you.
Three integration details decide whether the system stays trustworthy. Buffering: when the network between layers drops, production events must queue and forward, not vanish, or genealogy develops holes. Time: every layer must share a synchronized clock and a declared time zone, or batch records will show effects preceding causes. And transactions: an MES speaks in discrete events - order started, batch complete - while the control layer streams values continuously, so something must reliably detect the moment a streamed process crossed an event boundary.
Traffic downward deserves its own caution. An MES that writes setpoints or recipe parameters into the control layer is now part of the control narrative: writes must be permissioned, logged, range-checked at the receiving controller, and designed to fail safe when the MES is offline. Many sites deliberately keep Level 3 read-only against the process and route every change through the operator and the HMI instead - a slower loop, but one with a human accountable inside it.
Do You Actually Need an MES?
The honest test is regulatory and traceability pressure. If your industry requires electronic batch records, enforced work instructions, or unit-level genealogy - pharmaceuticals, food, medical devices - an MES or equivalent is essentially non-optional. If what you need is production visibility, downtime tracking, and performance reporting, a well-built historian with dashboards and reports may cover it at a fraction of the complexity, and you can grow into Level 3 functions later.
In oil and gas the answer is usually a Level 3 system, but not a classic MES. Production accounting, hydrocarbon allocation, and field data capture fill the same layer for a continuous-flow business that has no discrete units to serialize. The ISA-95 questions still apply - what comes down, what goes up, who owns the interfaces - even when nothing on the purchase order says MES. The label matters less than the interfaces; buy or build the functions you can name, and let the architecture diagram call the box whatever it likes.
Frequently Asked Questions
What is the difference between MES and SCADA?
SCADA monitors and controls equipment in real time at the supervisory level; MES manages and documents production execution - scheduling, material tracking, and quality - one layer above. SCADA data typically feeds into the MES, which then reports results up to ERP.
What is the difference between MES and ERP?
ERP plans and runs the business - orders, finance, procurement - over days and weeks, while MES executes and tracks production on the plant floor in real time. MES sits between the control layer and ERP, translating between physical operations and business systems.
Is MES used in oil and gas?
Classic MES is more common in discrete and batch manufacturing. Oil and gas operations often use SCADA together with production accounting and hydrocarbon allocation systems to fill the equivalent Level 3 role, rather than a system branded as MES.
Does an MES replace a historian?
No. They store different things. A historian stores time-series process data - values over time - while an MES stores transactional and contextual records: orders, batches, materials, genealogy, and quality results. A mature plant runs both, and the MES frequently reads the historian to attach process evidence to its batch records.
What is an electronic batch record?
An electronic batch record (EBR) is the MES-maintained digital document of everything that happened to a batch: materials consumed, steps executed, parameters achieved, deviations recorded, and sign-offs collected. In regulated industries it replaces the paper batch ticket, and the audit trail it provides is a primary reason MES projects get funded.
Sources and verification
This page references the protocol specifications published by the organizations below. Editions, product capabilities, and documentation change over time - confirm current requirements and specifications directly with the source.
- Modbus Application Protocol Specification - Modbus Organization
- OPC Unified Architecture Specification (IEC 62541) - OPC Foundation
Merobix is not affiliated with, endorsed by, or sponsored by these organizations; their names are used only to identify the standards and products discussed.
Automation services
Need help turning this into a working system?
Merobix integrates SCADA, programs Allen-Bradley and Siemens PLCs, and designs and fabricates industrial control panels.
Meeting requests are reviewed before confirmation.