Back to the blog

Integration

From PLC to database: what to watch for in the integration

Data collection does not start with the report but with the cleanliness of the machine signal. Five points that save later rework.

September 22, 2026 4 min readAttila István Pálfi

The most common misunderstanding is that data collection starts with the dashboard. In reality the machine signal decides whether the report will be usable: a signal that is imprecise or has no timestamp cannot be fixed later.

What to watch for

  • A timestamp on every record. Server and PLC clocks drift, so time should come from one source.
  • Separating signal and state. Piece count, run signal and fault message are different data; they should not share one channel.
  • Cycle time, not only piece count. Performance loss is visible only in cycle time.
  • A local buffer. If the network or the server drops out, the machine should not lose the shift's data.
  • A stable data model. If the table structure changes monthly, the reports break monthly too.

The right order

First make the signal clean and time-stamped, then build the database, and only then the report. That order feels slower, but it saves rewriting the whole chain when a missing field turns up.