IMDHMIControls LibraryShop main store

Explainer

S7-1500 OPC UA server over a CP 1543-1: when it works

Industrial networks Published 6 min read By IMDHMI controls team

Short answer

The S7-1500 OPC UA server is reachable only through the CPU's integrated PROFINET interfaces. One documented exception exists: a CP 1543-1 at firmware V2.2 or later, a CPU at firmware V2.8 or later (V3.1 for R/H CPUs), projected in TIA Portal V16 or later, carries the server over IPv4 forwarding and the CPU's virtual communication interface. Older combinations, including any CP1542SP-1, leave only the CPU's own address in the server list.

On this page
  1. The base rule: the server answers on the CPU's own interfaces
  2. The support matrix for the CP path
  3. Forwarding and the virtual communication interface
  4. Worked example: a CP at 172.16.20.190 and a virtual interface at 172.16.20.247 under mask 255.255.255.128
  5. The decision for each installed combination
  6. Questions asked

An S7-1500 OPC UA server does not follow a communication processor onto a new subnet. The documented rule is that the server answers on the CPU's integrated PROFINET interfaces, and the server address list shows it: project a CP, and the list still holds only the CPU's own IP. The documented exception is narrow — a CP 1543-1 at firmware V2.2 or later, a CPU at firmware V2.8 or later, and a project in TIA Portal V16 or later let the server ride the CP across IPv4 forwarding and the CPU's virtual communication interface. Below are the support matrix, the addressing arithmetic behind a working address pair, and the decision for each installed combination.

The base rule: the server answers on the CPU's own interfaces #

From CPU firmware V2.0 onward, the S7-1500 OPC UA server is documented as reachable over all integrated PROFINET interfaces of the CPU. The same documentation excludes the PROFINET interfaces of CP and CM modules: those never become server endpoints. The endpoint is a CPU address, the server executes in the CPU, and no project setting turns a communication module's IP into a server address.

That is why a projected CP changes nothing in the address list. The module itself is not dead — HMI connections and web server access run across a CP — so the integration tests as working while OPC UA stays unreachable from its subnet. Enable and configure the server in the CPU properties first; the client-side walkthrough in Connect an S7-1500 to SCADA over OPC UA from TIA Portal assumes exactly that server, and the open question is only which interface carries it.

The support matrix for the CP path #

The CP path exists only inside one documented support matrix, and each entry is a threshold rather than a preference:

  • The CP 1543-1 runs firmware V2.2 or later — the release whose delivery note added the function.
  • The CPU runs firmware V2.8 or later; S7-1500R/H redundancy CPUs need V3.1 or later.
  • The project is engineered in TIA Portal V16 or later.

The three are independent prerequisites. Moving the engineering station to a newer TIA Portal changes nothing on the hardware: firmware has to be loaded on both modules, and a module can hold firmware that an older project cannot configure. The delivery release for CP firmware V2.2 ties the new functions to the V16 configuration environment, so a half-updated chain — new module, old project — configures cleanly and still serves no OPC UA endpoint. Read the online firmware versions of CPU and CP before promising a client an endpoint on the CP side.

The CP1542SP-1 is a different module. The documented access requirements name only the CP 1543-1, so this variant has no server path at any firmware or TIA Portal version — the decision section below takes that case as fixed.

Forwarding and the virtual communication interface #

With the matrix satisfied, two settings build the endpoint. In the CPU properties, open the IPv4 forwarding configuration area, tick the "Enable IPv4 forwarding for interfaces of this PLC" check box, and select the CP 1543-1 as the forwarding interface. Then give the CPU's virtual communication interface an address in the customer subnet. The virtual interface is an additional logical identity of the CPU carried on the CP's physical port, and once it is configured, that address appears in the CPU's OPC UA server addresses. Clients connect to it as to any S7-1500 server — the embedded server described in When an S7-1500 needs no SIMATIC PC Station for OPC UA.

The CP's own address still never becomes the server address. It works as the next hop: packets aimed at the virtual address arrive at the CP, which hands them across the backplane to the CPU. The pattern is ordinary router behavior; if you also maintain controllers where forwarding has to be switched on by hand, the guide on configuring IPv4 forwarding on a WAGO PFC200 controller covers the equivalent setup on other hardware.

One safety note: IPv4 forwarding joins the machine network and the customer network at the IP layer, so treat this CP link as the single deliberate opening between them and keep OPC UA sign-and-encrypt plus the customer side's access rules in force across it.

Worked example: a CP at 172.16.20.190 and a virtual interface at 172.16.20.247 under mask 255.255.255.128 #

The case: a CPU and its CP 1543-1 on the documented firmware chain, and two customer-side addresses to place. Inputs:

  • CP physical interface: 172.16.20.190 with mask 255.255.255.128 — the customer-network address the network group issues, typically bound to the CP's MAC address.
  • CPU virtual communication interface: 172.16.20.247 with the same mask — the second customer-network address, assigned to the CPU's virtual interface.
  • OPC UA client: a SCADA station inside the customer network.

Both addresses are example allocations used here for the arithmetic; substitute the ones your network group approves.

