Integer combo box

The Integer combo box can be used to select a value from a drop-down menu. The index of the select value is written into a variable. The entries can be taken from a text list or as an image list from the image pool.

Integer combo box 1:

Properties editor

The properties of a visualization element - except alignment and order - can all be configured in the properties editor. By default, this editor opens next to the visualization editor, or it can be opened explicitly via the "Properties" command (which can be found in the View menu as standard).

A property can be modified by editing the field "Value". To this end, an input field, a selection list, a dialog or checkbox that can be activated is provided in this field, depending on the element type. The value field opens

If a variable is assigned,

Working in the list of properties can be made easier with the aid of default, sorting and filter functions.

Element properties

All element properties and their descriptions are listed below.

Element name

The element name can be changed. Standard name is "GenElemInst_x". "x" stands for a sequential number.

Element type

The element type is entered here. For three element groups it is possible to switch between the corresponding elements by changing the element type:

Position

Here you can define the position (X/Y coordinates) and size (width and height) of the element in pixels. The origin is in the top left corner of the window. The positive x-axis is on the right, the positive y-axis runs downwards. If the values edited, the displayed element is simultaneously modified in the visualization editor.

X

Horizontal position in pixels – X=0 is the left edge of the window.

Y

Vertical position in pixels – Y=0 is the upper edge of the window.

Width

Width of the element in pixels

Height

Height of the element in pixels

Texts

Tooltip

Here you can set the text to be used as tooltip for the element. It only appears in the visualization at runtime.

Text properties

Use of

The following two settings are available for selection:

  • Default style values
  • User-defined settings
    • Horizontal alignment
    • Vertical alignment
    • Font
    • Font color

User-defined text properties

Horizontal alignment

Defines the horizontal alignment of the text through selection of:

  • Left
  • Centered
  • Right

Vertical alignment

Defines the vertical alignment of the text through selection of:

  • Top
  • Centered
  • Bottom

Font:

Defines the font through selection from predefined fonts:

  • Standard
  • Heading
  • Large heading
  • Title
  • Note

Press Integer combo box 3: to opens the dialog for user-defined font properties.

Font color

Defines the font color for the element. Either from the selection list or via the dialog that opens when Integer combo box 4: is clicked.

Subsection

Use subrange

If this option is enabled, only a subsection of the assigned list entries is used.

Index start

Variable of type integer, which indexes the entry to be used first

Index end

Variable of type integer, which indexes the entry to be used last

Filter missing textentries

If this option is enabled, only the entries from the text list that actually contain text are displayed.

Access rights

This setting relates to the access rights for the individual element. Click to open the Access rights dialog. The setting is only available if a user management was added to the PLC project. The following status messages are available:

Not set. All rights.

The default message is set, if the element is shown as available for all groups.

Rights are issued: Limited rights.

The message is set, if the element is shown with limited behavior for at least one group.

Additional settings

Variable

Variable of type integer, the value of which is the index of the selected list element.

Text list

Name (string) of the text list that contains and indexes all the entries of the drop down menu.

Image pool

Name (string) of the image pool that contains and indexes all the images of the drop down menu.

Maximum value

Maximum number of entries in the drop down menu

State variables

These are dynamic definitions of the availability of the element in online mode.

Invisibility

Specification of a boolean variable. If this returns TRUE, the element is invisible in online mode.

Input disabled

Specification of a boolean variable. If TRUE is returned, inputs for the element have no effect. Also, the element itself is greyed out in the visualization, to indicate that no user inputs are possible.

If the visualization uses the user management, the elements for user groups with access right "only visible" are grayed out.