IMDTouchKnowledge BaseShop main store

Troubleshooting

When an HMI and PLC ping but will not communicate

HMI and touchscreens Published 9 min read

Short answer

A ping proves only IP reachability. Build a minimal test project with one online-imported tag: if it shows live values, the network, the Put/Get permission and the access level are good, and stale tag references in the production project are the fault. Re-import the tags online, correct the flagged entries, recompile and download.

On this page
  1. Why does the HMI ping the PLC but still show no values?
  2. How do I prove the network and CPU settings with a test project?
  3. Which CPU settings must hold before the HMI can talk?
  4. Why does one stale tag take down the whole link?
  5. How do I find and fix the stale tags in the production project?
  6. Can find and replace repoint the tags after a CPU change?
  7. What if the minimal test project also fails?
  8. Which test result points to which fix?
  9. Questions asked

Two devices that answer a ping can still refuse to talk to each other. A ping tests IP reachability and nothing more; the S7 connection a Kinco HMI uses to read an S7-1200 is gated separately by Put/Get permission, the CPU's access level and, on newer firmware, connection security. The fastest way to split the layers is a minimal test project in DTools Pro: one tag imported online, one numeric display, one download. If that test project shows live values, the network, the CPU settings and the driver are all proven good, and the fault is stale tag references in the production project — references the HMI compiler cannot check against the CPU. Re-import the tags online, correct the flagged entries, recompile and download. In the reported case, a second S7-1200 with identical settings came alive exactly this way.

Why does the HMI ping the PLC but still show no values? #

A successful ping proves only that the panel and the CPU exchange ICMP packets; the HMI actually reads values over the S7 protocol, and the CPU accepts that connection only when Put/Get permission is enabled, the access level allows it and connection security does not refuse the link.

The table below maps what you observe to the layer that fails and the decision that follows.

What you observe Layer implicated Decision
Ping works, but a fresh test project with one online-imported tag shows no value Network or CPU access Fix the subnet, Put/Get, access level or certificate mode before touching the production project
Get Tags Online fails or returns nothing CPU access protection Set the access level to Read without password and retry from a PC on the same subnet
Test project works, production project shows no data Stale tag references Re-import online, correct flagged entries, recompile, download
Some fields update, others stay dead or raise a communication error Partially invalid tags Bisect the screens that use the dead fields

The reported case landed on row three: a test project that imported all CPU tags online and drove one numeric display worked on its first download, while the migrated production project with the same settings did not.

How do I prove the network and CPU settings with a test project? #

Build a minimal DTools Pro project for the same panel with the same HMI IP address and the same PLC connection settings as production, import one tag online, bind it to one numeric display and download it; a live value on that display proves every setting below the project level.

  1. Create a new DTools Pro project for the same panel, entering the same HMI IP address and the same PLC connection settings as the production project.
  2. Open the Import Tag menu, tick the online retrieval option and run Get Tags Online from a PC that has IP access to the CPU. If the import fails, stay on the network and access-level rows of the table above and do not touch the production project yet.
  3. Place one numeric display on one screen, bind it to one imported tag, compile and download to the panel.
  4. Read the display. A live value proves that IP routing, Put/Get permission, certificate mode and the access level are all correct for this panel and CPU pair.

If the value does not appear, work through the next two sections in order: the CPU settings first, then the subnet check.

Which CPU settings must hold before the HMI can talk? #

Three CPU settings must hold: Put/Get permission enabled with the secure-only option cleared, an access level that grants HMI access and Read access without a password, and a certificate mode in DTools Pro that matches how the CPU accepts connections; Read access is enough.

  • Put/Get permission. Enable access for PUT/GET communication from a remote partner in the CPU properties, and leave the option that restricts the CPU to secure communication cleared while the panel uses the unencrypted S7 mode. The reported case had both set correctly.
  • Certificate mode in DTools Pro. Default without certificate matched the earlier working project, and AutomaticallyTrustAll... was tried with no difference. Newer CPU firmware can refuse unencrypted connections, so when a different CPU revision refuses a link that worked elsewhere, change the trust setting and the CPU's secure-communication option as a pair and test after each change.
  • Access level. The panel needs HMI access without a password to read and write the values of known tags, and Read access without a password to import tag declarations online. Set Read: it covers both, and Full Access is not required because the panel and DTools Pro do not modify the PLC program or configuration through this interface.

