Siemens A31003-51730-U103-7619 5.4Constants, 5.4.1The attributes of Constants, Example, Attribute

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 79
Image 79
Constants

The Elements of a DCO-Script

Constants

5.4Constants

Constants are place holders and based on the data types described in the Section 5.2, "The DCO data types and their value ranges".

Constants always remain the same throughout a project. They can be used any number of times at any place within the project and their values can easily be edited at a central level in the OScAR-Pro Customized Operator.

When using a Constant in the subsequent course of the DCO-script, its name is output between

%%characters. In the subsequent execution of the DCO-script, the Constant is automatically substituted in the script with its assigned values.

Example

You can, for example, define a specific color for a specific type of Button as a Constant and subsequently assign this Constant as text color to other Buttons. If you want to change the color of the Buttons of this type later, you do not need to edit each of these Buttons individually but can change the color of the Constant centrally, instead.

5.4.1The attributes of Constants

Constants can have the following attributes:

Attribute

Name

Type

Value

Description

Edit field to enter the name of the Constant. Select a name that is recognizable and unique among the other Constants and Parameters.

The selection field to enter the Constant type (see Section 5.2, "The DCO data types and their value ranges").

Edit field to enter the initial value of the Constant (in keeping with the pertinent Constant type).

Table 5-4 Attributes of Constants

07/2010

 

OScAR-Pro Customized Operator, User Manual

5-11

Page 79
Image 79
Siemens A31003-51730-U103-7619 user manual 5.4Constants, 5.4.1The attributes of Constants, Example, Attribute, Description