Most shop floors we walk into have at least one Siemens machine: a VMC with a SINUMERIK 828D, a lathe with an 808D, a five-axis machine on an 840D sl, or a special-purpose machine on an S7-1200 or S7-1500. The plant head wants the same thing from all of them: live status, spindle load, alarms, part count and cycle time on one screen, with no clipboard.
The hard part is that “Siemens” covers very different hardware. The protocol that works on an S7-1500 may not exist on an 808D, and the data you want may live in the NC kernel rather than in the PLC. This article maps out what data is available, where it lives, and which interface reaches it. The step-by-step setup guide covers how to wire it into MQTT and a dashboard.
The problem: two brains in one machine
A SINUMERIK CNC is really two controllers in one box:
- The NCK (numerical control kernel) runs the part program. It knows the axis positions, spindle speed and load, feed override, active program name and part counters.
- The integrated PLC handles machine logic: door interlocks, coolant, tool changer, lubrication, and the hand-off signals between the NC and the machine.
The PLC exposes many NC states through its interface data blocks (program running, mode, spindle running, alarms raised by the machine builder). But values like spindle load percentage or the active program name usually sit in the NCK. That split decides which protocol you need. On a standalone S7-1200 or S7-1500 machine there is no NCK, so everything you need is in the PLC program.
What data you can collect
The table below shows the signals that matter for monitoring and OEE (overall equipment effectiveness), and where they normally live.
| Signal | Typical source on SINUMERIK | Typical source on S7-1200/1500 machine |
|---|---|---|
| Machine status (running, idle, stopped, alarm) | PLC interface signals and NC channel state | PLC tags defined by the machine builder |
| Spindle running / spindle speed | PLC interface (running), NCK (actual speed) | PLC tag or drive data |
| Spindle load % | NCK / drive | Drive data, if exposed |
| Active alarms | NCK and PLC alarm lists | Machine builder alarm bits |
| Part count | NCK part counter or an R-parameter | PLC counter tag |
| Cycle time | Derived from program start/end, or NCK timers | Derived from cycle start/end bits |
| Program name, operating mode | NCK | Usually not available |
| Feed and spindle override | NCK, PLC interface | Usually not available |
OEE needs three inputs: availability (run time against planned time), performance (actual output against ideal cycle time) and quality (good parts against total parts). The first two come straight from the machine. Quality usually needs an operator input or a gauge, so plan for that from day one. Our OEE improvement guide explains how those numbers combine.
Protocol 1: OPC UA
OPC UA is the cleanest way into a SINUMERIK. It gives structured, named access to NCK variables, PLC data and alarms over a single TCP connection, usually on port 4840, with user authentication and optional encryption.
What you need to know before you plan around it:
- SINUMERIK 840D sl, 828D and SINUMERIK ONE support an OPC UA server, but it is a licensed software option on the CNC. Many machines leave the factory without it. Check the license on each machine before you quote.
- The minimum CNC software version for OPC UA differs between 828D and 840D sl. Older 828D machines may need a software update first.
- SINUMERIK 808D: we have not seen OPC UA server support on this control. Plan for S7 access or hardwired signals instead.
- S7-1500 PLCs have a built-in OPC UA server from early firmware versions. S7-1200 PLCs gained one in later firmware (V4.4 or newer). Both need the server enabled in TIA Portal and a runtime license.
When OPC UA is available, it is the option we recommend. It reaches the NCK values that S7 access cannot, such as spindle load and the active program.
Protocol 2: S7comm (ISO-on-TCP, port 102)
S7comm is Siemens’ native PLC protocol. Every SINUMERIK with an integrated PLC, and every S7-300/400/1200/1500, can talk it on TCP port 102. This is the workhorse when the machine has no OPC UA license.
In the field, we read the 828D PLC interface data blocks directly. One gateway polls program running, cycle start, spindle on, emergency stop and alarm bits every 125 ms. That gives a reliable status signal and a clean cycle-time measurement with no license cost.
The limits:
- S7comm reads PLC memory only. Spindle load, program name and many NCK counters are not there unless the machine builder copies them into the PLC. For spindle load on machines without OPC UA, we have used a current sensor or a drive analog output wired to the gateway.
- The interface data block numbers differ between 828D and 840D sl. Always confirm against the machine’s own PLC documentation, not a generic list from the internet.
- On S7-1200 and S7-1500, external S7 reads only work when “Permit access with PUT/GET communication” is enabled. The data blocks you read must also be set to non-optimized (standard) access. Both settings need a TIA Portal download to the PLC, so the machine builder or your PLC engineer must agree to them.
- S7comm has no authentication. Keep it on an isolated machine network behind the gateway. Never route it to the office LAN.
Protocol 3: Modbus TCP
Modbus TCP is not a native SINUMERIK interface. You will not find a Modbus TCP server on an 828D or 840D sl.
On S7-1200 and S7-1500 PLCs, Modbus TCP is possible, but someone must program it. Siemens provides Modbus TCP server and client instructions in TIA Portal. A PLC programmer adds them, maps the wanted tags into holding registers, and downloads the change. This is a good choice when:
- the plant already runs a Modbus-based SCADA or energy system, or
- the machine builder refuses PUT/GET access but agrees to publish a small register map.
Modbus TCP is also unauthenticated, so the same network rule applies.
Choosing the right interface
| Situation | Recommended route | Why |
|---|---|---|
| 828D / 840D sl / ONE with OPC UA license | OPC UA | Full NCK + PLC data, secure, structured |
| 828D / 840D sl without license | S7comm to PLC interface DBs, plus a sensor for spindle load | No license cost, reliable status and cycle time |
| 808D | S7comm or hardwired digital signals | Limited network options |
| S7-1500 / S7-1200 (recent firmware) | OPC UA | Built-in, secure |
| S7-1200/1500, OPC UA not possible | S7comm with PUT/GET, or programmed Modbus TCP | Depends on what the machine builder allows |
| Old machine, closed PLC, no network access | Hardwired signals (stack light, spindle relay, cycle lamp) to gateway inputs | Works on anything |
Hardwired signals are not a failure. On older machines, three digital inputs (green lamp, red lamp and spindle relay) give you status, availability and a rough cycle time in an afternoon.
How the pieces fit: architecture in words
A typical setup has four layers:
- Machine network. The CNC or PLC Ethernet port (on the 828D, the factory network port X130) connects to a small managed switch inside the machine’s electrical cabinet or a wall box.
- Edge gateway. An industrial gateway sits on that machine network. It polls each controller over OPC UA, S7comm or Modbus TCP, converts the raw values into clean events (status changed, cycle finished, alarm raised), and buffers data if the uplink drops.
- Plant network and MQTT broker. The gateway publishes JSON messages to an MQTT broker over the plant LAN. Only the gateway crosses between the machine network and the plant network.
- Dashboard and analytics. A monitoring platform subscribes to the broker, stores the history, and shows live status, OEE, downtime reasons and alarm trends.
The key design rule: controllers never talk to the cloud or the office network directly. The gateway is the only bridge.
Common mistakes we see
- Quoting OPC UA before checking the license. Ask for a screenshot of the CNC license page during the site survey.
- Reading NCK values over S7comm. If a tag is not in the PLC, S7 will not find it. Agree with the machine builder before you promise spindle load.
- Polling too fast. A 100 ms poll on 40 tags across 20 machines adds up. Poll status bits fast (100 to 250 ms) and analog values slower (1 to 5 s).
- Forgetting PUT/GET on S7-1200/1500. The connection opens, then every read fails. That symptom almost always means PUT/GET is off or the data block is optimized.
- IP conflicts. Machine builders often ship every machine with the same default IP address. Plan the addressing before you plug anything into a shared switch.
Conclusion
Match the protocol to the hardware. Use OPC UA where it is licensed, S7comm to the PLC interface where it is not, programmed Modbus TCP on S7 PLCs when needed, and hardwired signals for everything else. Put an edge gateway between the machines and the network, and publish clean events over MQTT.
Next, read the Siemens step-by-step guide to take this from protocol choice to a working dashboard. If you run a mixed shop, compare this with FANUC FOCAS data acquisition and Haas NGC data sources. For PLC-only machines, see the Mitsubishi MELSEC guide and the Delta PLC Modbus guide.
Want to know which route fits your Siemens machines? Book a free assessment with our team. We will review your controller models, options and network, and tell you what data you can realistically get.