Visualization Element ‘Check box’

Symbol: 79e27995de7a11bbc0a8640e017d33b5_125e727d83b21f88c0a8640e00a69166

Tag: Common controls

This element is used for setting and resetting a Boolean variable. The set state is represented by a check mark.

Element properties

Element name

Optional

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

Example: signal_tone_for_parts_deficit

Element type Check box
Text ID

ID for the text in the GlobalTextList. Example: 22.

The text ID cannot be modified. As soon as you specify and save a text in Texts - Text, CODESYS automatically creates an entry in the GlobalTextList and displays the ID here.

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 ( 79e27995de7a11bbc0a8640e017d33b5_7b449e02d0393877c0a8640e01fd8c9e ) to other positions in the editor.

See also

Variable Variable of type BOOL (example: bIsTrue).
Frame size Example: From style. Distance of the element to the edge.

Element property ‘Texts’

The properties contains character strings for labeling the element.

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) for the labeling the element.

Example: Axis 1.

Tooltip

Character string (without single straight quotation marks) that is displayed as the tooltip of an element.

Example: Parameters of Axis 1.

See also

Element property ‘Text properties’

The properties contain fixed values for the text properties.

Usage of
  • Default style values: The values of the visualization style are used.
  • Individual settings: The “Individual text properties” property group is shown The values can be customized here.

Individual text properties

Requirement: The Individual settings text property is defined.

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

79e27995de7a11bbc0a8640e017d33b5_2be833ef7deb1e6ec0a8640e0056e76c : The Font dialog box opens.

79e27995de7a11bbc0a8640e017d33b5_379d3b8945773148c0a8640e0139d9cb : Drop-down list with style fonts.

Font color

Example: Black

79e27995de7a11bbc0a8640e017d33b5_2be833ef7deb1e6ec0a8640e0056e76c : The Color dialog box opens.

79e27995de7a11bbc0a8640e017d33b5_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.

Deactivate inputs

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

TRUE: User inputs do not have any effect in runtime more. The element is shown as deactivated.