Siemens Industry Online Support
Siemens AG
Type bericht: FAQ, ID van bericht: 24228523, Datum bericht: 12.12.2006

How can you make a screen selection on a Windows-based operator panel by entering a screen number?

  • Bericht
  • Heeft betrekking op product(en)

Proceed as follows to make a screen selection by entering a screen number.
In this example the relevant screen is selected via a text list. 
At the end of this entry is a free download of a sample program.

No. Procedure
1 Create a tag in ProTool - e.g. tag "Bildanwahl_1" (screen selection). It is not absolutely necessary to have a connection to the controller.

Fig. 01

Go to the "Functions" tab and select the function "Select_Screen_Variable".

3 As the parameter for "Tag with screen number:" you specify the tag you created in Point 1 - in this example "Bildanwahl_1".

Fig. 02
4 In the permanent window you configure a selection field, for example.
Use the "Bildanwahl_1" tag created under Point 1 for the index tag. For the text list you create a symbol list with the relevant picture assignments.

Fig. 03
5 Function:
You make a screen selection in the permanent window via the selection field. 
If there is a change of values in the "Bildnummer_1" (picture number) tag, the function "Select_Screen_Variable" is executed. Depending on the preset value in the tag the screen changes to the screen configured.

You can define/edit the picture number in the picture properties.

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

 Attachment1:  Project_1.zip ( 570 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.

Component Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools STEP 7 V5.3 SP3
Engineering tools -
HMI software ProTool V6.0 SP3
HMI devices MP 270B Key
Controllers S7 CPU 316-2DP
Table 1: Creation environment of the download attached

Nota's in verband met security
Ter bescherming van installaties, systemen, machines en netwerken tegen digitale dreigingen is het noodzakelijk om een alomvattend 'Industrial Security' concept te implementeren (en continu te handhaven) dat overeenkomt met de huidige stand van de techniek. De producten en oplossingen van Siemens vormen slechts een deel van een dergelijk concept. Meer informatie over 'Industrial Security' vindt u op