show the entry list
ProTool -- Creating HMI configurations -- Creating pictures
Configuring headers of OP3 pictures in ProTool V5.2 /SP2
Programming the "Set_Bit" function by pressing a button on Windows-based devices
Picture change on the TP170A as tag function
CPU functions for S7-300 with OP7/OP17
Entering an S5TIME" variable in ProTool/Pro to provide values for a timer in the SIMATIC controller
Showing an "S5TIME" variable from a SIMATIC logic control with ProTool/Pro
Configuring the TAB order ProTool
Subsequent insertion of pictures in the configuration
Graying in the OP display of bitmap graphics
Description of the default name "PIC_xx" for a ProTool/Pro screen
Can I also program function keys in the message image?
Special characters and language-specific characters
How can you register unknown ActiveX objects on a PC and then incorporate them in ProTool/Pro?
Settings required for implementation of the ProTool function "Start Program"
Display of help texts for a certain image object on a Touch Panel
How can you start specific items in the Control Panel directly from the Runtime on an operator panel?
How do you implement the "Clean Screen" function for cleaning the touch screen on Mobile Panel 170?
How do you configure screen selection on a line or graphics operator panel via controller job 51?
How do you configure screen selection on a Windows-based operator panel via controller job 51?
How can you make a screen selection on an OP3 via the controller?
How can you make a screen selection on a Windows-based operator panel via the controller without using a controller job?
How can you make a screen selection on a Windows-based operator panel by entering a screen number?
How can the display for the danger and warning area of an analog display be made in color?
How can you optimize the response time when changing screens via the controller?
How do you monitor and control tags on panels on which the status/control object is not available?
How do you configure screen selection on a Windows-based operator panel via controller job 51?
Part number:

Instructions:
Proceed as follows to configure screen selection via the controller. At the end of this entry is a free download of a sample program.
 
No. Procedure
1 Create area pointer:
In ProTool you create the area pointer "Job Mailbox".
The length of 4 words is preset.


Fig. 01

2 Structure of a PLC job:
A PLC job consists of 4 data words. The first data word contains the job number. Depending on the function, up to three parameters are transferred in data words 2 to 4. The figure below shows the principle structure.


Fig. 02

Structure of PLC job 51:


Fig. 03

Detailed information on the topic of area pointers and setting the separate parameters is available in the manual SIMATIC HMI Communication for Windows-based Systems, Appendix B,  "PLC Jobs".
The manual is available in Entry ID 1405528.

3 Functional sequence:
If the first word of the job mailbox is not equal to zero, the operator panel evaluates the PLC job. The operator panel then resets that data word to zero. For this reason the parameters must be entered first in the job mailbox and only then the job number.
4 Sample program/Configuration instructions:

Note:
In the sample program attached we have used DB51.DBW0 with a length of 4 words as the area pointer.

  • Via the controller you enter the screen number to be called in the second data word of the job mailbox (DB51.DBW2). If necessary, you can enter the relevant field number of the screen entry in the fourth data word of the job mailbox (DB51.DBW6).
  • Enter the job number "51" in the first data word of the job mailbox (DB51.DBW0). Via this change in statement/value the operator panel evaluates the PLC job and the screen is changed on the operator panel.
  • Upon completion of the screen change the operator panel overwrites the first data word (DB51.DBW0) once again with zero.

Note:
A PLC job must not be called continuously. A PLC job should not be present usually for longer than two PLC cycles.

5 Program description:
To better illustrate the function of PLC job 51 you can specify the "Picture number" in sample project and and start the PLC job via a button.
Specification of the "Picture number" and "Start" of the PLC job are normally done in the PLC program.

Picture area "1":
Picture area "1" shows the structure of the PLC job again with the separate parameters.

Picture area "2":
In picture area "2" you specify the screen number that is to be called.
(The picture number is then shown in the second data word -> Parameter 2).

Picture area "3":
You start the job by pressing the "Start" button in picture area "3".
(After pressing the "Start" button, the PLC job with number "51" is shown briefly in the first data word -> job number).


Fig. 04

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

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

 Entry ID:24229825   Date:2006-12-12 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour