IMDHMIControls LibraryShop main store

Explainer

When an S7-1500 needs no SIMATIC PC Station for OPC UA

SCADA and data logging Published 9 min read

Short answer

Yes. The S7-1500's embedded OPC UA server serves a custom client on the PC end to end: enable the server in the CPU's hardware configuration, publish variables through user-defined server interfaces, trust the client certificate, and keep the published node count inside the CPU class limit of 1,000, 5,000 or 30,000 nodes. No SIMATIC PC Station, no SIMATIC NET and no PLC-side OPC UA program are needed.

On this page
  1. Does the S7-1500's embedded OPC UA server talk to a custom PC client directly?
  2. Why do the examples still add a SIMATIC PC Station as the OPC server?
  3. What do I configure on the PLC side, and is any programming needed?
  4. Which network path and endpoint does the client use?
  5. What does the client need for certificates and security policies?
  6. How many nodes, methods and server interfaces can I configure?
  7. How do I estimate those limits for my own application?
  8. Do I need a second TCP channel for reconfiguration records?
  9. Questions asked

Yes — the OPC UA server inside an S7-1500 CPU serves a custom client on the PC directly. One OPC UA session runs from your application to the PLC endpoint; no SIMATIC PC Station, no SIMATIC NET and no OPC UA code in the user program stand in between. You enable the server in the CPU's hardware configuration, publish the variables the client needs through user-defined server interfaces, sort out certificates on both sides, and size the published nodes against the CPU's performance class. The sections below take the decisions in the order the project meets them: why older examples drag a PC Station along, what the PLC side needs, which endpoint and port the client uses, how the certificate exchange works, what the configuration limits mean, how to size them for your own tag count, and whether reconfiguration records need a second channel.

Does the S7-1500's embedded OPC UA server talk to a custom PC client directly? #

Yes — your application opens one OPC UA session straight to the server inside the CPU, browses the address space you published, and reads and writes those nodes as a plain client, with no SIMATIC PC Station and no intermediate OPC server on the PC.

OPC UA splits the roles cleanly: the server owns an address space, the client browses it and operates on its nodes. In this architecture the CPU is the server and your PC application is the client, speaking OPC UA binary encoding over TCP on the default port 4840. The client must implement OPC UA client services — browsing, subscriptions and typed reads and writes come from the protocol stack, not from a raw socket. The same picture holds whatever runs on the PC; where an OPC UA server sits when Python reads PLC data draws the identical architecture for a scripting client. And when the client PC is meant to live at the machine rather than in a control room — mounted in the cabinet door or on the console beside the controller — you are specifying an industrial panel PC as the client station.

Why do the examples still add a SIMATIC PC Station as the OPC server? #

Because most published examples predate firmware V2.0: before that release the S7-1500 had no embedded OPC UA server, so the only way to serve PLC data as OPC UA was a PC station running SIMATIC NET that pulled the data over an S7 connection and re-served it.

Read those examples as history, not as a requirement. A SIMATIC PC Station is a second server sitting between the client and the CPU: SIMATIC NET fetches the data from the PLC over an S7 connection and serves OPC UA or DA from the PC. From firmware V2.0 the CPU does that job itself, so a new project with a custom client connects straight to the PLC. A CPU still on V1.x firmware — V1.5 for example — shows no OPC UA entries in its CPU properties at all; there is nothing to enable until the firmware is on V2.0. Installations that kept the SIMATIC NET architecture have their own recovery path after a controller swap: fixing SIMATIC NET OPC DA to an S7-1500 after a PLC swap. Redundant systems are a separate case as well — when an S7-1500R/H serves OPC UA directly covers the server rules on redundant CPUs.

What do I configure on the PLC side, and is any programming needed? #

Enable the server in the CPU's hardware configuration, publish the client's variables through user-defined server interfaces, and set the security options — the connection itself needs no PLC program, no communication function block and no call in the cycle.

The PLC-side work is configuration, in four steps:

  1. Select the CPU in TIA Portal, open its properties, and in the OPC UA group — the engineering documentation shows the path as OPC UA > General — activate the server and enter a meaningful server name.
  2. Deploy the hardware configuration to the CPU.
  3. Create user-defined server interfaces on the DBs whose values the client needs; each variable you place in an interface becomes one browsable node on the server.
  4. Choose the security policy and the certificate handling; the certificate section below covers that exchange.

Nothing in the user program participates in the connection: the client sees only the published address space, not every DB, marker or peripheral word. NodeIds come from browsing the server or from the interface definition itself, and because namespace positions can shift when the server configuration changes, re-browse after every change rather than carrying identifiers over from an earlier project.

Which network path and endpoint does the client use? #

The client needs IP reachability to the PLC's PROFINET interface and connects to the endpoint the CPU advertises — OPC UA binary over TCP on the default port 4840 — from the same subnet or across a router with a return path.

Three things decide whether the session opens:

  • PROFINET IO between the CPU and the ET 200SP does not open a PC path by itself; the PC-to-PLC route stands on its own, and a successful ping proves reachability, not that the OPC UA service answers.
  • A shared subnet is the simple case. A client on another subnet also works when routing, the CPU's gateway settings and any firewalls in between carry the session in both directions — allow the OPC UA port through explicitly.
  • Run endpoint discovery from your client or a test client and read the address, the port and the offered security policies from the CPU's response instead of typing an endpoint from memory. If the endpoint URL carries a hostname, resolve that name on the PC first; a name the PC cannot resolve fails before any OPC UA diagnostic starts.

What does the client need for certificates and security policies? #

Select the security policy and message security mode from the list the server's endpoint description offers, import the client's application instance certificate into the CPU's trust store, and treat that trust as identity only — it never authorizes a write by itself.

A secure connection is three steps: discovery, secure channel, session. The CPU holds a server certificate of its own and a store of trusted client certificates; your client presents an application instance certificate, and that certificate is confirmed at the CPU before the secure channel opens. Pick the strongest policy in the endpoint description that your client stack implements — a policy mismatch fails exactly where a missing trust entry fails, so read the response rather than guessing. Application trust and user authorization stay separate: trusting a client decides which software may connect, user authentication decides which account may read or write, and a client that writes should carry both. If the channel is rejected anyway, troubleshooting an S7-1500 OPC UA client that cannot connect traces the failure from both ends, and OPC UA certificates page on configuring secure SCADA access explains what an application instance certificate attests and how a chain of trust is built.

One safety note: do not run the session with security disabled. With no signing and encryption, everything the interface publishes crosses the wire in the clear, and any host that reaches the OPC UA port can read it.

Prove the setup end to end: connect with the chosen policy, read a designated test variable, attempt a write under an identity that should be read-only and confirm the server refuses it, then write to the variable intended for client writes.

How many nodes, methods and server interfaces can I configure? #

The limits scale with the CPU performance class, and the row that decides most data applications is nodes in user-defined server interfaces: 1,000, 5,000 or 30,000 nodes across all such interfaces, depending on the CPU.

The limit table names five rows, and each bounds a different thing:

  • Maximum number of server interfaces — how many separate user-defined interfaces the project may define.
  • Maximum number of implementable server methods — how many callable methods the interfaces may expose; the user program supplies what a called method does.
  • Maximum number of arguments — the total parameters across those methods.
  • Maximum number of nodes in user-defined server interfaces — each entry published there, a variable, an object or a method, appears as a node in the address space.
  • Maximum size of loadable server interfaces — the size budget for interface definitions the CPU loads as data rather than compiles in with the project.

Siemens publishes the table per CPU performance class, documented for firmware V2.0 and V2.1, and the nodes row reads 1,000, 5,000 or 30,000 nodes. Find your CPU article number in that table and read its class from it; the other rows carry their own values on the same page, and the node row is the one a reading-and-writing client reaches first.

How do I estimate those limits for my own application? #

Count every variable you publish across all user-defined server interfaces and compare the total with your CPU's node limit — the worked example below lands at 280 published nodes, which fits the smallest class with room to spare.

