Enumeration namespace

The operator is an extension of the IEC 61131-3 standard.

You can use the TYPE name of an enumeration for unambiguous access to an enumeration constant. This enables you to use constants with same name in several enumerations.

The enumeration name is prefixed to the constant name, separated by a dot.

Syntax: < enumeration name>.<constant name>

Example:

The constant eBlue is a component of both the E_Colors enumeration and the E_Feelings enumeration.

eColor := E_Colors.eBlue;  // Access to coomponent Blue in enumeration Colors 
eFeeling := E_Feelings.eBlue; // Acces to component Blue in enumeration Feeling