In brief
An MES implementation in a mid-sized plant starts with one measurable goal and one pilot line, not with choosing a system. The next steps are requirements written from real production orders, a vendor demo on the plant's own data, cleaning up master data (routings, standard times, downtime and defect codes), integration with the ERP and the machines, testing before go-live, and a start on the shop floor against acceptance criteria agreed in advance. Only when the pilot line works does the system move to other halls.
Start with the problem, not the system
An MES (Manufacturing Execution System) runs production at shop floor level: it receives orders from the ERP, splits them across workstations, collects confirmations, times, downtime, scrap and material consumption, and sends the result back to the ERP. The boundary between MES and ERP is described by the ISA-95 model (IEC 62264), covered in more detail in MES and ERP: who is responsible for what.
A plant that buys an MES "because we need to go digital" usually ends up with an expensive system for printing work orders. Before talking to vendors, write down one or two sentences about the goal, with a number you can measure before and after:
- daily OEE per line calculated from data, not monthly from shift reports,
- time from order completion to confirmation in the ERP shorter than one shift,
- batch genealogy (which raw material went into which product) available in minutes rather than after two days of searching binders,
- less scrap thanks to checking process parameters while the order runs.
Pick a pilot line that fits the goal: important for the plant's results but not the most complicated one. A good pilot line has a few machines whose signals can be read, repetitive orders and a supervisor who wants the change.
Requirements written from real orders
A requirement such as "the system shall support production orders" settles nothing, because every vendor will say yes. It works better to describe several real orders from the last month, from entry into the ERP to closure: who does what, which documents are created, where the exceptions are. That gives you a table to send to vendors together with data for the demo.
| MES area (IEC 62264-3) | Question for the vendor | How to check it in the demo |
|---|---|---|
| Order management and dispatching | How does the system split an ERP order into operations and workstations? | Load three orders with the plant's routings |
| Production tracking | How does an operator report quantity, scrap and downtime? | A plant operator does it alone on a tablet at the machine |
| Machine data collection | Which protocols does the gateway support, and what happens when the network is down? | Disconnect the gateway for a few minutes and see if the data comes back |
| Quality | How is the inspection plan linked to the operation and the batch? | Enter an out-of-tolerance result and watch the response |
| Batch genealogy | How does the system record consumption of a raw material batch? | Ask for a backward report from a finished goods batch |
| ERP exchange | Which messages are ready and which need to be written? | Show the confirmation message going back to the ERP |
Describe non-functional requirements separately: operation without network access, screen response time for operators, backups, permissions and separation of the production network. Agree the last point early with whoever is responsible for OT security, because the MES server reaching the PLCs is a new channel in the network, as explained in OT security in the plant.
The plan step by step
The plan below is an example for a plant with several halls and one pilot line. How long each stage takes depends on the number of machines, the state of ERP data and how many integrations need to be written from scratch.
| Step | What happens | Who from the plant | What you keep |
|---|---|---|---|
| 1. Goal and baseline | choosing the goal and pilot line, measuring today's state | production manager, controlling | a goal with a number, a baseline |
| 2. Requirements and selection | describing real orders, demos on plant data | process engineer, planner, IT | requirements table, chosen system |
| 3. Master data | routings, standard times, downtime and defect codes, workstations | process engineer, maintenance | data ready for import |
| 4. Integrations | ERP, machine gateways, barcode scanners | IT, automation engineer | working messages in the test environment |
| 5. Testing | order scenarios, exceptions, offline operation | planner, operators | test report and list of fixes |
| 6. Pilot line go-live | parallel running, support on every shift | supervisors, operators | acceptance against criteria |
| 7. Rollout | further lines and halls using the same pattern | all of the above | the system across the plant |
In a mid-sized plant, step 3 takes the most time. ERP routings often do not match how the shop floor really works, standard times have not been updated for years, and the downtime reason list has forty entries of which operators use three. The MES will expose these gaps in the first week, so it is better to fix them before go-live.
Integrations and machine data
An MES without an ERP connection becomes another island that someone copies data into. The minimum set of messages is the order from ERP to MES and the confirmation of quantity, consumption and scrap from MES to ERP. How to design them so they do not get lost when the network fails is covered in MES and ERP integration.
Machine data is the second stream. Newer machines usually expose it over OPC UA, older ones over Modbus or only as digital signals that need an extra I/O module. Choosing the protocol is covered in OPC UA and MQTT, and connecting old machines without replacing them in Data from old machines without replacing them. Three signals per machine are enough to start: running, stopped and a part counter. Add more when someone knows what they will use them for.
Testing and going live on the shop floor
Testing an MES on a running line is expensive, because every bug stops people. Most scenarios are therefore worth running in a test environment with machine simulators that send the same events as the real equipment. That was the approach in the case study on automated MES testing with virtual machines.
On the pilot line, the MES runs in parallel with the old reporting for the first weeks. Write down acceptance criteria before go-live, for example:
- every order from the pilot line has a confirmation in the MES that matches the ERP,
- the share of downtime without an assigned reason falls below an agreed threshold,
- the genealogy of a randomly chosen batch is complete,
- operators on every shift report without help from the implementation team.
When the criteria are met, you switch off the old reports on that line and apply the same pattern to the next ones. Each additional line goes faster, because the code lists, screen templates and integrations already exist.
Common mistakes and how to avoid them
- Going live in every hall at once. An error in master data then stops the whole plant, not one line.
- MES as a copy of paper. If the operator screen reproduces the old form field by field, the system collects the same vague entries as before. Decide which data can come from the machine and which a person really has to enter.
- No owner on the plant side. The vendor will not fix routings or win over the shift supervisors. You need an implementation lead from production, not just from IT.
- KPIs without a single definition. OEE calculated differently in each hall leads to arguments instead of decisions. Fix the definition before go-live, not after the first report.
B2Bnetwork engineers help design and build MES integrations with the ERP, machines and data warehouse as part of our System integration service: from the message contract to testing and flow monitoring.
Questions and answers
How long does an MES implementation take in a mid-sized plant?
It depends on the number of lines, the state of ERP data and how many integrations need to be written. Bringing one pilot line live usually takes several months, most of it spent cleaning up routings, standard times and code lists. Further lines go faster because they reuse the data and integrations.
Off-the-shelf MES or a custom-built system?
For typical discrete or process manufacturing, an off-the-shelf system is usually enough and cheaper to maintain. Building your own makes sense when the process is unusual and a standard product would need so many changes that keeping up with upgrades becomes a project of its own. Decide after demos on the plant's own data.
Do we need to replace old machines before implementing MES?
No. Old machines are connected through edge gateways or digital input modules that read the running and stopped signals and a part counter. That data is enough for OEE and a downtime log. Replacing a machine makes sense for process reasons, not because the MES requires it.
Who on the plant side needs to be involved?
An implementation lead from production, the process engineer responsible for routings and standard times, a planner, an automation or maintenance engineer to connect machines, and someone from IT for integration and security. Without the process engineer and shift supervisors, master data will not match the shop floor and operators will quickly go back to paper.