You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The norm supports different datatype for enums, where an enum field behaves as a named value of that datatype.
Example :
TYPEMyInt : INT ( Red:=1, Yellow:=2, Green:=3); END_TYPEPROGRAM prg
VAR value : MyINT:=RED; END_VAR
value := value +2; //GreenIF value =MyInt#GreenTHEN
value :=10; //Outside the enum range but allowed
END_IF
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The norm supports different datatype for enums, where an enum field behaves as a named value of that datatype.
Example :
The text was updated successfully, but these errors were encountered: