A default value for an ENUMERATED type VARIABLE must be declared as an unsigned integer, not a string. The current Tokenizer (8.1.x) may not produce an error when a string is used to declare a default value. 


Here is an example of the correct implementation of DEFAULT_VALUE for an ENUMERATED variable:


VARIABLE level_units

    LABEL "Level Unit"; 

    CLASS DEVICE; 

    HANDLING READ; 

    TYPE ENUMERATED 

   {  

         {0x19, "feet" } 

         {0x20, "meters" }

         {0x21, "yards" }

   }

    DEFAULT_VALUE 32; 

}


The default value in this example above is declared as "meters".

 

If no DEFAULT_VALUE is declared, the default is always the first listed enumeration (in the example this would be "feet").