About Enumerated Sets

An enumerated data set provides an enhanced way of displaying data. It enables you to retrieve numeric data as string state values. You can use the string values in reports, charts, etc.

An enumerated set contains several states. A state is the number-string value pair in a set. It contains a set of numeric values and their corresponding string values. You can define an enumerated set for a single value or a range of values. These state values are defined for data states stored in Data Archiver. Data is retrieved using the value of the state. You have to define state values within a set to assign enumerated values.
Table 1. Example of a Single-Value Enumerated Set
State Name State Value
Manual 0
Automatic 1
Table 2. Example of a Range-of-Values Enumerated Set:
State Name State Value
ON 0 to 100
OFF 101 to 200
State names can be duplicated. If duplicated states exist, take precautions to avoid unpredictable results. For example, a tag is associated with an enumerated set defined as follows.
State Name State Value
0 Open
1 Close
2 Close
2 Open
The server will return unpredictable results due to the State Name duplication for an input of 2.
Note: You cannot assign an enumerated set to an array tag.