Visualization Element ‘Label’

Symbol: 7b052473de7b848ec0a8640e00dacfb4_d194c81e8384e2ccc0a8640e005a691b

Tag: Common controls

This element is used for labeling visualizations.

Element properties

Element name

Optional

Tip: Assign individual names for elements so that they are found faster in the element list.

Example: Header_Parameter.

Element type Label

Element property ‘Texts’

The properties contains character strings for labeling the element. The character string can also contain a placeholder with a format definition. In runtime mode, the placeholder is replaced by the current value in the specified format.

CODESYS accepts the specified texts automatically into the GlobalTextList text list. Therefore, these texts can be localized.

Text Character string (without single straight quotation marks)

See also

Element property ‘Position’

The position defines the location and size of the element in the visualization window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive horizontal x-axis runs to the right. The positive vertical y-axis runs downwards.

X

X coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Y

Y coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Width

Specified in pixels.

Example: 150

Height

Specified in pixels.

Example: 30

Note

You can also change the values by dragging the box symbols ( 7b052473de7b848ec0a8640e00dacfb4_7b449e02d0393877c0a8640e01fd8c9e ) to other positions in the editor.

See also

Element property ‘Text properties’

The properties contain fixed values for the text properties.

Horizontal alignment Horizontal alignment of the text within the element.
Vertical alignment Vertical alignment of the text within the element.
Text format

Definition for displaying texts that are too long

  • Default: The long text is truncated.
  • Line break: The text is split into parts.
  • Ellipsis: The visible text ends with “…” indicating that it is not complete.
Font

Example: Default

7b052473de7b848ec0a8640e00dacfb4_2be833ef7deb1e6ec0a8640e0056e76c : The Font dialog box opens.

7b052473de7b848ec0a8640e00dacfb4_379d3b8945773148c0a8640e0139d9cb : Drop-down list with style fonts.

Font color

Example: Black

7b052473de7b848ec0a8640e00dacfb4_2be833ef7deb1e6ec0a8640e0056e76c : The Color dialog box opens.

7b052473de7b848ec0a8640e00dacfb4_379d3b8945773148c0a8640e0139d9cb : Drop-down list with style colors.

Transparency

Whole number (value range from 0 to 255). This determines the transparency of the respective color.

Example: 255: The color is opaque.

0: The color is completely transparent.

Please note: If the color is a style color and already has a transparency value, then this property is write-protected.

Element property ‘State variables’

The variables control the element behavior dynamically.

Invisible

Variable (BOOL). Toggles the visibility of the element.

TRUE: The element is not visible at runtime.

Element property ‘Access rights’

Requirement: User management is set up for the visualization.

Access rights

Opens the Access rights dialog box for changing the access rights for the element.

Status messages:

  • Not set. All rights.: Access rights for all user groups : operable
  • Rights are assigned: limited rights: Access is restricted for at least one group.

See also