How-to
Stopping WinCC flexible Runtime to change an MP377 clock
Short answer
WinCC flexible 2008 Runtime on an MP377 is stopped from the project, not the keyboard: an HMI event calls HMIRuntime.Stop, the panel returns to its loader, and the clock is corrected in Control Panel before Start relaunches Runtime. DeactivateRTProject belongs to WinCC, not WinCC flexible, and Ctrl+Alt+Del is not a documented exit. Build the sequence, test it once on the real panel, then give the operator the five tested steps.

On this page
You do not need to power-cycle an MP377 to correct its clock. WinCC flexible 2008 Runtime stops on a method call from inside the project — HMIRuntime.Stop, where HMIRuntime is the runtime object and Stop is its method — usually wired to a button that only maintenance can press. Runtime closes, the panel drops to its loader, the loader's Control Panel holds the date/time dialog, and Start brings Runtime back. Two things that look like shortcuts are not: DeactivateRTProject belongs to WinCC, the PC SCADA, not to WinCC flexible, and Ctrl+Alt+Del is not a documented runtime exit on these panels. Build the exit, transfer the project, prove the whole sequence once on real hardware, and only then hand the operator the five steps.
The stop method and the two look-alikes #
The stop for WinCC flexible is HMIRuntime.Stop. It is a script statement: HMIRuntime is the object the runtime exposes to scripts, and Stop is the method that ends the project running on the panel. When it executes, Runtime closes and the panel returns to its loader, the start center the runtime is launched from. That return to the loader is what makes a clock change possible without a reboot.
DeactivateRTProject();is a C function of WinCC, the PC-based SCADA. A WinCC flexible script has no identifier by that name, so it is the wrong tool family.- Ctrl+Alt+Del is not documented as a WinCC flexible exit. Whether Windows CE reacts to the combination at all depends on the panel's image and configuration, so it earns a place on an instruction sheet only after you have watched it work on that exact panel. Until then the decision stands: it stays off the sheet.
Build the exit into the project #
The whole exit is one script statement:
' Runs from the exit button's Click event
HMIRuntime.Stop
- Open the project in the engineering system and confirm the target device matches the panel on site; on an inherited project, see how to identify an MP377 panel in WinCC flexible 2008 runtime before you transfer anything to it.
- Add a script containing that single statement — the script name is yours to choose, the statement is the documented part — and place a button on a screen the operator can reach, typically the first screen or a maintenance screen.
- Attach the script to the button's Click event.
- Restrict the button to the maintenance user group through its authorization setting, so an operator working normally cannot blank the line's screens by accident.
- Transfer the revised project to the MP377. A transfer cut off part-way can leave the panel stuck at its startup screen, and a remote panel in that state needs the MP377 frozen startup screen recovery procedure before anything else. After a clean transfer, Runtime restarts with the exit button in place.
The operator sequence at the panel #
Once the exit is in the project, the clock change is five steps and no programming:
- Log in with maintenance rights and press the exit button. Runtime closes and the loader appears.
- Open Control Panel in the loader. It is the same place where an MP377 panel IP address actually lives, so change nothing except the clock.
- Open the date/time dialog and set day, month, year, time and the plant's time zone.
- Close Control Panel back to the loader.
- Press Start in the loader; Runtime relaunches and the project's start screen returns.
Put the machine in a state where nobody needs the screen before step 1: from the stop to the restart, the panel shows no process values at all.
Worked example, spring change: the panel clock reads 13:52:10 while local time is 14:52:10. Daylight saving moves the clock by 60 minutes, and 14:52 − 13:52 = 60 min confirms the offset is exactly the seasonal hour, not drift. The operator enters 14:52:10. After the restart, compare the panel time with a network-time reference: the panel shows 14:52:31 against a reference at 14:52:33, a 2-second offset. For this example, accept the change when the two agree within 5 seconds.
Test the sequence before you send it #
On a remote site — an offshore platform with one operator and no programmer — the instruction sheet is the only thing that travels, so earn it on the bench first:
- Run all five steps on the actual panel or its twin with the same project and image. The one behavior that varies between configurations is what appears after
HMIRuntime.Stop; on a standard MP377 setup the loader is the expected result. - Press the button while logged in as a normal user: either it is disabled or a login prompt appears, and Runtime keeps running, which proves the restriction holds.
- After the restart, check the start screen, the alarm view and the on-screen time against the reference; a test alarm carrying the corrected timestamp closes the check.
- Freeze the sheet at the five steps, with no keystrokes on it.
The decision point is the first bullet. If the loader does not appear after the stop on your test panel, do not send the sheet: that panel's configuration needs a service visit to change, and no guessed keyboard shortcut fixes it remotely.
The durable fix for seasonal changes #
Stop-and-edit is the right tool for a one-off correction or a drifting clock. For the twice-yearly shift, remove the job instead: the time zone entry in the same date/time dialog carries the daylight-saving rule, so with the correct zone set once, the seasonal change happens without anyone stopping Runtime. If the plant keeps time in the controller, go one step further and have the PLC write the panel clock, so nobody edits it at all — and when that write misbehaves, an HMI date and time tag that fails over S7 has its own diagnosis. Either way, keep the exit button in the project as a service function: one button, and the next clock correction or service visit needs no new transfer.
Questions asked
Does stopping Runtime stop the machine?
No. The stop ends only the visualization on the panel: the PLC program and the machine keep running. What the operator loses is the window on the process — screens, alarms and controls are unavailable until Runtime is back up. So the change is a short HMI outage to plan for, not a machine stop.
What is the equivalent stop function in WinCC Unified?
WinCC Unified uses the StopRuntime system function instead. It ends the runtime software and the project running on the HMI device, and it can be called with or without parameters. Because the name differs, a flexible script does not carry over to a Unified project; rebuild the exit there with StopRuntime.
Would a power cycle work instead of the exit button?
It can, but it is not guaranteed to help. If the loader is configured to start Runtime automatically at power-up, the panel boots straight back into the project and Control Panel never appears. The built-in exit is deterministic, takes seconds and skips the hardware bounce; keep the power cycle only as the fallback for a project that has no exit yet.
Does the operator need a USB keyboard for the change?
No. The exit is a project function, so a keyboard adds nothing while Runtime runs. After the stop, the loader and Control Panel are worked from the panel's own input — the touch screen on a touch unit — so the instruction sheet needs no keystrokes at all, with or without a keyboard.


