MES (Manufacturing Execution System)
A Manufacturing Execution System (MES) is the software layer that tracks and controls production as it happens on the factory floor, between the plan an ERP issues and the finished goods it receives back. It records what each machine and operator is doing in real time, tracks work in progress through each operation, and feeds actual production data back to the planning system.
An ERP knows you have an order for 20,000 shirts and that they are due on the 30th. An MES knows that line 4 is running bundle 118 of style SS-114, that it is running eleven percent below its target rate, that the reason logged is a machine fault at operation 12, and that the operator has been idle for six minutes. The gap between those two kinds of knowledge is the reason the MES category exists.
The classic framing places MES at level 3 of the ISA-95 automation hierarchy: below the ERP (level 4, business planning) and above the machine controllers and sensors (levels 1 and 2). It is the translation layer between a plan expressed in orders and dates and a reality expressed in machines, operators, shifts and bundles.
What an MES does that an ERP typically does not
**Real-time machine data.** A loom, a knitting machine or a dyeing machine can report its own state — running, stopped, at what speed, for how long. An MES collects that continuously and turns it into [OEE](/glossary/oee-textile) rather than a foreman's end-of-shift estimate. This is the single biggest difference: an ERP records production after the fact, in transactions; an MES observes it while it is happening.
**Work-in-progress visibility at operation level.** A garment passes through cutting, sewing, washing, finishing and packing, and inside sewing it passes through twenty to forty individual operations. An ERP that receives a production entry when the order is packed cannot tell you where the order is on day nine. An MES that scans each bundle at each operation can.
**Downtime and rejection reason capture.** Not just that a machine stopped, but why — beam change, warp break, yarn shortage, no operator, no power. Reason codes captured at the moment of the stop are the raw material of every subsequent improvement effort, and they cannot be reconstructed afterwards.
**Operator-level performance.** Actual minutes produced against [SAM](/glossary/sam-smv) targets, per operator, per hour. This is what makes line balancing and piece-rate incentive schemes possible.
MES and ERP compared
| Dimension | ERP | MES |
|---|---|---|
| Time horizon | Weeks to months | Seconds to hours |
| Unit of interest | Order, style, PO | Machine, operator, bundle, roll |
| Typical data source | Human transaction entry | Machine signal, barcode scan |
| Answers | What did we produce and what did it cost | What is happening on line 4 right now |
| Update frequency | On transaction | Continuous |
Where textile MES gets specific
A generic MES assumes discrete units moving down a line. A textile plant is a chain of very different process types, and each needs different execution data.
In **spinning and weaving**, the unit of interest is the machine and the run. What matters is machine state, speed, end breaks, efficiency per loom, and the beam or cone being consumed. In **dyeing and finishing**, production is a [batch](/glossary/batch-production), and what matters is the recipe, the vat, the temperature-time curve, the lot number and the shade result. In **cutting and sewing**, the unit is the bundle, and what matters is which operation a bundle has cleared, how many pieces are at each operation, and where the line is starved or blocked.
One system has to represent all three, because the same order flows through all three. This is exactly where general-purpose MES products struggle in textile plants: they are usually built around one process paradigm, typically discrete assembly, and dyeing does not fit it.
Do you need a separate MES?
Not necessarily, and for most small and mid-size textile factories the honest answer is no. A separate MES is a second system, with a second master-data set, a second integration to maintain, and a second vendor. The integration is the hard part: when ERP and MES each hold their own view of the order, the styles, the BOM and the routing, keeping them consistent becomes a permanent tax.
The alternative is an ERP with native execution capability — [shop-floor control](/glossary/shop-floor-control), machine data capture and bundle tracking built into the same data model as the order, the BOM and the costing. Everything the plan produced and everything the floor recorded then sit in one place, and there is no reconciliation job at all.
A standalone MES makes more sense when the plant already runs a large, immovable corporate ERP that will not be changed, when machine-level automation and PLC integration are extensive enough to need a dedicated real-time layer, or when the plant runs processes so specialised that no ERP vendor covers them.
Vastra ERP includes execution as a native layer rather than a bolt-on: [shop-floor tracking](/features/shop-floor) records machine state, downtime reasons, bundle progress and operator output against the same order, BOM and routing that [production planning](/features/production-planning) issued, so actual production data returns to costing and scheduling without an interface between two systems.
Frequently Asked Questions
What is the difference between MES and ERP?
An ERP plans and accounts for production in orders, weeks and costs. An MES executes and observes it in machines, operators, bundles and seconds. The ERP tells the floor what to make; the MES records what the floor actually did, in real time, and sends that back to the ERP.
Does a textile factory need a separate MES?
Not always. A separate MES means a second master-data set and a permanent integration to maintain, which is a heavy cost for a small or mid-size mill. Where the ERP includes native shop-floor execution, the same data model covers planning and execution. A standalone MES is more justifiable when a large corporate ERP cannot be changed or when machine-level automation is extensive.
What data does an MES capture in a textile mill?
Machine state and speed, downtime with reason codes, production quantity and quality at each operation, operator output against SAM targets, bundle or roll progress through the routing, and for dyeing the batch recipe, vat, process curve and shade result.
Where does MES sit in the ISA-95 model?
At level 3, between business planning and logistics at level 4 (the ERP) and the machine control and sensing layers at levels 1 and 2. It translates plans expressed in orders and dates into work expressed in machines, shifts and operations, and translates the results back again.
Related terms
Shop Floor Control
Shop floor control is the set of activities that release work to the factory floor, track its progress through each operation, and report actual output, downtime and quality back to the plan. It is the point where a production schedule stops being a document and becomes an instruction to a specific machine and operator.
OEE (Overall Equipment Effectiveness)
OEE (Overall Equipment Effectiveness) combines availability, performance and quality into a single percentage that expresses how much of a machine's theoretical output you actually captured as good product.
SAM / SMV (Standard Allowed Minutes)
SAM (Standard Allowed Minutes), also called SMV (Standard Minute Value), is the time a qualified operator working at a standard pace should take to complete an operation or a whole garment, including allowances for fatigue and unavoidable delay. It is the base unit of garment costing, line balancing, capacity planning and operator incentive schemes.
Barcode & RFID Tracking
Barcode and RFID are the two dominant ways of giving a physical object a machine-readable identity so that its movement can be recorded without manual data entry. In a textile plant the tagged objects are fabric rolls, yarn cones, cut bundles, garments and cartons, and the tag's job is to carry an identity that resolves to a lot, a shade, a length and a location.
Textile ERP
Textile ERP is enterprise resource planning software purpose-built for textile manufacturing, trading, and distribution — covering operations generic ERPs can't.
Ready to see Vastra ERP handle this in your business?
Book a 30-minute personalized demo.