smartmanufacturinglab_
MES + INDUSTRIAL AI — PT-BR & EN

Where Industrial MES
Meets AI

Technical publications and open source implementations on OPC-UA integration, ISA-95 architecture and AI agents applied to discrete manufacturing.

By Jefferson — independent MES consultant with 7 years of experience in Siemens, Rockwell, Aveva and Sepasoft projects.

ISA-95
Reference architecture
OPC-UA
Native protocol
JavaScript
Open source implementation
PT + EN
Bilingual publication
Technical stack

Architecture Purpose-Built
for Manufacturing

OPC-UA Agent

Real-time tag acquisition via ClientSubscription. PLC source timestamps for precise downtime calculation.

MES REST API

Enrichment with production order context, operator and parts/hour target via ISA-95 Level 3 integration.

OEE Engine

Per-shift Availability, Performance and Quality calculation. Event-precision downtime accumulation.

ReAct + LLM

Reasoning loop with Claude for root cause diagnosis. Delivery via Adaptive Card on Microsoft Teams.

Technical series in publication

OEE Agent — 8 Episodes
from PLC to Microsoft Teams

Data Inputs
  • 1 MachineState tag — OPC-UA
  • 2 FaultCode tag — OPC-UA
  • 3 Production order — MES API
  • 4 Fault history — MES API
OEE Agent
ReAct Loop
Observe · Reason · Act
Outcomes
  • Root cause diagnosis
  • Real-time shift OEE
  • Operational recommendation
  • Adaptive Card on Teams
Expected operational impact
Diagnosis time
Before: 30–60 min
After: < 2 min
Context available to technician
Before: Isolated fault code
After: Fault + Order + OEE + History
Systems consulted
Before: 3 separate systems
After: 1 Teams notification
Access EP01 →
Content

Technical Pillars

ISA-95

MES Architecture

System hierarchy, object models and Level 2–3 integration per the ISA-95 standard.

OPC-UA

PLC Integration

Data acquisition via ClientSubscription, certificate-based security and vendor-specific NodeIds.

OEE

Manufacturing KPIs

Availability, Performance and Quality calculation. MTBF, MTTR and micro-stoppage analysis.

LLM

AI Agents

ReAct pattern applied to industrial diagnosis. Integration with Claude API and local models via Ollama.

REST API

MES Integration

Consuming and publishing to MES platform REST APIs. Authentication, pagination and error handling.

Teams

Operational Alerts

Adaptive Cards for maintenance alerts with interactive actions. Webhooks and Bot Framework.

About the author

Jefferson

Independent consultant specializing in MES system integration with over 7 years of experience in industrial projects. Expertise in ISA-95 architecture, integration of Siemens and Rockwell controllers via OPC-UA, and implementation of MES platforms including Aveva and Sepasoft.

Smart Manufacturing Lab documents technical implementations from real projects: system architecture, integration protocols and the convergence between MES platforms and large language models in industrial environments.

ISA-95 OPC-UA MES OEE LLM Node.js Sepasoft Aveva
Consulting

Production environment implementation

Technical support for engineering and industrial IT teams in the evaluation, specification and implementation of MES solutions with AI agent integration — from OPC-UA data acquisition through to operational diagnostic delivery via Microsoft Teams.