Siemens A31003-51730-U103-7619 Benutzerhandbuch

Seite von 336
The Elements of a DCO-Script
For internal use only
07/2010
5-54
OScAR-Pro Customized Operator, User Manual
  
  
  
BHB_DCO_05.fm
Frames
5.8.10
Add a new Function to a Frame
Follow the below instructions to add a new Function to a Frame:
No. Task
1.
Go to the tree structure and open the node "Frames".
2.
Open the Frame to which you want to add a new Function.
3.
Under the Frame you selected, open the child node "Functions" to add a new Function.
4.
Here you can choose from the nodes
On_Load“,
if you want the new Function to be executed whenever the Frame is loaded, or
On_Message“,
if you want the new Function to be invoked by instructions of the type „Broadcast-
Message“ (see Section 5.11.8, "The Instruction "BroadcastMessage""), by double-
clicking on a listbox entry or by selecting an entry in a combobox, 
On_Timer“,
if you want the new Function to be invoked cyclic depending on the interval value 
(see Section 5.8.1, "The attributes and child nodes of the node "Frames"") of the 
page or
User
if you want the new Function you want to create only to be available when the In-
structions of this Frame are invoked.
5.
Now go to the menu bar and select "Edit
New". 
This will open the below user window to add the new process Filter.
6.
Enter a name for the new Function that is clear and distinct in this Frame.
7.
Finally, click Ok to close the window.
The DCO-Designer outputs the new Function in the tree structure of the Structure win-
dow, and there in the child nodes "On_Load", "On_Message", "On_Timer"or "User".
If needed, you can now edit the attributes of the new Function and its Instructions.
Table 5-44
Add a new Function to a Frame