Never enable Put/Get permission on a CPU that faces a network you do not control; the permission accepts unauthenticated write access from any partner that knows the tag addresses.

Project protection and the password policy in the security settings do not block this connection; the access control setting on the CPU is what gates it.

The panel raises a communication error as soon as any tag it uses no longer resolves on the CPU, and healthy tags can sit beside broken ones, so a project can look half-alive while one invalid reference blocks the whole link.

DTools Pro stores each HMI-side tag as a reference to a CPU symbol with a name and a data type. At runtime the panel builds its read requests from the tags the visible screens, alarms and trends use, so one reference that no longer resolves — a name that changed, a data block member that moved or was deleted, a data type that differs — raises the error.

The compiler cannot catch this. TIA Portal rejects a missing symbol at compile time because it owns both sides of the link. DTools Pro compiles against its own imported tag list, so Compile All succeeds even when that list no longer matches the live CPU, and the mismatch appears only at runtime. Migrating a project to a second CPU with a different data block layout, or repointing references with find and replace, produces exactly this condition: the references compile cleanly and are wrong.

If names and data types are identical between the two CPUs, the re-imported tags are adopted without edits. Any difference in a name, a structure path, an array index or a data type needs a manual correction on the HMI side.

How do I find and fix the stale tags in the production project? #

Re-run the online import in the production project so the tag list matches the new CPU, correct every entry the import flags, walk each place a tag is used, then run Compile All and download; a re-import without a recompile leaves the old tag table running.

  • Run the online import again from the Import Tag menu so the tag list reflects the new CPU exactly.
  • Open the tag list and collect every entry the import flags as invalid; matching names and types are adopted automatically, everything else needs a correction.
  • Walk every place a tag is used — screens, alarms, trends, recipes, scripts and any reference you repointed with find and replace — and compare each against the fresh list for exact name, structure path, array index and data type.
  • If the culprit is not obvious, bisect: disconnect half of the tag-bound objects, recompile, download, and narrow the failing half until one object remains.
  • Run Compile All and download. A re-import without a recompile and download leaves the panel running the old tag table.

As a fallback, rebuild the screen bindings from the online-imported tags; slower than find and replace, but it guarantees every reference exists on the connected CPU. If the download itself is refused with a precondition error, that is a separate TIA Portal compile-and-load issue: the article on resolving the TIA Portal loading-preconditions error walks through it at resolving the TIA Portal loading-preconditions error. When a single screen shows wrong or dead values and you cannot tell whether the driver, the tag or the binding is at fault, diagnosing whether it is the driver, the tag or the screen splits the three apart.

Can find and replace repoint the tags after a CPU change? #

No — find and replace in the HMI tool edits text only, while TIA Portal's own change-reference function works because it validates both sides in one environment; a replaced reference in DTools Pro can compile cleanly and still not exist on the connected CPU.

TIA Portal validates a changed reference against the actual CPU symbols in the same tool, so a wrong name fails immediately. Find and replace in the HMI tool sees only text, so it will rename a reference to a symbol that does not exist on the connected CPU and still pass Compile All.

Two habits keep future CPU changes cheap. Re-import first and fix what the import flags, rather than renaming first and hoping. And standardize one data block structure across machines, so a re-import returns identical names and types and a CPU change reduces to re-import, recompile, download.

What if the minimal test project also fails? #

Then the fault is below the project: check that the panel and CPU share one subnet, confirm the panel's IP address was not changed after the project was written, and test the certificate trust setting together with the CPU's secure-communication option as a pair.

