'----------------------------------------------------------------------------
'  EgalTech 2015-2017
'----------------------------------------------------------------------------
' File : ConstGen.vb       Data : 10.04.17        Versione : 1.8d1
' Contenuto : Modulo costanti generali.
'
'
'
' Modifiche : 10.04.17 DS Creazione modulo.
'
'
'----------------------------------------------------------------------------

Module ConstCommVar

   Public Enum NCTypes As Integer
      NULL = 0
      TPA = 1
      NUM_FLEXIUM = 2
      NUM_AXIUM_APSERVER = 3
      NUM_AXIUM_PCTOOLKIT = 4
   End Enum

   ' Assi
   Public Const ASSE_X As String = "AsseX"
   Public Const ASSE_Y As String = "AsseY"
   Public Const ASSE_Z As String = "AsseZ"
   Public Const ASSE_C As String = "AsseC"
   Public Const ASSE_B As String = "AsseB"
   ' variabili P eventi pezzo
   Public Const P_PROD As String = "P_Prod"
   Public Const P_MACHGROUP As String = "P_Machgroup"
   Public Const P_PART As String = "P_Part"
   Public Const P_STATE As String = "P_State"
   ' variabile stato di reset
   Public Const RESET_STATE As String = "Reset_State"
   Public Const START_STATE As String = "Start_State"
   Public Const STOP_STATE As String = "Stop_State"
   ' variabili V per anticipo carico
   Public Const VPAR As String = "V"
   ' numero del programma ISO
   Public Const ISO_NUM As String = "ISO_Num"
   ' programma inviato (mettere a 1 quando completato invio)
   Public Const ISO_SENT As String = "ISO_Sent"
   ' numero del programma ISO in corso
   Public Const RUNNING As String = "Running"
   ' indice della lavorazione in corso (pareti NUM)
   Public Const MACHINDEX As String = "MachIndex"
   ' indice dell'utensile montato sulla testa 1
   Public Const TOOLINDEX As String = "ToolIndex"
   ' indice dell'utensile montato sulla testa 1
   Public Const TOOLINDEX2 As String = "ToolIndex2"
   ' variabile per lettura errori PLC bit a bit
   Public Const PLC_MESSAGES As String = "PLC_Messages"
   ' variabile per leggere e scrivere permesso invio cn a macchina
   Public Const SENDPERMISSION As String = "SendPermission"

   Public Enum OPStates
      Start = 1
      [Stop] = 2
      [End] = 3
      SetPoint = 4
      Pending = 5
      Unspecified = 100
   End Enum

   Public Enum OPModes
      Auto = 0
      [Single] = 1
      Mdi = 2
      Manual = 7
      Home = 8
   End Enum

End Module