Worked example: the client reads 180 analog values from the ET 200SP AI modules and 60 diagnostic bits, and writes 40 setpoints into a DB the program consumes. Each published variable is one node, so the interfaces carry 180 + 60 + 40 = 280 nodes. Against the smallest performance class: 280 ÷ 1,000 = 0.28, so the project uses 28% of the node budget and leaves 720 nodes spare. Phase two adds one interface with 500 variables: 280 + 500 = 780, still inside the same class, so the CPU in the panel holds. Phase three would add 400 more: 780 + 400 = 1,180, which exceeds the smallest class by 180 nodes — that phase is a CPU decision, not a configuration trick: the project moves to the next class with its 5,000-node row. A reconfiguration method the client calls, carrying 4 arguments, is bounded by the methods and arguments rows in the same table; size it against those rows and keep node margin beside it.

Do I need a second TCP channel for reconfiguration records? #

No — the one OPC UA session already carries it: the client writes the reconfiguration data into the variables you exposed, and the user program performs the actual record transfer to the AI module, so a second TCP connection would only duplicate a path OPC UA writes already cover.

OPC UA writes stop at the published variables: the client puts the record data into the DB the interface exposes, and from there it is program work — the logic that owns the AI module collects the record and transfers it through the module's record mechanism. The server moves values; the program moves configuration. Give the handshake a shape both sides can see: a command bit or sequence number the client sets and the program acknowledges and resets, so the client can tell an accepted record from a dropped one. A second raw TCP channel would need its own PLC-side programming, its own security handling and its own failure modes to carry exactly the bytes a write already carries.

The decision: one OPC UA session for reads, writes and reconfiguration data; PLC logic only for the transfer into the module itself.

Questions asked

Can I test the server with a generic client before my application is written?

Yes, and it separates server faults from client faults fastest. Any independent OPC UA client that implements the binary protocol and the security policy you selected can discover the endpoint, browse the published server interface and read a designated test variable. If that succeeds, a failing custom client points to client-side code or certificates, not to the PLC configuration.

What happens when the client's certificate changes?

The trusted entry in the CPU's certificate store belongs to one application instance certificate. Regenerate or replace the client certificate and the next connection is rejected at the secure channel, because the CPU no longer recognizes the presenter. Import the new certificate, confirm trust at the CPU and reconnect; retire the old entry so a decommissioned client cannot reconnect with it.

How do I count methods and arguments when sizing the server?

As separate budgets. The limit table gives server methods and method arguments their own rows beside the node row, so a method-heavy application can exhaust the method or argument budget while its node count stays low, and a data-heavy one the other way around. Count published variables, callable methods and their parameters against their rows separately when you size a project.

Does downloading a changed server interface interrupt connected clients?

Yes. A server configuration change is a hardware configuration download, and the OPC UA server restarts with it, so open sessions drop. Clients must reconnect, and if the interface changed they should re-browse as well, because namespace positions can move. Schedule downloads for a window when the connected clients can tolerate a reconnect.

Keep reading

  • How-to

    Connecting a CODESYS HMI on Windows to an S7-1500 PLC

    Yes, it works. Use OPC UA with the S7-1500 as server and the CODESYS HMI as client when the PC only supervises; use a CODESYS Control Win runtime with target visualization over a PROFINET controller/device link when the PC must also run logic. The PROFINET path adds one single-device license on top of the runtime; the OPC UA path adds none.

    SCADA and data logging

  • How-to

    Connect an S7-1500 to SCADA over OPC UA from TIA Portal

    The S7-1500 has a built-in OPC UA server from firmware V2.0, deactivated by default. Enable it in the CPU device properties in TIA Portal, select the installed server license, copy the endpoint URL, and download. Paste the opc.tcp address into any OPC UA SCADA client, trust the certificates on both sides, then browse the PLC variables and map them to SCADA tags.

    SCADA and data logging

  • Troubleshooting

    When Aveva Edge cannot browse S7-1500 OPC UA tags

    AVEVA Edge connecting but showing no S7-1500 tags is a browse fault, not a comms fault: UAExpert reading the same server proves the tags are exposed. Match Edge's endpoint and security settings to the working client, verify the CPU's X1 Ethernet addresses, put a virtual machine on the PLC subnet, and check the browse timeout before rebuilding the datasheet.

    SCADA and data logging