Instructions: Screen selection via the controller is as follows. At the end of this entry is a free download of a sample program.
| No. |
Procedure |
| 1 |
Create a tag in ProTool and connect it to the controller. In this example the tag "Bildanwahl_1" (screen selection).
  Fig. 01
|
| 2 |
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 |
Go to the "Options" tab and set the tag to "Read continuously". |
| 5 |
Function:
If there is a change of values on the controller side in the "Bildnummer_1" (picture number) tag, the function "Select_Screen_Variable" is executed.
Depending on the preset picture number there is a change to the picture configured.
Take the corresponding picture number from the ProTool configuration.
Via the "VAT_1" variables table you can simulate the selection of pages.
Note:
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 ( 871 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 370 Touch 12" |
| Controllers |
S7 CPU 316-2DP |
Table 1: Creation environment of the download attached
|