Controller · Siemens

Connect SINUMERIK 840D sl

SINUMERIK 840D sl has a native OPC UA server, enabled by the paid option Access MyMachine /OPC UA (order number 6FC5800-0AP67-0YB0) and reached at opc.tcp://<HMI-IP>:4840. It needs SINUMERIK Operate and a supported CNC software version (4.5, 4.07 SP2–SP5, 4.08 SP2–SP3 or 4.92). Without the option, gateways such as Softing uaGate 840D read the NC over the S7 protocol and serve OPC UA, with no extra Siemens runtime licence according to Softing.

At a glance

Native protocolOPC UA server (Access MyMachine /OPC UA)
Licence on the CNC6FC5800-0AP67-0YB0 (paid)
PortTCP 4840
InterfaceX130 / X120 on NCU (thin client); eth1/eth2 with PCU/IPC
SecurityBasic256Sha256 by default; anonymous off
Without the optionS7 gateway (uaGate 840D, IBH Link UA, dataFEED)

Connection paths

S7/RFC1006 gatewayAlternative

Softing uaGate 840D / SDEX, IBH Link UA or dataFEED OPC Server CNC read the NC through the S7 protocol (port 102) and serve OPC UA/MQTT.

MTConnect adapterAlternative

Memex MERLIN adapter for 840D (requires a Siemens OA runtime licence).

Siemens cloud/edgeVendor product

Manage MyMachines (SINUMERIK Integrate client) and Industrial Edge for Machine Tools apps.

Licences and options

ItemOption / part numberPaid?Note
Access MyMachine /OPC UA6FC5800-0AP67-0YB0PaidActivate under Startup > Licenses; may need a service technician
Run MyHMI (Operate OA runtime, for MTConnect adapters)6FC5800-0AP60-0YB0PaidRequired by the Memex MERLIN adapter
SINUMERIK Operate toolbox incl. NCVar Selector (for S7 gateways)6FC5851-1XC45-4YA8PaidUsed to generate symbol files for uaGate 840D

Ports

PortProtocolNote
4840TCPOPC UA server (configurable); opened automatically on the NCU, manually on PCU/IPC
102TCPS7 / RFC1006 used by gateways (open in the SINUMERIK firewall on X120/X130)

Software versions

  • CNC SW 4.5 → OPC UA server V2.2 and V3.0 SP1
  • 4.07 SP2 to SP5 → V2.2 / V3.0 SP1
  • 4.08 SP2 to SP3 → V2.2 / V3.0 SP1
  • 4.92 and 4.92 HF2 → V3.0 SP1 only
  • Softing uaGate 840D: 840D sl from software V2.7 (its FAQ narrows this to NCU 7x0.3 PN with software newer than V4.3)

Data you can read

  • Channel state: execution state, operating mode, active program name, block, line
  • Spindle: rotating, speed, load; feed rate and override
  • Alarms: event-based NC, PLC and HMI alarms with multilingual texts (needs the AlarmRead right)
  • R parameters, global user data (GUD) and NC variables by path, for example /Channel/Parameter/R[u1,10]
  • PLC data: /Plc/MB6, /Plc/DB5.DBW2, arrays such as /Plc/DB2.DBD0:REAL[10] (828D: customer DBs from DB9000 only)
  • Tools: tool data, cutting edges, magazine; methods to create and delete tools and cutting edges
  • Part counters (actual and total parts) and program selection (Select/Deselect methods with the ApWrite right)

Setting it up

  1. Check the licence and software versionAccess MyMachine /OPC UA must be licensed and activated: order number 6FC5800-0AP67-0YB0 for 840D sl and 828D. Check the CNC software version against the compatibility table below before you order.
  2. Use the right network interface828D: X130 (company network). 840D sl with thin client: X120 and X130 on the NCU. 840D sl with PCU or IPC: the server is reachable on eth1 and eth2 of the PC, not on X120/X130. Do not change the 192.168.214.x and 192.168.215.x system networks.
  3. Raise the access levelEnter the Manufacturer access level so the commissioning screens are available.
  4. Activate the serverStartup (Commissioning) > Network > OPC UA > Setting > Change. Choose the network (company, system or service), confirm IP address and port 4840, tick "Activate OPC UA", OK.
  5. Create a user and rightsAnonymous access is off by default and should stay off. Create a user with a strong password (8 or more characters, mixed case, digits, special characters) and give it only the rights it needs, for example StateRead, ToolRead, AlarmRead.
  6. RestartHardware restart of the NCU or PPU; on a PCU 50 or IPC, restart Operate.
  7. Exchange certificatesStartup > Network > OPC UA > Certificates. The server certificate is generated at first start (20-year validity). Import the client certificate (.der) and trust the HMI certificate on the client side. Switch off automatic certificate acceptance once commissioning is done.
  8. Verify with a generic clientConnect with UaExpert to opc.tcp://<HMI-IP>:4840 using Basic256Sha256 Sign & Encrypt, browse, read a channel state, then hand over to the production client.

