Public Module ConstMachComm

   Public Enum ResultTypes As Integer
      NULL = 0
      EXECUTED = 1
      RESULT = 2
   End Enum

   Public Enum CommandTypes As Integer
      ERROR_ = 1
      CONNECT = 2
      DISCONNECT = 3
      START = 4
      SOFTSTART = 5
      STOP_ = 6
      RESET = 7
      STEP_ = 8
      SETPOINT = 9
      SENDPROG = 10
      REMOVEPROG = 11
      REMOVEALLPROG = 12
      READ_TPA = 13
      WRITE = 14
      DELETEALARMS = 15
      SETOPMODE = 16
      READ_NUMFLEXIUM = 17
      STOPREAD_NUMFLEXIUM = 18
      MDI = 19
      SETCHANNEL = 20
   End Enum

   Public Enum LogCommandTypes As Integer
      NULL = 0
      ERROR_ = 1
      CONNECT = 2
      DISCONNECT = 3
      START = 4
      SOFTSTART = 5
      STOP_ = 6
      RESET = 7
      STEP_ = 8
      SETPOINT = 9
      SENDPROG = 10
      REMOVEPROG = 11
      REMOVEALLPROG = 12
      READ = 13
      WRITE = 14
      DELETEALARMS = 15
      SETOP = 16
      ALARM = 17
      NEWOP = 18
   End Enum

   Public Enum CommandStates As Integer
      NULL = 0
      ERROR_ = 1
      OK = 2
   End Enum

End Module
