CNC Data Acquisition Solution: How Machine Data Actually Gets Collected
A practical explanation of where a CNC data acquisition solution reads its signals, how fast each channel must sample, and which protocol fits which machine. Written for engineers and buyers who need to judge whether a monitoring setup will survive on a real shop floor.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
Where a CNC Data Acquisition Solution Reads Its Signals
Every data acquisition setup starts with one choice: read the controller from the inside, or watch the machine from the outside. Inside reads come from the CNC controller itself. FANUC, Siemens, Heidenhain and Mitsubishi each expose a different set of registers, and the vendor option that unlocks them is often a paid license. Outside reads come from added sensors: current clamps on the spindle drive, accelerometers on the casting, pressure taps on the coolant line.
The inside path gives you program name, feed override, spindle speed command, axis position and alarm codes. That is enough to calculate utilization and cycle time. What it rarely gives you is cutting force or vibration, because the controller only knows what it commanded, not what the tool actually felt. If your goal is tool wear or chatter detection, the inside path alone will not get you there.
The outside path costs more wiring and needs its own cabinet, but it is machine-agnostic. A 10 kHz accelerometer on a spindle housing does not care whether the machine is a 2011 VMC or a 2024 five-axis center. For mixed fleets, that independence is often the deciding factor.
A workable design usually combines both. Pull cycle and alarm data from the controller over Ethernet, then add two or three analog channels per critical machine for the physical signals. Start with the machines that scrap the most parts, not the newest ones.
Sampling Rate and Resolution: The Two Numbers That Decide Everything
Sampling rate sets what you can see. Nyquist says you must sample at more than twice the frequency of interest, so a 500 Hz spindle tooth-passing frequency needs at least 1,000 samples per second, and 2,500 is safer in practice. Run at 100 Hz and that signal aliases into a slow wobble that looks like a real trend but is pure artifact.
Resolution sets what you can trust. A 16-bit analog-to-digital converter over a ±10 V range resolves about 0.3 mV per count. If your current clamp outputs 100 mV per amp, that is roughly 3 mA of resolution, which is fine for load trending and useless for detecting a single broken insert.
There is a cost curve here. Doubling the sample rate doubles the data volume and the storage bill. For utilization tracking, 1 Hz on the controller side is plenty. For vibration and acoustic emission, you are in the 10–50 kHz range and you should decide up front whether you store raw waveforms or only computed features.
Store features, not waveforms, unless you have a specific reason. RMS, kurtosis and band energy per cycle compress a 50 kHz signal into a handful of numbers that trend cleanly and cost almost nothing to keep for years.
MTConnect, OPC UA and the Limits of Each Protocol
MTConnect is read-only by design. It publishes a structured XML stream of observations and was written for machine monitoring, so the data model already understands what a spindle is. That read-only nature is a feature on a production floor: nothing you do to the network can change a feed rate or trigger a tool change.
OPC UA is read-write and carries a richer information model, which makes it the better fit when the same system must also push setpoints or talk to a PLC and an MES layer. The trade-off is complexity. Certificate handling, endpoint discovery and vendor-specific companion specifications add real integration hours.
FOCAS, the FANUC interface, and Siemens 840D access via OPC UA or the vendor's own library are common on older machines. Neither is portable. Expect a separate driver per controller family, and expect some of those drivers to be licensed per machine.
Pick one northbound protocol and accept gateways southbound. Translating everything to MTConnect for monitoring and OPC UA for control keeps the plant network understandable. Mixing three protocols at the top layer is where most projects stall.
Edge Processing, Storage and What Belongs in the Cloud
Put the sampling loop on the edge. A small industrial PC next to the machine can buffer a shift of high-rate data and survive a network outage without losing a single cycle. Cloud round-trip latency is measured in tens of milliseconds, which is far too slow for any closed-loop use and unnecessary for trending.
Cloud earns its place for cross-plant comparison and long-term storage. Rolling a year of feature data from three plants into one dashboard is genuinely easier when the data already lives in one place, and it lets a process engineer in Singapore see how a cell in Dongguan is running without a VPN into the shop network.
Bandwidth math decides the split. One machine at 50 kHz, 16-bit, three channels is about 300 kB per second, or roughly 1 GB per hour. Multiply by 127 machines and the raw stream is unmanageable. Aggregated features cut that by three or four orders of magnitude.
Keep the raw buffer local for 7–30 days, then push only features and alarms upward. That gives you enough history to re-run an analysis after a quality escape without paying to store every waveform forever.
When a CNC Data Acquisition Solution Is Not Worth Installing
If a machine runs one part number, at one set of parameters, and it holds ±0.005 mm with 99.99% first-pass yield, monitoring will mostly confirm what you already know. The payback case is weak. Spend the money on a second spindle instead.
Short-run prototype work is a poor fit for the same reason. A job that ships in 3–5 days and never repeats does not generate enough cycles to build a baseline, and a trend line needs a baseline to mean anything.
Robust data collection also assumes someone will read it. Without a process engineer who owns the alarm thresholds and reviews the trend weekly, the dashboard becomes wallpaper within a quarter. Budget the analyst time before you budget the gateway.
Where it pays back fast: high-mix production with frequent setups, long cycle times above 20 minutes, hard materials such as titanium or Inconel where a broken tool ruins a 6-hour part, and any cell where scrap cost per event exceeds the cost of the monitoring hardware.
Which Data Path Fits Your Case
Match the signal type to the sampling and protocol choices below.
| Goal | Signal source | Sampling rate | Protocol |
|---|---|---|---|
| Utilization and cycle time | Controller registers | 1–10 Hz | MTConnect |
| Alarm and downtime log | Controller events | Event driven | MTConnect |
| Spindle load trending | Current clamp | 100–1000 Hz | OPC UA |
| Tool wear and breakage | Accelerometer, current | 10–50 kHz | Edge only, features up |
| Chatter and surface finish | Accelerometer | 20–50 kHz | Edge only, raw buffer |
| Setpoint or PLC control | Controller write path | 10–100 Hz | OPC UA |
| Legacy FANUC machines | FOCAS library | 1–10 Hz | Gateway to MTConnect |
The Practical Split
If you only need utilization and downtime numbers, read the controller over MTConnect and stop there. If you need to catch tool wear or chatter before it becomes scrap, add analog channels at the edge and push only computed features upward, not raw waveforms.
Common Questions About CNC Data Acquisition
How many sensors does one machine actually need?
For utilization alone, zero. The controller already knows when the program runs. For process monitoring, two or three channels is the usual starting point: one current clamp on the spindle, one accelerometer on the spindle housing, and optionally a coolant pressure tap.
Adding more channels raises wiring, cabinet and calibration cost faster than it raises insight. Prove the first two channels are useful before expanding.
Can we sample every machine in the plant at high rate?
Not economically. One machine at 50 kHz across three 16-bit channels produces roughly 1 GB per hour. Across 127 machines that is over 3 TB per day of raw data before any storage overhead.
The workable pattern is high-rate sampling on a small set of critical machines, low-rate controller polling everywhere else.
Does data collection slow down the CNC controller?
Read-only polling over Ethernet at 1–10 Hz has negligible effect on controller load, which is why utilization monitoring is generally safe to add to a running machine.
High-frequency register polling or write access is a different matter. Test any write path during a non-production window before trusting it.
What does the physical installation involve?
Budget for a small cabinet per machine or per cell, sensor mounting that does not compromise the casting, shielded cable runs away from spindle drive power, and a separate network segment.
Electrical noise is the most common reason a working bench setup fails once it is bolted to a machine. Shielded, twisted-pair runs with a single ground reference solve most of it.
How do we know the data is actually correct?
Calibrate each analog channel against a known reference at install, then re-check quarterly. Cross-check controller-reported cycle time against a stopwatch for one shift.
If the two disagree by more than a few percent, fix the acquisition chain before trusting any trend built on it.
Does GreatLight share process data from customer parts?
No. Uploads are secure and confidential, and an NDA is available on request. Machine monitoring data used for our own process control is kept separate from customer part files and drawings.
Inspection reports are available on request for shipped parts.
Have a Part That Needs Tight Process Control?
Send the drawing and we will come back with a quotation and free DFM analysis within 12 hours.
12-hour quote100% inspectionNo minimum order quantityNDA on request