IMDTouchKnowledge BaseShop main store

Troubleshooting

Switching HMI communication between two redundant CPUs

HMI and touchscreens Published 8 min read By IMDTouch engineering team

Short answer

A redundant S7-400H pair hands process control to the standby CPU, but the panel keeps its own connection target, so the changeover has to happen on the panel. Verify CPU B actually takes control, then apply the documented changeover script from Siemens entry 96837136, with both CPU endpoints entered exactly, status tags that keep updating on every screen, and a cyclic script period matched to the tag acquisition cycle.

On this page
  1. Confirm the CPU pair actually transfers control
  2. Read the panel identity before touching a script
  3. Make both CPU endpoints reachable from the panel
  4. Keep the status tags fresh on every screen
  5. Set the script period against the tag acquisition cycle
  6. Rebuild from the documented entry and test the handover
  7. Read each symptom to its decision
  8. Questions asked

A redundant S7-400H pair hands process control from CPU A to CPU B, and nothing in that handover moves the panel: the TP 1200 keeps polling the address of CPU A and every tag goes stale. The two functions are separate — controller redundancy lives in the CPU pair, the connection lives in the panel. The documented fix is Siemens application entry 96837136, which ships changeover script templates and the hmiTagTable tag table that move a panel connection to the standby CPU. Work the checks in order: confirm the CPU pair really transfers control, confirm the panel identity and runtime, confirm both CPU endpoints are reachable, then keep the status tags the script reads updating on every screen, and set the script period against the tag acquisition cycle. A copied script with hand edits is the usual starting point of the failure reported here, so the sections below rebuild the changeover from the documented source.

Confirm the CPU pair actually transfers control #

Redundancy and HMI changeover answer different questions. Redundancy asks whether the surviving CPU keeps the process under control; changeover asks whether the panel moves its connection to it. Diagnose them in that order, because no panel setting can rescue a standby CPU that never picks up the process.

Begin at the CPUs:

  • Record CPU A's mode and CPU B's role before and after the reported event. CPU B must take the active role; if it does not, the fault is on the controller side and it is fixed there.
  • Read the redundancy state the pair reports after the transition and file it with the event log.
  • Correlate the panel's connection-loss timestamp with the CPU transition. When both panel connections drop at the same moment, suspect the common path — a switch, a subnet mask, an address — not a missing switch command.
  • Define what 'goes to sleep' means on this machine: a planned role change, a STOP, a power loss and a pulled cable each produce a different communication result, and each is tested differently.

The controller side — what the pair must support so an operator station can follow the active CPU — is covered in HMI switchover support on a redundant S7-400H CPU. The division of duties behind the split, controller serving process data and panel polling it as the client, is the subject of how an HMI and a PLC divide the work in a control system, and the polling side is the one that owns the connection.

Decision: CPU B takes the active role while the panel stays on CPU A — the panel-side changeover is missing or failing, and the checks below apply.

Read the panel identity before touching a script #

The family name on the bezel selects nothing. Read three things from the installed system: the full order number on the rating plate — a Comfort-class order number looks like 6AV6124-0MC01-0AX0 — the runtime version installed on the panel, and the version of the engineering tool that compiled the project. Script support and the connection-control interface belong to the runtime, so a script written for another panel family or another HMI platform either will not run or will call interfaces it does not have.

The entry is titled Connecting SIMATIC HMI panels with a SIMATIC S7-400H (WinCC V16 and STEP 7 V5.6) and states the panel families and software versions it covers. Compare the three readings against that list before importing anything, and take the entry revision that matches your engineering tool; the identified package is marked V2.0. To confirm what the panel is actually running, verify the HMI project version running on a panel, then compare.

Decision: the installed combination is not covered — stop there and use the documented variant for your runtime. Adapting the WinCC V16 package to a different runtime is guesswork, not changeover.

Make both CPU endpoints reachable from the panel #

A changeover script cannot resurrect an endpoint the panel cannot reach. An endpoint is the configured destination of one connection: the working design gives each CPU its own address on the panel's subnet, for example 192.168.1.10 for CPU A and 192.168.1.11 for CPU B, and those two addresses are exactly what the script switches between.

Check three things:

  • The two addresses in the CPUs' hardware configuration match the two addresses in the panel project, with no leftover address from the example or from the copied script.
  • The panel, both CPUs and any intermediate switches share a consistent subnet and mask, and the cabling gives the panel a physical path to each CPU.
  • Each connection works on its own: run the panel project against CPU A alone and watch a changing process value, then repeat against CPU B.

An engineering workstation that reaches both CPUs proves nothing about the panel's path, because the panel has its own interface, address and routing.

Decision: each partner delivers fresh values on its own connection — only then is automatic selection between them worth testing.

Keep the status tags fresh on every screen #

The script decides from status tags that report each CPU's condition, and a stale tag is the trap that makes a correct-looking script fail. On this panel class, tag acquisition follows what the open screens use: a tag referenced only by a closed screen stops updating, so the script keeps reading the last stored value and concludes that CPU A is still there, precisely when it is not.

The documented example ships its status tags in the hmiTagTable table together with the VB scripts; import both and keep the acquisition arrangement the entry prescribes. The field practice for screen-driven acquisition is to reference both CPUs' status tags on every page, with transparent text objects as the usual form, so the values update wherever the operator navigates. Treat that as a dependency to manage rather than a finished fix: every navigable screen must reference the tags, screens added later must reference them too, and a layout change can silently drop one.

Verify while navigating: open the screens in sequence and watch both status tag values change. A value that freezes on a screen is the failure, and a value carried over from before a communication loss must never be read as proof that CPU A is healthy.

Decision: the script runs without errors but the connection never moves — put both status tags in front of the script on every screen and re-test before changing anything else.

Set the script period against the tag acquisition cycle #

Run the changeover script cyclically from the runtime's script scheduler. An event-only trigger starves: when the connection to CPU A dies, its tags stop changing, so an on-change trigger never fires again, at the one moment it is needed.

The blind window follows from two settings: T, the acquisition cycle of the tags the script reads, and P, the script period. Worst case, the panel reacts after T + P: one acquisition cycle for the tags to reflect the new condition, then up to a full script period before the script evaluates again.

Worked example, with example inputs rather than documented settings: the status tags acquire every 1 s and the script runs cyclically every 2 s. Worst-case detection delay = 1 s + 2 s = 3 s. Add one acquisition cycle for the first fresh value from CPU B: 3 s + 1 s = 4 s from failover to a live operator station.

The decision follows from the arithmetic: set the cyclic period equal to the tag acquisition cycle. For those example tags that is a 1 s period, which caps detection at 2 s. A period shorter than the acquisition cycle only loads the panel, because the values refresh no faster; a period longer than it stretches the blind window to acquisition cycle plus period.

Rebuild from the documented entry and test the handover #

Use the entry's own parts rather than a re-typed version of them:

  1. Back up the running panel project and record the current connection settings, so the working state can be restored.
  2. Open Siemens Industry Online Support entry 96837136 and check its documented panel families, WinCC and STEP 7 versions against the three readings from the panel identity section.
  3. Import the hmiTagTable tag table and the VB scripts the entry ships, enter the two CPU addresses exactly as configured in the CPUs' hardware configuration, and delete every address left over from the example or the copied script.
  4. Schedule the changeover script cyclically with the period chosen above.
  5. Test with operations in the loop, and never prove a handover by cutting power to a CPU on a running line; the deliberate stop is an approved operational test.
  6. Run both directions: stop CPU A and confirm the panel re-points and delivers fresh values from CPU B; restore CPU A, stop CPU B, and confirm the panel follows back.
  7. Walk every screen during the test and confirm the status tags keep updating, because changeover must work from wherever the operator happens to be.

A connection that follows in one direction only is half configured: the script holds two targets, and a wrong or unreachable second address usually shows up at exactly the moment the second CPU fails.

Read each symptom to its decision #

Symptom Meaning Decision
CPU B never takes the active role Redundancy pair fault Repair the controller side; no panel change helps
Both panel connections drop together Common path or addressing fault Check switches, subnet and addresses; not a changeover fault
CPU B holds the process, panel stays on CPU A Missing or failing panel-side changeover Apply the documented changeover entry as shipped
Script runs, connection never moves Stale status tags Restore tag freshness on every screen, then re-test
Import errors in the script Runtime or panel family mismatch Match the entry's documented versions and rebuild

The bottom line: a healthy redundant pair never moves a panel connection by itself. The repair lives on the panel — the documented changeover scripts under the correct order number and runtime, both CPU addresses entered exactly, status tags that keep updating on every screen, and a cyclic script period matched to the tag acquisition cycle. Worked in that order, the operator station follows the active CPU instead of waiting on the failed one.

Questions asked

Where do I find the documented changeover solution?

Siemens Industry Online Support entry 96837136, titled Connecting SIMATIC HMI panels with a SIMATIC S7-400H (WinCC V16 and STEP 7 V5.6), carries the changeover script templates and the hmiTagTable tag table. Check the panel families and software versions it documents against the order number and runtime installed on your panel before importing anything, and use the revision of the entry that matches your engineering tool.

Does an S7-400H pair switch the HMI connection on its own?

No. The CPU pair keeps the process under control when one CPU fails, but each panel connection is a client link the panel owns, aimed at one configured address. Without the changeover script running on the panel, the connection stays on the failed CPU and every tag goes stale, which is exactly the symptom described.

Is there a documented solution for S7-1500R/H as well?

Yes. Siemens documents a separate entry, 109781687, for connecting an HMI panel to an S7-1500R/H redundancy pair. There both CPUs synchronize over two redundancy connections and the surviving CPU keeps control of the process when its partner fails; the panel side still needs the documented script approach to move its connection to the active CPU.

Can I just edit the connection address instead of scripting the switch?

A manual address edit changes one configuration value and does not fire at failover. The documented solution combines the connection definitions, the hmiTagTable status tags, the script templates and their scheduler entries so the panel re-points the connection while it runs. Swapping only the address leaves every other dependency of the switch untested.

Which order number tells me the panel supports this?

The full order number on the rating plate, not the family name. A panel marked only TP 1200 is not identified enough to select a scripting method; a Comfort-class order number looks like 6AV6124-0MC01-0AX0. Compare that number and the installed runtime with the panel families the application entry documents, because script support is a feature of the runtime, not of the family name.

Keep reading

  • Troubleshooting

    Comfort panel redundant H system connection over Ethernet

    A TP1900 Comfort panel cannot be configured in WinCC flexible, so the redundant connection to a 412-H station is engineered in the WinCC environment of TIA Portal: the panel talks to the active CPU over Ethernet, and a PROFINET media redundancy ring in client role protects the cable path. Accept the result with two separate tests: a controlled CPU changeover and a single-cable removal.

    HMI and touchscreens

  • Comparison

    HMI switchover support on a redundant S7-400H CPU

    An H system that keeps control running proves nothing about the HMI: WinCC OA is reported to connect to an S7-400H but to lack the vendor's redundant-connection option for that system; treat any release as unproven until its driver documentation and a bench test prove switchover behavior. Test with a changing value, alarm events and a command feedback check, and accept only a measured stale interval inside the process limit.

    HMI and touchscreens

  • Explainer

    Why the Comfort Panel watch table rejects your S7-1500 tags

    The Watch table object is a runtime editor for absolute S7 addresses, not a tag-bound control, and its documented support covers the S7-300/400 families only, so an S7-1515 never appears on its list. Build the monitor screen from HMI tags in I/O fields instead, or display the CPU's web server watch tables in the panel browser.

    HMI and touchscreens

Why HMI touch screen portrait rotation needs two checks