How can you make a screen selection on a Windows-based operator panel via the controller without using a controller job?
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.
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.
Define the screen number:
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".
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 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|
|HMI software||WinCC flexible 2005 SP1|
|HMI devices||MP 370 Touch|
|Controllers||S7 CPU 315-2DP|