1. Home
  2. Blog
  3. ERP

ERP

What Is IoT Machine Data Collection for Manufacturing? Sampling, Edge Processing, Alarms and OEE Events

What is IoT machine data collection? How sensor and PLC data reaches software: sampling and volume math, edge processing, alarm design, OEE events, payback.

Contents 16 sections
  1. What Is IoT Machine Data Collection?
  2. Which Layers Does Data Pass Through from Sensor to Software?
  3. How Are Sampling Rate and Data Volume Calculated?
  4. Should Raw Data Be Processed at the Edge or in the Center?
  5. Why Do Timestamps and Clock Drift Matter?
  6. How Do You Prevent Data Loss When the Connection Drops?
  7. How Do You Design Thresholds and Alarms for Noisy Signals?
  8. How Do You Turn Raw Data into OEE, Stop and Count Events?
  9. How Does It Connect to ERP and MES?
  10. How Do You Secure the Devices?
  11. How Long Is Raw Data Kept and How Is It Summarized?
  12. How Are Cost and Payback Calculated?
  13. What Are Common Mistakes in Machine Data Collection?
  14. How Do You Set Up Machine Data Collection in Six Steps?
  15. Production and Integration Software with İnovabil
  16. Frequently Asked Questions

Machines on a production line generate dozens of values every second: temperature, pressure, speed, a running or stopped flag, units produced. In many plants those values stay on the machine's screen; at the end of the shift someone fills in a sheet and keys it into a spreadsheet the next day. IoT machine data collection means bringing sensor and controller (PLC) data into software reliably. The goal is not to hoard data but to turn it into stop, count and efficiency events.

This guide covers the layers data passes through, how data volume follows from the sampling rate, the difference between edge and central processing, clock drift and connection loss, alarm design for noisy signals, converting raw data into an OEE event, the link to ERP and MES, device security, retention and cost. We name no product, protocol or tool, and every number is representative: replace it with measurements from your own plant.

Key takeawayData collection is not a connectivity job; it is a data quality job. If the signal inventory, sampling interval, clock, buffer and alarm rules are not set up correctly from the start, the dashboard looks good but the numbers are wrong. Decide first which decision you want to make, then collect the minimum data that decision needs.

What Is IoT Machine Data Collection?

Machine data collection is the process of moving signals from sensors and controllers on production equipment to software over a network, storing them with timestamps and turning them into meaningful events.

This article focuses on the collection infrastructure. For recording shop-floor work orders, see our manufacturing execution system (MES) guide; for maintenance planning, see our maintenance management software guide. Both are fed by the events this layer produces. The subject is machine state and output, not people monitoring.

We recommend reading: What is a manufacturing execution system (MES)? Shop-floor tracking, work order records and OEE guide

Which Layers Does Data Pass Through from Sensor to Software?

Data is handled at six stops, and it can be distorted at each one.

LayerWhat it doesTypical problem
Sensor and controllerMeasures the physical value, holds counters and statesWrong scaling, calibration drift
Edge gatewayReads values, filters, buffers, timestampsClock drift, a full buffer
TransportDelivers data to the center over a secure channelDisconnects, duplicate messages
Time-series storeKeeps raw and summary dataVolume growth, slow queries
Event generationDerives stops, counts and alarms with rulesWrong threshold, chattering alarm
ERP and MESMatches events to work orders, cost and stockMissing work order link

Queues are common in the transport layer; we explain the concept in our message queue guide.

How Are Sampling Rate and Data Volume Calculated?

Volume = number of signals × samples per second × 86,400 × record size. Example plant: 20 machines, an average of 12 signals per machine, 240 signals in total; one sample per second; a 16-byte record (timestamp 8, value 4, signal ID 2, quality flag 2).

  • Events per day: 240 × 86,400 = 20,736,000.
  • Volume per day: 20,736,000 × 16 = 331,776,000 bytes ≈ 331.8 MB.
  • Bandwidth: 240 × 16 = 3,840 bytes/s ≈ 30.7 kbit/s.

