Siemens A31003-51730-U103-7619 5.8.10Add a new Function to a Frame, „On_Load“, „User“, Frames

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 122
Image 122
5.8.10Add a new Function to a Frame

The Elements of a DCO-Script

Frames

5.8.10Add 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 "EditNew".

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

 

07/2010

5-54

OScAR-Pro Customized Operator, User Manual

Page 122
Image 122
Siemens A31003-51730-U103-7619 5.8.10Add a new Function to a Frame, „On_Load“, „User“, Frames, No. Task, „On_Message“