Questions and answers | Manufacturing data integration

Manufacturing Data Integration Questions

The recurring questions behind a production record that is assembled from a PLC, a test station, a SCADA system, SQL Server, and an ERP. The answers focus on ownership, identity, and failure handling rather than on a particular middleware product.

Reviewed 25 November 2026 ISA-95 / IEC 62264 · OPC UA 1.05 · SQL Server 2022–2025 · Ignition 8.3 Service page

Manufacturing integration is not mainly a connectivity problem. Most of the difficult questions are about meaning: which system is allowed to change a value, what identifier ties a measurement to a work order, and what the plant should do when the network between them disappears.

The questions below are grouped from the data model outward. They apply whether the integration is built with OPC UA, a .NET service, an Ignition gateway, a vendor module, or a database staging table.

How to read these answers. Answers describe general engineering practice and the standards and versions named. A plant-specific design still needs its own interface inventory, ownership decisions, and failure-mode review.

What manufacturing data integration is

The boundaries first, because most integration failures are boundary failures.

What is manufacturing data integration?

It is the set of interfaces, data models, and operating rules that let production data move between equipment, control systems, databases, and business systems without losing identity or meaning.

A plant usually has data in at least four places: the PLC or controller that sees the machine state, the SCADA or HMI layer that presents it, a database that stores measurements or events, and an ERP or MES that owns the work order. Integration makes those systems describe the same production event consistently.

The work includes more than moving bytes. It includes agreeing on a business key, choosing which system is authoritative for each field, converting units and time zones, handling duplicates and retries, and monitoring whether the flow is healthy. A connection that transfers data but loses the work-order number is not integration; it is a data leak with a schedule.

General practice; ISA-95/IEC 62264 is the common reference model

What is the difference between OT and IT integration?

OT integration connects control and automation systems; IT integration connects business applications and databases. They meet at a boundary that needs a deliberate security and ownership design.

OT systems are concerned with physical process state, deterministic behavior, and safety. IT systems are concerned with transactions, reporting, identity, and broad access. The Purdue model describes the layers: level 0 is the physical process, level 1 is control, level 2 is supervisory control, level 3 is operations management, and level 4 is the business network.

Most manufacturing integration projects cross levels 2–4. The practical rule is to avoid making the business network a live dependency of the control layer. Data should move through a defined boundary, often a DMZ or a broker, with the control side retaining the ability to run when the business side is unavailable. That is an architecture decision before it is a firewall rule.

ISA-95/IEC 62264 layer model; Purdue reference architecture

Which systems are usually involved in a manufacturing data integration project?

Typically a PLC or controller, a SCADA/HMI, a historian or SQL database, a test or quality application, and an ERP or MES. The exact list is the first deliverable.

The minimum useful inventory lists every system that creates, changes, or consumes the data, plus the interface each one exposes. For each interface, record the protocol, the supported direction, the authentication, the owner, the version, and whether the vendor supports that use.

Common interfaces include OPC UA or vendor drivers from the PLC, SQL Server from a test station, REST or file exchange from an ERP, and a message queue between services. A database view is an interface too, even when nobody calls it one. The inventory is what turns “we need to integrate everything” into a scoped data flow with a beginning and an end.

General practice

Ownership and identity

The two decisions that determine whether the integrated record can be trusted.

Which system should be the system of record for production data?

The system that owns the business process should own the field. ERP usually owns work orders and inventory; MES owns production execution and genealogy; SCADA owns current equipment state; the historian owns time-series samples.

A system of record is the one place allowed to make the authoritative change. Other systems can cache or display the value, but they do not get to edit it independently. Without that rule, the integration has to reconcile two versions of the truth, which is much harder than moving one version.

A workable starting model: ERP owns the work order, customer, material, and cost; MES owns operation status, consumption, and genealogy; SCADA owns the live tag state and operator interaction; the historian owns the time-series record; the quality system owns inspection results and dispositions. A plant may run MES functions in the ERP or quality functions in a LIMS. The labels matter less than a written agreement for each field.

ISA-95 functional model; adapt to the plant's actual systems

How do you tie a measurement to a work order, lot, or serial number?

