Siemens A31003-51730-U103-7619 5.9.2References to Controls, Declaration and description

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 126
Image 126

The Elements of a DCO-Script

Controls

5.9.2References to Controls

Just like Constants, Parameters, and Variables, the Controls:

Edit field,

Checkbox,

Listbox, and

Combobox

use an attribute to assign them to a data type (see Section 5.2, "The DCO data types and their value ranges").

For each Edit field, Listbox and Combobox the type is assigned individually, while check-boxes always have the data type bool.

This makes it possible to add references to these Controls for Instructions (see Section 5.11, "Instructions") and arguments (see Section 5.10.2, "Setup and syntax of conditions") and to read out their contents.

To do so, use the name of the Control and add a new declaration before the name.

For each Control use the corresponding declaration as described below:

Control

 

Declaration and description

 

 

 

Edit field

 

(EDIT) <Name of the Edit field >

 

 

e.g. for an Edit field with the name "TelNumber":

 

 

(EDIT)TelNumber

 

 

A reference to an Edit field always outputs as result the content

 

 

of the pertinent Edit field.

 

 

 

Checkbox

 

(CHECKBOX) <Name of the Checkbox>

 

 

e.g for a Checkbox with the name "Huntgroup“:

 

 

(CHECKBOX)Huntgroup

 

 

A reference to a Checkbox always outputs as result the status

 

 

of the pertinent Checkbox.

 

 

 

Listbox

 

(LISTBOX) <Name of the Listbox>

 

 

e.g. for a Listbox with the name "Broadcasts":

 

 

(LISTBOX)Broadcasts

 

 

A reference to a Listbox always outputs as result the entries

 

 

that were chosen for that Listbox.

 

 

 

Combobox

 

(COMBOBOX) <Name of the Combobox>

 

 

e.g. for a Combobox with the name "Announcements":

 

 

(COMBOBOX)Announcements

 

 

A reference to a Combobox always outputs as result the entry

 

 

that was chosen for that Combobox.

 

 

 

Table 5-47

Reference declarations for Controls

 

07/2010

5-58

OScAR-Pro Customized Operator, User Manual

Page 126
Image 126
Siemens A31003-51730-U103-7619 5.9.2References to Controls, Declaration and description, EDIT <Name of the Edit field >