MES vs ERP: The Shop-Floor System That Runs and Records Production
A manufacturing execution system (MES) runs and records production on the shop floor: work orders, operator instructions, machine data, quality checks and lot traceability. A small job shop can run on its ERP and a printed traveler. An MES pays off when the floor is too busy, regulated or fast for paper.

A manufacturing execution system (MES) is software that runs and records production on the shop floor as it happens. It sends work orders to work centers, shows operators the steps for each job, collects machine and labor data, enforces quality checks, and keeps a traceable record of which materials, machines, people and settings went into each lot or serial number.
This guide covers what an MES does, who needs one, how it differs from enterprise resource planning (ERP), and when buying one beats building your own. KeyesCode builds custom software, so we'll also say plainly when you shouldn't pay anyone to build an MES, us included.
What an MES does
The ERP decides what to make and by when. The machine controls run the equipment. In between is each shift's work: jobs start, parts get counted, checks get taken and machines stop and restart. Without an MES, that layer runs on paper travelers, whiteboards and end-of-shift data entry. The ISA-95 standard places it at level 3, between business planning and machine control. An MES covers it with:
- Work order dispatch. Released orders from the ERP become a queue for each work center, in the sequence the supervisor sets.
- Electronic work instructions. Operators see the current revision of each step, drawing and setting at the station, not a printed copy that may be out of date.
- Production tracking. Starts, completions, good counts and scrap are recorded per operation, so work in progress is visible.
- Machine data collection. Run state, cycle counts and process readings come from the equipment's controllers or added sensors, instead of a clipboard.
- Quality checks. In-process inspections, measurements and sign-offs are required at the right step, with statistical process control (SPC) charts and holds on lots that fail.
- Traceability. Every lot or serial number is linked to the material lots, machines, operators and parameters behind it, which is what a recall or customer complaint needs.
- Downtime and performance. Stops are logged with a reason, and overall equipment effectiveness (OEE) shows how much planned time produced good parts at full speed.
Completions, scrap and material consumption flow back to the ERP, so inventory and job costs reflect what happened, not what was planned.
Who needs an MES
A small job shop with a few machines and simple parts can run on its ERP's shop-floor module plus a printed traveler. An MES starts to pay off when the floor is too busy, too regulated or too fast for paper to keep up. Examples of MES products include Siemens Opcenter, Rockwell Automation's Plex, AVEVA MES, DELMIA Apriso, Critical Manufacturing, SAP Digital Manufacturing and Tulip. Signs you need one:
- Paper travelers follow each job, and someone types the counts into the ERP after the shift.
- Nobody can say where a job is without walking the floor.
- A customer complaint means days of digging through paper to find which lots used one batch of material.
- Downtime and scrap reasons are guesses, so nobody knows why a line ran slow.
- Operators work from printed instructions that may not match the latest revision.
- In aerospace, automotive, food, pharmaceuticals or medical devices, customers or regulators require lot or serial traceability and complete production records.
Core MES features
| Feature | What it does | Why it matters |
|---|---|---|
| Work order dispatch | Turns released ERP orders into a sequenced queue per work center | Operators run the right job next |
| Electronic work instructions | Shows the current steps, drawings and settings at the station | Fewer errors from outdated paper copies |
| Production tracking | Records starts, completions, counts and scrap per operation | Real work-in-progress status, not end-of-shift guesses |
| Machine data collection | Reads run state, counts and process readings from equipment | Data without clipboards or retyping |
| Quality checks and SPC | Requires in-process checks and charts measurements against limits | Problems caught at the step, not at final inspection |
| Genealogy and traceability | Links each lot or serial number to its materials, machines and people | A recall or complaint is traced from records, not paper |
| Downtime and OEE | Logs stops with reasons and tracks equipment effectiveness | You see where capacity actually goes |
| Electronic batch or device records | In products built for regulated plants, assembles the batch or device record each lot needs | Review by exception and release from records, not paper binders |
MES vs ERP
Both touch production. The difference is the time scale each works in.
Enterprise resource planning (ERP) plans and records the business side of production: sales orders, bills of materials, routings, inventory, purchasing and job costs. Its material requirements planning (MRP) step works out what to make and buy, and by when. It thinks in days and weeks.
A manufacturing execution system (MES) carries out that plan on the floor: which machine runs the job, which operator, which instruction revision, what the readings were, and how many good parts came off. It thinks in minutes and seconds, and it reports what actually happened back to the ERP.
Some ERPs include shop-floor control, such as clocking labor to work orders and reporting completions, which can be enough for a simple shop. A rule that holds up: if the question is "what should we make and what will it cost," it belongs to the ERP; if it's "what is happening on line three right now, and what went into this lot," it belongs to the MES.
Off-the-shelf vs custom MES
| Off-the-shelf MES | Custom MES | |
|---|---|---|
| Setup | Configure the product's model to your routings, stations and checks | Built around your process, routings and stations from the start |
| Cost model | Subscription or license, often priced by site, line, machine or user | An upfront build cost, then hosting and maintenance |
| Process fit | Strong for the discrete or batch patterns the product was designed for | Fits process steps and recipe logic that are your own |
| Machine connectivity | Standard drivers and connectors for common controllers | You build or buy each connection; older machines may need sensors or a gateway either way |
| Integrations | Connectors for common ERPs | Direct links to a homegrown ERP, test stations, customer portals or line-of-business systems |
| Validation | A vendor may supply validation documents, but in regulated plants the manufacturer owns validation | The same, with more of the documentation to write yourself |
| Master data | You still define routings, specs and check limits | The same; a build doesn't define your process for you |
| When it wins | Standard production patterns, multiple plants, regulated electronic records | The process is the differentiator, the MES ties several systems together, or pricing outgrows the value |
Buy an MES when your production follows patterns the products are built for, especially when you need regulated electronic records. Build, or extend, when one of these is true:
- The process is the product. Proprietary steps, recipe logic or test sequences are what you sell, and a generic model would flatten them.
- The MES has to tie several systems together. A homegrown ERP, test stations that write their own files and a customer portal that wants lot data.
- You need one slice, not the whole suite. Digital travelers and traceability inside the ERP your team already uses, without a second system to license and run.
- Pricing stops making sense. Charges by site, line or machine grow faster than the value for a small plant.
Look at a hybrid before a build from nothing: a packaged MES, or your ERP's shop-floor module, as the system of record, plus custom code for the stations, connections or reports it doesn't handle. Our guide to custom software vs off-the-shelf platforms walks through the general trade-off, and what custom software development costs covers the budget side.
Where AI automation fits in an MES
An MES produces more readings, counts and notes than people have time to read. That's where AI earns its place. Examples:
- AI can spot a drifting process from machine readings and open a quality hold before the batch finishes. SPC run rules already catch a trend on one chart; a model can watch several readings together, such as temperature, pressure and cycle time, and catch a combined drift no single chart shows. The hold stops the lot from moving to the next step, under rules your quality team approves, and your quality team decides whether to release, rework or scrap it.
- Coding downtime. AI suggests a downtime reason from the machine's state signals and the operator's note, so fewer stops end up as "other". The operator confirms the code.
- Writing the shift handover. AI drafts a shift summary from MES records: holds opened, longest stops, scrap by reason and jobs still running. The supervisor edits it.
- Drafting work instructions. AI turns an existing SOP and drawing into step-by-step station instructions. An engineer reviews them, and they're released through your document control like any other revision.
Setpoints and recipe changes stay under your change control process, and AI never releases a held lot. Our AI automation services page covers how we scope this kind of work.
How KeyesCode scopes an MES project
If a packaged MES, or the shop-floor module in the ERP you already pay for, covers your floor, we'll say so and stop there. When it doesn't, scoping covers four things:
- Floor walk. Work centers, routings, and the paper each job carries today.
- Data sources. Which machines can report data, which need sensors or a gateway, and what the ERP sends and expects back.
- Traceability and quality rules. What has to be recorded per lot or serial number, which checks are required at which step, and what customers or regulators ask for.
- Build-or-extend decision. A packaged MES with custom connections, a focused custom app on top of your ERP, or a purpose-built system where the process demands it.
From there, a build runs like any of our custom software projects: a first release on one line or cell, used on real jobs, then the connections and automation that make it worth having.
Related systems in this series
Frequently asked questions
What is a manufacturing execution system (MES)?
An MES is software that runs and records production on the shop floor as it happens. It sends work orders to work centers, shows operators the steps for each job, collects machine and labor data, enforces quality checks, and keeps a traceable record of the materials, machines, people and settings behind each lot or serial number.
What is the difference between MES and ERP?
The ERP plans and records the business side of production: orders, bills of materials, inventory, purchasing and job costs, in days and weeks. The MES carries out that plan on the floor in minutes and seconds: which machine and operator run the job, what the readings were and how many good parts came off. It reports completions, scrap and material use back to the ERP.
Does a small manufacturer need an MES?
Not necessarily. A small job shop with a few machines and simple parts can run on its ERP's shop-floor module plus a printed traveler. An MES starts to pay off when nobody can say where a job is without walking the floor, when tracing a material lot takes days of paper, or when customers or regulators require lot or serial traceability and complete production records.
Is an MES the same as a QMS?
No. A quality management system covers procedures, document control, audits, nonconformances and corrective actions across the business. An MES enforces the in-process checks at each production step, charts measurements and puts failing lots on hold. The two work together: the MES applies inspection plans and records results on the floor, and a failed check can open a nonconformance in the QMS.
Should I buy an MES or build a custom one?
If your production follows patterns packaged products are built for, buy one, especially if you need regulated electronic records. Look at a hybrid before a build from nothing. A custom build makes sense when your process steps or recipe logic are what you sell, when the MES has to tie a homegrown ERP, test stations and customer portals together, when you need only one slice such as digital travelers and traceability, or when pricing by site, line or machine outgrows the value.
How can AI help with a manufacturing execution system?
AI can spot a drifting process from machine readings and open a quality hold before the batch finishes, under rules your quality team approves. It can also suggest downtime reasons, draft shift handover notes and turn SOPs into station instructions. Your quality team decides whether a held lot is released, reworked or scrapped, and setpoint or recipe changes stay under your change control process.
Thinking about your own system?
Not sure whether to buy, customize or build?
Tell us what you run today and where it falls short. We'll give you a straight answer on your best option, even if that's a product you can buy.