Default Values for Enumerated Data Types

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

TYPE

<Enumerated Data Type Name>: (<Data Type>, <Data Type>) :=<Default Value>;

END_TYPE

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.


Disclaimer

Geo SCADA Expert 2020