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

Get Instant Quote

Application guide

Edge Computer Gateway Application in the Acquisition of CNC Machine Tool Data

This page explains how an edge computer gateway pulls CNC machine tool data off the shop floor: which signals matter, which protocols carry them, and where the approach stops making sense. Written for controls and manufacturing engineers who need to decide whether to instrument a cell, a line, or a whole plant.

FOCAS and MTConnectOPC UA and MQTT10–100 ms samplingStore-and-forward buffering
Edge computer gateway application in the acquisition of CNC machine tool data
Key takeaways

What decides success before you buy hardware

Signal choice beats gateway brandA 50 ms spindle-load trace is worth more than every alarm code combined.
Check the port before the spec sheetNo Ethernet option on the control means no data, whatever the gateway claims.
Sample rates must match the decisionTool wear needs 100 ms; throughput counting needs 1 s at most.
Buffer on the edge, not in the cloudNetworks drop. A local queue keeps the trace intact through a shift.
Map to one namespaceMixed vendor tag names break dashboards six months in.
Section 1

What an Edge Gateway Actually Does with CNC Machine Tool Data

An edge computer gateway sits between the control and the network. It reads registers, counters, and program state from the CNC, normalizes them into a common model, and forwards them upstream. It is not a historian and it is not a PLC. Its job is translation and buffering at the point where the machine meets the plant network.

The distinction matters because most failures blamed on 'the gateway' are actually source problems. If the control exposes only a serial port running a proprietary protocol, the gateway can still read it, but at a slower rate and with fewer tags. If the control has no external data option fitted, no gateway on the market will help.

In practice, one gateway covers one to eight machines. Beyond that, the CPU load from protocol parsing and the Ethernet run length start to work against you. Splitting into two gateways is usually cheaper than buying a faster box.

  • 1
    ReadPoll registers or subscribe to a data stream from the control.
  • 2
    NormalizeConvert vendor tags into one namespace with fixed units.
  • 3
    BufferHold 4–24 hours locally so a network drop does not lose data.
  • 4
    PublishSend upstream over OPC UA or MQTT at the rate the consumer needs.
Section 2

Interfaces: What Each Control Family Gives You

FANUC controls with the Ethernet option expose FOCAS, which returns spindle speed, load, feedrate, program number, tool number, and alarm history at roughly 10–100 ms depending on how many tags you poll. Polling 40 tags at 50 ms is realistic on a modern 0i or 30i series. Polling 400 tags at 10 ms is not.

Mitsubishi and Mazak typically need MTConnect or a vendor adapter. MTConnect gives you a clean, XML-based stream with a defined schema, which is why it maps well to dashboards. The trade-off is latency: agent-based collection often lands in the 100–500 ms range unless you tune the adapter.

Siemens 840D and similar controls speak OPC UA natively on newer builds. That removes the translation step entirely and is the cleanest path if your fleet is mostly Siemens. Older 810D and 840D sl builds may need an option license before the server starts.

The uncomfortable case is a control with no Ethernet port and no fieldbus card. Some builders charge a license fee to enable the data interface. That last point is worth checking against the machine's option list before you commit to a gateway model.

  • 1
    FOCASFast, tag-rich, FANUC only. Needs the Ethernet option.
  • 2
    MTConnectVendor-neutral schema. Agent adds 100–500 ms latency.
  • 3
    OPC UANative on newer Siemens. No adapter, lowest overhead.
  • 4
    Modbus TCPCommon on older mills. Limited to what the PLC exposes.
Section 3

Choosing Signals: Which CNC Machine Tool Data Earns Its Bandwidth

Start from the decision you want to make, then work backward to the signal. Tool wear prediction needs spindle load and cutting time at 50–100 ms. OEE reporting needs run state, cycle count, and stop reason at 1 s. Quality trending needs axis following error and coolant state, which most controls expose only as alarms.

A common mistake is to collect everything a control will give you. A 5-axis machine with 400 tags at 100 ms produces about 4,000 values per second. Multiply that across 20 machines and you have a network problem, a storage problem, and a dashboard nobody reads.

