You don't need PLC access to monitor a CNC machine. The CNC control already knows whether the machine is running, how many parts it has made and which alarm stopped it, and most controls from the last 10 to 15 years will report that over their own network port. For older machines with no network port, the signals the machine already produces, such as the stack/andon light or a cycle relay, can be read instead. Neither route changes a line of the PLC program.
This matters because many manufacturers assume they can't monitor their CNC machines without access to the PLC. In most cases, they can. We'll look at how CNC controller data and existing machine signals can be used for monitoring, what each can reveal, and how to choose the right approach.
Why the PLC isn't the best place to start
A CNC machine has two main control functions working together. The CNC controller runs the machining process: the part program, axis movements, spindle, and feed rates. The PLC takes care of the supporting machine operations, like tool changes, coolant, pallet handling, and interlocks.
The PLC program is usually developed and maintained by the machine builder. On many shop floors:
- Access may be restricted. The program could be password-protected or require the machine builder's support to modify.
- The source code isn't readily available. Maintenance teams may have documentation or backups, but not the editable PLC project.
- Changes need careful consideration. The PLC controls machine sequences and interlocks, so even a small modification needs to be reviewed and tested properly.
For monitoring, modifying the PLC isn't always necessary. The CNC controller may already provide useful data through its communication interface, such as machine status, active program, spindle activity, part count, and cycle time. The exact data available depends on the controller and its interface.
When PLC access isn't an option
CNC machine data can be collected directly from the controller over the network or through existing machine signals.
Each approach provides a different level of detail. Here's what you can typically expect from them:
| Data | CNC controller (network) | Digital I/O (signals) |
|---|---|---|
| Running / stopped | ✓ | ✓ |
| Part count | ✓ | ✓ if a part signal exists |
| Cycle time | ✓ | ✓ from a cycle signal |
| Active program | ✓ | ✗ |
| Alarm codes | ✓ | ✗ |
| Spindle load | ✓ | ✗ |
| Override positions | ✓ | ✗ |
Actual data depends on the controller's parameters and interface, or for digital I/O, on which signals are accessible.
Route 1: Read the CNC controller over the network
Many CNC controllers expose machine data through Ethernet using a manufacturer-specific API or a supported communication interface such as OPC UA.
A gateway connects to the controller and periodically reads available parameters, including machine status, active program, part counters, cycle information, spindle load, and alarm data. The exact parameters depend on the controller model, communication option, and access level.
For example, some controllers use the machine maker's own protocol, while others support open standards such as MTConnect or OPC UA.
This approach provides access to controller-level data without adding signal wiring. However, Ethernet connectivity alone does not guarantee data access. The required communication option, software license, or interface hardware may need to be enabled. Our page on monitoring older CNC machines covers how this is checked before you commit.
Route 2: Acquire existing machine signals through digital I/O
When controller communication is unavailable, selected machine signals can be acquired through isolated digital inputs on an industrial gateway.
Typical signals include:
- Machine status: a machine-running or cycle-active output.
- Cycle completion: a pulse or state change indicating the end of a machining cycle.
- Part completion: a dedicated output or configured M-code signal triggered when a part is completed.
The gateway timestamps signal transitions and uses them to calculate machine operating time, cycle duration, and production counts.
This method provides event-level data rather than detailed controller parameters. It cannot identify the active program or retrieve alarm codes unless those are exposed through separate signals or another communication interface.
Signal voltage, polarity, pulse duration, and electrical isolation must be verified before connecting the gateway. Safety-related circuits should not be used as monitoring inputs.
How to choose the right connection for a CNC machine
Before connecting a machine, there are a few things worth checking:
-
Does the CNC controller have Ethernet? Check the controller model and available network ports. Having Ethernet is a good starting point, but it doesn't guarantee access to machine data.
-
Can the controller provide data over the network? Check whether the required communication protocol is supported and enabled. A network connection used for transferring programs may not provide access to monitoring data.
-
Can you access the data you need? Check whether parameters such as machine status, part count, active program, cycle time, and alarms are available through the controller's interface.
If the required data isn't available through the controller, check whether the machine has suitable signals that can be connected to digital inputs.
In practice, many plants use both approaches. Some machines provide detailed data directly from the controller, while others are monitored through existing machine signals.
The important thing is to know what each connection can actually provide. A machine reporting running and stopped status isn't the same as a machine providing complete controller data.
What the setup looks like on the shop floor
Different machines, one connected shop floor.
- One gateway. Collects data from CNC controllers and machine signals.
- Flexible deployment. Deploy on a cloud platform or a company-managed server, depending on IT and data requirements.
- Local storage. The gateway keeps polling the machines and saving the data to its database, even when the network drops. Once it's back, the dashboard shows the full record.
- History backfill. If the gateway loses touch with a machine for a while, it fills in the missing time from the machine's own records once it reconnects, on machines that keep them.
- One live dashboard. Machine data is available in the office and on the shop floor, with email reports and alerts when you're away.
No PLC modifications. No direct internet exposure for CNC machines. And no guessed data: if the history can't confirm what happened, the gap stays visible instead of being filled in.
How CNC machine monitoring works: from machine to dashboard.
Where this approach has limits
A few things are worth checking before deployment:
- Controller access may require an option. Some CNC controls need a communication license or additional hardware to provide data over the network.
- Digital I/O provides limited data. It can track machine status and counts, but not detailed information such as program numbers, alarm codes, or spindle load.
- Older machines may not expose a part counter. Parts can be estimated from repeating cycles in controller data. With only run/stop signals, automatic counting may need an extra sensor.
These limitations determine what data can be collected and how each machine needs to be connected. A machine survey helps identify them before deployment.
The next step
CNC monitoring doesn't have to start with PLC modifications. The right connection depends on the controller, the available signals, and the data you want to capture.
A machine-by-machine assessment helps identify what each machine can provide and the most suitable way to connect it.
Book a demo to discuss your machines with ThingConnect. We'll help assess the available interfaces and determine the right monitoring approach before deployment.