Troubleshooting

SymptomLikely causeFix
BadCertificateTimeInvalidSystem time wrong on the control or the clientSet the clock on both sides (NTP where possible), then reconnect.
BadSecurityChecksFailedClient certificate not trusted by the serverMove the client certificate to the trusted list under Startup > Network > OPC UA > Certificates.
Endpoint not reachable on 840D sl with PCUClient is dialling X120/X130With a PCU or IPC the server listens on eth1/eth2 of the PC; open TCP 4840 in the PC firewall.
Login works, every read is deniedNew users have no rightsGrant the needed rights (StateRead, AlarmRead, ToolRead, PlcRead…) with the admin user.
828D cannot read a PLC data block828D exposes customer data blocks from DB9000 onlyAsk the PLC programmer to copy the values into a DB at or above DB9000.
Security None endpoint missingOnly 256-bit policies are active by defaultKeep it that way in production; enable None only temporarily for a reachability test if your site policy allows it.

Traps to avoid

  • Custom object models (CSOM) built in SiOME: up to 7 custom namespaces and 10,000 nodes.
  • Up to 149 parameters per array access.
  • Event subscriptions through some middleware are polled instead, because notifications can affect server stability (Cybus guidance).
  • Siemens does not publish a maximum number of clients or monitored items in the manual we checked: size the client conservatively.

Connectors that support this control

ProductVendorTypeOutputs
uaGate 840DSoftingGatewayOPC UA (≤20,000 nodes), MQTT
edgeConnector (840D, FANUC CNC)SoftingGatewayOPC UA 1.04, MQTT 3.1/3.1.1/5
SDEX SuiteSoftingGatewayOPC UA, MQTT, REST
dataFEED OPC Server CNCSoftingOPC server / driverOPC DA; optional OPC UA 1.04, MQTT, REST
IBH Link UAIBHsoftecGatewayOPC UA (incl. OPC 40502 CNC model), MQTT Sparkplug B
ConnectwareCybusEdge platformMQTT, OPC UA server
WebAccess/CNCAdvantechMonitoring softwareOPC UA/DA, Modbus, REST
MERLIN Tempus + MERLIN adaptersMemexMonitoring softwareMTConnect
Manage MyMachinesSiemensControl or machine makerCloud (Insights Hub)
Industrial Edge for Machine ToolsSiemensControl or machine makerREST, MQTT
Kepware Server — Siemens TCP/IP EthernetVelotic (formerly PTC Kepware)OPC server / driverOPC UA, OPC DA
StateMonitorHEIDENHAINControl or machine makerERP/MES job interface
Predator MDCPredator SoftwareMonitoring softwareSQL / MES / ERP
FactoryWiz MonitoringFactoryWizMonitoring software—

CNC connector directory →

Not published by the vendor. We could not find these in vendor documentation. Ask the control or machine maker before you rely on them.
  • Maximum sessions and monitored items of the OPC UA server
  • List price of 6FC5800-0AP67-0YB0 (shown only after login in the Siemens Industry Mall)

Questions engineers ask

How do I enable OPC UA on a SINUMERIK 840D sl?

License Access MyMachine /OPC UA (6FC5800-0AP67-0YB0), then Startup > Network > OPC UA > Setting > Change, tick Activate OPC UA, restart, and exchange certificates.

Can I read an 840D sl without the OPC UA licence?

Yes, with an S7-protocol gateway such as Softing uaGate 840D, IBH Link UA or Softing dataFEED; Softing states no additional Siemens licence is needed, though the NCVar Selector toolbox is used for symbols.

Which port does SINUMERIK OPC UA use?

TCP 4840 by default.

Sources

Facts on this page come from these documents, opened on 27 October 2026.

  1. Siemens — SINUMERIK 840D sl/828D Access MyMachine/OPC UA configuration manual (08/2019)
  2. Siemens Industry Online Support forum — OPC UA licence
  3. MachineMetrics support — SINUMERIK OPC UA connectivity
  4. MachineMetrics support — Siemens 840D OPC UA option
  5. Softing — uaGate 840D
  6. Softing — uaGate 840D FAQ
  7. IBHsoftec wiki — IBH Link UA with SINUMERIK 840D / 840D sl
  8. Cybus — SINUMERIK connector
  9. Memex — MERLIN adapter for SINUMERIK 840D
  10. Siemens — Manage MyMachines system requirements

Last verified 27 October 2026 against vendor documentation. OPC UA Connect is an educational resource published by TEEPTRAK; it is not affiliated with the OPC Foundation, the MTConnect Institute or any control maker.

CNC Connectivity Field Kit
Take the Field Kit to site
Every controller on one spreadsheet, with ports, licences, commissioning checklists and a firewall request template. Free with an engineer account.
Get the Field Kit →