Subnet check, worked example: the panel at 192.168.0.10 and the CPU at 192.168.0.50, both with mask 255.255.255.0, AND to the same network address 192.168.0.0, so they talk directly. If the CPU was addressed 192.168.1.50 instead, its network address is 192.168.1.0; a ping that succeeds then must be crossing a router, and that router has to pass the S7 connection on TCP port 102, which many inter-VLAN rules block even while they forward ping.

On the security side, the reported case paired Default without certificate with a CPU that allowed non-secure communication, and the test project worked — so certificate mode was not the fault there. When you do suspect it, change AutomaticallyTrustAll... and the CPU's secure-communication option together and test after each change, because a mismatch in either one alone refuses the link.

Which test result points to which fix? #

The test result decides the fix: a dead test project is a network or CPU-setting fault, a failed online import is an access-level fault, and a live test project beside a dead production project is stale tag references, fixed by re-import, correction, recompile and download.

Work the cases in this order. Fix the network and CPU settings first, because every later test depends on them: a dead test project with a failed Get Tags Online points at the access level, and a dead test project with a successful import points at the subnet or the panel's address. Once the test project shows live values, stop checking settings — they are proven — and treat the production project as the only remaining variable. If single fields stay dead while others update, bisect the screens that use them; if the whole production project is dead, re-import, correct, recompile, download. When values are wrong rather than absent, split the driver, the tag and the screen binding apart before changing anything.

Questions asked

Which device does the reported firmware version belong to?

A version such as 4.5.1 in a fault report does not say which device carries it. Read the CPU firmware from the CPU's device properties in TIA Portal and the panel firmware from the panel's own properties or DTools Pro, and record both separately. The CPU revision is the one that matters when a link that worked on one machine refuses on another, because newer revisions can refuse unencrypted S7 connections.

Why did the first project work and the second fail with identical settings?

The settings were identical; the tag references were not. The first project talked to a CPU whose tag declarations matched its imported list, while the second CPU has a different data block layout, so references that compile cleanly no longer exist there. Identical Put/Get, certificate and access-level settings cannot compensate for a tag that is missing on the new CPU, and the error surfaces only at runtime.

Does the user and role dialog in TIA Portal need changes?

No. Project protection and the password policy under the security settings do not block the panel's S7 connection, and the user and role dialog governs runtime user management on the screens, not CPU access. The setting that gates the connection is the access control level on the CPU itself; leave the dialog alone unless you also manage screen-level users.

Keep reading

  • Troubleshooting

    WinCC receives no data from an S7 PLC: trace the path

    There is no fixed interval at which an S7 PLC sends data to WinCC: WinCC polls each external tag at the acquisition cycle configured on that tag, and the CPU only answers. When no data arrives, trace the driver, the connection and the tag mapping in that order, beginning with the running project, and fix the connection before touching tag addresses.

    HMI and touchscreens

  • Troubleshooting

    When an M580 Downloads but Sends No Data to the HMI

    Both projects download because programming access and runtime data access are separate channels out of the CPU. On Control Expert v16.x, Engineering Link Mode set to Enforced in the Security tab refuses the HMI's reads while downloads still succeed, and a Data Dictionary enabled after the last build never delivers the symbols. Set Full Access, do a full rebuild, download, and confirm the Data Dictionary was on before that rebuild; a force test in RUN proves it.

    HMI and touchscreens

  • Troubleshooting

    Fix WinCC Professional runtime not connecting to the S7-1500

    WinCC Professional Runtime can start, load screens and raise no error while the HMI connection leaves through the wrong PC network adapter, because the access point selects the interface automatically. Disable that automatic option, assign the access point to the PLC-facing adapter in Set PG/PC interface, re-download the runtime and restart.

    HMI and touchscreens

What HMI Ethernet Error 10022 Means and What Fails