Variables

Visualization Element Configuration Dialog Box (Variables Category):

../_images/9ffaeb744377edc90a33139006eab46b

You can enter the variables that describe the status of the visualization elements in the Variable category within the dialog box for configuring visualization elements. The simplest way to enter variables in the fields is to use the Input Assistant.

Note

In online mode the variables which are set in the ‘Motion absolute’ dialog will override the values of structure components which additionally might be used to define the same property (‘Programmability’).

In case of multiple definition of an element property consider the specific order of precedence concerning according to which a value might be overwritten in online mode by another.

You can enter Boolean variables in the Invisible and Change color fields. The values in the fields determine their actions. If the variable of the Invisible field contains the value FALSE, the visualization element will be visible. If the variable contains the value TRUE, the element will be invisible.

Disable input: If the variable entered here is TRUE, all settings of category ‘Input’ will be ignored.

Change color: If the variable which is defined in this field, has the value FALSE, the visualization element will be displayed in its default color. If the variable is TRUE, the element will be displayed in its alarm color.

Textdisplay:

  • If you have inserted a “%s” in the Content field of the Text category or if you have included “%s” in the textstring, then the value of the variable which is defined in ‘Textdisplay’ will be displayed in online mode in the visualization object. “%s” will be replaced by the value.
  • If you have inserted resp. included a “%<PREFIX>” in the Content field of the Text category (“PREFIX” must be a sequence of letters), then the variable resp. the numeric value which is entered here in ‘Textdisplay’ will be interpreted as an ID, which in combination with the prefix serves as a reference on a text, which is described in a XML-file. This text will be displayed in online mode instead of  ”%<PREFIX>” in the visualization object. Thus a dynamic modification of the text display is possible.
  • If you want to edit the value of the variable in Online mode using the keyboard, you can do this via the ‘Text input of variable’ ‘Textdisplay’ in the Input category.

Tooltip-display: Here you can enter a string or a variable of type STRING, which defines the ID for a dynamic tooltip text. In combination with a prefix to be defined in category ‘ToolTip’ ( Text for ToolTip) uniquely a certain text in a dynamic textlist can be called to be displayed as tooltip. Thus dynamic text switching resp. language switching is also possible for tooltip texts.