The shortest event you need to catch sets the sampling interval. With a 30 s stop threshold the interval should be at most 15 s. With a 5 s interval, the measured stop duration is off by ±5 s; on a 30 s stop that is ±16.7% (5 ÷ 30).

MethodEvents per dayVolume per dayNote
Raw, 1 per second20,736,000331.8 MBBaseline
On change only (8% of samples)1,658,88026.5 MB−92%; the other 92% are repeats
One-minute summary (min, avg, max, last)345,600 rows11.1 MB32-byte row; 240 × 1,440
Daily machine data volume: raw 331.8 MB, on-change 26.5 MB, one-minute summary 11.1 MB
The same 240 signals in three forms: daily volume and the retention total (representative).

Should Raw Data Be Processed at the Edge or in the Center?

The rule is simple: fast decisions and volume reduction happen at the edge; shared analysis and long retention happen in the center. They are not alternatives but a division of labor.

TopicEdge (next to the machine)Center (server or cloud)
Response timeSub-second; independent of the linkDepends on network and queue
VolumeFilters, summarizes, sends changes onlyCostly at high volume
Connection lossBuffers locallyNo data arrives, a gap forms
Rule changesMust be rolled out to many devicesUpdated in one place

The difference is sharpest with high-frequency signals. A vibration channel at 1,000 samples per second and 8 bytes produces 691.2 MB a day (8,000 × 86,400). Computing a one-second RMS (effective value) at the edge and sending one 16-byte record cuts that to 1.38 MB: 500 times less. The raw waveform is kept only as a short window around an alarm.

Why Do Timestamps and Clock Drift Matter?

The timestamp is the only reference that gives data meaning, and device clocks drift. Example: a low-cost device clock drifts 2 s a day (about 23 ppm); after 30 days that is 60 s.

If a stop starts on device A and ends on device B, and the two clocks differ by 40 s, a stop that really lasted 180 s appears as anything from 140 to 220 s: ±22.2% (40 ÷ 180). The remedy has three steps: all devices sync to a network time source; each record stores both the source timestamp and the arrival time; the gap between them is monitored and an alarm fires when it exceeds a threshold (for example 2 s).

How Do You Prevent Data Loss When the Connection Drops?

Keep a local buffer at the edge and send the backlog in order once the link returns. Without a buffer, data for the whole outage is lost for good.

With 99.5% link availability, a 30-day month contains 43,200 × 0.005 = 216 min of outage. Without a buffer the loss is 216 × 60 × 240 = 3,110,400 events (0.5% of 622,080,000 events a month). Buffer sizing: a 256 MB disk at 3,840 bytes/s of raw flow fills in 256,000,000 ÷ 3,840 ≈ 66,667 s ≈ 18.5 hours; for a stream that writes changes only (307.2 bytes/s) it lasts 231.5 hours, about 9.6 days.

  • Order and duplicates: Each record is written under a unique key (signal ID, source timestamp), so resending creates no duplicates.
  • Drain rate: A 30-minute outage accumulates 1,800 × 240 = 432,000 events (6.9 MB). If 2,000 events per second are sent while live data keeps flowing, draining takes 432,000 ÷ (2,000 − 240) ≈ 245 s, about 4.1 min.
  • Completeness: Received ÷ expected = 20,611,584 ÷ 20,736,000 = 99.4%; falling below target is a reason to alarm.
  • Silent signals: Track signals that sent nothing in the last 5 min (6 of 240 = 2.5%). No data does not mean "value zero".
We recommend reading: What is software monitoring? Metrics, logs, traces and alerts guide

How Do You Design Thresholds and Alarms for Noisy Signals?

Real signals are noisy, and a single-threshold alarm chatters when the signal hovers near the threshold. The fix is hysteresis plus a persistence time.

Example: an alarm threshold of 80 °C, signal noise of ±0.4 °C (0.8 °C peak to peak), and temperature wandering between 79.6 and 80.4. With a single threshold, 10 minutes (600 samples) produce 120 crossings, so 120 alarms. With hysteresis: raise at 80.0 °C, clear at 78.0 °C; the band (2 °C) is wider than the noise. The same period yields 1 alarm: a 99.2% reduction (119 ÷ 120).

  • Persistence: The alarm opens only if the condition lasts a set time (for example 10 s).

