State lists

State lists contain elements that are used to link a variable value or value range with a colour, text or graphic.

In the application, indications of a state such as an activated alarm, a connection error, etc. can be helpful. A state can be visualised using graphics, text and colors.

The following controls are available to display a state:

Control element

State display through...

Create list about...

List element

Image

Graphic

ImageList

ImageState

StateIndicator

Text, colour, graphics

Items

StateIndicatorItem

ColorIndicator

Color

Limits

ColorIndicatorLimit

To enable these controls to display a state depending on the variable value, a state list must be created for the control in addition to the variable link. The state list consists of list elements that are linked to a value and a colour, a text or a graphic via the properties. At runtime, the state linked to the respective value is displayed when this value is set in the application.

The state list is created and configured in the Collection Editor. The Collection Editor is opened via the "ImageList", "Items" or "Limits" property, depending on the control element.

A variable value is linked to the configured state display for a list element via the "Value" property.

Value

Defines one or more values and/or one or more value ranges. At runtime, the control element (e.g. StateIndicator) compares the current value with the values defined in the list elements (e.g. StateIndicatorItems). The display of the list element whose value matches the current value is adopted by the control element. The value/value range refers to the variable specified in the control element in the "VariableName" property.

The following details are possible in the property:

Specification of...

Examples

Individual values

  • 1

  • 1, 2, 3, 4

Value ranges

  • 10..20

  • 10..20, 30..40

Values and value ranges

  • 1, 2, 3, 4, 10..20, 30..40

Affects these controls:

ColorIndicator, Image, StateIndicator