OPC UA & PLCs (Siemens TIA Portal)
Modern PLCs can act as an OPC UA server directly, no extra PC needed. That means SCADA, MES, historians and cloud tools read the controller over a secure, standard protocol. Here's how OPC UA fits with PLCs, and how to switch on the server in Siemens TIA Portal.
Which Siemens PLCs have an OPC UA server?
The S7-1500 and the S7-1200 from firmware V4.4 have a built-in OPC UA server, by default on port 4840. You activate it in TIA Portal in the CPU properties, assign the matching SIMATIC OPC UA runtime licence and choose which tags clients may see. S7-300 and S7-400 CPUs have no OPC UA server and need a gateway.
| CPU family | Built-in OPC UA server | Runtime licence to assign |
|---|---|---|
| S7-1200 | Yes, from firmware V4.4 | SIMATIC OPC UA S7-1200 Basic |
| S7-1500 | Yes | SIMATIC OPC UA S7-1500 Small, Medium or Large, according to the CPU type |
| S7-300 / S7-400 | No | None on the CPU: use a gateway or an OPC UA server on a PC |
Step-by-step pages: S7-1200, S7-1500, TIA Portal OPC UA configuration, and KEPServerEX as a gateway for older CPUs. Check the firmware and licence details against the Siemens documentation for your exact CPU.
How OPC UA fits with a PLC
The PLC exposes selected tags/variables in its OPC UA address space. Clients connect, browse, and read/write or subscribe: exactly as with any OPC UA server. Siemens S7-1500 and S7-1200 (from firmware V4.4) include a built-in OPC UA server; Rockwell, Beckhoff, CODESYS and others offer the same idea with their own tooling.
Enable the OPC UA server on a Siemens S7-1500 / S7-1200
- Check licensing. The S7-1500 OPC UA server needs a Siemens runtime license (SIMATIC OPC UA). Confirm it's assigned to the CPU.
- In TIA Portal, open the CPU's Properties → OPC UA → Server and tick Activate OPC UA server.
- Note or set the server address (endpoint), e.g.
opc.tcp://192.168.0.1:4840. - Under Runtime licenses → OPC UA, select the licence that matches the CPU: SIMATIC OPC UA S7-1200 Basic on an S7-1200, Small, Medium or Large on an S7-1500 according to the CPU type.
- Expose tags: mark the PLC tags/DB variables as accessible from OPC UA (and writable if needed).
- Configure security: choose security policies, server certificate, and user authentication (see below).
- Compile and download to the CPU. The server starts on the next cycle.
Security on the PLC server
Treat the PLC like any networked server: prefer Sign & Encrypt, install a proper server certificate, and require user authentication rather than anonymous access. First connections usually need the client certificate to be trusted: see OPC UA security & certificates.
Connect a client to test
- Open UaExpert (or your client) and add the endpoint
opc.tcp://<plc-ip>:4840. - Accept/trust certificates on both sides.
- Browse to your exposed tags and subscribe to a value to confirm live updates.
Can't connect? It's almost always the endpoint/IP, a firewall on port 4840, a security-mode mismatch, or certificate trust: the 6 usual causes.
PLC data flowing over OPC UA? TEEPTRAK turns machine signals into OEE and stoppage analysis, with AI agents that answer questions from the plant's own measured data. JEMBA, a separate TEEPTRAK Group product, adds machine-learning anomaly detection and setpoint optimisation.
OPC UA into TEEPTRAK →FAQ
Does the S7-1200 support OPC UA?
Do I need a license for the Siemens OPC UA server?
Can a PLC be an OPC UA client too?
Last updated 30 November 2026 · Educational resource. Product names are trademarks of their owners; this guide is not affiliated with Siemens.