IMDTouchKnowledge BaseShop main store

Explainer

HMI Screensaver Idle Detection on Comfort and Unified Panels

HMI and touchscreens Published 7 min read

Short answer

A Comfort or Unified panel reports no system event for arbitrary screen contact, so a five-minute screensaver cannot detect idle directly. Give the HMI a project-defined interaction pulse on every configured object, let an S7-1200 own a five-minute timer and force the screensaver screen through PLC/HMI Area Coordination, or use auto-logoff and a JavaScript timer on Unified.

On this page
  1. What idle means on these panels
  2. Split the job between the S7-1200 and the panel
  3. Build the common interaction pulse
  4. The five-minute timer, worked through
  5. Dimming and the panel's own screensaver
  6. The Unified-only workarounds
  7. The decision
  8. Questions asked

A Comfort or Unified panel gives you no system event that reports arbitrary screen contact, so there is nothing on the HMI you can wire to a five-minute idle timer directly. The decision is therefore fixed: put the idle detection in the project. Give the HMI one common interaction pulse that every configured object fires, let the S7-1200 own a timer with a preset of 5 minutes, and force the screensaver screens through PLC/HMI Area Coordination. On Unified you can instead use the user auto-logoff event as the idle detector, or a JavaScript timer in the runtime. Both of your requests, the auto-dim after 5 minutes and the eight-dial sequence with 5 seconds per dial, are the same state machine with different idle screens.

What idle means on these panels #

The word idle in this design means that no configured operator-interaction event has arrived for 5 minutes. It does not mean that the panel has seen no physical touch. A finger dragged across empty screen area resets nothing, because no object receives an event and no system event exists to report it. Plan the states before you configure a single screen:

  • Normal operation: the working screens are visible and every interaction restarts the inactivity timer.
  • Idle display: either the dimmed screensaver screen or the dial sequence, entered when the timer expires.
  • Return to normal: any interaction on the idle display, or on any configured object afterward, brings the working screens back and resets the timer.

Every transition between these states needs one stated trigger and one visible result. If you skip this step you end up debugging a screensaver that starts while an operator is mid-entry, which is the most common failure of this kind of build.

Split the job between the S7-1200 and the panel #

With an S7-1200 already connected, the clean split is this: the HMI reports interaction and the active screen, and the PLC owns elapsed time, the sequence state and the screen requests. PLC/HMI Area Coordination gives the PLC a screen coordination area in which it can request a screen and read back which screen is currently active. That feedback matters because a screen request is not proof that the screen changed; the active-screen readback is the proof, and it is what starts the dwell interval for the next screensaver page. The same idea, that the controller drives the panel through a coordination area rather than the panel trusting its own request, is how the LS system area screen change register works on LS panels.

The HMI-side alternatives, for when the PLC route is not available, are the auto-logoff workaround and, on Unified only, a JavaScript timer. Keep exactly one time owner. Running a PLC inactivity timer and an HMI-side idle timer at the same time produces races at the transition boundary, where both sides try to change screens in the same instant.

Build the common interaction pulse #

The pulse represents an accepted operator action, not raw contact. Add the same action to every user-operable object on every normal screen: buttons, input fields, selectors, sliders. One missed object gives a false timeout exactly while an operator is using that object, which is the failure that erodes trust in the screensaver fastest.

Configure the action as a pulse, not a level. The PLC must detect the edge, reset the inactivity timer and clear or acknowledge the bit, so the next action can create another edge. A bit left permanently true reports only the first interaction and then goes silent. On the screensaver screens, place an operating object covering the intended touch region that fires the return event. If the requirement is literally touch anywhere, that full-screen object must cover the whole visible area including margins, and per-object actions on normal screens still count only touches those objects receive; an empty-area touch on a normal screen resets nothing unless you add a capture mechanism for it.

The five-minute timer, worked through #

Run the inactivity timer only in normal mode. In the PLC, a TON with a preset of T#5m (300,000 ms) does it:

  • Interaction pulse TRUE: timer reset, elapsed value returns to 0 ms.
  • No pulse for 300,000 ms: timer done bit sets, the PLC latches idle mode and requests the first screensaver screen.
  • Return from idle: the PLC resets the timer and requests the normal screen, so the operator always gets a fresh full 5 minutes.

