# Trex DCAS MES AI Ontology, OPC UA & OEE MCP Connector

Canonical URL: https://naditu.com/connectors/trex-mes
Category: MES & Plant Floor
Read path: `SQL / PostgreSQL Read Replica · Bounded Telemetry Rollups`
Write gate: `Read-only on PLC/OPC UA streams · Approved CMMS/ERP actions`

Trex DCAS MES collects high-frequency PLC / OPC UA signals, station states, energy counters, speed losses and scrap codes across textile, automotive, food and metal plants. Feeding raw sub-second telemetry tables to an AI assistant overflows context tokens in seconds, while isolated MES queries lack ERP order priorities and spare-part inventory. Naditu serves bounded, governed plant objects linked to your ERP.

## Business objects & field-level governance.

- **Station & Line Live Status** (`Workstation Master · Panel State · Active Order Assignment`) — Plant, hall & line visibility scoped to operational role
- **OEE & Six Big Losses Rollup** (`Shift OEE · Micro-Stoppages · Speed Loss · Setup/Changeover`) — Ideal cycle time & OEE denominator rules locked in ontology
- **Downtime & Maintenance Breakdown** (`Stoppage Intervals · Root-Cause Code · Maintenance Intervention`) — Technician & operator badge masking per KVKK / HR policy
- **Lot Traceability, Scrap & Energy** (`Production Confirmation · Scrap Reason · Energy per Lot · ERP Order`) — Unit energy & scrap cost joined with ERP finance policies

## Three physical schema traps solved in the layer.

1. **High-frequency OPC UA tag floods vs. semantic rollup windows:** Raw PLC tag tables record millions of counter ticks a week. Naditu routes AI queries to bounded shift, hour, order and stoppage-episode grains instead of raw tag dumps.
2. **Unconfirmed operator stoppage codes ("Uncategorized / Stop 0"):** Machines automatically log generic stop state until the operator classifies the reason at the panel. The ontology distinguishes pending-classification stops from confirmed root causes.
3. **Counter resets and net-good vs. gross-counter math:** PLC pulse counters wrap or reset on job changeovers, and gross counts include startup scrap. Naditu encodes net-good quantity logic reconciled with ERP confirmations.

## Common engineering questions.

### How does Naditu keep Trex DCAS telemetry from blowing up LLM token limits?

Instead of returning tens of thousands of raw PLC ticks, Naditu exposes structured ontology objects at stoppage-event, work-order, lot and shift grain with mandatory time bounds.

### Can we cross-check Trex MES production counts against SAP, Logo or Nebim confirmations?

Yes. Naditu joins Trex station confirmations with ERP work-order receipts to surface unposted production or scrap discrepancies immediately.

### Can an AI agent change PLC parameters or stop a machine through Naditu?

Never. Machine/PLC telemetry is strictly read-only in Naditu. Follow-up actions such as opening a maintenance ticket or reordering a spare part go through human-approved CMMS/ERP gates.
