E_[EnumName]
User-defined enum types that do not exist in the standard system.
The maximum indices are -32768 and 32767, because it is a 16-bit integer. The naming of the enum values from the ICD file is applied only as a comment.
Syntax
Example Definition:
{attribute 'qualified_only'}
{attribute 'strict'}
TYPE E_[EnumName] :
(
e_1 := 1, (*Ok*)
e_2 := 2, (*Warning*)
e_3 := 3, (*Alarm*)
...
) SINT;
END_TYPE
Values
Name | Description |
---|---|
e_1 | User-defined enum value, corresponds to "OK" in the ICD file. |
e_2 | User-defined enum value, corresponds to "Warning" in the ICD file. |
e_3 | User-defined enum value, corresponds to "Alarm" in the ICD file. |
… | Any other user-defined enum values in the index range between -32768 and 32767. |