Unifying Doruk Otomasyon ProManage MES downtime telemetry with ERP costing ledgers for AI analysis exposes a structural blind spot that almost every discrete manufacturer carries inside its master data. On the shop floor, ProManage industrial IoT counters (ProManage KiT, OPC UA gateways, and operator terminals) record every press stroke, injection shot, and machine halt down to the second in Microsoft SQL Server historian tables. Upstairs in finance, controllers run monthly product costing in SAP PP/CO, Canias, Logo Tiger, or Microsoft Dynamics 365 against static routing tables that have not been audited on the line in three years.
When plant directors or cost controllers attach a raw SQL assistant across both databases to ask why unit margins eroded on an automotive or white-goods order, unmodeled table joins mix micro-stoppages with planned maintenance, ignore blocked mold cavities, and multiply material consumption by the number of stoppage rows. Bridging shop-floor historians and financial costing requires explicit semantic rules before an agent ever summarizes a variance.
Separating micro-stoppages, mold changeovers, and planned maintenance in ProManage
Inside Doruk ProManage SQL historians, every machine state transition writes a timestamped event linked to a multi-tier downtime reason-code tree (durus agaci). Much like the PLC buffer patterns we examined in Trex DCAS MES, OPC UA telemetry, and OEE data for plant AI, summing raw stoppage minutes without classifying each branch against ISO 22400 and OEE accounting rules corrupts both availability metrics and machine-hour absorption rates:
- High-frequency micro-stoppages (kisa duruslar): brief sensor jams, part-ejection hesitations, or bar-feeder pauses lasting under 60 or 120 seconds rarely receive an operator reason code. Under standard
OEEmath, these sub-threshold halts belong inside thePerformancespeed-loss bucket rather thanAvailabilitybreakdown time, yet they directly consume paid operator and machine power hours in ERP costing. - Mold, die, and fixture changeovers (kalip ve ayar degisimi): setup intervals tracked for
SMEDimprovement include mechanical clamping, pre-heating, and first-piece quality approval (ilk onay). Treating changeover minutes as unplanned mechanical failure hides batch-size scheduling penalties that belong to small-lot order economics. - Planned preventive maintenance and non-scheduled shifts: scheduled overhaul windows, statutory inspections, and unscheduled Sunday shifts sit outside planned production time. Including them in unplanned downtime denominators artificially depresses work-center utilization and inflates standard hourly overhead rates when controllers recalibrate ERP tariffs.
Catching the gap between 37-minute ERP routing standards and multi-cavity cycle actuals
In almost every mature plant running SAP PP, Canias, Logo Tiger, or Dynamics 365, engineering routings hold frozen standard times that nobody re-verifies after initial product launch. A routing operation might state that machining or molding a batch takes a static 37-minute standard cycle per hundred pieces, driving both MRP finite capacity and standard product cost rolls.
Live ProManage cycle counters frequently tell a completely different story, especially on multi-cavity injection molding, die-casting, and progressive stamping tools. Suppose an eight-cavity mold develops thermal wear or ejector scoring on two gates. Rather than halting an urgent shipment, toolroom supervisors cap those two cavities and run the work order on six active cavities (aktif goz sayisi = 6) while also slowing hydraulic clamp speed by four seconds to prevent flash defects.
Unless the AI layer reconciles ProManage active-cavity parameters and realized shot times against the ERP routing operation, two compounding errors occur. First, the machine consumes 45 percent more press and labor hours per thousand good pieces than the 37-minute routing standard assumes, creating an unexplained unfavorable efficiency variance at month-end. Second, downstream commercial channels keep promising unrealistic lead times, creating the exact catalog availability mismatches we detail in IdeaSoft, T-Soft, Hepsiburada, and Entegra ERP data for AI.
Preventing 1:N historian stoppage fan-out from multiplying ERP work-order quantities
The single most destructive SQL bug in MES-to-ERP analytics is 1:N relational fan-out between ERP production orders and ProManage event logs. In SAP (AFKO / AUFM), Canias (IASPRDORDER), Logo Tiger (PRODORD), or Dynamics 365 (ProdTable), one work order header represents a single target build quantity and one summarized bill-of-materials consumption total.
Over a two-shift run, that single work order routinely maps to forty separate rows in the ProManage stoppage historian, twelve operator shift sign-ins, and eight scrap-reason entries. When a generic Text-to-SQL agent executes a flat LEFT JOIN from ERP work orders to ProManage downtime events and runs SUM(PlannedQty) or SUM(ComponentCost) alongside SUM(StoppageMinutes), SQL duplicates the ERP work-order header forty times. A 500-piece order with 80,000 TRY of raw resin or sheet steel suddenly appears in the AI summary as 20,000 pieces and 3.2 million TRY of consumed material.
A second distortion appears whenever shifts span midnight or month-end cutoffs. While ProManage closes machine pulses on exact shift timestamps, ERP confirmation queues in SAP CO11N (AFRU), Canias IASPRDCONF, or Logo Tiger production slips frequently wait for quality release or warehouse backflush clearance the next morning. Querying both tables without a shared cutoff watermark makes open work-in-progress look like unrecorded shop-floor shrinkage.
Feeding verified ProManage scrap and machine hours into ERP costing variance reviews
Resolving work orders, mold cavities, stoppage trees, and ledger postings inside a governed enterprise manufacturing ontology eliminates join fan-out and turns noisy telemetry into audit-grade costing intelligence:
- Grain-locked pre-aggregation before cross-system joins: the ontology aggregates
ProManagenet running minutes, setup duration, micro-stoppage losses, and active-cavity shot counts to the exact ERP work-order operation key before comparing them againstSAP COactivity confirmations,Logo Tigeractual cost allocations, orCaniasandDynamics 365route journals. - Distinguishing true scrap from recyclable runner regrind: plastics and metal-casting plants separate non-recoverable scrap (
kesin hurda) from sprue and runner regrind (kirma geri donusum) that returns to inventory at blended resin value. BindingProManagedefect codes to ERP scrap movement types stops assistants from overstating material yield loss. - Continuous routing drift alerts with human sign-off: whenever rolling 30-day realized cycle times in
ProManagedeviate by more than ten percent from frozen ERP routing standards like a stale37-minutenorm, the agent flags the exact part-and-mold pair and drafts an engineering routing update for industrial-engineering approval, never overwriting ERP costing masters autonomously. - Auditable month-end overhead absorption reconciliations: before finance runs actual cost allocation across work centers, cost controllers can decompose total order variance into raw material usage, blocked-cavity cycle slowdown,
SMEDchangeover overruns, and energy analyzer kilowatt-hours captured directly on the machine line.