Which products are affected?
ESP-DDS2-P (DDS Professional 2.0)
ESP-DDS2-PU1 (DDS Professional 2.0 Upgrade)
Function description
An enumeration type is a self-defined data type consisting of a set of strings. These constants are called enumeration values.
Example for a declaration:
TYPE
Traffic light: (red, yellow, green)
END_TYPE
In the example mentioned above the traffic light is the data type and the enumeration values are red, yellow and green. If this data type is declared locally (i.e. not under the register 'data type') the enumeration values are also declared locally.
In the previous DSD version the enumeration values were always defined globally and could therefore be used only once.
Applications
Now it is possible to create several enumeration types which have the same name as the constants (see example below):
Traffic lights: (red, yellow, green);
Colour: (black, white, red)