OEE in manufacturing: calculate, measure and improve
How do you calculate OEE and uncover machine losses? From reliable production data via OPC UA and MQTT to targeted improvements.
A machine can be running without producing effectively. Short stops, reduced speed and rejected products can easily hide behind a total counter. OEE, short for Overall Equipment Effectiveness, makes those losses visible. Not as a factory report card, but as a starting point for targeted improvements.
At Vlegel Technology in Genk, the Data, AI and Software Engineering team, we therefore start with what the data means. For factories and machine builders, an OEE dashboard is only useful when it is clear what a machine measures, which time counts and how losses are recorded.
What does OEE measure?
OEE combines availability, performance and quality. Availability describes how much of the planned production time the machine is actually running. Performance compares the quantity produced during that run time with what would be possible at the ideal cycle time. Quality shows the proportion of production that meets requirements first time.
Together, these factors distinguish three types of loss: not running, running too slowly and making defective products. The overall percentage points you in a direction, but the underlying factors tell you where to look. Low availability calls for a different approach from high reject rates.
Calculating OEE correctly
Use ratios between zero and one for the calculation. Availability = run time ÷ planned production time. Run time is planned production time minus downtime within that period.
Performance = (total units produced × ideal cycle time per unit) ÷ run time. Use consistent time units and an evidence-based ideal cycle time for each product. Divide by run time here, not planned production time: otherwise you count downtime twice.
Quality = good units ÷ total units produced. Then: OEE (%) = availability × performance × quality × 100.
With 90% availability, 85% performance and 95% quality, OEE rounds to 72.7%. That does not mean the machine ran perfectly for 72.7% of the time. It means that good output, converted into time using the ideal cycle time, accounts for 72.7% of planned production time.
Agree the measurement rules before building a dashboard
Define planned production time and how you account for changeovers, breaks, faults and microstops. Also agree when a product counts as good and how rework is recorded. Without consistent definitions, identical situations can produce different scores.
Check counters, timestamps and machine states too. A missing signal does not automatically mean downtime. Consistently record short stops under either availability or performance, without counting the same loss twice. Only compare machines or shifts when the product mix and measurement rules allow it.
Connecting machines and structuring data
Depending on the control system, you can read machine data via OPC UA and make it available to other systems via MQTT. The two protocols serve different roles: OPC UA provides structured access to machine data; MQTT supports publishing and receiving messages.
A Unified Namespace (UNS) can bring this data together in a shared structure for the factory, line and machine. Publish not just counter readings, but also context such as product, order, machine status and timestamp. This lets dashboards and analytics use the same data without building a separate integration for every application. A UNS does not replace agreed data quality standards.
From loss to action
Start with one machine or line and investigate the biggest loss. Discuss downtime reasons with operators, assess speed losses against the cycle time and link rejects to product and process data. Make a targeted change, then check what changes under comparable conditions.
OEE does not tell the whole story. MTTR helps track repair times; MTBF provides insight into the average operating time between failures. Use these metrics alongside OEE. A higher OEE on one machine is not a goal in itself if it creates excess stock or waiting time elsewhere.
AI can summarise recorded losses or highlight patterns for further investigation. Our boundary is clear: AI only reads, never writes to the machine control system and never changes settings. A person reviews the analysis and decides what action to take.
Want to discuss whether your OEE measurement is useful on the shop floor? Book a 15-minute conversation with Vlegel Technology. We will look at which machine data is available, which definitions are missing and what a sensible first step would be.