The rule, in words: a mask of 255.255.255.128 is a /25, which splits a /24 block into two subnets of 128 addresses each, so an address belongs to the upper subnet when its last octet runs from 129 through 254.

The arithmetic: subnet size is 256 - 128 = 128 addresses. The upper subnet has network address 172.16.20.128, broadcast 172.16.20.255, and 128 - 2 = 126 usable hosts, from 172.16.20.128 + 1 = 172.16.20.129 up to 172.16.20.128 + 126 = 172.16.20.254. Both last octets fall inside that usable range — 190 and 247 are each between 129 and 254 — so the two addresses share one subnet.

The result: the CP and the virtual interface sit in subnet 172.16.20.128/25.

The decision: a client inside 172.16.20.128/25 reaches the virtual address directly, with no router entry on either interface. A client in any other customer subnet flips it — enter the CP address as the router on the virtual interface so replies get a next hop, and give the CP the site router as its own gateway when it must reach beyond the customer network. In both branches the address plan carries two customer-side addresses, one on the CP and one on the virtual interface, because the documented arrangement keeps them separate.

The decision for each installed combination #

  • New machine that must separate the machine network from the customer network and still serve OPC UA to the customer side: build the documented chain — CPU and CP at the threshold firmware levels, project at the required TIA Portal version, forwarding enabled, virtual interface addressed — or choose a CPU with a second integrated PROFINET interface, put that port on the customer network, and skip forwarding entirely, because the server answers on every integrated interface.
  • Installed CPU below its threshold: update CPU and CP firmware to the documented levels and re-engineer in the required TIA Portal version; the endpoint cannot be configured into existence on older firmware.
  • Installed CP1542SP-1: no documented server path exists at any firmware, so one of the two requirements has to move. Run the OPC UA connection on the CPU's integrated interface and leave only server-free traffic on the module; if the separation demand cannot be met that way, the network design changes, not a checkbox.
  • Only the CPU's address in the server list although a CP is projected: that is the documented signature of a combination outside the matrix, not a missed setting — check the online firmware of both modules and the project version against the matrix before hunting through properties.

Questions asked

Does the CP 1543-1's own IP address ever appear in the OPC UA server address list?

No. The server keeps running in the CPU, so every endpoint is a CPU address. With forwarding configured, the virtual communication interface address is what gets added to the list; the CP's physical address stays a routing next hop and never becomes a server endpoint at any firmware level.

What firmware does a redundant S7-1500R/H CPU need to serve OPC UA across a CP?

V3.1 or higher, one step above the V2.8 that standard S7-1500 CPUs need. The rest of the chain is unchanged: CP 1543-1 firmware V2.2 or higher, a project in TIA Portal V16 or higher, IPv4 forwarding enabled, and the virtual communication interface addressed in the remote subnet.

Can a CP1542SP-1 carry the OPC UA server the same way?

No documented path exists for that module. The access requirements in the S7-1500 communication documentation name only the CP 1543-1 as a module that can carry the server. On a compact CPU fitted with a CP1542SP-1, the OPC UA connection has to run on the CPU's integrated interface, and only traffic that needs no server stays on the module.

Why does the server address list show only the CPU address when a CP is projected?

Because that combination sits outside the supported matrix, and a CP outside the matrix contributes no endpoint by design; it is not a hidden setting. Check the online firmware of both modules and the project's TIA Portal version against the documented thresholds, then enable IPv4 forwarding and address the virtual communication interface; the extra address appears in the server list once the whole chain is in place.

Do I need one or two addresses in the customer network?

Plan for two. The documented arrangement assigns one address to the CP's physical interface and a second to the CPU's virtual communication interface, and both stay in the address plan permanently. Network groups that bind addresses to MAC addresses should approve both together, because the virtual interface's traffic leaves through the CP and depends on it staying in place.

Keep reading

  • How-to

    CODESYS as an OPC UA client to an S7-1200 server

    Yes: a CODESYS runtime can act as an OPC UA client to an S7-1200 acting as the server, but only with the separately licensed OPC UA Client SL on the CODESYS device, an S7-1200 CPU and firmware that support its OPC UA server with published variables, and a matching endpoint, exchanged application certificates, an authorized user identity and the variable's NodeId. Configuring the S7-1200 server alone provides none of that.

    Industrial networks

  • How-to

    How to build a virtual PLC test bench for protocol practice

    One laptop runs the whole bench: a Modbus TCP server simulator, a master test client, a Node-RED OPC UA server and a SCADA trial connect over loopback, so you can practice addressing, sessions, scaling, alarms and fault diagnosis without a PLC. Work through three bounded projects and finish with seven pass criteria you can defend.

    Industrial networks

  • Explainer

    Why OPC UA subscription updates beat polling PLC input changes

    An OPC UA subscription replaces repeated reads with server-side monitoring: the PLC's OPC UA server samples the exported variable at the sampling interval and delivers queued data-change notifications at the publishing interval. Set the sampling interval below the shortest input change you must catch, keep the queue deep enough for one publishing cycle, and confirm the change reaches the exported variable — no subscription can report a transition the PLC never saw.

    Industrial networks