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 |
|---|---|---|---|
|
ImageList |
ImageState |
||
|
Items |
StateIndicatorItem |
||
|
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.
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 |
|
|
Value ranges |
|
|
Values and value ranges |
|
Affects these controls: