What Are the Functional Characteristics of a CNC Machine Tool Data Gateway
A CNC machine tool data gateway sits between the control and your network. It reads what the machine already publishes, normalizes it, and hands it to MES or ERP without touching the servo loop. This page explains how that works, where it stops working, and how to judge a gateway before you buy one.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
How a CNC machine tool data gateway actually gets its data
A gateway is not a sensor package. It is a protocol translator plus a small historian. On a Fanuc control it opens FOCAS over Ethernet and polls registers that already exist: spindle load, axis position, program number, tool offset, alarm codes. On a Siemens 840D it reads the OPC UA server built into the control. On a Mitsubishi or Mazak it may need MTConnect or a vendor adapter.
None of this touches the servo loop. The gateway is a client. It asks the control for values the control already computed for its own display. That is why a gateway install does not change cycle time, feed rates, or tool life. If a vendor claims the gateway will optimize your cutting, ask which register it writes to. Usually the answer is none.
The polling rate matters more than most buyers expect. A 100 ms poll is fine for utilization and OEE. It is not fine for capturing a 40 ms spindle overload or a tool break. For event-level data you need the control to push, not the gateway to pull. That means alarm bits and PLC signals read at 10–20 ms, or a hardware tap on the I/O.
Data volume is modest. A single machine at 10 ms polling with 30 tags produces roughly 3,000 samples per second. Before compression that is about 100 MB per day per machine. A shop with 40 machines is looking at 4 GB per day. Plan storage and network bandwidth for that number, not for the marketing slide.
- 1Read-only by defaultThe gateway should never write to the control without a documented, locked procedure.
- 2Poll rate sets the use case100 ms for OEE; 10–20 ms for tool break and overload events.
- 3One protocol per familyFOCAS, OPC UA, MTConnect cover most installed controls.
Protocol coverage and edge buffering are the first two functional characteristics
Protocol coverage decides whether the gateway works on your floor at all. A gateway that speaks only MTConnect will not read a 1990s Fanuc 0M without a hardware adapter. A gateway that speaks only FOCAS will not read a Heidenhain TNC. Count your control families before you count features. Mixed shops usually need two or three protocols, not one.
Ask for the exact tag list per protocol. 'Supports FOCAS' can mean 8 tags or 400 tags. The useful set for a job shop is spindle speed, feed override, program name, cycle state, alarm number, tool number, part count, and axis load. If the gateway cannot expose feed override and program name, you cannot build a real OEE model.
Edge buffering is the second characteristic and the one most often missing. Networks drop. A gateway with 8 GB of local storage keeps writing during an outage and replays when the link returns. A gateway with no buffer loses that window forever. For a shop that runs unattended night shifts, buffer capacity is not optional.
Check the replay behavior, not just the capacity. Some gateways replay with original timestamps. Others stamp everything with the recovery time. The first is usable for OEE. The second corrupts your downtime analysis. Ask the vendor to show a 30-minute disconnect test with the resulting data file.
- 1Count control families firstFOCAS for Fanuc, OPC UA for Siemens, MTConnect as a fallback.
- 2Demand the tag listFeed override and program name are the two tags most often missing.
- 3Test the replayOriginal timestamps, not recovery timestamps, or downtime math breaks.
Data normalization and machine state logic separate good gateways from bad ones
Two machines from different builders do not report the same way. One says state 3 is running. Another says state 3 is alarm. Normalization is the gateway's job. It maps every control's raw codes to one internal model: running, idle, alarm, setup, maintenance, off. Without this, your MES gets a spreadsheet of codes and no dashboard.
The hard part is not the mapping table. It is the ambiguous states. A machine in a tool change with the spindle stopped is not idle. A machine running a warm-up program is not producing. Good gateways let you write rules for these cases and see which rule fired. Bad ones force you to pick one code per state and live with the error.
Machine state logic also drives your OEE denominator. If the gateway calls a 20-minute setup 'idle,' your availability number is wrong by that amount every shift. Over a month that is hundreds of hours of phantom downtime. Engineers who trust the dashboard without auditing the state rules get burned once and then stop trusting it.
A practical check: pull one week of raw state transitions for one machine and count how many seconds sit in each state. If setup time looks like zero, your rules are too simple. Setup is real, it is just not a code the control emits by itself. The gateway has to infer it from program number changes and door signals.
- 1One internal state modelMap every control to running, idle, alarm, setup, maintenance, off.
- 2Rules must be auditableYou need to see which rule classified a given interval.
- 3Setup is inferred, not reportedProgram change plus door signal is the usual trigger.
Security and network isolation are the fifth functional characteristic
A gateway is a computer on your OT network with a path to your IT network. That path is the risk. The correct architecture is one-way or tightly filtered: the gateway reads from the machine VLAN and publishes to a DMZ broker. Nothing on the IT side should be able to open a session back into the control.
Physical ports matter too. Many controls still run Windows CE or an old Linux build with no patch path. If the gateway sits on the same flat network as the office, a single phishing email can reach a 15-year-old control. VLAN segmentation and a firewall rule set are not optional extras. They are part of the gateway scope.
Credentials should be per-gateway, not shared. When a technician leaves, you rotate one credential, not the shop-wide password. Log every configuration change with a timestamp and a user. If your gateway cannot tell you who changed a tag mapping last Tuesday, it is not ready for a regulated environment.
For medical and automotive work, this links to your quality system. ISO 13485 and IATF 16949 both expect traceable records. Data pulled from a gateway into a batch record inherits that requirement. Keep the gateway's own audit log, and keep it for the same retention period as your inspection records.
- 1One-way by defaultMachine VLAN to DMZ broker; no inbound session to the control.
- 2Segment legacy controlsWindows CE controls belong behind a firewall, not on a flat network.
- 3Per-gateway credentialsRotate one credential, not the shop-wide password.
When a CNC machine tool data gateway is the wrong tool
If your goal is to prove a specific part dimension, a gateway will not help. It reads machine state, not metrology. Use a touch probe or a CMM. A gateway can tell you the probe ran. It cannot tell you the feature is in tolerance. Keep those two systems separate.
If you have three machines and one shift, a gateway is often overkill. A clipboard and a manual log cost less and get read more often. The math changes around 10–15 machines, or when you need unattended shift data, or when a customer contract requires traceable machine records. Below that, the integration cost usually exceeds the benefit.
If the control has no data port and no PLC that can be tapped, the gateway becomes a retrofit project. You may need an I/O module wired to the stack light and the cycle-start relay. That works, but it gives you coarse states only: running, stopped, alarm. No program name, no feed override, no tool data. Decide whether coarse data solves your problem before you spend on a retrofit.
If the vendor cannot show you a live tag list from a control like yours, walk away. A demo on a lab machine with a modern control proves nothing about a 2011 VMC with a Fanuc 0i-MD. Ask for a site test, or at minimum a recorded session from a comparable control.
- 1Not metrologyMachine state data cannot prove a dimension.
- 2Below 10 machinesManual logging is often cheaper than integration.
- 3No port, no tagsStack-light retrofits give coarse states only.
Matching gateway capability to shop size and goal
Pick the row that matches your machine count and what you need to prove.
| Shop profile | Useful poll rate | Minimum protocol need | Skip the gateway if |
|---|---|---|---|
| 1–5 machines, one shift | 1 s or slower | None; manual log is enough | You only need daily output counts |
| 6–15 machines | 100 ms | One protocol for your main control family | All machines are the same model and brand new |
| 16–40 machines, two shifts | 100 ms, events at 20 ms | Two or three protocols plus buffering | You have no MES or historian to receive the data |
| 40+ machines, unattended | 20 ms for events | Multi-protocol, 8 GB+ edge buffer | Your IT team cannot segment the OT network |
| Regulated (medical, auto) | 20 ms for events | Multi-protocol plus audit log | The gateway cannot log who changed a mapping |
The verdict
If you need OEE and unattended shift data across 15 or more mixed controls, buy a gateway with multi-protocol support and edge buffering. If you have fewer than 10 machines and one shift, a manual log plus a shared spreadsheet will serve you better for now.
Common questions
Does a CNC machine tool data gateway slow down the control?
In practice, no. The gateway polls registers the control already maintains for its own display. The added CPU load is small.
Risk appears when someone sets the poll rate to 1 ms across hundreds of tags. That can saturate the control's Ethernet stack on older models. Keep it at 100 ms for OEE and 20 ms for event tags.
Can one gateway handle Fanuc, Siemens and Mazak machines?
Yes, if it ships with all three protocol stacks. Many gateways support one protocol well and the others poorly.
Ask for the tag list per protocol and a recorded session from each control family you own. Do not accept a lab demo on a different model.
How much local storage does the buffer need?
Size it for the longest outage you expect. A 40-machine shop at 100 ms polling generates roughly 4 GB per day.
If you want to survive a 24-hour network outage, that is 4 GB of buffer. For a single machine, 8 GB covers weeks.
Does the gateway replace an MES?
No. The gateway moves and normalizes data. It does not schedule work, track orders, or manage inventory.
Think of it as the bridge. The MES or historian on the other side is where the decisions live.
What happens to data if the network drops mid-shift?
A gateway with buffering keeps writing locally and replays when the link returns. Check that it preserves original timestamps.
A gateway without buffering loses the window. For night shifts and unattended runs, that gap can hide a real downtime event.
Need parts cut, not just data collected?
Send us your drawings and we will quote machining and finish in 12 hours, with DFM notes and a tolerance review.
12-hour quote100% inspection±0.005 mm