How can you make a screen selection on a Windows-based operator panel by entering a screen number?
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.
|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.|
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".|
|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.
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.
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|
|HMI software||ProTool V6.0 SP3|
|HMI devices||MP 270B Key|
|Controllers||S7 CPU 316-2DP|