Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 24372774, Entry date: 01/08/2007

How can you make a screen selection on a Windows-based operator panel via the controller without using a controller job?

  • Entry
  • Associated product(s)

Screen selection via the controller without using a PLC job is done as follows. At the end of this entry is a free download of a sample program.

No. Procedure
1 Controller:
Create a tag of the "Integer" type in your controller.
The DB10.DBW0 tag is used in this example.
2 WinCC flexible ES:
Create a connection to your controller and insert the DB10.DBW0 tag into your configuration.

Make the following settings in the Properties of the DB10.DBW0 tag.

  • "Properties > General": => Select
    "Acquisition mode" -> Cyclic continuous.
  • "Properties > Events > Change value": select the system function "ActivateScreenByNumber". For the Screen number parameter you enter the DB10.DBW0 tag.

Fig. 01

Define the screen number:
You define the screen number in the Properties of the screen.
"Properties > General" > Settings". For "Number" you specify the relevant value.
Later you enter this screen number in the DB10.DBW0 tag via controller in order to call the screen. 

Fig. 02

Detailed information on the topic of area pointers and assigning the individual parameters is available in the manual "WinCC flexible Communication Part 1" in the section entitled "Communication with SIMATIC S7 controllers > Area pointer".
The manual is available in Entry ID 18797552.

3 Function:
If there is a change of values on the controller side in the "DB10.DBW0" tag, the "ActivateScreenByNumber" function is executed.
Depending on the preset picture number there is a change to the picture configured.

Via the "VAT_1" variables table you can simulate the selection of pages.
The buttons for calling the individual sites are configured as well in addition.

The attached download contains the archived STEP 7 project and integrated WinCC flexible project, along with the functions described above.

 Attachment1:  Project_1.zip ( 2977 KB )

Runnability and test environment:
The example can be used on all the CPU types of SIMATIC S7-300, S7-400 and WinAC.
The following table lists the components that have been used to create this entry and verify the functions described.

Components Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools STEP 7 V5.3 SP3
Engineering tools -
HMI software WinCC flexible 2005 SP1
HMI devices MP 370 Touch
Controllers S7 CPU 315-2DP