Pick 15 to 40 tags per machine. If a tag does not feed a report, an alarm, or a model, leave it out. You can always add it later; removing a tag after eighteen months of data collection is harder because people build habits around it.

  • 1
    Tool wearSpindle load, feed override, cutting time. 50–100 ms.
  • 2
    OEERun state, cycle count, stop code. 1 s is enough.
  • 3
    Process driftAxis load, temperature, coolant pressure. 200–500 ms.
  • 4
    MaintenanceAlarm history, servo current, lube cycle. On change only.
Section 4

Sampling Rate, Network, and Time Sync

Sampling rate sets your data volume, and data volume sets your cost. At 100 ms with 30 tags, one machine produces about 300 values per second, or roughly 26 million values per day. Compressed and stored as deltas, that is manageable. Stored raw, it is not.

Use deadband filtering on analog tags. Spindle load that moves less than 2 percent does not need to be sent. This alone can cut upstream traffic by 60 to 80 percent on a stable process without losing the events you care about.

Time sync matters more than most teams expect. If the gateway clock drifts from the control clock, cycle times look wrong and event sequences scramble. Point the gateway and the control at the same NTP source and check the offset monthly. A drift of two seconds is enough to make a stop-reason report useless.

  • 1
    DeadbandSuppress analog changes below 2 percent of range.
  • 2
    NTPSame source for control and gateway. Check monthly.
  • 3
    Buffer depth4–24 hours local queue for network outages.
Section 5

Where the Edge Gateway Approach Does Not Fit

If the control has no data port and no option card, stop. A protocol converter or an option license may be needed, and in some cases the builder never offered one for that model. No port and no option means a closed control, and no amount of edge hardware fixes it.

If you need sub-millisecond synchronization across axes for motion analysis, an edge gateway is the wrong layer. That work belongs on the drive bus, not on Ethernet. Gateways are for production data, not for servo tuning.

If the plant network is a flat, unmanaged switch fabric with no segmentation, adding twenty gateways will expose that weakness fast. Plan VLANs and a separate data path before you scale past a pilot cell.

Comparison

Interface Options at a Glance

Match the interface to the control before choosing a gateway.

InterfaceTypical latencyBest forMain constraint
FOCAS10–100 msFANUC fleets, tool wearNeeds Ethernet option
MTConnect100–500 msMixed-vendor OEEAgent adds latency
OPC UA20–200 msSiemens-heavy plantsNewer builds only
Modbus TCP50–500 msOlder mills with PLCLimited tag set
Serial / RS-2321–5 sLegacy controlsLow tag count
No portNot availableNothingClosed control

When to instrument, when to wait

If the control has an Ethernet port and you need 15–40 tags at 50–500 ms, an edge gateway is the right call. If the control is closed, or you need drive-level synchronization, fix the source or change the layer first. A gateway will not paper over a missing data port.

FAQs

Questions engineers ask before a pilot

How many machines can one edge gateway handle?

One to eight is the practical range. The limit is usually protocol parsing load and cable run length, not raw CPU.

If you are polling more than 40 tags per machine at 100 ms, split into two gateways. It is cheaper than upgrading the box.

Do we need to stop production to install a gateway?

No. The gateway reads from the control's existing data port. It does not sit in the motion control loop.

The only downtime risk is if the control needs an option license enabled, which may require a restart.

What happens to data when the network drops?

A properly configured gateway buffers locally, typically 4 to 24 hours depending on sample rate and tag count.

When the link returns, the queue forwards in order. Without a buffer, the gap is permanent.

Can we mix FANUC, Mazak, and Siemens on one system?

Yes, but normalize the tag names at the gateway. Do not let three vendor schemas reach the dashboard.

Map everything to one namespace with fixed units before it leaves the edge.

Is 1 second sampling fast enough?

For OEE, cycle counting, and run-state reporting, yes. One second is plenty.

For tool wear or process drift, no. Use 50 to 500 ms depending on the signal.

Does the gateway need a separate network?

Best practice is a dedicated VLAN for machine data, separate from office traffic.

On a flat unmanaged network, adding gateways will expose congestion quickly.

Plan your data acquisition pilot

Send us your control models and the decisions you want to make. We will come back with a tag list, a sampling plan, and a gateway count.

12-hour quote100% inspectionNDA on request

Follow

More from the shop floor

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