GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Data acquisition basics

What other equipment can collect CNC data feeding an acquisition gateway

A CNC data acquisition gateway does not only listen to mills and lathes. Robots, CMMs, PLC-driven lines, sensors, and power meters can all report into the same stream. This page explains how each device is connected, what data it really produces, and when the effort pays off.

Signal types explainedProtocol comparisonEdge vs plant gatewayWhen it is not worth it
Industrial equipment that can be isolated by a gateway, showing what other equipment can collect data on a shop floor
Definition

What a CNC data acquisition gateway actually does

A CNC data acquisition gateway is an industrial computer or edge box that sits between the shop floor and the plant network. On the machine side it speaks the native protocol of each device. On the network side it speaks MQTT, OPC UA, or a REST endpoint. In between it timestamps, buffers, and normalizes the data.

The gateway is not a historian and it is not an MES. It is a translator and a traffic cop. It reads a register from a PLC, a value from a CNC controller, or a string from a serial port, then publishes a clean record upward. That record typically carries a device ID, a tag name, a value, a unit, and a timestamp.

The important design question is not which gateway to buy. It is which devices can supply useful data and how much work each connection takes. A gateway with eight free ports is cheap compared with the engineering hours needed to map one legacy machine.

Keep the scope tight at first. Pick two or three device types, prove the data is accurate, then expand. Collecting everything on day one usually produces a lake of tags nobody trusts.

  • 1
    Native protocolEach device keeps its own language; the gateway translates.
  • 2
    TimestampingOrder matters more than sample rate for most diagnostics.
  • 3
    NormalizationSame tag name and unit across all sources.
  • 4
    Store-and-forwardBuffers through network drops so no gaps appear.
Source 1

Robot cells and part handlers as data sources

Robots already know a lot. A six-axis arm reports joint angles, servo torque, cycle state, program number, and fault codes. Most controllers expose these over EtherNet/IP, PROFINET, or a vendor SDK. A gateway can read them without touching the robot program.

The value is context. When a CNC machine reports a spindle overload, the robot log may show a heavy grip force or a slow approach. Together they point at the gripper, not the spindle. Neither device alone tells that story.

Watch the update rate. Torque at 100 Hz is useful for collision analysis but floods a plant network. Sample fast at the edge, then publish averages or threshold events upward. Keep raw traces local unless an engineer asks for them.

Older robots with no network port are the hard case. A digital I/O tap on the cycle-start relay gives only run or stop. That is enough for OEE but not for diagnostics. Say so before the project starts.

  • 1
    Good fitCells with a networked controller and repeatable cycle.
  • 2
    Poor fitLegacy arms with no port and no spare I/O.
  • 3
    Useful tagsProgram number, cycle state, servo torque, fault code.
Source 2

CMMs, gauges, and inspection stations

A CMM or vision system produces the most valuable data in the plant: measured dimensions with uncertainty. When a gateway pulls those results next to the machine that cut the part, offset drift becomes visible in hours instead of weeks.

Most CMM software can export results to a file, a database, or an OPC UA server. The gateway then links each measurement to a serial number or a pallet ID. Without that link the numbers float free and cannot be tied to a spindle or a fixture.

Gauges are simpler. A digital micrometer with a data cable sends a value on a button press. A gateway reading that port turns a clipboard into a trend line. The measurement is only as good as the operator technique, so label the source clearly.

One caution. Inspection data is often owned by the quality team, not production. Agree on access and retention before you wire anything. A gateway that quietly republishes quality data will be unplugged fast.

  • 1
    Good fitSerial-number traceability already in place.
  • 2
    Poor fitManual inspection with no part ID.
  • 3
    Useful tagsFeature ID, nominal, actual, deviation, part serial.
Source 3

PLC-driven lines, feeders, and conveyors

Any cell with a PLC is easy to instrument. The PLC already holds the logic: which station is active, which recipe is loaded, why the line stopped. A gateway reads those registers over Modbus TCP, EtherNet/IP, or OPC UA and publishes them.

The best tag to start with is the stop reason. Most lines have a fault word or an alarm bit that says why the conveyor halted. Capturing that single word with a timestamp removes hours of argument about what actually happened.

