IMDHMIControls LibraryShop main store

Troubleshooting

WinCC V7 to a redundant Schneider PLC over Modbus TCP

SCADA and data logging Published 7 min read By IMDHMI controls team

Short answer

WinCC V7's built-in redundant connection only speaks to Siemens S7-400H software redundancy, so it will not follow a Schneider redundant pair by itself. Connect through the documented Modbus TCP endpoint of the active CPU, and if SCADA availability must survive a computer failure, use the WinCC Redundancy option with two servers.

On this page
  1. What WinCC V7 redundancy actually covers
  2. Establish the documented PLC endpoint
  3. Worked example: first read from the active CPU at 192.168.1.50
  4. Tags: start read-only and check interpretation
  5. Switchover behavior and write safeguards
  6. Troubleshooting checklist
  7. Questions asked

A single-user WinCC V7 station reaches a redundant Schneider pair over Modbus TCP through the pair's documented client-facing endpoint, but the WinCC V7 redundant channel itself only supports Siemens S7-400H software redundancy, so it will not follow the Schneider switchover automatically. If SCADA availability must also survive a computer failure, you need the WinCC Redundancy option with two configured servers. This article separates those two designs, shows a first-connection example, and lists the checks that prove the connection works before and after a switchover.

What WinCC V7 redundancy actually covers #

WinCC V7 has two different redundancy features, and mixing them up is the root of most of these questions.

  • The redundant connection in the communication channel is a controller-level feature: it keeps a data link alive across a switchover inside a Siemens S7-400H software-redundancy system. It has no knowledge of Schneider redundancy, so it cannot track which CPU of a pair is active.
  • The WinCC Redundancy option is a server-level feature: two physical or virtual servers, configured functionally identically, each hold their own connection to the PLC, run synchronized archives, tags and alarms, and the standby server continues operating when one computer fails. Synchronized servers and archive synchronization are prerequisites; plant-wide time synchronization across the WinCC computers and PLCs is recommended.

Neither feature substitutes for the other. Two servers pointed at the same unavailable endpoint both lose communication; a redundant CPU pair does nothing for a failed SCADA computer. Decide separately which failure you must survive: a CPU switchover, a SCADA computer failure, or both. That decision, not the word redundancy, drives the design. The related case of two SCADA servers writing to one PLC over Modbus TCP (article:two-scada-servers-writing-to-one-plc-over-modbus-tcp) covers the write-ownership side of a two-server layout.

Establish the documented PLC endpoint #

An endpoint is the IP address and TCP port the client connects to. Modbus TCP defines client/server exchanges but no discovery or switchover mechanism, so what the redundant pair offers is decided by the CPU's redundancy configuration, read from Schneider documentation for the installed CPU, its Ethernet communication hardware and firmware revision. The CPU designation alone, in this case CPU 671 60, is not enough to pick a procedure.

Read the configured addresses and the active/standby indication on the running system, then classify the endpoint:

  • One address associated with the active controller: the pair presents one logical endpoint. One WinCC connection can serve both CPUs, provided the documented behavior confirms that address ownership transfers and clients reconnect after a switchover.
  • One address per controller: the client needs a documented selection mechanism. Two configured connections in WinCC do not by themselves define which CPU answers or whose data is authoritative.
  • Separate communication hardware handling client access: the external interface's documented redundancy behavior and failure coverage determine the design.

Also read the TCP port and the unit-identifier handling from the PLC interface configuration and the channel documentation for your WinCC release. The unit identifier is a field in every Modbus message; a server that answers directly and a serial gateway behind a TCP front end handle it differently.

Worked example: first read from the active CPU at 192.168.1.50 #

Inputs for this example (example values where the project does not fix them): the pair presents one client-facing address, 192.168.1.50, on the standard Modbus TCP port 502; the server answers directly, not through a gateway, so unit identifier 255; the PLC register map documents holding register 40001 as a readable 16-bit value. Where each comes from: the address from the CPU's Ethernet configuration on the running system, the port from the protocol's well-known port assignment, the unit identifier and register from the CPU documentation and register map for the running application.

The rule: a Modbus TCP request carries a unit identifier, a function code and a register address. Holding register 40001 in the documented numbering is protocol address 0, because the display convention starts the holding-register block at 40001 while the protocol offset starts at 0. A read-only 16-bit value uses function code 03, read holding registers.

The arithmetic on the address: documented reference 40001 minus the 40001 offset base for the holding-register block gives protocol address 0. Enter 0 (or DWORD 1 with a 1-based channel convention; check which convention your channel dialog uses before typing anything) as the register address, with the unit identifier 255 and the address 192.168.1.50, port 502, in the WinCC channel connection properties.

Result: the first read returns a raw 16-bit value with good communication quality. Decode check: if the PLC monitor shows the same value as a signed 16-bit integer, for example 1750, and WinCC decodes the tag as 1750, the width, signedness and address all agree. If the value looks plausible but never changes, request a register tied to a safely changing quantity; a changing tag that WinCC follows proves live data rather than a stale frame.

The decision this example leads to: once one address reads correctly, that single endpoint is your connection for both CPUs, and the remaining work is switchover verification, described below. If the address belongs to one CPU only, stop and resolve the endpoint arrangement first; do not compensate by writing to both addresses. More WinCC-specific Modbus faults, including mismatched register conventions, are covered in why WinCC Modbus TCP reads fail on an FX5U server (article:why-wincc-modbus-tcp-reads-fail-on-an-fx5u-server); the same address-convention checks apply here. Which register area to pick, holding or input, is decided in Modbus holding register vs input register (article:modbus-holding-register-vs-input-register-which-one-to-use).

Tags: start read-only and check interpretation #

