Siemens A31003-51730-U103-7619 Manual De Usuario

Descargar
Página de 336
BHB_DCO_05.fm
07/2010
OScAR-Pro Customized Operator, User Manual
5-11
   
  
  
For internal use only
The Elements of a DCO-Script
Constants
5.4
Constants
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.1
The attributes of Constants
Constants can have the following attributes:
Attribute
Description
Name
Edit field to enter the name of the Constant. Select a name that 
is recognizable and unique among the other Constants and 
Parameters.
Type
Value
Edit field to enter the initial value of the Constant (in keeping 
with the pertinent Constant type).
Table 5-4
Attributes of Constants