How Do You Turn Raw Data into OEE, Stop and Count Events?

Raw data is not an event; an event is the result of a rule applied to raw data. The rule is written down and versioned, otherwise two calculations give two different answers.

EventRaw dataRule
StopRunning flag, speedFlag 0 and speed 0 for at least 30 s is a stop; shorter is a micro-stop
CountCounter valueDifference between consecutive counter readings; rollover correction
AlarmAnalog valueThreshold, hysteresis, persistence
Shift summaryEventsStops, count and quality within planned time

Using counter differences for counts is sturdier than counting pulses: even if a reading is missed, the counter value stays correct. If the counter is 16-bit it wraps to zero after 65,535; a previous reading of 65,480 and a new reading of 120 gives 120 + 65,536 − 65,480 = 176 units.

Example shift: planned production time 450 min (480 min shift, 30 min break). Nine stop events total 50.5 min; 14 micro-stops total 3.5 min; stop total 54 min.

  • Availability = (450 − 54) ÷ 450 = 396 ÷ 450 = 88.0%. If micro-stops are ignored you get 399.5 ÷ 450 = 88.8%; the gap is 0.8 points.
  • With an ideal cycle of 20 s, ideal output = 396 × 60 ÷ 20 = 1,188. Actual from the counter is 1,069: performance = 90.0%.
  • Quality: good 1,033 ÷ 1,069 = 96.6%.
  • OEE = 0.880 × 0.900 × 0.966 ≈ 76.5%. Check: 1,033 × 20 ÷ 27,000 = 76.5%.
We recommend reading: How to do production capacity planning and bottleneck analysis

How Does It Connect to ERP and MES?

Raw data does not go to the ERP; the ERP receives event-level data: work order quantity, stop events, material consumption. The link between them is the work order ID, because machine data alone does not know which job is running.

  • Work order link: The operator or MES starts and ends the work order; data collection writes only the counter difference in that interval to the work order. The 1,069 units in the shift split into 640 for job A and 429 for job B.
  • Material issue: If the unit recipe is 0.5 kg, 640 × 0.5 = 320 kg is consumed automatically for job A.
  • Reconciliation: The counter says 1,069, the operator reports 1,060; the gap is 9 units, 0.84%. With a 1% tolerance it passes; if exceeded, the cause is investigated.
  • Historical data: For long-term analysis, events are also written to a data warehouse.

A machine cannot know the reason for a stop; the "reason" comes from the operator. Connect counter data to maintenance planning through maintenance management software; for scrap, see our scrap and yield tracking article.

How Do You Secure the Devices?

Only defensive measures are described here; security is part of the design from day one.

MeasureWhy
A unique identity per device (certificate or key)You can verify which device sent the data
Separating the production network from the corporate network (segmentation)A problem in one place does not spread to the other
Outbound-only connectionsNo door is opened into the device from outside
Changing default passwordsThe most common weak point

