Troubleshooting
Do manual PLC data block edits survive HMI writes
Short answer
A WinCC I/O field writes the PLC data block only when an operator enters and confirms a value; it never re-sends its old display value. A manual edit of DB200.DD52 therefore stays until something else writes that address: PLC logic, a screen event, a script, a recipe transfer or a second client. Trace the writers with the cross-reference byte range and a passive screen test.
On this page
Yes, the typed value survives. A WinCC I/O field is not a setpoint that the panel keeps re-sending: it reads the PLC address for display and transmits only when an operator types into it and confirms the entry. A one-time manual edit of a data-block value, made with the engineering software while the PLC runs, therefore stays until something else writes that address — PLC logic, a screen event, a script, a recipe transfer or a second client. The work is not the edit; it is proving which writers exist. This article uses the parameter case shown below — tag KALFA2PLC01/FA2_T1$Main.F20_01_SP1, stored as DB200,DD52 in WinCC notation and DB200.DD52 in PLC notation — and works through the address decode, a screen test that never touches the field, and the search that names any writer that does exist.
When an I/O field writes to the PLC #
An I/O field configured for input and output does two separate jobs. It reads the bound tag at the tag's acquisition cycle and displays that value. It transmits a value once, on a confirmed operator entry: select the field, type, confirm, and the driver writes the address once. It does not keep the displayed value as a stored setpoint, so the old number on the screen has no mechanism for undoing an edit made in the PLC. An entry that the operator abandons without confirming writes nothing at all; Why an HMI Edit Box Shows a Value That Was Never Set covers what an unconfirmed entry leaves behind.
Output-only objects write even less: a bar graph, an indicator or an output-only field can poll the address every cycle and cannot return a single bit to the PLC. No display object restores an old value; restoration always comes from a writer.
Every writer of a PLC address falls into one of these groups:
- PLC logic: a move or copy instruction, a startup or initialization routine, or indexed and pointer-based access that lands on the parameter's bytes.
- A screen or button event in the HMI project that writes the tag when a screen opens, when a button is pressed or when a condition changes.
- A script in the HMI that assigns the tag.
- A recipe or data-record transfer that downloads stored values into the data block.
- A second client on the network: another operator station, an OPC or SCADA client, or a maintenance tool that polls or writes on a period.
Decoding the address: a double word at byte 52 of DB200 #
This is the worked case for the rest of the article.
Inputs. The machine's HMI tag table maps the tag KALFA2PLC01/FA2_T1$Main.F20_01_SP1 to DB200,DD52 in WinCC notation, and the PLC shows the same location as DB200.DD52. The letters after the comma carry the width specification.
Rule in words. In absolute data-block addressing, the letter after the DB number gives the access width: B is one byte, W is two bytes (one word), D is four bytes (one double word, 32 bits). The number after the letter is the first byte of the area, counted from byte 0.
Arithmetic. Width D = 4 bytes = 32 bits. First byte = 52. Last byte = 52 + 4 - 1 = 55. The parameter therefore covers bytes 52, 53, 54 and 55 of DB200, and the next double-word boundary is byte 56.
Result. The parameter is one 32-bit location spanning bytes 52 to 55 of DB200.
Decision. Any cross-reference hit that touches a byte from 52 through 55 is a writer candidate: a double-word access, a word access on either half, a byte access anywhere in the range, or a bit access inside it. A hit at byte 56 or later belongs to a different parameter. Search the window, never the literal text DD52: a byte or word access inside the window never matches that string, and it is precisely the access that quietly changes part of the value.
Match the tag and the declared type #
Confirm three things before editing. One: the I/O field on the parameter screen is bound to the tag you decoded, and it is the field operators actually use. Two: the field's format matches the declared type. A double word is 32 bits of storage, and the same 32 bits can be declared as a double integer, a floating-point REAL, a time value or raw bits, so typing a decimal number into a location the program reads in another representation produces a write that succeeds and a process value that is wrong. Read the declaration in the data block and edit the declared variable symbolically where the tool allows it, so the tool applies the representation instead of your guess about the bit pattern. If a written value looks nothing like what was typed, the tag data type is the usual culprit — Why an HMI Writes the Wrong PLC Value Above 9 works that fault out in detail. Three: note the tag's acquisition cycle, because that cadence is what the observation test below depends on.
Watch the screen without touching it #
This test separates reads from writes in a couple of minutes and answers the question for the machine in front of you: does the screen restore the old value on its own? Run it before hunting writers, because a screen that never writes removes half the search.
- Open the parameter screen at the machine and leave it in front, but do not select the field, type anything or confirm an entry.
- Note the value in the data block and the value the field displays.
- Make one authorized online modify of the value through the engineering software.
- Watch both values across several display updates with nobody operating the screen.
One warning belongs here: never substitute a force for the online modify. A force imposes its value continuously, masks the writer you are looking for, and can turn a failed diagnosis into an apparent pass. Clear any forces already on the PLC before the test, then use a one-time modify.
Read the outcome against this table:
| What you see | What it means | Where to go next |
|---|---|---|
| The edited value holds and the display follows it | The field only reads; no writer is active | Test the machine function with the new value |
| The value reverts while nobody touches the screen | A cyclic writer: PLC logic or a polling client | Cross-reference the byte window, next section |
| The value reverts when the screen opens or a button is pressed | A screen event, script or set-value action writes it | Inspect the events configured on that screen |
| The value changes only after an operator confirms an entry | Normal I/O-field write behavior | Expected; nothing to fix |
If the display never follows the edit, the field may not be reading the location you changed; Is It the Driver, the Tag or the Screen? Diagnosing HMI Values sorts out which layer dropped the value.
Find every writer with the cross-reference #
Run the cross-reference list on the tag — most engineering tools put a Cross Reference List or Find All References command one menu away from the program editor — and filter for write access. Apply the window rule from the decode: a hit inside the four-byte window counts as a writer, and a hit outside it belongs to another parameter. Work the list in this order:
- Direct moves and copies to the tag or its bytes; note the network and the condition that enables each one.
- Startup and initialization code, which writes once per power-up and explains values that revert only after a restart.
- Indexed or pointer-based access, where the reference names a pointer and a destination area rather than the address; follow the pointer at runtime.
- HMI events and scripts on the parameter screen and on any screen that opens it.
- Recipe or data-record transfers that an operator action or a schedule triggers.
- Other clients: a second operator station, an OPC client, a historian or a maintenance tool writing on a fixed period.
The moment the value reverts is the strongest clue. A revert tied to scan activity points into logic; one tied to opening the screen points into an event; one on a fixed period points into a polling client; one after power-up points into startup code. Matching the timing to a writer settles it, and retyping the value only proves the value can be written again.
Make the edit so it holds #
- Put the machine in a state where the new value cannot start a motion or a sequence, following the machine's own change procedure.
- Record the original value, the declared type, the engineering unit and the allowed range from the machine documentation. The storage width says nothing about a permitted range; a value that fits the bits can still be wrong for the drive or the loop.
- Edit the declared variable symbolically where the tool allows it; otherwise enter the decoded address exactly.
- Use a one-time modify, not a force.
- Read the location back after several scan cycles, then let the screen sit through a few display updates and confirm the display follows without an entry.
- Navigate away from the parameter screen and back; if the value is still there, no screen event writes it.
- If the parameter must hold across a power-up, run the machine's approved restart test once and read the value again.
The decision for each case #
- Edit holds through screen changes and normal operation: no competing writer exists, and the typed value is now the operating value. Document it like any setpoint change.
- Reverts only when an operator confirms an entry: that is the I/O field doing its job, not a fault.
- Reverts with the screen untouched: a cyclic writer exists, and the cross-reference over the window names it. Correct the writer or its enable condition, because retyping the value will keep losing.
- Reverts at screen open or on a button press: an event writes it, deliberately or by mistake. Remove or repurpose that event in the project, or the value returns on every runtime download as well.
- Reverts after a restart: startup code or a recipe load writes it. Put the new value where that code reads it — the data block's initial value in the project — not only into the running PLC.
That last point closes the loop: an online modify proves persistence in the running program only, so any value that must survive a power-up lives in the project, not just in the CPU.
Questions asked
How long until the HMI field shows the value I typed into the data block?
The field updates on the tag's acquisition cycle, so allow a few cycles after the write before judging the display. The driver's polling behavior sits on top of that, which is why the display can lag the PLC by a noticeable moment. If the display never follows the PLC value at all, the tag binding or the connection is the problem, not a competing writer, and the driver-layer diagnosis comes first.
Can I skip the parameter screen password and edit the data block instead?
No. The dialog password also stands in front of the entry's range checks, the confirmation step and any record of the change, and a direct data-block edit skips all of that. Treat any edit you do make as a controlled maintenance change with the machine in a safe state, and recover the credential through the plant's password records or the vendor's documented password recovery for that panel. The password and the data value solve different problems.
Will the typed value survive a PLC power cycle?
Only until startup logic runs. The online modify changes the value in the running program and changes nothing in the project. If startup code, an initialization routine or a recipe load copies a default into the location at power-up, the old value returns. Prove it with the machine's approved restart test, and when the value must persist, put it where that code reads it: the data block's initial value in the project.
What is the difference between a modify and a force?
A modify writes the value once and then ordinary program execution governs the location again. A force holds a value against the program continuously, at a level below normal execution, so logic that would overwrite the location keeps losing until the force is removed. That persistence is exactly why a force masks the writer you are hunting and why diagnosis uses a modify.