Skip to content

AI and data in industry

How to Measure OEE Automatically from PLC and SCADA Data

Learn how to measure OEE in industrial automation from PLC and SCADA data: which tags to collect, how to define states and stops, and how to validate the numbers.

Direct answer

To measure OEE automatically, read machine state, good and total counts, and stop events from the PLC and SCADA you already have. Define states and stop reasons, calculate availability, performance and quality from those events, and validate against a manual count before trusting the indicator. Authomathika works on this integration.

Institutional content: Authomathika

Published:

Manual OEE logging usually produces numbers that no one trusts. Your PLC and SCADA already see machine state, counts and alarms every second, so the job is to turn those signals into consistent events. This guide covers tags, events and validation, not the interpretation of the indicator itself.

Why does manual OEE measurement fail?

Manual logging fails because it depends on operators to remember, classify and time events while they are busy fixing the problem. The result is rounded times, vague stop reasons and gaps in the record.

OEE (Overall Equipment Effectiveness) is the product of availability, performance and quality for a machine or line. If you need a refresher on reading the result, see What Is OEE and How to Interpret the Indicator. Typical failure points of manual logging:

  • Short stops and slow cycles are never written down.
  • Shift handovers lose information.
  • Different people classify the same stop differently.
  • Data arrives hours or days late, so no one can act on it.

Which PLC and SCADA signals feed OEE?

OEE needs four groups of signals: machine state, production count, reject count and the planned production time. Most of them already exist as tags in the control logic.

A tag is a named variable in the PLC or SCADA that holds a signal value, such as a motor running bit or a product counter.

SignalTypical sourceUsed for
Running, stopped, faulted, standbyDrive and equipment status bitsAvailability
Total countCounter, sensor or encoder in the PLCPerformance
Reject or good countInspection station, scale or reject diverterQuality
Alarm and interlock wordsPLC alarm blocks, SCADA alarm listStop reason
Order, product or recipeMES, SCADA recipe or operator selectionIdeal cycle time
Shift and planned downtimeCalendar in SCADA or plant systemPlanned production time

Where the data is not available, a field instrument may be needed. Check what your current automation already exposes before buying anything, as described in How to Integrate AI and Data with Existing Plant Automation.

How do you define machine states and stop reasons?

Define a short, closed list of states that every machine maps to, and a hierarchy of stop reasons that is assigned automatically where possible. Fewer states mean cleaner data.

A practical sequence:

  1. List the states you need: producing, idle, starved, blocked, faulted, changeover, planned stop.
  2. Write the logic that sets each state from tags, for example running bit true plus count increasing means producing.
  3. Set a minimum stop duration, so micro stops are either grouped or recorded as their own category by agreement.
  4. Map alarm and interlock words to stop reason codes, so a fault stop gets its reason without operator input.
  5. For stops the automation cannot explain, ask the operator to pick from a short list on the HMI.
  6. Record each state change as an event with a start time, an end time and a code.

Compute state in one place, either in the PLC or in a single collector, so that every machine follows the same rule. Document the rule, since it determines what counts as availability loss.

How do you validate the collected data?

Validate by comparing automatic results with an independent reference over a defined period, and by checking that the data is complete, consistent and correctly timestamped.

Acceptance criteria to agree on before go-live:

  • Counts match a physical or manual count for sample shifts, within a tolerance both sides accept.
  • Total time in all states equals calendar time, with no gaps or overlaps.
  • Every stop longer than the agreed minimum has a code.
  • Clocks of PLCs, SCADA and the collector are synchronized.
  • Communication loss is flagged and not recorded as a machine stop.
  • Counter rollover and resets after a PLC restart are handled.
SymptomProbable causeCheck
OEE above 100 percent of expectedWrong ideal cycle time or double countingCompare the cycle time with the nominal rate and review the counter logic
Many unexplained stopsAlarm mapping incompleteList stops without a code and trace the tags
Availability too highStops during communication loss not recordedCompare the heartbeat or quality flag of the link
Counts differ from the warehouseRejects not counted or rework counted twiceReconcile with the downstream count

Where do you store and display the indicator?

Store raw events and counts in a historian or a database, calculate OEE from them, and show it on a dashboard that operators and managers can both read. Keep raw data so you can recalculate when a rule changes.

A historian is a database designed to record time-stamped process values at high rate. Many plants use the SCADA historian for tags and a separate database for events and daily aggregates. Choose based on volume, retention, who needs access and how the plant network is segmented. Show OEE by machine, line and shift, with the three factors and the top stop reasons next to it, so the number leads to an action. For the wider picture, see AI and Data in Industry: A Guide for Plant Managers.

What should you ask for in an integration proposal?

Ask for a scope that lists the tags, the state logic, the validation method and the deliverables, so that you can compare proposals on the same basis.

Gather before requesting a proposal:

  1. Machines and lines in scope, with PLC and SCADA models and versions.
  2. Available tags, or a request to survey them.
  3. Your OEE definition, planned time rules and minimum stop duration.
  4. Current stop reason list.
  5. Where data must be stored and who needs to view it.
  6. Network and cybersecurity requirements.

The proposal should state the tag list, the state and reason mapping, the validation test and acceptance criteria, documentation, training and support after start-up. More items are listed in What to Ask for in an Industrial AI and Data Project Proposal.

Authomathika is an engineering integrator of electrical systems, automation and industrial assembly, founded in 1999 and based in Sertãozinho, São Paulo, Brazil. Its AI and Data area covers data for operational management and decision making. Scope and budget are assessed per project. You can reach the team through the quote request page.

Frequently asked questions

Can I calculate OEE without changing the PLC program?
Often yes, if state bits and counters already exist as readable tags. A collector can read them and apply the state logic outside the PLC. If the tags are missing, a controlled PLC change by qualified personnel may be needed.
Is SCADA data enough, or do I need an MES?
For machine or line OEE, SCADA and PLC data are usually enough to start. An MES helps when you need orders, lots and product-based ideal cycle times in the calculation.
How do I treat micro stops?
Agree on a minimum duration before collecting. Stops shorter than that can be grouped as reduced speed or recorded as a separate category, but the rule must be written and applied to all machines.
How long should validation last?
Use enough shifts to cover different products, crews and operating conditions. The right length depends on the line, so define it in the acceptance criteria before the project starts.
Does automatic OEE replace operator input?
No. Automation records what happened, while operators explain stops the signals cannot classify. The goal is fewer, simpler entries made at the right moment.

Send your scope and receive a technical assessment from the Authomathika team.

Discuss your project ↗
How to Measure OEE Automatically from PLC and SCADA Data | Authomathika