20 machines and 4 edge gateways mean 24 identities; with a one-year certificate life that is 24 renewals a year. Done by hand that is 24 × 20 min = 8 hours; a warning should arrive 30 days before expiry. For general principles, see our secure software development guide. Linking operator identity to machine data can create personal data; consult your legal counsel on KVKK (Turkey's personal data protection law) and employment law.

How Long Is Raw Data Kept and How Is It Summarized?

Keeping raw data short and summaries long lowers both cost and query time.

TierResolutionRetention (representative)Question it answers
Raw1 s30 days (9.95 GB)What happened during this stop?
One-minute summary1 min730 days (8.07 GB)How did this machine do last year?
Event recordStop, count, alarmPer policyOEE and causes

Raw for 30 days plus summaries for 730 days: 9.95 + 8.07 ≈ 18.0 GB. Keeping raw data for 2 years would take 331.776 × 730 ≈ 242.2 GB: about 13.4 times more. For retention periods, consult legal counsel and your financial advisor (certified accountant).

How Are Cost and Payback Calculated?

Example: 20 machines, 4 edge devices. Setup: devices 4 × ₺45,000 = ₺180,000; integration and software 40 person-days × ₺9,000 = ₺360,000; cabling and commissioning ₺60,000. Total ₺600,000. Annual running cost ₺72,000 (₺6,000 a month).

  • Ending manual data entry: 20 machines × 3 shifts × 10 min = 600 min/day = 10 h; over 26 days 260 h × ₺300 = ₺78,000/month.
  • A 5% stop reduction thanks to visible stops: 20 × 3 × 54 min = 54 h/day; 5% is 2.7 h; over 26 days 70.2 h × ₺1,000 (contribution per machine hour) = ₺70,200/month.
  • Monthly gross ₺148,200; after running cost, net ₺142,200. Payback: 600,000 ÷ 142,200 ≈ 4.2 months.

If the stop gain never materializes, only the data entry saving remains, net ₺72,000: ≈ 8.3 months. If half of the gross benefit materializes, net is ₺68,100: ≈ 8.8 months.

What Are Common Mistakes in Machine Data Collection?

  • Collecting every signal: Data with no decision attached is just cost.
  • Ignoring the clock and the buffer: Durations swing by ±22% and outages leave permanent gaps.
  • Single-threshold alarms and uncounted micro-stops: Alarms get ignored and availability looks too high.
  • Not versioning rules and leaving security for last: Past figures become incomparable and later fixes are costly.

How Do You Set Up Machine Data Collection in Six Steps?

  1. Inventory: Write down which machine signal is needed for which decision, with owner and unit.
  2. Sampling: Pick the interval from the shortest event; calculate volume.
  3. Edge: Set up clock sync, buffer, filters and summarizing.
  4. Security: Device identity, network separation, outbound-only connections.
  5. Event generation: Write the stop, count and alarm rules, version them and verify them against manual measurement.
  6. ERP and MES link: Define work order matching and a reconciliation threshold.
Plan for bringing machine data in: inventory, sampling, edge, security, events, ERP and MES
The six-step setup plan: decision and inventory first, then events and matching.

Production and Integration Software with İnovabil

At İnovabil our focus is building bespoke software from scratch: custom software, ERP, CRM, e-commerce, web, mobile and integration. We do not have a machine data collection product or a registered reference in this area, and we say so plainly. We suggest setting up the device and edge infrastructure with a specialist supplier, and designing together the ERP and integration layer that ties event data to work orders, stock and cost.

We built warehouse management for Sleepy, logistics and shipment planning with wholesale order management for Karyak, shipment planning for Bofigo, CRM, purchasing and mobile for Avcılar İnşaat, and a purchasing system for İZBAN. Send a short summary and we can turn which decision needs which data into a written requirement.

We recommend reading: Our software development process: step by step from analysis to launch

Frequently Asked Questions

What is IoT machine data collection?

It is moving sensor and controller signals from machines to software over a network, storing them with timestamps and turning them into events such as stops, counts and alarms. The value lies not in accumulating data but in interpreting it correctly.

How do you choose a sampling rate?

By the shortest event you must catch. For a 30 s stop threshold the interval should be at most 15 s. In the example, 240 signals at one sample per second produce 331.8 MB a day; sampling more often raises volume but not accuracy.

Why is data processed at the edge?

For fast decisions, volume reduction and resilience to connection loss. In the example, on-change sending cuts volume by 92% and a one-second summary by 500 times. Shared analysis and long history stay in the center.

Is data lost when the connection drops?

Not with a local buffer. A 256 MB buffer lasts about 18.5 hours on a raw stream and about 9.6 days on a change-only stream. Without a buffer, data for the outage period is lost permanently.

How many months does machine data collection take to pay back?

In the example the investment is ₺600,000, the net monthly benefit ₺142,200 and payback about 4.2 months. If the stop gain does not materialize it is about 8.3 months. The numbers are representative; recalculate with your own stop data.

Let's talk about your project

Tell us briefly about the software you have in mind; we'll listen and prepare a tailored roadmap and proposal.

Get a quote