On the planning screen a work order says "finishes today", while on the shop floor the line has stopped, waiting for material, and nobody knows for how long. This gap between plan and reality is the most expensive blind spot in many manufacturing businesses. A manufacturing execution system (MES) is the layer that records and tracks, in real time, how a planned work order is actually carried out: which job started on which line, how much was produced, how much was scrapped, and why the line stopped.
In this guide we explain what an MES is, how it relates to ERP and machines, how work orders and downtime are recorded, how OEE is calculated, how a shift report reads, how the gap between standard and actual time turns into cost, which data capture methods exist and how to roll one out in six steps. The example figures are representative; they are not measurements from a specific business or product.
What Is a Manufacturing Execution System (MES)?
An MES is software in which work orders are started and finished on the shop floor, produced quantity, scrap and downtime are recorded, and the data becomes live indicators. ERP manages the order, stock and cost; an MES tracks how that order is moved through the line, at the level of seconds and units.
In a small business an MES may not be a separate product; the shop floor screen of the ERP or a short custom application does the same job. What matters is the function, not the name: work order records, downtime records, scrap records and the return of actual data to planning and cost. We described how to build the plan itself in our production planning guide; this article deals with the reality the plan meets on the floor.
We recommend reading: Our ERP development service
How Do ERP, MES and Machines Relate to Each Other?
The three layers work on different time scales: ERP on days and weeks, the MES on shifts and minutes, the machine on seconds. Each layer passes data up and receives commands or signals from below.
| Topic | ERP / planning | MES | Machine / line |
|---|---|---|---|
| Question | What, when and how much will be produced? | What is happening now, is the plan being followed? | Is it running, how many units did it count? |
| Time scale | Days, weeks | Shifts, minutes | Seconds |
| Main record | Order, work order, bill of materials, stock | Operation start, finish, quantity, scrap, downtime | Counter, status signal |
| User | Planner, purchasing, finance | Operator, foreman, shift lead | Operator, maintenance technician |
| Output | Schedule, cost, stock balance | Actual time, OEE, shift report | Raw signal |
The flow runs both ways: ERP sends the work order down to the MES, and the MES uploads actual quantity, time and scrap to ERP. Without this two-way link, shop floor data stays in a separate sheet and turns into double entry. You can find the basic concepts of data flow between systems in our API integration guide.
How Is a Work Order Recorded on the Shop Floor?
A work order record follows a job's life on the floor with four events: start, pause, report quantity, finish. Each event is stored with a timestamp, the line and the operator.
- Start: The operator selects the work order on a terminal or scans its barcode; the system separates setup time (die, adjustment) from run time.
- Report quantity: Good and scrap quantities are entered from the counter or by hand; a reason is selected for scrap.
- Pause: When the line stops, downtime begins and the operator selects a reason code from the list.
- Finish: Total time, good quantity and scrap are closed; the actual values go to ERP and the next work order moves up the queue.
Keeping setup and run time separate is critical: often what exceeds the standard is not the run but the setup, and it only becomes visible if recorded separately. We covered label and barcode record design in detail in our barcode system guide.
How Are Downtime Reasons Coded?
A downtime record must hold not only the duration but also the reason; without a reason, "the line stopped for three hours" changes nothing. The code list should be short, mutually exclusive and small enough for the operator to pick with a single tap.
| Code | Downtime reason | Responsible |
|---|---|---|
| D1 | Waiting for material | Warehouse, purchasing |
| D2 | Die and setup change | Production, planning (sequence) |
| D3 | Breakdown | Maintenance |
| D4 | Waiting for quality approval | Quality |
| D9 | Other (description required) | Foreman |
In a representative three-line example, 180 minutes of downtime were recorded in one shift. The split: waiting for material 54 min (30%), die and setup 45 min (25%), breakdown 36 min (20%), waiting for quality 27 min (15%), other 18 min (10%); 54 + 45 + 36 + 27 + 18 = 180. The top two reasons add up to 99 minutes, that is 55% of downtime. We explained how a breakdown record turns into a maintenance work order in our maintenance management software guide; here we only note that the same code can be used there too.
The share of uncoded ("other") entries is a quality indicator worth watching. The 10% in the example is acceptable; if it climbs above 30%, the code list does not reflect reality and should be reviewed with the foreman on the floor. The operator workload also needs a calculation: 180 ÷ 15 = 12 stops per day (assuming a 15 min average) and, at 10 seconds per entry, a total of 120 seconds, that is 2 minutes. If recording is heavier than that, it gets abandoned.
How Is OEE Calculated?
OEE (overall equipment effectiveness) is the product of three ratios: availability × performance × quality. It shows in a single percentage how much of the planned time the line turned into good product.
- Availability = (planned time − downtime) ÷ planned time.
- Performance = actual units produced ÷ (run time ÷ ideal cycle time).
- Quality = good units ÷ units produced.
Example: the shift is 480 min, the planned break is 30 min, so planned time is 450 min. Representative values for three lines:
| Line | Downtime | Availability | Performance | Quality | OEE |
|---|---|---|---|---|---|
| Line A (ideal 0.5 min/unit) | 54 min | 396 ÷ 450 = 0.880 | 693 ÷ 792 = 0.875 | 658 ÷ 693 = 0.949 | 73.1% |
| Line B (ideal 1.0 min/unit) | 90 min | 360 ÷ 450 = 0.800 | 324 ÷ 360 = 0.900 | 308 ÷ 324 = 0.951 | 68.4% |
| Line C (ideal 0.6 min/unit) | 36 min | 414 ÷ 450 = 0.920 | 621 ÷ 690 = 0.900 | 609 ÷ 621 = 0.981 | 81.2% |
Check for Line A: 0.880 × 0.875 × 0.949 = 0.731. You get the same result by a shortcut: good units × ideal cycle ÷ planned time = 658 × 0.5 ÷ 450 = 329 ÷ 450 = 73.1%. For Line B, 308 ÷ 450 = 68.4%; for Line C, 365.4 ÷ 450 = 81.2%. Since planned times are equal, average OEE is (73.1 + 68.4 + 81.2) ÷ 3 = 74.3%.
The strength of OEE is that it separates where the loss sits: Line B's weak link is availability (80%), Line A's is performance (87.5%), while Line C is relatively balanced. Two cautions: an OEE target is meaningful not for comparing different products but for comparing the same line with its own history; and if the ideal cycle time is unrealistic, the performance ratio becomes meaningless too.
How Is a Shift Report Read?
A shift report compares a shift's plan with its reality on one page. In an MES the report is ready as soon as the shift ends; with paper forms it is compiled the next day. The report answers: did the plan hold, where was the loss, who should do what.
| Line | Planned good units | Actual good units | Plan attainment |
|---|---|---|---|
| Line A | 800 | 658 | 82.3% |
| Line B | 400 | 308 | 77.0% |
| Line C | 700 | 609 | 87.0% |
| Total | 1,900 | 1,575 | 82.9% |
The total is 1,575 ÷ 1,900 = 82.9%. Below it the report lists the two largest downtime reasons, the scrap total (35 + 16 + 12 = 63 units; 3.8% of the 1,638 units produced) and the work orders still open.
How Does Actual Time Feed Back into Cost?
The MES contribution on the finance side is turning the gap between standard time and actual time into cost per work order. Standard cost comes from the bill of materials and routing; actual cost from what was recorded on the floor. We explained the item-by-item method in our product cost guide.
Representative work order: 600 good units; setup 40 min + 600 × 0.5 min = 300 min run, so standard time is 340 min. Line cost is ₺1,200 per hour, material ₺40 per unit. Actual: setup 65 min, run 360 min, total 425 min; to get 600 good units, 630 were started, so scrap is 30 units.
| Item | Standard | Actual | Difference |
|---|---|---|---|
| Time | 340 min | 425 min | +85 min (25%) |
| Line cost (₺1,200/h) | ₺6,800 | ₺8,500 | +₺1,700 |
| Material (₺40/unit) | 600 × 40 = ₺24,000 | 630 × 40 = ₺25,200 | +₺1,200 |
| Total | ₺30,800 | ₺33,700 | +₺2,900 |
| Unit cost (600 units) | ₺51.33 | ₺56.17 | +₺4.83 (9.4%) |
Checks: 85 ÷ 60 × 1,200 = ₺1,700; 30 scrap × ₺40 = ₺1,200; total difference ₺2,900; ₺2,900 ÷ 600 = ₺4.83. Most of the time variance comes from setup (65 − 40 = 25 min) and is visible only because setup was recorded separately.
What Are the Data Capture Methods?
There are three methods and most businesses use a mix.
| Method | How it works | Strength | Limit |
|---|---|---|---|
| Manual (form, sheet) | Written at shift end, entered later | No investment | Delay, missing and rounded entries |
| Terminal and barcode | Operator reports via touch screen or scanner | Low cost, reason is captured | Depends on operator discipline |
| Machine counter and signal | Line sends quantity and run status automatically | Accurate, no delay | Connecting old machines is extra work; reason still from the operator |
The practical split is this: quantity and run status come from the machine, the reason comes from a person. The machine says "the line stopped", not "why it stopped". Look at the effect of delay with a representative example: if an event happens mid-shift, there are on average 4 hours to shift end and the form is not entered until the next morning (10 hours more), so information arrives with an average delay of 4 + 10 = 14 hours; at a terminal that delay is seconds. A material wait learned 14 hours later cannot be acted on within the shift.
Monitoring shop floor workers is assessed separately under labour law and KVKK (Turkey's personal data protection law); for which data is tied to a person, for notices and retention periods, consult your legal adviser.
How Fast Does an MES Investment Pay Back?
The benefit comes from three places: recording effort, shorter downtime and less scrap. The monthly calculation below is representative (22 working days a month, three lines).
- Effort: Paper form entry 60 min + report compilation 90 min = 150 min/day = 2.5 h × 22 = 55 h/month. With an MES, 30 min/day (11 h) remains; the saving is 44 h × ₺300 = ₺13,200.
- Downtime: Assuming live visibility cuts downtime by 15%: 180 × 15% = 27 min/day = 0.45 h × ₺2,000 (contribution per line hour) = ₺900/day × 22 = ₺19,800.
- Scrap: If 63 units of daily scrap fall by 20%, that is 12.6 units × ₺40 = ₺504/day × 22 = ₺11,088.
Gross monthly benefit is 13,200 + 19,800 + 11,088 = ₺44,088; after ₺12,000 a month for licence, terminal upkeep and support, the net is ₺32,088. With an investment of ₺520,000, payback is 520,000 ÷ 32,088 ≈ 16.2 months. If the downtime benefit halves (₺9,900), net becomes ₺22,188 and the period stretches to 520,000 ÷ 22,188 ≈ 23.4 months. The decision therefore hinges on a realistic estimate of the downtime benefit, which is why measuring on a pilot line is essential.
How Is an MES Rolled Out in Six Steps?
Starting on one line and one shift as a pilot is safer for risk and resistance management than starting everywhere at once.
- Goal: Which question are you seeking to answer: downtime, scrap, plan attainment, cost? Choose three measures.
- Code list: Write the downtime and scrap codes with the foreman in five to eight items.
- Data capture: Choose the method per line: terminal, barcode or machine counter.
- Pilot line: One line, one shift, two to four weeks; measure recording time and OEE.
- ERP link: The work order comes down, actuals go up; no double entry remains.
- Rollout: Move to other lines with training, a shift report rhythm and a weekly review.
You can find the link between stock movements and the shop floor in our warehouse management system guide, and the link with product quality records in our quality management software guide.
What Are Common Mistakes in MES Projects?
- Measuring everything at once: Forty indicators means a screen nobody reads; start with three measures.
- Turning the operator into a free data clerk: If an entry takes more than 10 seconds, codes pile up under "other".
- Guessing the ideal cycle time: An unmeasured ideal time makes OEE meaningless; verify it with production engineering.
- Leaving the ERP link to the end: If actual data does not return to cost, the MES remains just a dashboard.
We recommend reading: How to Manage Subcontract Manufacturing: Material Shipments, Scrap, Reconciliation and Subcontractor Performance
We recommend reading: What Is BOM Revision and Engineering Change Management? ECR, ECO, Cut-In and Cost Guide
We recommend reading: What Is Production Capacity Planning and Bottleneck Analysis? Effective Capacity, Load Ratio and Lead-Time Guide
We recommend reading: What Is Lean Manufacturing? Waste Analysis, Value Stream Mapping (VSM), Takt Time and Pull System Guide
We recommend reading: How to Track Scrap and Yield in Manufacturing: Mass Balance, Scrap Types, Standard Rates and Cost Guide
Shop Floor and Production Processes with İnovabil
At İnovabil our focus is building software from scratch, tailored to the company: custom software, ERP, CRM, e-commerce, web, mobile and integration. We do not have a ready-made MES product; we suggest clarifying together in the requirements analysis how shop floor records will connect to ERP and which records are truly needed.
We have developed logistics and shipment planning with wholesale order management for Karyak; shipment planning for Bofigo; warehouse management (WMS) and a complaint and support management system for Sleepy; CRM, purchasing and mobile for Avcılar İnşaat; and a purchasing system for İZBAN. Send us a short summary of your production flow and existing systems; let us work out in a written assessment which record would create value first.
We recommend reading: Our software development process: step by step from analysis to launch
Frequently Asked Questions
What is a manufacturing execution system (MES) and what is it for?
It is software in which work orders are started and finished on the shop floor and produced quantity, scrap and downtime are recorded. It shows the gap between plan and reality in real time and writes actual data back to planning and cost.
What is the difference between an MES and ERP?
ERP manages orders, stock, purchasing and cost at the day and week level; an MES tracks shop floor execution at the shift and minute level. ERP sends the work order down to the MES, and the MES uploads actual quantity, time and scrap to ERP.
How is OEE calculated?
It multiplies availability, performance and quality. In the example, with 450 min planned time, 54 min downtime, 693 produced and 658 good units and a 0.5 min ideal cycle, OEE is 0.880 × 0.875 × 0.949 ≈ 73.1%.
Does every business need an MES?
No. In a small single-line business the shop floor screen of the ERP or a simple recording application may be enough. A dedicated recording layer adds value if there are several lines, frequent setup changes, noticeable scrap or trouble with plan attainment.
Where should an MES rollout start?
Start with a pilot on one line and one shift, five to eight downtime codes and three measures. In a two to four week pilot, measure recording time, OEE and plan attainment, build the ERP link, then extend to the other lines.