How-to
Running PROFINET S2 and Modbus TCP together on an S7-400H CPU port
Short answer
Yes: the integrated ports of a redundant S7-400H pair can run PROFINET S2 and Modbus TCP at the same time over the same switches, with no CP443-1 needed. Give the Modbus TCP connection a unique connection ID, keep CPU firmware at the documented S2 floor of V4.8 HF2 or higher, and prove the arrangement across a switchover.

On this page
- Can one S7-400H port run PROFINET S2 and Modbus TCP at the same time?
- Which CPU firmware supports PROFINET S2 on the redundant pair?
- Can the Modbus TCP devices share the same switches as the S2 ring?
- Which connection ID does the Modbus TCP connection need?
- How much traffic do the Modbus TCP devices add to the port?
- How do you commission Modbus TCP on the redundant pair?
- When do you still need a CP443-1?
- Questions asked
Yes, and no separate communications processor is required: the integrated ports of a redundant S7-400H pair can carry PROFINET S2 to the motor management relays and Modbus TCP to the new medium-voltage devices at the same time, over the same switches. Two conditions decide it. The Modbus TCP connection needs a connection ID no other connection on the CPU uses, present identically on both CPUs, and the pair has to pass the documented redundancy switchover test with both protocols live. Siemens' own PROFINET configuration examples for the S7-400H run both H CPUs as IO controllers through their internal PROFINET interfaces to a SCALANCE switch, which is the documented basis for the shared port. Below are the firmware floor, the connection-ID rule, the load arithmetic, the commissioning order and the decision for each case.
Can one S7-400H port run PROFINET S2 and Modbus TCP at the same time? #
Yes: the same integrated port of the redundant pair can carry PROFINET S2 and Modbus TCP at the same time over the same switches, with no CP443-1 required, provided the Modbus TCP connection gets a unique connection ID and the pair passes a switchover test.
The two protocols stay separate even when they share hardware. PROFINET S2 is a redundancy mode of the PROFINET IO connection: each S2-capable device holds its connection to both H CPUs and takes its output data from whichever controller is active, so a changeover does not tear the PROFINET session down. Modbus TCP is an application protocol over plain TCP/IP. Sharing a port or a switch does not merge them; each keeps its own connection handling, timeout behavior and diagnostics.
The documented basis for the integrated port is Siemens' PROFINET configuration example set for this CPU family, which places both H CPUs, each acting as an IO controller, on their internal PROFINET interfaces with their redundantly assigned devices behind SCALANCE switches. If the integrated port is the documented S2 path, Modbus TCP on the same port adds application traffic, not a new interface requirement. It is the same coexistence as why a PROFINET port can also poll Modbus TCP power meters, extended here to a redundant pair.
Either port split works: both protocols on X5, or S2 left on X5 while Modbus TCP takes X8. The conditions below are identical either way, so pick the split that leaves the running S2 topology untouched.
Which CPU firmware supports PROFINET S2 on the redundant pair? #
Siemens' SINAMICS PROFINET system-redundancy entry puts the floor at S7-400H firmware V4.8 HF2 for PROFINET S2 operation, so a pair at or above that build meets the documented S2 requirement and anything older must be updated before you plan on S2 at all.
Read the installed build on both CPUs first, because the pair runs only as well as its weaker side. The floor comes from that support entry, which ties PROFINET S2 operation to a minimum firmware build for this CPU family. On the device side, current ET 200 interface modules document system redundancy S2 specifically on this CPU family and on S7-1500R/H CPUs, so a new remote I/O drop on this network should be specified on S2-capable hardware. The same redundancy rules govern drive drops, as connecting PROFINET VFDs to a redundant H-system CPU covers for PROFINET VFDs.
Decision: read the firmware on both CPUs, update anything below the floor, and only then add Modbus TCP on top of the S2 system.
Can the Modbus TCP devices share the same switches as the S2 ring? #
Yes: one PROFINET S2 system and Modbus TCP traffic can share the same switches and cabling, because S2 redundancy is settled between the two controllers and the PROFINET devices, not by the switch fabric; a separate VLAN is an optional tidy-up, not a requirement.
Siemens' example network already runs this way: both H CPUs reach their redundantly assigned PROFINET devices through SCALANCE switches, and the Modbus TCP devices join that fabric as ordinary IP hosts. PROFINET real-time frames carry a fixed high Ethernet priority, so the switch already queues the S2 I/O ahead of best-effort TCP without extra configuration. If any ring-style redundancy stays in the plan, remember that S2 and a Media Redundancy Protocol ring solve different failures — why MRP ring redundancy and PROFINET S2 redundancy differ sets the two apart.
One switch-side setting deserves a look before a second protocol joins the port: how a managed switch learns the MAC addresses of integrated CPU ports. Resolving MAC address flapping with integrated PROFINET ports on Cisco switches describes the symptom and the switch-side fix for an integrated PROFINET port, and the same check belongs in your plan.
Which connection ID does the Modbus TCP connection need? #
Give the Modbus TCP connection an ID that no other connection on that CPU uses, and carry the same value on the standby CPU; for example, if the connection list already holds IDs 1 through 4, ID 5 is the first safe choice.
Every configured connection occupies an entry in the CPU's connection resources, and two entries sharing one identifier collide: the second fails to establish or lands on the wrong endpoint. Where the identifier lives depends on your Modbus implementation — it is the connection ID field in the connection data of the Modbus TCP instruction or function block you call — so set it from that implementation's documentation and leave the identifiers of the running PROFINET and S7 connections untouched.
Decide the device role before the identifier. The medium-voltage device documentation states whether the controller polls it as a Modbus TCP client or accepts its connection as a server, and protection relays normally work as servers the controller polls. How a client connection behaves across a redundant pair is the subject of Modbus TCP client roles in a redundant S7-1500 system.
How much traffic do the Modbus TCP devices add to the port? #
Roughly 14 kbit/s: eight medium-voltage devices polled once a second for 20 holding registers each move about 1.7 kilobits per transaction on the wire, which is about 0.014 percent of a 100 Mbit/s port, so load is never the reason to add a second interface here.
Worked example, with illustrative inputs you rescale to your own device count, poll rate and register count. One read of 20 holding registers is a 12-byte request and a 49-byte response at the Modbus layer. Add 20 bytes of TCP and 20 bytes of IP per frame, plus about 38 bytes of Ethernet framing per frame, and one transaction is 12 + 49 + 80 + 76 = 217 bytes on the wire, and 217 x 8 = 1736 bits, about 1.7 kbit. Eight devices polled once per second move 8 x 1736 = 13888 bit/s, about 13.9 kbit/s, and 13.9 / 100000 = 0.0139 percent of a 100 Mbit/s port.
One register read may return at most 125 holding registers under the Modbus specification, so 20-register reads sit inside the standard with room to batch more per poll where the device allows it. Even a hundred devices polled ten times a second move 1000 x 1.7 = 1.7 Mbit/s, under two percent of the port. Connection resources, not bits, set the device-count ceiling.
How do you commission Modbus TCP on the redundant pair? #
Commission it as six steps: record the CPU firmware and port layout, set the Modbus role and registers from the medium-voltage device documentation, assign the unique connection ID on both CPUs, confirm reachability, enable one connection with S2 running, then run the documented switchover test.
- Record the baseline: the installed firmware on both CPUs against the S2 floor, which integrated port carries S2 today, and the device list of the running S2 system.
- Take the Modbus facts from the device documentation: client or server role, IP address, TCP port 502 unless the device differs, unit identifier where the device uses one, and the register addresses of every value you need. The PLC-side items are the same list what you must configure on the PLC side for Modbus TCP walks through.
- Enter the unique connection identifier into the connection data of the Modbus TCP instruction or function block, identically on both CPUs, and confirm it appears once in each CPU's connection overview after the download.
- Check the path before the protocol: IP address, subnet mask, gateway, any VLAN or routing between the medium-voltage devices and the plant fabric, then confirm the device answers on its TCP port from the controller's network location.
- Enable one Modbus TCP connection while the S2 system runs, and watch both sides: the PROFINET devices stay in run with no bus fault, and fresh register values arrive at the interval you set.
- Run the documented switchover test with both protocols live. One safety note: make the first changeover with the medium-voltage side de-energized or under a permit, so a dropped connection cannot act on live switchgear. Acceptance is the S2 devices passing through the transition undisturbed and the Modbus connection re-establishing with fresh data inside your poll budget.
If all six steps pass, the arrangement is proven on your hardware. If the last step fails while S2 stays healthy, the fault sits in the Modbus configuration or implementation, not in the shared port.
When do you still need a CP443-1? #
Only three cases force a communications processor: CPU firmware below the S2 floor with no update path, a Modbus TCP implementation that does not support the integrated interface or the redundant configuration, or a switchover failure you can trace to the interface — protocol difference alone never justifies one.
The classic architecture earns its place when system requirements call for it: a CP443-1 in each CPU with engineering stations on a CP1613 is the documented redundant Ethernet setup, described in classic redundant Ethernet setup with CP443-1 and CP1613. Where operator stations still connect through that path, connecting WinCC to the redundant pair over dual CP443-1 shows how the SCADA route runs independently of what the integrated ports carry.
Decisions, case by case:
- Firmware at or above the S2 floor, implementation supports the integrated interface, switchover test passes: run Modbus TCP on the integrated ports, with no separate communications processor.
- Firmware below the floor and updatable: update both CPUs, then commission as above.
- Firmware below the floor with no update path, or an implementation that rejects the integrated interface or the redundant configuration: give Modbus TCP its own supported interface, and in this controller family that means a CP443-1.
- Switchover fails on Modbus while S2 stays healthy: fix the Modbus configuration or implementation first, and add hardware only when the failure is a documented interface limitation.
Questions asked
What happens to the Modbus TCP connection when the H system switches over?
The TCP connection dies with the CPU that held it. PROFINET S2 survives a changeover because the IO device holds its connection to both controllers, but a standard TCP session has no such dual-ended arrangement, so the device sees a disconnect and the surviving side reconnects when its polling logic next runs. Count reconnect time plus one poll cycle as the recovery to expect, and set your acceptance criteria accordingly.
Do the medium-voltage devices need any PROFINET capability?
No. System redundancy S2 is a property of PROFINET IO connections between the redundant controllers and PROFINET devices such as motor management relays and remote I/O heads. A Modbus TCP server takes no part in that mechanism; it simply serves the TCP conversations the controller opens. The device needs standard Modbus TCP server behavior, a fixed IP address and a documented register map, nothing more.
Does the standby CPU need its own Modbus TCP configuration?
No separate engineering, but a separate verification. The redundant pair runs one user program synchronously in both CPUs, so the connection data and its unique identifier exist on both automatically. Open the connection list on each CPU after the download and confirm the Modbus connection appears once with the same identifier, because a mismatch between the two sides is the first thing to rule out when a post-changeover reconnect fails.
Is there a limit on how many Modbus TCP devices one port can serve?
The ceiling is the CPU's documented connection resources, not the port's bandwidth. Every polled device holds one TCP connection for as long as it is configured, alongside the PROFINET IO connections and HMI links the pair already carries. Read the connection usage on both CPUs from their connection overview in the engineering tool and size the Modbus device count against the free resources your CPU's documentation lists.

