You are here: Core Reference > Coding > Logic > Default Values for Enumerated Data Types

Default Values for Enumerated Data Types

The format for defining a default value for an enumerated data type is:

Example:

  • TYPE
    • ControlStatus: (Healthy, Overrange, Failed):=Failed;
  • END_TYPE

In the example, ControlStatus is the name of the enumerated data type. Healthy, Overrange, and Failed are the names that are applied to the state values as part of the enumerated data type definition. The default value of the enumerated data type is set to Failed.


ClearSCADA 2015 R2