Controller redundancy does not create a register mapping. Obtain the register map for the running PLC application and begin with read-only tags so addressing errors cannot change the process. For each tag, confirm against the map:

  • Register area and access: the request type matches a documented readable area.
  • Address convention: display reference versus protocol offset, as in the example above.
  • Data width and signedness: the same 16 bits can represent different values.
  • Byte and word order for multi-register values: a known value must decode correctly across its range.
  • Scaling and units: the displayed engineering value must match the PLC's own calculation.

Verify each tag against the PLC's online monitor, not against plausibility.

Switchover behavior and write safeguards #

A switchover can interrupt the established TCP session even when the client-facing address stays the same, so recovery has two parts: the endpoint must transfer to the standby CPU, and the WinCC channel must reconnect and resume polling. Verify this by forcing a switchover during commissioning while watching a changing tag and the channel diagnostics; a connection that only ever ran against one CPU has not been tested.

Configure a communication-loss indication on the connection so operators can tell current data from a retained display value. A raw value that looks reasonable after communication stops is the classic false-confidence fault; the channel's quality and diagnostic status, not the number on screen, tell you whether the link is live. If SCADA-side availability also matters and you move to two servers, the machine that runs the second server sits beside the controller in the cabinet or at the console, and that is the point where you would specify an industrial panel PC for the SCADA client (product:all-panel-pcs).

Writes need their own discipline: with separate controller addresses, never write the same command to both to cover an uncertain active-controller selection, and treat the register map's documented writable areas as the only write targets.

Troubleshooting checklist #

Work through these in order; each step assumes the previous one passed:

  • Record the CPU identification, Ethernet hardware, firmware revisions and redundancy configuration from the installed equipment.
  • Read the configured addresses and active/standby status; classify the endpoint as one shared address, one address per CPU, or an external communication interface.
  • Confirm the supported client connection method in the Schneider documentation for that exact hardware and firmware.
  • Check reachability of the endpoint, then check an application-level read; a reply to a network diagnostic does not prove Modbus works, and the converse also holds.
  • Create one read-only tag per the worked example and confirm the value matches the PLC monitor, including a changing tag.
  • Check width, signedness, word order and scaling on every tag before it goes on screen.
  • Force a controller switchover and confirm the channel reconnects and the changing tag resumes updates.
  • Set a communication-fault indication for every connection so retained values are identifiable.
  • If SCADA computer availability is required, plan the WinCC Redundancy option: two functionally identical servers, archive synchronization, and time synchronization across computers and PLCs, with its own licensing reviewed for the installed release.

The end decision, for each case: one client-facing address owned by the active CPU means a single-user station is a valid design, tested by a forced switchover. Separate addresses per CPU and no documented client selection mechanism means a single-user station cannot be made to follow the pair, and the design must change, either at the PLC side to publish a managed endpoint or at the SCADA side to a documented redundant architecture. SCADA computer failure in scope means the WinCC Redundancy option with two servers; out of scope, a single server through the documented endpoint is complete.

Questions asked

Can one WinCC V7 station follow a Schneider CPU switchover on its own?

No. The redundant channel built into WinCC V7 targets Siemens S7-400H software redundancy, so a single-user station has no mechanism that tracks a Schneider pair's switchover. If the CPU pair publishes one client-facing address that survives a switchover, one station keeps working through that address. If each CPU has its own address, the station needs a documented selection mechanism, and two plain connections do not provide one.

Does adding a second WinCC computer make the PLC connection redundant?

Not by itself. Two servers connecting to the same unavailable endpoint both lose communication, because SCADA redundancy protects against a computer failure while controller redundancy protects against a CPU failure. They are separate designs. Only the WinCC Redundancy option, with two configured, synchronized servers that each hold their own connection, gives continued operation when one SCADA computer fails.

Which TCP port and unit identifier do I use for a Schneider Modbus TCP server?

Modbus TCP uses TCP port 502 as the protocol's well-known port, and a server that answers directly, not through a gateway, commonly responds to unit identifier 255 or 254. Read the actual port and unit-identifier handling from the CPU's Ethernet interface configuration and the channel documentation for your WinCC release, because gateway and firmware behavior differs.

Why does WinCC show a good value after the PLC switchover?

The last raw value stays on screen after communication stops, so a plausible-looking number can be a retained display value rather than current data. Configure a communication-fault indication on the connection and check the channel's quality and diagnostic status before trusting a value. Also verify with a changing tag, not a constant register, so a stale value is visible immediately.

Keep reading

  • Explainer

    Whether WinCC in TIA Portal connects to Modbus TCP without a PLC

    Yes, WinCC can read Modbus TCP devices with no S7 PLC in the data path, provided the installed runtime carries a Modbus TCP client channel, as WinCC Unified does with its Standard Modbus TCP/IP driver, or an OPC server on the same station. Device type is not the deciding factor; the register map is: area, numbering, data type, word order and scaling must match before tags show true values.

    SCADA and data logging

  • How-to

    How Geo SCADA writes to an M340 PLC over Modbus TCP

    A Geo SCADA write to an M340 over Modbus TCP needs a write function code, a writable target and PLC logic that leaves the target alone. Point function 05 or 15 at %M bits and function 06 or 16 at %MW words, prove both on scratch addresses, and confirm the offset convention by writing 1234 and reading the same word back in the animation table.

    SCADA and data logging

  • Troubleshooting

    Reading a CLICK PLC float over Modbus TCP in an HMI

    F428673 is the right address: the F prefix reads the two Modbus registers as the IEEE 754 float the CLICK program wrote to DF1 (24.9645 here), while L returns the raw 32-bit pattern (1103607636) and U returns one 16-bit half (46932). The screen showed 25 because an integer tag or whole-number format rounded it. Move the project to 3.99w and bind F with a decimal format and a floating-point variable.

    SCADA and data logging