Create, Modify, and Delete Data States

About this task

A Data State is the number-string value pair in a Set. Enumerated state values are defined for Data States stored in the Data Archiver. Data is retrieved using the value of the state. You have to define state values within a set to assign enumerated values.
Note: State names can be duplicated. If duplicated states exist, take precautions to avoid unpredictable results. The following example illustrates this.
A tag is associated with an enumerated set defined as follows. The server will return unpredictable results due to the State Name duplication for an input of 2.
State NameState Value
0Open
1Close
2Close
2Open

Procedure

  1. To create a State:
    1. In the State section of the Define Enumerated Set window, select New State.
    2. Make a selection in the Enumerate by option.
      If you select Single Value, the State Name, State Value, and Description fields appear. If you select Range, the State Name, Start Range, End Range, and Description fields appear.
    3. Enter the information in the respective fields.
      Enter only numeric values in the State Values field; string values such as ON/OFF are not supported.
    4. Select Save to List to add the state to the set.
  2. To modify a State:
    1. Select the state to modify from the List of States section.
    2. Make the desired changes and select Save to List.
  3. To delete State(s):
    • To delete a single state, select the state and select Delete State.
    • To delete all the states, select Select All , then select Delete State.