Visualization Element ‘Check box’¶
Symbol:
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: |
Element type | Check box |
Text ID | ID for the text in the GlobalTextList. Example: 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: |
Y | Y coordinate of the upper left corner of the element Specified in pixels. Example: |
Width | Specified in pixels. Example: |
Height | Specified in pixels. Example: |
Note
You can also change the values by dragging the box symbols ( ) 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: |
Tooltip | Character string (without single straight quotation marks) that is displayed as the tooltip of an element. Example: |
See also
Element property ‘Text properties’
The properties contain fixed values for the text properties.
Usage of |
|
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
|
Font | Example: Default
|
Font color | Example: Black
|
Transparency | Whole number (value range from Example:
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 (
|
Deactivate inputs | Variable (
|