How-to
Cycle HMI windows automatically with per-page action triggers
Short answer
Place an Action Trigger (Per-page) object on every window in the sequence, set Trigger to Window Open and Delay in Action Group 1 to 10,000 ms, then select Change Window in Action Group 2 with each page's Window no. aimed at the next window. Point the last window back to Window 1 and the runtime repeats the loop until power-off.
On this page
To make a panel run through its screens on its own, put an Action Trigger (Per-page) object on every window in the show. Set its Trigger to Window Open, set Delay in Action Group 1 to 10,000 ms, and select Change Window in Action Group 2 with the destination Window no. aimed at the next page; the last page points back to Window 1. The runtime then rotates through the sequence endlessly, which is the standard recipe for a lobby, kiosk or unattended status display. This walkthrough builds a three-window loop in EasyBuilder Pro, checks the timing arithmetic and lists what to inspect on a page where rotation stalls.
What the per-page trigger object does #
EasyBuilder Pro provides two types of Action Trigger. The object chapter of its user manual documents the per-page type with Window open/close and Backlight on/off trigger modes: the object sits on one base window, and its configured actions run only while that window is open. This build uses Window Open — opening a page is the event that starts its sequence. Because the schedule lives on the page, every window carries its own timer and its own destination, and there is no global cycling setting to hunt for.
The whole loop is runtime navigation. No tag is written, no macro runs, and the controller sees nothing beyond the ordinary refresh of the objects on screen. If the PLC must choose the page instead, that is a different mechanism — a tag-event or job-mailbox screen change in WinCC driven from the controller side.
Build the three-window loop #
Configure Window 1 first, then clone the object forward:
- Open the first base window in the project editor.
- Open the Object tab, pick Action Trigger (Per-page) from the Action related dropdown, and click on the window to place it.
- In the object properties pane, set Trigger to Window Open.
- Set Delay in Action Group 1 to 10,000 ms — a ten-second hold.
- In Action Group 2, select the Change Window action and set its Window no. to the number of the next window in the show.
- Copy the object, paste it onto the next window, and set that copy's Window no. to the page after it.
- On the final window, point Window no. back at Window 1 to close the loop.
- Save, compile, download the project to the panel and run it.
For the example build the destinations read:
| Window | Change Window destination | Result |
|---|---|---|
| Window 1 | Window 2 | Advance to the second page. |
| Window 2 | Window 3 | Advance to the third page. |
| Window 3 | Window 1 | Return to the start and repeat. |
One placement rule keeps this safe: leave the cycle off pages an operator works from. A screen that changes by itself while someone reaches for a start, stop or acknowledge button invites a press on the wrong object, so reserve the loop for display-only windows.
Check the timing arithmetic #
The per-page delay is the only thing setting the pace, and it counts from the moment each page opens — not from a wall-clock schedule. 10,000 ms ÷ 1,000 ms/s = 10 s per page, so the three-page loop above repeats every 3 × 10 s = 30 s. Raising one page's hold time raises the loop by exactly that amount: set the middle page's Action Group 1 delay to 30,000 ms and the same loop runs 10 s + 30 s + 10 s = 50 s, with the other two objects untouched. Adding pages adds their delays the same way, so a five-page show at the standard hold runs a 50 s lap.
Where the loop stops and resumes #
Rotation only continues from pages that carry the object. If the operator presses a screen selector or a function key and lands on a window without an Action Trigger (Per-page) on it, nothing schedules the next change, and the display simply stays there. The loop resumes from whichever cycled page opens next: returning to Window 1 fires its Window Open trigger again and the chain runs on from there. If the panel also runs an idle screen timeout that returns to the main page, give that main page a trigger too, so the timeout's return restarts the show instead of parking it.
Verify on the runtime #
Run the project on the panel and watch a full lap:
- Window 2 appears when the first page's delay expires, and each later page follows at the same interval.
- Time one full lap with a stopwatch and compare it against the loop period you calculated above.
- After the third page the display returns to Window 1, and the second lap matches the first lap page for page.
- Open an uncycled window on purpose: rotation stops there and resumes when you return to a cycled page.
If any check fails, note the exact page where it failed and move to the next section — the fault sits on that page, not in the driver, the cable or the controller.
When a page does not advance #
Work from the page the display is stuck on. The fault lives in that page's object; run the list below before touching tags, cables or driver settings:
- No object — the page carries no Action Trigger (Per-page). Copy one from the previous page and set its destination.
- Wrong trigger mode — Trigger is not Window Open, so opening the page starts no sequence.
- Empty delay — Action Group 1 has no time entered, so the hold you planned does not exist. The value is entered in milliseconds.
- No change action — Action Group 2 holds no Change Window entry, so the page finishes its wait and navigates nowhere.
- Wrong destination — Window no. does not match the next page you intended; compare it against the destination table above.
A page that passes every line yet still stalls points at a stale download: recompile and download the project again so the panel runs the edited version.
Questions asked
Does the loop work with only two windows?
Yes. Point Window 1 at Window 2 and Window 2 back at Window 1, and give both pages their own trigger object. The loop period is the sum of the two delays, and the same pattern extends to any number of base windows. Nothing about the object changes with the page count, only the destination numbers do.
Which window starts the loop after power-up?
The loop starts wherever the runtime opens a page that carries the trigger, so place an object on the window the panel shows at power-up. Usually that is Window 1, and one object both starts the show and schedules the first change. Any cycled page can serve: opening it by any path, whether power-up, a timeout return or an operator press, restarts the chain from there.
Why does a copied page fall back to an earlier window instead of advancing?
A pasted object keeps the destination number of the window it was copied from. If Window 2 receives Window 1's copy unchanged, its Change Window action still points at Window 2, so opening the page reloads the same page and the show looks frozen. Open the pasted object and set its own Window no. before downloading.
How do I stop the cycle for good?
Remove the trigger object from any one page in the chain and re-download the project. That page no longer schedules a change, so the rotation ends there and the display waits for normal navigation. Deleting the objects from every cycled page removes the mechanism completely, and no runtime or controller setting is involved.