Do not poll faster than the logic changes. Reading a register every 10 ms when the value updates once a second wastes bandwidth and bloats storage. Match the poll rate to the machine cycle.

If the PLC program is locked by the builder, ask for a read-only tag list. Most integrators will provide it. If not, a gateway with digital inputs on the indicator lamps is the fallback.

  • 1
    Good fitOpen tag list and a documented fault word.
  • 2
    Poor fitLocked program with no read access.
  • 3
    Useful tagsStation ID, recipe number, fault word, cycle count.
Source 4

Sensors and energy meters on the same gateway

Vibration, temperature, and pressure sensors attach directly to many gateways over IO-Link, 4–20 mA, or a serial bus. They add condition data the controller never sees. A spindle bearing going bad shows up in the envelope spectrum weeks before it shows in surface finish.

Mounting matters more than sensor brand. A vibration puck glued to a thin sheet metal cover reads the cover, not the bearing. Bolt it to a rigid housing face, as close to the bearing as possible.

Power meters are the easiest win. A three-phase meter on the machine feed gives kilowatts and kilowatt-hours per part. That number is often the first real cost figure a shop has for a specific job.

Keep sensor wiring away from servo drive cables. Induced noise on a 4–20 mA loop looks exactly like a process fault. Use shielded twisted pair and ground the shield at one end only.

  • 1
    Good fitRigid mounting point and shielded cable route.
  • 2
    Poor fitFlexible covers or long unshielded runs.
  • 3
    Useful tagsRMS velocity, envelope, temperature, kW, kWh.
Fit check

Which devices to connect first

Ranked by data value per engineering hour, based on typical shop floor conditions.

SourceTypical signalConnect effortBest first use
CNC controllerMAC address, alarm, programLowUtilization and alarm log
Robot cellTorque, state, fault codeMediumCycle context and collision
CMM or gaugeMeasured value, serialMediumOffset drift tracking
PLC line cellBit, register, recipe IDLow to mediumDowntime reason capture
Vibration sensorAcceleration, envelopeMediumSpindle and bearing health
Power meterkW, kWh, power factorLowEnergy per part
Legacy relay tapRun or stop onlyHighBasic OEE, no diagnostics

Where to draw the line

If you want fast payback, connect the CNC controllers, the PLC stop reason, and one power meter. If you want predictive maintenance, add vibration and robot torque, and accept the extra engineering hours. Skip legacy relay taps unless nothing else is available.

FAQs

Questions engineers ask next

Can a gateway read data from a machine with no network port?

Yes, but only coarse data. A digital input on the cycle lamp or a current clamp on the spindle feed gives run, stop, and load. You lose program number, alarm code, and axis data.

Treat this as a last resort. The data answers 'was it running' but not 'why did it stop'.

How many devices can one gateway handle?

It depends on protocol and poll rate, not on a fixed device count. Twenty PLCs at a 1 s poll are lighter than two servos sampled at 1 kHz.

Size the gateway by tags per second and by the number of concurrent protocol sessions. Add a second edge box rather than oversubscribing one.

Is OPC UA always the right choice?

No. OPC UA is strong for structured data and for crossing vendor boundaries. MQTT is lighter for many small messages and for links over cellular.

Many plants run both: OPC UA inside the cell, MQTT from the gateway to the broker.

Do we need to timestamp at the device?

Ideal, but rarely available. If the device cannot timestamp, the gateway should stamp on arrival and record the network delay separately.

For diagnostics that compare two sources, aim for under 10 ms of clock error between boxes. Use NTP on every gateway.

What breaks most often in these projects?

Tag naming and unit mismatch. Two teams publish spindle speed, one in rpm and one in Hz, and nobody notices for a month.

Fix the tag dictionary before the first cable is pulled. It is the cheapest part of the project.

Can we add data collection to a machine without voiding warranty?

Read-only network access usually does not affect warranty. Tapping into the control cabinet, adding relays, or modifying the PLC program may.

Ask the machine builder in writing before you open the cabinet. Keep the gateway on a separate, fused supply.

Start with the data you can trust

Send us your part drawings and your machine list. We will quote the machining, and our engineers will tell you which data sources are worth wiring first.

12-hour quote100% inspection±0.005 mm toleranceNo minimum order quantity

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC