IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an HMI Stays in Comm Fault After a Power Cut

HMI and touchscreens Published 5 min read

Short answer

Ping from the HMI only proves ICMP reachability; with Use Security enabled, the MachineExpertNetwork driver must also re-authenticate after a restart, and a stale PLC password leaves every PLC-linked variable in red comm fault until the Equipment Security credentials match again. Resynchronize the password, redeploy the application, and prove recovery with one read and one controlled write. A PLC-versus-HMI boot-time race is the separate branch when valid credentials still fail.

On this page
  1. What a successful ping proves, and what it leaves untested
  2. Sort the fault into one of three causes
  3. Check the equipment connection the terminal actually runs
  4. Resynchronize the credentials and redeploy
  5. Prove recovery with one read and one write
  6. Keep the security synchronized rather than removed
  7. When valid credentials still fail: the boot-time branch
  8. Questions asked

Red comm-fault rectangles on every PLC-linked variable while the controller still answers ping is an authentication failure, not a network failure. In EcoStruxure Operator Terminal Expert, the MachineExpertNetwork driver with Use Security enabled logs into the controller using the account stored under Equipment Security; after a power cut the driver has to open that session again, and one obsolete password leaves the variables red and the buttons dead until the credentials match. Resynchronize the password on the HMI side, redeploy the application, then prove the link with one read and one controlled write. Only if valid credentials still fail while the controller is demonstrably running do you treat it as a boot-time race.

What a successful ping proves, and what it leaves untested #

Ping is an ICMP echo exchange. It exercises the cable, the switch, the IP addressing and the controller's TCP/IP stack, and nothing above them. The driver session is a different exchange: a login the driver performs with the Equipment Security account before it can poll a single variable. A controller that answers ping can still refuse that login, which is exactly the state that leaves variables red and HMI commands undelivered.

Worked example with illustrative bench addresses: terminal at 192.168.2.10, engineering PC at 192.168.2.50, controller at 192.168.2.1, subnet mask 255.255.255.0 on all three.

  • 192.168.2.10 AND 255.255.255.0 = 192.168.2.0
  • 192.168.2.50 AND 255.255.255.0 = 192.168.2.0
  • 192.168.2.1 AND 255.255.255.0 = 192.168.2.0

All three hosts sit in the subnet 192.168.2.0/24, so every ping succeeds by design and carries no information about the driver's login. Decision: pings green plus variables red exonerates the network; test the session next.

Sort the fault into one of three causes #

Two observations sort it: does ping succeed, and does the red ever clear on its own.

Observation Cause Action
Ping fails from the terminal or the PC Reachability Fix controller power, Ethernet link, addressing and the network path before touching credentials
Ping succeeds and the red rectangles persist with the controller fully running Authentication Resynchronize the Equipment Security credentials
Ping succeeds and the red clears while the controller finishes starting Timing Power the terminal after the controller so the first login meets a running partner

The controller's state is the discriminator, not the clock: with I/O moving and the engineering tool connected, a still-red variable set is a refused login, not a slow boot. Confirming the controller's condition before condemning the link is the same discipline as separating PLC scan time from real HMI communication faults.

Two neighboring failures are excluded the same way. If the first outage followed an address change rather than a power cut, work through HMI comms errors after a PLC IP address change. If the power cut also empties the terminal, that is why an HMI loses its program after every power cycle, and it is ruled out the moment the application still runs with only PLC-linked data faulted.

Check the equipment connection the terminal actually runs #

  1. Open the equipment configuration of the application in the engineering tool and identify which connection the faulted variables belong to; confirm it is the MachineExpertNetwork connection and not another driver.
  2. Compare that connection's destination address with the controller's configured address. A ping to one address proves nothing about the address the driver targets.
  3. Record whether Use Security is enabled and which username Equipment Security holds for the connection. Keep passwords out of screenshots and commissioning records.
  4. Confirm the editable project corresponds to the application running on the terminal. Editing the project changes nothing on the terminal until the corrected application is deployed.

Resynchronize the credentials and redeploy #

  1. Using authorized controller-management access, confirm the account intended for the HMI still exists and holds the access the application needs: read and write on the mapped variables.
  2. In Equipment Security for that connection, select that account and enter its current password, leaving Use Security enabled.
  3. Deploy through the normal Operator Terminal Expert transfer workflow to the correct terminal, then confirm the terminal is running the corrected application rather than an older copy.

If the password is no longer known, use the manufacturer's documented account-management or recovery process for the controller, never guessed credentials or undocumented resets on a machine that will run.

Prove recovery with one read and one write #

Run the verification with the machine in a state where an unexpected write cannot move equipment, and choose one harmless variable in advance.

  • Read: change that variable at the controller, or watch a live value, and confirm the terminal follows it. The red rectangle clearing is necessary but not sufficient.
  • Write: perform one authorized write from the terminal and confirm the new value in the controller itself, not in the button animation or a local display.
  • Reads recovered while writes are still refused point at the account's rights or the variable mapping, not at the network.

Keep the security synchronized rather than removed #

Configuration Effect on the connection What it obliges
Keep Use Security enabled The driver opens an authenticated session after every restart Update Equipment Security and redeploy each time that account's password changes
Disable Use Security The driver connects without supplying credentials for that connection An approved exception, because authentication on that path is gone

Keep Use Security enabled and fold the HMI into the password-change procedure. Disabling it trades a recurring redeploy for a permanent reduction in protection; take that path only as a deliberate, documented policy decision, never as the repair.

When valid credentials still fail: the boot-time branch #

Synchronized, bench-verified credentials that still leave the terminal red after a restart point at sequencing: a terminal that finishes booting before the controller finds no partner for its first login attempt. When the red clears as the controller comes up, it was the race, and the durable fix is to power the terminal after the controller, for example from a supply enabled by a controller-ready source.

When the variables are still red with the controller demonstrably in run state, stop waiting and collect evidence from both ends: the terminal's communication diagnostics and the controller's security and connection logs, which separate an authentication rejection from a session never attempted. A restart can also expose a controller-side configuration loss rather than an HMI fault, as when a PLC-5/80E loses its channel 1B remote I/O scan list after a power cycle, so confirm the controller's own configuration survived before blaming the driver.

Questions asked

Why does the fault appear only after some power cuts?

A running authenticated session stays up until something forces it to be re-established. While terminal and controller are powered, the driver keeps using the session it already opened, so an outdated password goes unnoticed. A power cut tears the session down, and the mismatch becomes visible only when the driver has to log in again from scratch. The restart is the trigger; the stale credential is the cause.

Should I disable Use Security so the driver reconnects on its own?

You can, but it removes authentication for that equipment connection, so treat it as a security decision rather than a repair. Keeping Use Security enabled and updating Equipment Security whenever the controller password changes preserves the protection and costs one redeploy per change. If an exception is approved to disable it, first confirm the controller's access rules genuinely accept the connection without credentials.

Reads recovered but writes from the terminal still fail. What does that mean?

Recovered reads prove the session is authenticated again; a refused write points at authorization. Check, in order, that the account entered in Equipment Security holds write rights on those variables in the controller, and that the project maps them to writable addresses. Do not treat it as a network fault: the link is up, and the account's rights are the limit.

The controller password is no longer known. What is the correct path?

Recover the account through the manufacturer's documented account-management or recovery process, on a machine that is not running, and coordinate the outcome with every application and person that uses that account. Then enter the recovered password in Equipment Security, deploy, and verify with one read and one controlled write. Guessing credentials or applying undocumented resets is not an acceptable substitute.

Does logging in from the engineering PC prove the HMI credentials are good?

No. The engineering tool authenticates with whatever account you typed there, which is usually not the account stored in the terminal's Equipment Security. A working engineering session proves the controller accepts logins; it says nothing about the username and password the driver holds. Only the terminal's own connection recovering after the corrected application is deployed counts as proof.

Keep reading

  • Troubleshooting

    Why HMI Alarm Beeps Sound Irregular Over Serial PLC Links

    The panel samples the toggle bit once per serial request round, and the PLC services one request per scan, so the round takes about request groups × scan time. When that exceeds the 100 ms toggle interval, transitions are missed and the beep stutters. Move dependable timing to the panel's own buzzer or a PLC-driven physical buzzer.

    HMI and touchscreens

  • Troubleshooting

    Why rebuilt HMI runtime files show #### for PLC tags

    Hashes on every tag after transferring a rebuilt WinCC Runtime Advanced project are a display symptom, not a communication code. Restore the working runtime files as a baseline, add an alarm view showing buffered System alarms, and branch on the message text: connection establishment, TLS certificates and clocks, hidden project pairing, or single-field formatting.

    HMI and touchscreens

  • Troubleshooting

    Separating PLC scan time from real HMI communication faults

    Scan time is the wrong first suspect for a lost HMI or Modbus update: a 10 ms scan cannot trip a 500 ms timeout. Commission the programming link, the PLC-to-HMI link, remote I/O and Modbus peers separately, read the error counters while the fault is present, and treat scan time as the cause only when the measured scan approaches the smallest communication timeout on the system.

    HMI and touchscreens