For the dial application, divide the idle display into eight dwell states, each showing one enlarged dial. The dwell timer is 5 seconds (T#5s) per screen, and it restarts only when the Area Coordination active-screen feedback confirms the new dial screen is visible. Eight screens at 5 s each give a full cycle of 40 seconds before the sequence repeats. Give the return action priority over dial advancement: a touch arriving at the dwell boundary must not let one PLC scan issue both a request for the normal screen and a request for the next dial. One state machine issues one screen request per transition.

Check it on the bench before it goes on the machine: command each destination manually from the PLC and confirm the active-screen readback matches, then operate a configured control just before the 5-minute preset expires and confirm the elapsed value returns to 0 ms and the normal screen stays up for a fresh interval.

Dimming and the panel's own screensaver #

Keep visual dimming and backlight reduction separate. A screensaver screen filled with dark graphics reduces displayed luminance but proves nothing about the backlight. If the requirement is glare, dark graphics are enough. If it is actual panel brightness or energy, use the panel's supported brightness control: on Unified panels the system properties include a screensaver brightness slider from 0 to 100 percent with a default of 30 percent, and tapping the screen deactivates the screensaver. That built-in function is a fixed inactivity dimming with no project content and no scripted sequence, so it suits the auto-dim request only when a dark screen is an acceptable idle display. The moment the idle screen must show the dials or anything project-defined, the interaction-pulse and forced-screen-change method is the answer.

Whichever idle screen you show, strip it of process commands. An idle display that can start a pump is a hazard; this is an operator-interface state, and a safety function never depends on it. If you also want the panel to return to a defined page after inactivity without any PLC logic, the approach in the C-More idle screen timeout article is the same pattern on that platform.

The Unified-only workarounds #

Two routes exist when the PLC should stay out of it. The first is the auto-logoff workaround: set the user auto-logoff time as the inactivity detector, run a scheduled task on the user change event that checks whether a user name is still logged in, and if not, activate the screensaver or change to a defined screen. In WinCC Unified the @UserName system tag can drive that trigger directly. The catch is that the operator must log in to operate, so this suits a monitored station better than a freely accessible one.

The second is a JavaScript timer in WinCC Unified, which can track inactivity and change screens entirely in the runtime. It is flexible, but with an S7-1200 in the picture the PLC-owned timer plus Area Coordination remains the more deterministic design, because the PLC already holds the interaction pulse and the sequence states.

The decision #

  • Eight-dial monitoring screen on an S7-1200: common interaction pulse on every configured object, PLC TON at 5 minutes, eight dwell screens at 5 seconds (a 40-second cycle), screens forced and confirmed through PLC/HMI Area Coordination.
  • Auto-dim after 5 minutes with no project content: use the Unified panel's built-in screensaver brightness setting, defaulted to 30 percent and adjustable from 0 to 100 percent.
  • Unified panel with no PLC involvement wanted: auto-logoff with a user change event on @UserName, or a JavaScript timer in the runtime.
  • In every case: a touch on empty screen area resets nothing unless you place a full-area object to catch it, and only one of the PLC timer, the logoff timer or the JavaScript timer may own the idle time.

Questions asked

Does a Comfort or Unified panel have a system event that fires on any screen touch?

No. Neither runtime exposes a trigger or system event for arbitrary contact with the screen. The only touch activity the project can observe is the event of a configured object such as a button or input field, so a global idle detector has to be built from those per-object events plus a timer in the PLC or in the runtime.

How fast does an eight-dial screensaver cycle with five seconds per dial?

Eight dwell screens at five seconds each give a full cycle of 40 seconds. The dwell timer should restart only when the active-screen feedback confirms the new dial screen is visible, not when the PLC issues the request, so each dial shows for its full five seconds.

Can the panel hardware dim the backlight instead of showing a dark screensaver?

Yes, on Unified panels the panel settings include a screensaver brightness setting with a slider from 0 to 100 percent and a default of 30 percent. That is a fixed inactivity dimming built into the panel. If the idle screen must also carry project content or return on touch, use the interaction-pulse and screen-change method described in the article.

What is the auto-logoff workaround for idle detection?

If the check finds no active user, the task activates the screensaver or changes to a defined screen. In WinCC Unified the same logic can be triggered with the @UserName system tag.

Can WinCC Unified run the idle logic without the PLC?

Yes. WinCC Unified supports JavaScript in the runtime, so a JavaScript timer can track inactivity and change screens itself. With an S7-1200 already connected, though, keeping the timer and sequence in the PLC is the more deterministic option because the PLC also holds the interaction pulse and the screen coordination data.

Keep reading

  • How-to

    Matching an HMI panel image to its TIA Portal project version

    The panel image must belong to the same TIA Portal release the HMI project was engineered in, so a V21 Update 2 project needs a V21 Update 2 image. The listing carries the V18 to V21 families, recommends V21 Update 2 for update, and from 4 September 2026 adds Service Releases with bug fixes only. Read the installed image from the panel, compare it with the project release, and move whichever side is behind.

    HMI and touchscreens

  • Selection guide

    Where WinCC Unified Runtime Can Run and Remote HMI Options

    The Unified runtime executes only on a PC, a Panel IPC, a Unified Comfort Panel or the MD-34 tablet; a browser or Sm@rtServer VNC client displays it and never replaces the host. With no PC in the cabinet, a Unified Comfort Panel is the host and the tablet browser is the client. If a safety function must travel with the operator, no Unified mobile panel exists and the design stays Comfort-based.

    HMI and touchscreens

  • Troubleshooting

    Fixing a fatal error installing Unified Comfort Panel V17 images

    The fatal-error dialog from the Unified Comfort Panel V17 image installer usually means the copy step failed after extraction, not a corrupt download. Verify the package's SHA-256 checksum, run the installer as administrator with TIA Portal closed, and if it still aborts, use its extract-only option and copy the image files into the TIA Portal V17 image folder by hand.

    HMI and touchscreens