Enumeration: Attribute 'strict'

Function extension:

An enumeration is a user-defined data type. If an enumeration data type is created in a PLC project, the attribute 'strict' is added above the TYPE declaration. In the following cases, this will lead to a compilation error:
  • Arithmetic operation with variables of type enumeration
  • Assigning a constant value which does not correspond to an enumeration value to a variable of type enumeration
  • Assigning a non-constant value of a data type other than the enumeration type to a variable of type enumeration

The attribute can also be set or removed later.

Contained in which products?
PLC Designer V3.12 

URL for linking this AKB article: /en-de/go/akb/201600015/1/
森林舞会游戏