IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC RT Professional button release works with mouse but not touch

HMI and touchscreens Published 8 min read

Short answer

Touch is not failing because RT Professional lacks a touch release event: a single finger that the touchscreen driver reports as a left mouse button fires Release left mouse button just like a physical mouse. Run a ten-click, ten-tap counter test to prove which event the touch input delivers, then keep the momentary action on the left-button press/release pair and add a PLC-side reset for a missed release.

On this page
  1. Why does a WinCC RT Professional button release work with the mouse but not with touch?
  2. Which release event does RT Professional actually offer?
  3. How do you prove which event the touch panel sends?
  4. Why does release fail only when the finger drags off the button?
  5. Why does a touch press sometimes turn into a right click?
  6. Which event pair should hold a momentary command?
  7. When is the touchscreen driver the problem and when is the project?
  8. Questions asked

A WinCC RT Professional button that releases with the mouse but not with touch is not missing a touch event: the runtime only sees what the input stack hands it, and a single finger reported as a left mouse button fires Release left mouse button exactly like a physical mouse does. Treat the fault as an event-mapping question - which event did the touch deliver, and which event holds the action? A ten-click, ten-tap counter test separates the two causes in one bench session: equal counts mean the project's event assignment is wrong, and a zero means the touchscreen driver never presented mouse input to the runtime. Below are the documented event names, the bench sequence with the arithmetic, the decision for each reading, and the PLC-side reset that keeps a missed release from leaving a drive commanded on.

Why does a WinCC RT Professional button release work with the mouse but not with touch? #

The touch reaches the runtime as something other than a left-button sequence: a finger the driver reports as a left mouse button fires Release left mouse button just like a physical mouse, so an unequal result means the input path or the assignment, never a missing touch event.

RT Professional is PC runtime, and the button events it exposes are documented as mouse events: Release left mouse button occurs when the user releases the left button after clicking, and it does not occur while that button stays pressed. There is no separate touch-release event to enable anywhere in the editor; touch reaches the button only after the touchscreen driver and Windows have translated contact into mouse transitions. On one bench panel of this kind, a finger pressed and then pulled off the screen produced the same left-button behavior as the mouse - evidence that the path can deliver, not proof that every driver does. The same input-path logic explains why touch buttons elsewhere on a machine can lag while the mouse reacts instantly, as in why touch JOG buttons start late but the mouse works fine.

Which release event does RT Professional actually offer? #

The event list names Release left mouse button and Release right mouse button, and Siemens documents Release left mouse button as occurring when the user releases the left button after clicking, never while that button stays pressed; the single generic release belongs to RT Advanced, not to this editor.

RT Advanced gives a button one release moment; RT Professional splits that moment by mouse button, and Siemens publishes a dedicated differences page for the two runtimes - read it for your exact version before porting a project. Two consequences follow. First, an action parked on Release right mouse button will never fire from a single-finger touch, even with a perfect driver, because mouse emulation presents the finger as the left button. Second, the documented event fires on release after clicking the object, so the lift is what matters, not the pull-away that RT Advanced trained your operators into. Decision: audit the event list of every production button before touching the driver, because the assignment is the cheaper of the two things to be wrong.

How do you prove which event the touch panel sends? #

Wire an internal integer counter to Release left mouse button, click it ten times with the mouse, then tap it ten times with one finger: ten and ten convicts the project's event assignment, ten and zero convicts the touch driver, anything between convicts a gesture stealing individual taps.

Worked example - one screen, one scratch button, one internal Int tag named evt_left initialized to 0, and one increment action wired to Release left mouse button:

  • Mouse baseline: 10 complete clicks with the pointer inside the button. The counter reads 10. Arithmetic: 10 events - 10 increments = 0 missed, so the runtime's mouse path and the assignment both work.
  • Stationary touch: 10 single-finger taps, lifting inside the button. A count of 10 means touch delivers left-button sequences and the production button's action sits on the wrong event. A count of 0 means 10 of 10 taps never became mouse input, so the fault is below the runtime in the driver path.
  • Partial count, say 7 of 10: 10 taps - 7 increments = 3 lost, and the lost ones are the taps held longest. That pattern convicts press-and-hold re-labeling, not the driver and not the project.

Keep every test action local - an internal tag, no PLC in the loop - so communication timeouts cannot disguise an input result, and re-run the same ten repeats after every change so the readings stay comparable.

Why does release fail only when the finger drags off the button? #

Because the click is attributed where the pointer is when it comes up: WinCC's press-versus-click distinction completes the click only for a press and a release over the same object, so a finger drifting outside the boundary hands its release elsewhere and the button never sees it.

Test the two gestures separately on the bench: ten taps lifting inside, then ten taps dragged outside the boundary before lifting, each with its own counter reading. If only the drag-out set fails, nothing is broken - the runtime is telling you the click did not complete over the object. WCAG 2.2 sets 24 x 24 CSS pixels as the minimum target size; treat that as a floor, not a design target, because 24 pixels is smaller than any fingertip at typical panel pitches. Size operator buttons so a deliberate press stays inside even in a glove, and work the numbers for crowded screens with how to size HMI touch buttons in a dense button matrix. Decision: run commands on lift-inside only and wire nothing to drag-off - dragging off a button is the abort gesture, and it should keep doing nothing.

