Troubleshooting
Why TIA Portal HMI Buttons Write the Wrong PLC Tag
Short answer
A button or input field that acts on a different tag than the editor shows is a known failure of the incremental HMI build in TIA Portal, not a corrupt project. Rebuild the HMI station with Software (rebuild all), prove every binding in the simulator, then download. If the mix-up returns, close TIA Portal, archive the project and delete the IM, Logs and System subfolders so they regenerate.

On this page
When an HMI button acts on a tag other than the one the editor shows, or an input field quietly writes a neighbouring value in the data block, the panel is not defective and the project is not corrupt. The fault sits in the compiled image: an incremental HMI build in TIA Portal can bind controls to stale tag references while the editor still displays everything correctly. The cure is to compile the HMI station with Software (rebuild all), prove the bindings in the simulator, and only then download. If the mix-up returns, reset the project's temporary files and rebuild again. Below: the recognition signs, both fixes step by step, the patterns that raise the odds, and a bench check with real numbers.
Right in the editor, wrong on the panel #
The giveaway is a mismatch between two views of the same project. In the editor the button's event still names the intended tag and the HMI tag table is correct; in runtime the write lands elsewhere or not at all, and no corruption message appears. Reported cases describe the failure modes consistently:
- Buttons that do nothing, because the compiled image no longer resolves their configured tag.
- Input fields that accept a value and write it to a different tag, often a neighbour in the same data block, sometimes an unrelated block.
- Controls that act on the wrong tag entirely: one drive is commanded and another's setpoint moves.
- Picture blocks that show a default graphic, such as a generic valve symbol, instead of the selected one, reported after block version changes.
- A clean compile with no corruption warning, on a project that opens and edits normally.
Run one test before anything else: open the affected screen in the editor and compare the configured binding with what runtime actually does. Editor correct, runtime wrong: the compiled image is at fault, and the two fixes below apply. Editor wrong: the binding itself is wrong, and no rebuild will save you — correct the tag first.
First fix: rebuild the HMI station software #
An incremental build patches the previous image; a full rebuild regenerates the whole runtime image from source, so stale tag references have nowhere to survive. Do this before any download to a panel or PC station:
- Open the project on the engineering station.
- In the project tree, right-click the HMI station and choose Compile > Software (rebuild all).
- Read the compile output. Warnings about tags or connections point to a genuinely broken binding in source — fix that, then rebuild again.
- Start the simulation and exercise the affected screens. The simulator loads the same compiled image the panel receives, so a fault that survived the rebuild reproduces there. Running the simulation against a controller with harmless tags is covered in testing HMI simulation against a live PLC.
- Download the rebuilt image and spot-check the affected controls on the machine before handover.
Decision: an incremental build is for iterating at the desk. Nothing reaches a machine on an incremental build — the full rebuild is a fixed line in the release procedure, not a repair you reach for after trouble.
Second fix: reset the temporary project files #
When the mix-up survives a rebuild, the project's generated files are themselves suspect. Siemens documents the core of this reset in its support knowledge base, entry 109778709: back up the project, delete the IM folder, and it is recreated when TIA Portal reopens. In practice, reset the whole temporary set in the project folder:
- Close TIA Portal completely, and confirm in the operating system's process list that no engineering process still holds the project folder — a tool that keeps a process alive after its window closes is a known trap, as with a PLC engineering tool that stays resident in memory after closing.
- Archive the project and store the archive outside the project folder.
- In the project folder, delete the IM, Logs and System subfolders. They hold generated build data, message logs and environment data; tags, screens, scripts and the PLC program are not among them.
- Reopen the project — the IM folder is recreated — then run the full rebuild from the first fix and repeat the simulator pass.
If the bindings are now correct, the generated data was the problem and you are done. If they are still wrong with clean generated files, the source is at fault: check the patterns below, correct them, rebuild and verify again, and if a reproducible case remains, open a support request with the archived project attached.
What raises the odds #
Reports cluster around a few project patterns. None is a diagnosis — the mix-up also appears in projects with none of them — but each is a reason to rebuild and test harder, and worth cleaning up while you are in the project:
- Conversion from an earlier TIA Portal version, especially projects migrated in several steps.
- Symbolic and absolute access mixed in one HMI tag table, for example a symbolic tag and an absolute address both pointing at the same data-block word.
- Several HMIs in one project writing the same PLC memory, possibly through different access modes.
- One panel with several HMI connections, so it draws from multiple data sources.
- Frequent version changes to picture blocks used across many screens.
The bench proof, with numbers #
Verify with test tags on an isolated bench, never by pressing buttons on the live machine: a misdirected write energises whatever is wired to the wrong tag, and this fault is exactly a misdirected write.
Worked example, illustrative inputs: a station has 15 screens with an average of 12 buttons and 8 input or output fields each, so 15 × 20 = 300 bindings to prove. At 15 seconds per check — press or enter, watch the tag value, confirm — that is 300 × 15 s = 4500 s = 75 minutes. Budget 90 minutes to allow a retry pass for the checks that fail. Because the simulator runs the same image the panel gets, a binding that passes there passes on the panel; one that fails goes back to the first fix before anything ships.
Same symptom, different cause #
Three honest miswirings look identical and must be ruled out first:
- A button writing a PLC input or a memory location the scan overwrites: the write lands and is immediately reset, so nothing appears to happen. That cause and its fix are in why WinCC start and stop buttons do not control an S7-300 output.
- A download that never completed, leaving the previous image, and the previous behaviour, on the panel. Check the transfer report, not the panel.
- Projects still in WinCC Flexible, the pre-TIA tool: edits that do not appear in runtime there are a matter of that tool's compile and transfer, covered in why WinCC Flexible edits do not show in runtime.
Decisions #
- Editor correct, runtime wrong: incremental-build fault. Rebuild all, prove in the simulator, download.
- Fixed by the rebuild, back on the next incremental build: the rebuild becomes mandatory before every download, and the risk patterns get cleaned up.
- Wrong even after the rebuild: close TIA Portal, archive, delete the IM, Logs and System subfolders, reopen, rebuild, verify.
- Wrong with clean generated files: the source binding or access mode is at fault — fix the source, rebuild, verify, and escalate a reproducible archived case to the vendor.
Questions asked
Does a full rebuild change the project source?
No. The rebuild regenerates the compiled runtime image from the existing source, so tags, screens, scripts and the PLC program stay untouched and a version-control comparison after the rebuild shows no difference. Only generated files change. That is what makes it the safe first move: it cannot damage the source, and if the fault survives it, the source itself becomes the suspect.
Will reinstalling or resetting the panel fix a button that writes the wrong tag?
No. The fault sits in the image the engineering station compiled, so a reinstalled or factory-reset panel loads the same wrong bindings again. Replace hardware only after a rebuilt, simulator-proven image still misbehaves on the bench. Reported cases describe exactly this dead end: the panel was reinstalled before anyone tried a rebuild.
Does the same fix apply to a PC runtime station?
Yes. A WinCC Runtime Advanced or Professional station on an industrial PC receives its image from the same compile step as a Comfort panel, so the same rebuild, simulator check and temporary-file reset apply. Rebuild every HMI station in the project separately before its own download; one station's clean image says nothing about the next.
What goes on the release checklist after this fault?
Four lines: rebuild every HMI station, pass every screen in the simulator with test tags, download, then spot-check start and stop buttons on the machine with the outputs in a safe state before handover. Incremental builds stay at the engineering desk. The ninety minutes of bench time this costs is cheap next to a panel that starts the wrong motor.


