Siemens Industry Online Support
Siemens AG
Entry type: FAQ, Entry ID: 54997729, Entry date: 11/04/2011

How do you create a time switch with WinCC flexible?

  • Entry
  • Associated product(s)

This FAQ response describes one way you can create a "weekly timer" with WinCC flexible without using program blocks from the PLC.

There are three switching procedures (time intervals) available for each day of the week.
(For example, one for the "early shift", one for the "afternoon shift" and one for the "late shift").
You set the switch-on and switch-off times by way of a "date/time field".

You can select/deselect each switch-on/off time separately.

Once the specified switch-on time is reached, an output signal is set.
This output signal can be transferred to a PLC, to switch on a pump, for example.
Once the specified switch-off time is reached, the output signal is reset.

The following figure shows the Runtime picture created.

Fig. 01

Which operator panels are supported?
The instructions below apply for all operator panels that support scripts. An overview of the functions of the various operator panels is available in Entry ID: 40227286.
In this application we have used an MP 277 Touch.

Please refer to the attached documentation and configuration for details.
The attached download contains a WinCC flexible project with the functions described in the document.

Creation environment
The configuration was made with WinCC flexible 2008 SP2.


Contents of the downloads


The documentation includes all the necessary configuration steps perform the example in the FAQ.
( 733 KB )
The packed file contains the sample MP 277 Touch project.
( 2996 KB )

Additional information



How do you implement a weekly timer for the SIMATIC S7-1200 in STEP 7 V11? Entry ID: 52722648
S7-300/400 CPUs:
Time switches based on the S7-300/400 CPUs, optional radio clock connection
Entry ID: 21669756

Security information
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about industrial security, please visit