Capture the identifier at the point of measurement, validate it against the source system immediately, and store it with the result as separate fields. Never reconstruct it later from a timestamp or a free-text note.

The identifier chain is usually work order → operation → lot or serial → sample or test. Each level should be a separate column with a foreign key or a validated reference, not a concatenated string. The operator should scan or select the identifier, and the application should reject an unknown or closed work order before the measurement is taken.

Example

A tensile test records WorkOrder, Operation, SerialNumber, SampleId, and TestTimestamp as separate fields. A report can then ask which samples belong to a work order, or which work orders used a raw lot, without parsing a note field.

If the identifier is entered after the test, the record is already suspect. The best integration cannot recover identity that was never captured at the source.

General practice; applies to LabVIEW, Ignition, and custom test applications

Interfaces and middleware

How the data physically moves, and when a platform is worth the extra layer.

Should we use OPC UA, REST, a database view, or files?

Use OPC UA for structured, real-time industrial data; REST for business APIs with validation; a supported database view for read-only reporting; files only when both sides already support a defined file contract.

OPC UA carries a typed information model, quality, and timestamps, and it is the natural interface from a PLC or SCADA system. REST is better for business transactions because it can enforce validation and return an explicit result. A database view is convenient for reporting but couples you to a schema; direct writes can bypass the business rules the application depends on. Files are durable and simple, but they need a naming convention, a complete-file signal, and a duplicate rule.

Choose the interface the vendor supports, not the one that is easiest to prototype. Then write the contract down: direction, frequency, payload, error behavior, and owner. The contract is what makes the interface maintainable after the person who built it moves on.

OPC UA 1.05; REST and SQL are version-independent

Do we need a middleware platform?

Not necessarily. A few well-defined flows can be served by a focused service and a database. A middleware platform earns its cost when there are many interfaces, multiple owners, or a need for centralized monitoring and transformation.

Count the interfaces, the number of systems on each side, and the number of people who will change them. Two or three stable flows with one owner are usually simpler as a small .NET service or an Ignition gateway script with a database. Ten flows across ERP, MES, quality, and a cloud data platform start to justify a platform with connectors, retries, mapping, and a monitoring console.

The platform is not free. It adds licensing, a new skill set, its own upgrade cycle, and a place where integration logic can hide. The decision should follow the number and volatility of interfaces, not a preference for a particular vendor. A small, well-documented service that does one flow reliably is often more maintainable than a large platform configured by someone who has left.

General practice

Can you integrate with an ERP that has no usable API?

Sometimes, using supported database views, staging tables, scheduled imports, or a vendor connector. The constraint is support: an unsupported direct write can break on upgrade and bypass the ERP's business rules.

Start by asking the vendor what interface it supports for this use. Many ERPs expose more than the plant realizes: a published view, a staging table, an import utility, an OData endpoint, or a connector with a support agreement. The assessment should identify which path the vendor will stand behind and what happens to it during an upgrade.

If the only path is a direct database write, treat it as a risk, not a solution. Put the write behind a staging table and a controlled job, validate the business keys, log every attempt, and test the upgrade path. Do not write into undocumented tables from a SCADA script. The integration may work for years and then fail on a patch that changes a column or a trigger.

General practice; confirm the supported interface with the ERP vendor

Outages, duplicates, and time

The failure behavior is part of the integration, not an operational afterthought.

How do you handle a plant network outage without losing data?

Buffer locally, bound the buffer, define what happens when it fills, retry with backoff, and make the backlog visible. The plant should own the decision to reject, drop oldest, or stop the process.

A durable local buffer sized to the expected outage is the usual answer. The buffer can be a local SQL table, an on-disk queue, or the store-and-forward feature of the platform. The important part is that it is bounded and monitored. An unbounded buffer hides the problem until the disk fills; a buffer that silently drops records hides it forever.

  1. Estimate the longest credible outage and the record rate. Size the buffer for that window with headroom.
  2. Define the fill behavior in advance. Reject new records, drop the oldest, or stop the production step — each has an operational consequence the plant must accept.
  3. Retry with backoff and a maximum attempt count. Log the last error and the correlation id.
  4. Expose the backlog, the oldest unsent record, and the last successful send on a dashboard or health page.
  5. Test the reconnect path, not just the disconnect. A restart that replays the whole buffer can create duplicates if the receiver is not idempotent.

