该操作符是 IEC 61131-3 标准的延伸。
您可以使用枚举的 TYPE 名称对枚举常量进行唯一访问。这样,您就可以在不同的枚举中使用相同的常量名称。
枚举名称在常量名称前加一个点 (.
) 。
<enumeration name>.<constant name>
示例
常量Blue
是枚举Colors
和枚举Feelings
的组成部分。
color := Colors.Blue; // Access to component blue in enumeration Colors feeling := Feelings.Blue; // Access to component blue in enumeration Feelings