Why does a touch press sometimes turn into a right click? #

Because the touchscreen utility's press-and-hold gesture re-labels a held finger as a right-button press, and a right-button press fires Release right mouse button - not the left-button release your action waits for.

Catch it with a second scratch counter wired to Release right mouse button: run ten taps, some of them held for a slow second, and watch which counter moves. If the slow taps increment the right-button counter while the brisk ones increment the left-button counter, the driver's hold gesture is re-labeling them. The hold threshold lives in the touch vendor's control utility or the operating system's pen-and-touch settings; disable the gesture or set it beyond any normal tap, then re-run the ten-tap set and confirm the left-button counter reads ten of ten. The same emulation and its fix are worked through for HMI applications in fixing press-and-hold right-click in HMI apps on a touch panel. Decision: keep the action on the left-button release even after fixing emulation, so a future driver update cannot silently re-route your taps.

Which event pair should hold a momentary command? #

Put the SET on the button's left-button press event and the RESET on Release left mouse button, then add a PLC-side reset that clears the bit when expected feedback does not arrive - the HMI pair makes the jog feel right, and the PLC rung makes a missed release harmless.

On the HMI side that is two actions on one button: set the momentary bit on press, reset it on release. That pair is also the failure point, because the reset is only a screen event - a runtime closed mid-press, a hung driver or a finger dragged off leaves the bit commanded on. One safety note, and it is the important one in this article: back every momentary bit with a PLC rung that resets it when the expected feedback does not arrive; for a jog axis that confirms start within 200 ms, a 2 s reset timer gives ten times the expected response, and the same rung covers HMI restarts and cable loss.

Stuck bits from failed press and release actions are a recurring failure family, and how stuck bits trace back to press/release action failures follows one to its source. If the counter increments but the bit never changes, the event path is fine and the write path is not - that is the separate case in why a WinCC Professional button does not write to the PLC.

When is the touchscreen driver the problem and when is the project? #

Split them with the counter from the bench above: counts of ten with the mouse and zero with touch put the fault below the runtime, in detection, driver mode or gesture emulation, while matching counts point back into the project's event assignment every time.

Work the below-runtime list from the hardware up: confirm the operating system still detects the touch device, because a USB touchscreen can deliver perfect video while its touch interface is missing - that case has its own diagnostic in why HDMI video works but USB touch does not on a panel; confirm single-touch mouse emulation is on in the driver utility; reinstall the driver from the touch vendor or its distributor, matched to the installed operating system. Change one item at a time and re-run the ten-tap counter after each change. Decision: keep fixing below the runtime until a stationary touch reads ten of ten; a runtime that receives left-button sequences needs no workaround, only a correct event assignment.

Questions asked

Does WinCC Unified handle button touch events differently from RT Professional?

Yes, and the event names differ too. Siemens documents for RT Unified that clicking triggers the events Activated and Press, and that releasing the left button triggers Release and Click left mouse button. A project ported from RT Professional to Unified needs its button events re-checked one by one, because the event holding each action has a different name and firing order there.

Can I attach the command to the Click event instead of press and release?

For commands that must run once per tap, yes: a click is a completed press and release on the same object, so it cannot repeat while the finger stays down and it tolerates a small drift before the lift. For a momentary output, no: one click is one transition, so the output cannot follow the finger down and up. Momentary bits stay on the press and release pair.

The counter increments with the mouse but stays at zero with touch. What do I check first?

Work from the hardware up: confirm the operating system still lists the touch device at all, then the driver's single-touch mouse emulation mode, then the gesture settings that can re-label a tap as something else. Install the driver only from the touch vendor or its distributor, matched to the installed operating system, and re-run the ten-tap counter after each single change.

How large should a touch button be so a gloved finger stays inside it?

WCAG 2.2 sets 24 x 24 CSS pixels as the minimum target size, and that is a floor, not a design number. At a typical industrial panel pitch of about 0.3 mm per pixel, 24 pixels is roughly 7 mm, smaller than a fingertip and far smaller than a glove. Run operator buttons several times that floor and verify the lift-inside test with gloves on.

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 swipe scrolling fails on a touchscreen web HMI page

    When other browser windows scroll but a scrollable region on the HMI page will not swipe, the touch panel and driver are fine and the fault is layered: the browser is not delivering touch events (Chrome stopped exposing them by default), the visualization object has no gesture handling enabled, or an overlapping object swallows the swipe. Fix all three, then verify with a finger only — a mouse wheel hides the fault.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Start and Stop buttons do not control an S7-300 output

    The Start and Stop buttons do nothing because E0.0 and E0.1 are S7-300 input image addresses: the CPU refreshes them from the input modules every scan, so an HMI write cannot survive. Step 7 simulation changes the simulated input state itself, which is why the LED follows it. Move the two commands to memory bits such as M0.0 and M0.1, latch them in the PLC, and let the program drive A4.0.

    HMI and touchscreens