General practice; Ignition SQL Historian uses store-and-forward, Core Historian uses its embedded store

How do you prevent duplicate records when a message is retried?

Give every event a stable idempotency key derived from the business event, and make the receiver treat a repeated key as the same record. Do not rely on “exactly once” delivery.

Networks retry. A sender that times out may have succeeded, and a receiver that processes the retry creates a second row. The practical fix is an idempotency key: a value that identifies the event independently of the delivery attempt. It might be the work order plus operation plus sample plus test timestamp, or a GUID generated once at the source and carried through every retry.

The receiver stores the key with a unique constraint or checks it before insert. If the key already exists, it returns the existing result instead of creating a new record. The sender records the result and stops retrying. This is simpler and more reliable than trying to guarantee a single delivery across a network you do not control.

General practice

What time standard and unit convention should the integration use?

Store timestamps in UTC with an explicit offset or a datetimeoffset column, synchronize clocks at the source, and store units with every measurement or in a validated unit column. Convert only at the presentation layer.

Use datetime2(3) or datetimeoffset in SQL Server rather than datetime, which has limited precision and no offset. Record the source timestamp and the receipt timestamp separately when they can differ. A PLC clock, a gateway clock, and a database server clock are three different clocks; synchronize them and monitor drift.

For units, store the numeric value with a unit code, or enforce a single canonical unit per column and document it. A temperature column that sometimes holds Celsius and sometimes Fahrenheit is a data-quality defect waiting to happen. Convert at the edge or in the presentation layer, not in an ad hoc report. The same rule applies to currency, pressure, flow, and concentration.

SQL Server 2022–2025; applies to historian and relational storage

Project shape and monitoring

What the work actually involves, and how you know it is still working.

How do you monitor a manufacturing integration?

Monitor freshness, volume, error rate, and backlog at each boundary. A green database connection is not proof that the production record arrived.

Four signals cover most failures: when the last record arrived, how many records arrived in the expected window, how many failed, and how large the backlog is. Add a business-level check: does the latest work order have the expected number of measurements? A flow can be technically healthy and still be missing the records that matter.

Put the signals where an operator or support person will see them, not only in a log file. Include the correlation id and the last error message so the first response is diagnosis rather than guesswork. Alert on freshness and backlog, not just on exceptions; a silent stop is more dangerous than a loud failure.

General practice

How long does a manufacturing data integration project take, and what drives the cost?

A focused flow can be assessed in days and built in a few weeks. Multi-system integration with ERP posting, historian changes, and validation is usually a multi-month program. The drivers are interface count, ownership ambiguity, and testing access.

Estimate by flow, not by page count. One measurement from a test station to a SQL table with a work-order lookup is a small project. The same measurement also posted to an ERP, reconciled against a MES, and reported in a validated quality system is a program. The difference is the number of contracts, the number of owners, and the amount of production access required to test.

Cost drivers include vendor interface licenses, middleware, database work, controls changes, validation, and the time spent waiting for a plant window. A useful first step is a one-week interface inventory and data-flow map. It produces a scope, a risk list, and a sequence that can be priced without guessing.

General practice; ranges depend on scope and site access

Engagement and first steps

The boundary questions that decide whether the integration is allowed to be useful.

Can the integration write back to the PLC?

Technically, yes, and often it should not. Writing recipes or setpoints from an enterprise system introduces safety, validation, and change-control obligations that belong to the control system's design.

Where write-back is required, it is scoped as a control change with interlocks, permissions, and a fallback state — not as a side effect of the reporting integration. If the requirement is only to correct a business field, write to the database, not to the PLC.

What is the best first step?

Book a free 40-minute session, or bring the spreadsheet or report that still needs three systems.

Bring the spreadsheet, export, or report that currently requires three systems and a person to reconcile. A free session is enough to map the path and find the missing identifier.

Scope

These answers describe integration architecture and software practice. They do not replace a site-specific safety review, network design, or the vendor's supported-interface documentation.

Back to the full Manufacturing Data Integration service page