A possible workaround: remove //{attribute 'strict'} when define ENUM RobotMode, declare variable robotMode as Enum type Define varaible Mode as LINT type (map as int on datalayer) In your program replace Mode with robotMode Write code RobotMode := Mode at beginning of the main program to write to RobotMode when Mode are modifed from datalayer Write Mode := RoboteMode at the end of main program to make right Mode value show on datalayer
... View more