Beckhoff Automation GmbH & Co. KG TX1200 — 10.1.4.1 Configure Visualization Elements

Visualization Programability The properties of an visualization element can not only be defined by a static setting or by a "normal" project variable, but also by the components of a structure variable, which is exclusively used for programming visualization elements. For this purpose the structure VisualObjectType is available in the library SysLibVisu.lib . Its components can be used to define most of the element properties. Note the evaluation sequence that applies later in online mode: - The values supplied dynamically, i.e. via normal project variables or via the structure variables, overwrite the fixed settings of the element configurations.

- If an element property is addressed both by a project variable entered directly in the configuration dialog and via the component of a structure variable, the value of the project variable is evaluated first in online mode. To configure the element properties via a structure variable, proceed as follows: In the configuration dialog of the programmability category, enter a new, unique (!) variable name in the Object name: field in the project. To do this, you need to activate the option by clicking in the check box. The variable automatically receives the type of the structure VisualObjectType , which is part of a library. The declaration is implicit and not directly visible in the project.

After the next compilation run, the structure variable assigned to the visualization element can be used in the project. (Hint: activate the Intellisense function 'List components' in the project options, category Editor, to get the structure elements offered in a selection list after entering the variable name followed by a dot). For example, if you have entered an object name "visu1_line" for a visualization element, you can use visu1_line.nLIneWidth:=4 in the program to set the line thickness for this element. Dialog for configuring the programmability of a visualization element (category Programmability) The structure VisualObjectType:

The following table shows all elements available in structure VisualObjectType and the corresponding configuration option in the dialogs of the different categories: The data type is integrated at the beginning of the component name. Where: n INT dw DWORD b BOOL st STRING TX1200 281 Version: 1.3