IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Unified V19 buttons do not write tags to the PLC

HMI and touchscreens Published 5 min read By IMDTouch engineering team

Short answer

In WinCC Unified V19, a button that uses SetTagValue or a script writes nothing when the logged-in user holds the HMI Monitor Client role, which is read-only and shows an orange frame around the root screen. Run the IO field test to separate a role fault from a connection or script fault, then fix the role assignment in Users and roles.

On this page
  1. Read the orange frame first
  2. The IO field test: separate role from button in one step
  3. Fix the role assignment in Users and roles
  4. If the role was never the problem
  5. The decision
  6. Questions asked

When WinCC Unified V19 buttons refuse to write a tag to the PLC while the screen still shows live values, check the logged-in user's role first. A user holding the HMI Monitor Client role gets write protection on every tag, with an orange frame around the root screen as the visible indicator, and no button, IO field or script can change a value until the role changes. Work through the three layers in order: role, connection and tag quality, then the button event itself.

Read the orange frame first #

The HMI Monitor Client role exists so a station can monitor and analyze the process without influencing the PLC. When the active user holds that role, every writable control rejects operator input: buttons, IO fields, sliders, script writes through SetTagValue, all of them, silently, with no error popup and no PLC change.

In Runtime the Monitor Client mode is visualized by an orange frame around the root screen. That frame is your fastest field diagnostic: if you see it, stop troubleshooting the button. The write is being rejected by user management, not by the button.

This role is easy to inherit by accident. Default and auto-login accounts are often assigned a single read-only role, so the panel boots, displays perfectly, reads every tag, and writes nothing.

The IO field test: separate role from button in one step #

Before opening any script, run this test. It bypasses every button-specific setting and tests the underlying write path directly.

  1. Insert a temporary IO field on the screen, bound to the same HMI tag the button is trying to write.
  2. Run the project, log in with the same account, and enter a new value in the IO field.
  3. Watch the result:
Observation What it means
Value flashes red and the old value returns The active user lacks write authorization; check the role
Orange frame around the root screen The HMI Monitor Client role is active; the write rejection follows from it
IO field accepts the value, button does nothing The event handler or script is faulty, not the role
Neither IO field nor button writes, reads work Connection carries data; look at tag write permission and PLC protection on the write path

If the value flashes red and reverts, fix the role and stop. If the IO field accepts the value but the button still fails, the role is fine and the fault is in the button's event configuration or script.

Fix the role assignment in Users and roles #

Roles and function rights are managed in the Users and roles editor for the runtime. You assign users to roles, and roles carry function rights; the write rights your screen needs must be held by a role the active user has.

  • In the engineering system, open the HMI device's user management, select the user account used for auto-login on the runtime client, and replace the HMI Monitor Client role with a role that carries the required write function rights.
  • On a WinCC Unified PC runtime, you can also add users, assign roles, and edit password, status or role on the runtime PC itself, so an operator locked out on site can be corrected without a full engineering session.
  • If the project uses central user management, the correction is made there, not in each local client.

After changing the role, compile and download the HMI project, restart Runtime, and repeat the IO field test. The same user account can look healthy and still be read-only if an old download left the previous role set in place, so always retest after the download, not before.

If the role was never the problem #

When the IO field accepts values, the write path works and the fault is genuinely in the button. Check in this order:

  • Event configuration. Open the button's Press event and replace the script with the SetTagValue system function writing a constant to the tag. If the system function works and the script does not, the fault is in the script.
  • Script content. A tag name mismatch, a syntax error or an unhandled exception aborts the script before the write call. Enable script tracing in the project, reproduce the press, and read the trace log for the value actually passed to the write call.
  • Tag write permission. If only one tag fails while others write fine, check that tag's access attributes in the PLC program rather than the button. Reads proving nothing here: a tag a client can read is not automatically one it may write, and the PLC's protection and access settings decide the write direction.
  • Connection quality. If reads have also stopped or tags show bad quality, the connection itself is the fault, not the button; that is a different diagnosis from the write rejection above.

A common trap: the reporter's setup had SetTagValue and a scripted button both failing, while tag values written in the PLC program showed up on the HMI correctly. Reads working and writes failing with no error message is the signature of write authorization missing, which is exactly what the IO field test isolates before you touch any script.

The decision #

Orange frame or IO field value flashing red: change the role in Users and roles, download, retest. IO field writes fine but the button does not: rebuild the event with SetTagValue as a system function, then debug the script with tracing if that fixes it. Neither writes and reads are fine: check the tag's write permission and the PLC's protection settings on the write path. Reads and writes both dead: repair the connection. In the overwhelming majority of silent write failures, the first test ends the search at the role.

If the terminal itself is aging or the panel is due for replacement rather than repair, a move to industrial panel PCs keeps the same WinCC Unified PC runtime while retiring the failing unit; decide that only after the role test above has ruled out configuration.

One safety note: write authorization is a process safety feature. Give the Monitor Client role deliberately to viewer stations, and grant write rights only to users who are meant to command the process.

Questions asked

What does the orange frame around the WinCC Unified runtime screen mean?

In WinCC Unified Runtime, an orange frame around the root screen visualizes Monitor Client mode. The active user holds the HMI Monitor Client role, which exists so a viewer can watch and analyze the process without influencing the PLC. Every write from that station is rejected, including button events and scripts.

Can a script with SetTagValue bypass the read-only role?

No. The write check happens on the tag write, not on which screen object or code path calls it. A button configured with the SetTagValue system function and a scripted button through SetTagValue are both rejected when the active user holds only the HMI Monitor Client role, and neither produces an error popup in the runtime.

Where do I change the role of the user who is logged in at runtime?

In the engineering system, open the Users and roles editor for the runtime, select the user account, and replace the HMI Monitor Client role with a role that carries the write function rights the screen needs. On the runtime PC you can also edit the status and role of local users during runtime. Compile and download the HMI project afterwards, then retest with the IO field.

The tag reads fine but will not write. Is the PLC connection broken?

No. Reads reaching the screen prove the connection carries data. When reads work and every write is rejected, the cause is on the write path: the user's role and function rights first, then the tag's write permission in the PLC program. Check those before touching the connection settings.

Keep reading

  • Troubleshooting

    Why a WinCC Professional Button Does Not Write to the PLC

    A pressed button proves only that the screen handled the pointer event. Diagnose in order: the Professional runtime connection, the tag binding, then the command duration — a bit set on press and reset on release can be shorter than the tag's 2-second default update cycle, so the PLC never observes it. The fix is to let PLC logic clear the request after evaluating it.

    HMI and touchscreens

  • Troubleshooting

    Why a Micro800 Program Runs but the C-More Panel Reads Nothing

    Work four layers in order: USB enumeration under CCW, the program's task assignment and Run mode, the IEC 61131-3 TIME conversion, and tag scope. Keep TIME inside the logic, convert DINT milliseconds once with ANY_TO_TIME at the preset, and make every panel-facing tag global. A clean download proves nothing until each layer checks out.

    HMI and touchscreens

  • Troubleshooting

    Why an HMI Writes Integers but Not B3 Bits Over DF1

    When an HMI writes T4, C5 and N7 data but B3 bits never change over DF1, the serial link is proven and the failure sits in the HMI software's binary-file translation. Check the engineering software version before baud, cable or PLC settings: a documented case was fixed by upgrading EBplus from 2.10 to 5.07.

    HMI and touchscreens

WinCC simulation with tags does not write to PLCSIM tags