;=============================================================================
; JH_HSCI_TE645Q.HDD                                                         .
; Manufacturer: DR. JOHANNES HEIDENHAIN GmbH, Traunreut, Germany             .
; Contact:  service.plc@heidenhain.de                                        .
;                                                                            .
; for use with the HEIDENHAIN slave MB 620  - 3x13 matrix                    .
;  (TE 645Q/ TE 645Q FS)                                                     .
;                                                                            .
;=============================================================================
#Heidenhain_HSCI

; General parameters ==================================================
HDD_Revision    = 1
Vendor_Name     = "HEIDENHAIN"
Model_Name      = "MB620"
;V3;1  HDD_file_Version =  "1.18"
;V3;1  HDD_file_Date    =  "22.02.2016"


; Slave-Specification  ================================================
Max_Input_len     = 240       
Max_Output_len    = 240
Max_Data_len      = 240

Max_User_Prm_Data_Len = 230
Ext_User_Prm_Data_Const(0) = 0x0, 0x0, 0x0, 0xff 


; Slave-Distinction ===================================================
Slave = "TE 645 Q"
  Ident_Number = 50
;V3;1  State = "outdated"
;V3;1  Version = "1.00"
  Order_Number = "ID 682104"
  MandatoryModule = "Bus Module",     1,1
  MandatoryModule = "Digital Input",  2,0
  MandatoryModule = "Digital Output", 3,0
  MandatoryModule = "Override",       4,0
  MandatoryModule = "Analog",         5,1
  Max_Module = 5
  Channel_A_DeviceID = 6
  Channel_B_DeviceID = 0
EndSlave

;V3;1  Slave = "TE 645Q"
;V3;1    Ident_Number = 101
;V3;1    State = "recommended"
;V3;1    Version = "1.01"
;V3;1    VersionInfo = "Slave name changed", "Gertename gendert"
;V3;1    Order_Number = "ID 682104"
;V3;1    MandatoryModule = "Bus Module",     1,1
;V3;1    MandatoryModule = "Digital Input",  2,0
;V3;1    MandatoryModule = "Digital Output", 3,0
;V3;1    MandatoryModule = "Override",       4,0
;V3;1    MandatoryModule = "Analog",         5,1
;V3;1    Max_Module = 5
;V3;1    Channel_A_DeviceID = 6
;V3;1    Channel_B_DeviceID = 0
;V3;1  EndSlave

;V3;1  Slave = "TE 645Q"
;V3;1    Ident_Number = 102
;V3;1    State = "recommended"
;V3;1    Version = "1.02"
;V3;1    VersionInfo = "Handwheel connector added", "Handradanschluss hinzugefgt"
;V3;1    nckMilestone = 11
;V3;1    Order_Number = "ID 682104"
;V3;1    MandatoryModule = "Bus Module",     1,1
;V3;1    MandatoryModule = "Digital Input",  2,0
;V3;1    MandatoryModule = "Digital Output", 3,0
;V3;1    MandatoryModule = "Override",       4,0
;V3;1    MandatoryModule = "Analog",         5,1
;V3;1    SlaveConnector = "X23","Heidenhain_Handwheel","*"
;V3;1    Max_Module = 5
;V3;1    Channel_A_DeviceID = 6
;V3;1    Channel_B_DeviceID = 0
;V3;1  EndSlave

Slave = "TE 645 Q FS"
  Ident_Number = 51
;V3;1  State = "outdated"
;V3;1  Version = "1.00"
  Order_Number = "ID 685394"
  MandatoryModule = "Bus Module FS",    1,1
  MandatoryModule = "Digital Input FS", 2,0
  MandatoryModule = "Digital Output",   3,0
  MandatoryModule = "Override",         4,0
  MandatoryModule = "Analog",           5,1
  Max_Module = 5
  Channel_A_DeviceID = 6
  Channel_B_DeviceID = 7
EndSlave

;V3;1  Slave = "TE 645Q FS"
;V3;1    Ident_Number = 1001
;V3;1    State = "recommended"
;V3;1    Version = "1.01"
;V3;1    VersionInfo = "Slave name changed, X2.x corrected to X18.x", "Gertename gendert, X2.x korrigiert zu X18.x"
;V3;1    Order_Number = "ID 685394"
;V3;1    MandatoryModule = "Bus Module FS",    1,1
;V3;1    MandatoryModule = "3001",             2,0
;V3;1    MandatoryModule = "Digital Output",   3,0
;V3;1    MandatoryModule = "Override",         4,0
;V3;1    MandatoryModule = "Analog",           5,1
;V3;1    Max_Module = 5
;V3;1    Channel_A_DeviceID = 6
;V3;1    Channel_B_DeviceID = 7
;V3;1  EndSlave

;V3;1  Slave = "TE 645Q FS"
;V3;1    Ident_Number = 1002
;V3;1    State = "recommended"
;V3;1    Version = "1.02"
;V3;1    VersionInfo = "Handwheel connector added", "Handradanschluss hinzugefgt"
;V3;1    nckMilestone = 11
;V3;1    Order_Number = "ID 685394"
;V3;1    MandatoryModule = "Bus Module FS",    1,1
;V3;1    MandatoryModule = "3001",             2,0
;V3;1    MandatoryModule = "Digital Output",   3,0
;V3;1    MandatoryModule = "Override",         4,0
;V3;1    MandatoryModule = "Analog",           5,1
;V3;1    SlaveConnector = "X23","Heidenhain_Handwheel","*"
;V3;1    Max_Module = 5
;V3;1    Channel_A_DeviceID = 6
;V3;1    Channel_B_DeviceID = 7
;V3;1  EndSlave


; Module-Distinction ==================================================

; ---------------------------------------------------------------------
Module = "Bus Module"
  50
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x1B, 0x2B
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xF9
    ModuleDiag = "MODULE_DIAG_BM_ERR1A",     0, 0, diagBit, 7, 1
    ModuleDiag = "MODULE_DIAG_BM_ERR1B",     1, 0, diagBit, 8, 1
    ModuleDiag = "MODULE_DIAG_BM_ERR2A",     2, 0, diagBit, 7, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word05",    8, 0, diagBit,  5, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word06",   10, 0, diagBit,  4, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word07",   12, 0, diagBit,  4, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word17",   32, 0, diagBit,  6, 2
    ModuleDiag = "MODULE_DIAG_BusModule_Word25",   48, 0, diagBit,  1, 3
    ModuleDiag = "MODULE_DIAG_BusModule_Word31",   60, 0, diagBit,  2, 3
    ModuleDiag = "MODULE_DIAG_BusModule_Word32a",  62, 0, diagBit,  2, 2
    ModuleDiag = "MODULE_DIAG_BusModule_Word32b",  63, 0, diagBit,  8, 2
  EndModule_A
  Module_B = 0x00
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFF
  EndModule_B
EndModule

Module = "Bus Module FS"
  51
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x1B, 0x2B
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFA
    ModuleDiag = "MODULE_DIAG_BM_ERR1A",     0, 0, diagBit, 7, 1
    ModuleDiag = "MODULE_DIAG_BM_ERR1B",     1, 0, diagBit, 8, 1
    ModuleDiag = "MODULE_DIAG_BM_ERR2A",     2, 0, diagBit, 7, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word05",    8, 0, diagBit,  5, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word06",   10, 0, diagBit,  4, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word07",   12, 0, diagBit,  4, 1
    ModuleDiag = "MODULE_DIAG_BusModule_Word17",   32, 0, diagBit,  6, 2
    ModuleDiag = "MODULE_DIAG_BusModule_Word25",   48, 0, diagBit,  1, 3
    ModuleDiag = "MODULE_DIAG_BusModule_Word31",   60, 0, diagBit,  2, 3
    ModuleDiag = "MODULE_DIAG_BusModule_Word32a",  62, 0, diagBit,  2, 2
    ModuleDiag = "MODULE_DIAG_BusModule_Word32b",  63, 0, diagBit,  8, 2
  EndModule_A
  Module_B = 0x1B, 0x2B
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFA
  EndModule_B
EndModule

;DiagDefText="MODULE_DIAG_BusModule_Word01"
DiagDefText="MODULE_DIAG_BM_ERR1A"
  Text(0)   = "DNR_HSCI_UNDEFINED"
  Text(1)   = "DNR_HSCI_SPIFrameNumberError"
  Text(2)   = "DNR_HSCI_SPISlotIDError"
  Text(3)   = "DNR_HSCI_SPITypeOfDataError"
  Text(4)   = "DNR_HSCI_SPISizeOfDataFieldError"
  Text(5)   = "DNR_HSCI_SPICrcError"
  Text(6)   = "DNR_HSCI_SPIModuleErr123"
EndDiagDefText
DiagDefText="MODULE_DIAG_BM_ERR1B"
  Text(0)   = "DNR_HSCI_UNDEFINED"
  Text(1)   = "DNR_HSCI_CyclicTransferError"
  Text(2)   = "DNR_HSCI_SPITimeout"
  Text(3)   = "DNR_HSCI_ODTactiveError"
  Text(4)   = "DNR_HSCI_WrongIdent"
  Text(5)   = "DNR_HSCI_G112LowCyclicError"
  Text(6)   = "DNR_HSCI_SPIdDatareqError"
  Text(7)   = "DNR_HSCI_AnyError"
EndDiagDefText

;DiagDefText="MODULE_DIAG_BusModule_Word02"
DiagDefText="MODULE_DIAG_BM_ERR2A"
  Text(0)   = "DNR_HSCI_PowerSupply24VError"
  Text(1)   = "DNR_HSCI_PowerSupply5VError"
  Text(2)   = "DNR_HSCI_PowerSupply3_3VError"
  Text(3)   = "DNR_HSCI_PowerSupply1_5VError"
  Text(4)   = "DNR_HSCI_UNDEFINED"
  Text(5)   = "DNR_HSCI_PowerGoodError"
  Text(6)   = "DNR_HSCI_TemperatureError"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word05"
  Text(0)   = "DNR_HSCI_AnyError"
  Text(1)   = "DNR_HSCI_SPIdDatareqError"
  Text(2)   = "DNR_HSCI_BM_W5_WrongModuleSlotSequence"
  Text(3)   = "DNR_HSCI_BM_W5_RangeError"
  Text(4)   = "DNR_HSCI_BM_W5_STestTimeout"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word06"
  Text(0)   = "DNR_HSCI_BM_W6_WD_A_SPL"
  Text(1)   = "DNR_HSCI_BM_W6_WD_B_SPL"
  Text(2)   = "DNR_HSCI_BM_W6_HSCI_A_WD"
  Text(3)   = "DNR_HSCI_BM_W6_WD_A_STO"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word07"
  Text(0)   = "DNR_HSCI_G112LowCyclicError"
  Text(1)   = "DNR_HSCI_BM_W7_WrongCrc_FS"
  Text(2)   = "DNR_HSCI_BM_W7_WrongWatchdogCounter_FS"
  Text(3)   = "DNR_HSCI_BM_W7_WrongIdentification_FS"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word17"
  Text(0)   = "DNR_HSCI_BM_W17_PowerGoodErrorNC"
  Text(1)   = "DNR_HSCI_PowerGoodError"
  Text(2)   = "DNR_HSCI_PowerSupply24VError"
  Text(3)   = "DNR_HSCI_PowerSupply5VError"
  Text(4)   = "DNR_HSCI_PowerSupply3_3VError"
  Text(5)   = "DNR_HSCI_PowerSupply1_5VError"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word25"
  Text(0)   = "DNR_HSCI_TemperatureError"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word31"
  Text(0)   = "DNR_HSCI_ODTactiveError"
EndDiagDefText

DiagDefText="MODULE_DIAG_BusModule_Word32a"
  Text(0)   = "DNR_HSCI_AnyError"
  Text(1)   = "DNR_HSCI_BM_W32_DeviceNotPresent"
EndDiagDefText
DiagDefText="MODULE_DIAG_BusModule_Word32b"
  Text(0)   = "DNR_HSCI_UNDEFINED"
  Text(1)   = "DNR_HSCI_BM_W32_AcyclicLengthError"
  Text(2)   = "DNR_HSCI_BM_W32_AsyncCmdError"
  Text(3)   = "DNR_HSCI_BM_W32_UnknownSlotId"
  Text(4)   = "DNR_HSCI_BM_W32_AcyclicTimeout"
  Text(5)   = "DNR_HSCI_BM_W32_SubCommandNotAllowed"
  Text(6)   = "DNR_HSCI_BM_W32_FirmwareUpdateError"
  Text(7)   = "DNR_HSCI_BM_W32_DisableFirmwareBooting"
EndDiagDefText

;;  -----------------------------------------------------------------------    
Module = "Digital Input"
  52
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x17
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0B
    IO_Definition = "MB620-IN-KEYS-S1",   input,  byteToBit, 0, 0, bit, 5
    IO_Definition = "MB620-IN-KEYS-S7",   input,  byteToBit, 0, 6, bit, 2
    IO_Definition = "MB620-IN-KEYS-S10",  input,  byteToBit, 1, 1, bit, 3
    IO_Definition = "MB620-IN-KEYS-S14",  input,  byteToBit, 1, 5, bit, 5
    IO_Definition = "MB620-IN-KEYS-S20",  input,  byteToBit, 2, 3, bit, 2
    IO_Definition = "MB620-IN-KEYS-S23",  input,  byteToBit, 2, 6, bit, 3
    IO_Definition = "MB620-IN-KEYS-S27",  input,  byteToBit, 3, 2, bit, 5
    IO_Definition = "MB620-IN-KEYS-S33",  input,  byteToBit, 4, 0, bit, 2
    IO_Definition = "MB620-IN-KEYS-S36",  input,  byteToBit, 4, 3, bit, 3
    IO_Definition = "MB620-IN-FIXED",     input,  byteToBit, 5, 3, bit, 2 
    IO_Definition = "MB620-INPUT",        input,  byteToBit, 6, 0, bit, 8 
  EndModule_A
  Module_B = 0x00
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFF
  EndModule_B
EndModule

Module = "Digital Input FS"
  53
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x17
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0C
    IO_Definition = "MB620-IN-KEYS-S1",   input,  byteToBit, 0, 0, bit, 6
    IO_Definition = "MB620-IN-KEYS-S7",   input,  byteToBit, 0, 6, bit, 3
    IO_Definition = "MB620-IN-KEYS-S10",  input,  byteToBit, 1, 1, bit, 4
    IO_Definition = "MB620-IN-KEYS-S14",  input,  byteToBit, 1, 5, bit, 6
    IO_Definition = "MB620-IN-KEYS-S20",  input,  byteToBit, 2, 3, bit, 3
    IO_Definition = "MB620-IN-KEYS-S23",  input,  byteToBit, 2, 6, bit, 4
    IO_Definition = "MB620-IN-KEYS-S27",  input,  byteToBit, 3, 2, bit, 6
    IO_Definition = "MB620-IN-KEYS-S33",  input,  byteToBit, 4, 0, bit, 3
    IO_Definition = "MB620-IN-KEYS-S36",  input,  byteToBit, 4, 3, bit, 4
    IO_Definition = "MB620-IN-ESA",       input,  byteToBit, 4, 7, bit, 1
    IO_Definition = "MB620-IN-FIXED-A",   input,  byteToBit, 5, 0, bit, 8 
    IO_Definition = "MB620-INPUT-A",      input,  byteToBit, 6, 0, bit, 4 
  EndModule_A
  Module_B = 0x17
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0C
    IO_Definition = "MB620-IN-KEYS-S1-B",   input,  byteToBit, 0, 0, bit, 6
    IO_Definition = "MB620-IN-KEYS-S7-B",   input,  byteToBit, 0, 6, bit, 3
    IO_Definition = "MB620-IN-KEYS-S10-B",  input,  byteToBit, 1, 1, bit, 4
    IO_Definition = "MB620-IN-KEYS-S14-B",  input,  byteToBit, 1, 5, bit, 6
    IO_Definition = "MB620-IN-KEYS-S20-B",  input,  byteToBit, 2, 3, bit, 3
    IO_Definition = "MB620-IN-KEYS-S23-B",  input,  byteToBit, 2, 6, bit, 4
    IO_Definition = "MB620-IN-KEYS-S27-B",  input,  byteToBit, 3, 2, bit, 6
    IO_Definition = "MB620-IN-KEYS-S33-B",  input,  byteToBit, 4, 0, bit, 3
    IO_Definition = "MB620-IN-KEYS-S36-B",  input,  byteToBit, 4, 3, bit, 4
    IO_Definition = "MB620-IN-ESB",         input,  byteToBit, 4, 7, bit, 1
    IO_Definition = "MB620-IN-FIXED-B",     input,  byteToBit, 5, 0, bit, 8 
    IO_Definition = "MB620-INPUT-B",        input,  byteToBit, 6, 0, bit, 4 
  EndModule_B
EndModule

;V3;1 Module = "Digital Input FS"
;V3;1   3001
;V3;1   State = "recommended"
;V3;1   Version = "1.01"
;V3;1   VersionInfo = "X2.x corrected to X18.x", "X2.x korrigiert zu X18.x"
;V3;1   Module_A = 0x17
;V3;1     strictAdressing = 1
;V3;1     Ext_Module_Prm_Data_Len = 3
;V3;1     Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0C
;V3;1     IO_Definition = "MB620-IN-KEYS-S1",   input,  byteToBit, 0, 0, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S7",   input,  byteToBit, 0, 6, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S10",  input,  byteToBit, 1, 1, bit, 4
;V3;1     IO_Definition = "MB620-IN-KEYS-S14",  input,  byteToBit, 1, 5, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S20",  input,  byteToBit, 2, 3, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S23",  input,  byteToBit, 2, 6, bit, 4
;V3;1     IO_Definition = "MB620-IN-KEYS-S27",  input,  byteToBit, 3, 2, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S33",  input,  byteToBit, 4, 0, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S36",  input,  byteToBit, 4, 3, bit, 4
;V3;1     IO_Definition = "MB620-IN-ESA_II",    input,  byteToBit, 4, 7, bit, 1
;V3;1     IO_Definition = "MB620-IN-FIXED-A",   input,  byteToBit, 5, 0, bit, 8 
;V3;1     IO_Definition = "MB620-INPUT-A",      input,  byteToBit, 6, 0, bit, 4 
;V3;1   EndModule_A
;V3;1   Module_B = 0x17
;V3;1     strictAdressing = 1
;V3;1     Ext_Module_Prm_Data_Len = 3
;V3;1     Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0C
;V3;1     IO_Definition = "MB620-IN-KEYS-S1-B",   input,  byteToBit, 0, 0, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S7-B",   input,  byteToBit, 0, 6, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S10-B",  input,  byteToBit, 1, 1, bit, 4
;V3;1    IO_Definition = "MB620-IN-KEYS-S14-B",  input,  byteToBit, 1, 5, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S20-B",  input,  byteToBit, 2, 3, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S23-B",  input,  byteToBit, 2, 6, bit, 4
;V3;1     IO_Definition = "MB620-IN-KEYS-S27-B",  input,  byteToBit, 3, 2, bit, 6
;V3;1     IO_Definition = "MB620-IN-KEYS-S33-B",  input,  byteToBit, 4, 0, bit, 3
;V3;1     IO_Definition = "MB620-IN-KEYS-S36-B",  input,  byteToBit, 4, 3, bit, 4
;V3;1     IO_Definition = "MB620-IN-ESB_II",    input,  byteToBit, 4, 7, bit, 1
;V3;1     IO_Definition = "MB620-IN-FIXED-B",     input,  byteToBit, 5, 0, bit, 8 
;V3;1     IO_Definition = "MB620-INPUT-B",        input,  byteToBit, 6, 0, bit, 4 
;V3;1   EndModule_B
;V3;1 EndModule

IoDefText = "MB620-IN-KEYS-S1"
  Text(0)   = "I_UNUSED_KEY_AX_4_PLUS",        "S1", "S1"
  Text(1)   = "I_UNUSED_KEY_AX_Z_PLUS",        "S2", "S2"
  Text(2)   = "I_UNUSED_KEY_AX_Y_PLUS",        "S3", "S3"
  Text(3)   = "I_UNUSED_KEY_AX_5_PLUS",        "S4", "S4"
  Text(4)   = "I_UNUSED_KEY_AX_6_PLUS",        "S5", "S5"
  Text(5)   = "I_NOT_USABLE",                  "S6", "S6"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S7" 
  Text(0)   = "I_UNUSED_KEY_TOOL_CHANGE",      "S7", "S7"
  Text(1)   = "I_UNUSED_KEY_LOCK_TOOL",        "S8", "S8"
  Text(2)   = "I_NOT_USABLE",                  "S9", "S9"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S10" 
  Text(0)   = "I_UNUSED_KEY_FN1",              "S10", "S10"
  Text(1)   = "I_UNUSED_KEY_EXT_COOLANT",      "S11", "S11"
  Text(2)   = "I_UNUSED_KEY_CHIP_REMOVAL",     "S12", "S12"
  Text(3)   = "I_NOT_USABLE",                  "S13", "S13"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S14" 
  Text(0)   = "I_UNUSED_KEY_AX_X_MINUS",       "S14", "S14"
  Text(1)   = "I_UNUSED_KEY_RAPID_TRAVERSE",   "S15", "S15"
  Text(2)   = "I_UNUSED_KEY_AX_X_PLUS",        "S16", "S16"
  Text(3)   = "I_UNUSED_KEY_RETRACT_AXIS",     "S17", "S17"
  Text(4)   = "I_UNUSED_KEY_PERMISSIVE_MODE",  "S18", "S18"
  Text(5)   = "I_NOT_USABLE",                  "S19", "S19"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S20" 
  Text(0)   = "I_UNUSED_KEY_S_JOG_CCW",        "S20", "S20"
  Text(1)   = "I_UNUSED_KEY_S_JOG_CW",         "S21", "S21"
  Text(2)   = "I_NOT_USABLE",                  "S22", "S22"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S23" 
  Text(0)   = "I_UNUSED_KEY_FN2",              "S23", "S23"
  Text(1)   = "I_UNUSED_KEY_INT_COOLANT",      "S24", "S24"
  Text(2)   = "I_UNUSED_KEY_CHIP_CONVEYER",    "S25", "S25"
  Text(3)   = "I_NOT_USABLE",                  "S26", "S26"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S27" 
  Text(0)   = "I_UNUSED_KEY_AX_Y_MINUS",       "S27", "S27"
  Text(1)   = "I_UNUSED_KEY_AX_Z_MINUS",       "S28", "S28"
  Text(2)   = "I_UNUSED_KEY_AX_4_MINUS",       "S29", "S29"
  Text(3)   = "I_UNUSED_KEY_AX_5_MINUS",       "S30", "S30"
  Text(4)   = "I_UNUSED_KEY_AX_6_MINUS",       "S31", "S31"
  Text(5)   = "I_NOT_USABLE",                  "S32", "S32"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S33" 
  Text(0)  = "I_UNUSED_KEY_S_STOP",            "S33", "S33"
  Text(1)  = "I_UNUSED_KEY_S_START",           "S34", "S34"
  Text(2)  = "I_NOT_USABLE",                   "S35", "S35"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S36" 
  Text(0)  = "I_UNUSED_KEY_FN3",               "S36", "S36"
  Text(1)  = "I_UNUSED_KEY_RINSE_WATER_JET",   "S37", "S37"
  Text(2)  = "I_UNUSED_KEY_GUARD_UNLOCK",      "S38", "S38"
  Text(3)  = "I_NOT_USABLE",                   "S39", "S39"
EndIoDefText

IoDefText = "MB620-IN-ESA"
  Text(0)  = "I_UNUSED_ES_SMOP",               "X2.2", "-ES.A.SMOP"
EndIoDefText
IoDefText = "MB620-IN-ESA_II"
  Text(0)  = "I_UNUSED_ES_SMOP",               "X18.2", "-ES.A.SMOP"
EndIoDefText

IoDefText = "MB620-IN-KEYS-S1-B"
  Text(0)   = "",        "S101",  "S101"
  Text(1)   = "",        "S102",  "S102"
  Text(2)   = "",        "S103",  "S103"
  Text(3)   = "",        "S104",  "S104"
  Text(4)   = "",        "S105",  "S105"
  Text(5)   = "",        "S106",  "S106"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S7-B" 
  Text(0)   = "",        "S107", "S107"
  Text(1)   = "",        "S108", "S108"
  Text(2)   = "",        "S109", "S109"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S10-B" 
  Text(0)   = "",        "S110", "S110"
  Text(1)   = "",        "S111", "S111"
  Text(2)   = "",        "S112", "S112"
  Text(3)   = "",        "S113", "S113"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S14-B" 
  Text(0)   = "",        "S114", "S114"
  Text(1)   = "",        "S115", "S115"
  Text(2)   = "",        "S116", "S116"
  Text(3)   = "",        "S117", "S117"
  Text(4)   = "",        "S118", "S118"
  Text(5)   = "",        "S119", "S119"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S20-B" 
  Text(0)   = "",        "S120", "S120"
  Text(1)   = "",        "S121", "S121"
  Text(2)   = "",        "S122", "S122"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S23-B" 
  Text(0)   = "",        "S123", "S123"
  Text(1)   = "",        "S124", "S124"
  Text(2)   = "",        "S125", "S125"
  Text(3)   = "",        "S126", "S126"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S27-B" 
  Text(0)   = "",        "S127", "S127"
  Text(1)   = "",        "S128", "S128"
  Text(2)   = "",        "S129", "S129"
  Text(3)   = "",        "S130", "S130"
  Text(4)   = "",        "S131", "S131"
  Text(5)   = "",        "S132", "S132"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S33-B" 
  Text(0)   = "",        "S133", "S133"
  Text(1)   = "",        "S134", "S134"
  Text(2)   = "",        "S135", "S135"
EndIoDefText
IoDefText = "MB620-IN-KEYS-S36-B" 
  Text(0)   = "",        "S136", "S136"
  Text(1)   = "",        "S137", "S137"
  Text(2)   = "",        "S138", "S138"
  Text(3)   = "",        "S139", "S139"
EndIoDefText

IoDefText = "MB620-IN-ESB"
  Text(0)  = "",         "X2.4", "-ES.B.SMOP"
EndIoDefText
IoDefText = "MB620-IN-ESB_II"
  Text(0)  = "",         "X18.4", "-ES.B.SMOP"
EndIoDefText

IoDefText = "MB620-IN-FIXED"
  Text(0)   = "I_UNUSED",  "X31.5", "I8"
  Text(1)   = "I_UNUSED",  "X31.8", "I9"
EndIoDefText

IoDefText = "MB620-IN-FIXED-A"
  Text(0)   = "I_UNUSED",                       "X30.2", "I4.A"
  Text(1)   = "I_UNUSED_ES_HW",                 "X30.6", "-ES.A.HW"
  Text(2)   = "I_UNUSED",                       "X31.2", "I5.A"
  Text(3)   = "I_UNUSED",                       "X31.5", "I6.A"
  Text(4)   = "I_UNUSED",                       "X31.8", "I7.A"
  Text(5)   = "I_DUMMY",                        "--",    ""
  Text(6)   = "I_DUMMY",                        "--",    ""
  Text(7)   = "I_DUMMY",                        "--",    ""
EndIoDefText

IoDefText = "MB620-IN-FIXED-B"
  Text(0)   = "",                               "X30.4", "I4.B"         
  Text(1)   = "",                               "X30.8", "-ES.B.HW"     
  Text(2)   = "",                               "X31.4", "I5.B"         
  Text(3)   = "",                               "X31.6", "I6.B"         
  Text(4)   = "",                               "X31.9", "I7.B"         
  Text(5)   = "",                               "--",    ""             
  Text(6)   = "",                               "--",    ""             
  Text(7)   = "",                               "--",    "" 
EndIoDefText


IoDefText = "MB620-INPUT"
  Text(0)   = "I_UNUSED", "X6.1", "I0" 
  Text(1)   = "I_UNUSED", "X6.2", "I1"
  Text(2)   = "I_UNUSED", "X6.3", "I2"
  Text(3)   = "I_UNUSED", "X6.4", "I3"
  Text(4)   = "I_UNUSED", "X6.5", "I4"
  Text(5)   = "I_UNUSED", "X6.6", "I5"
  Text(6)   = "I_UNUSED", "X6.7", "I6"
  Text(7)   = "I_UNUSED", "X6.8", "I7"
EndIoDefText

IoDefText = "MB620-INPUT-A"
  Text(0)   = "I_UNUSED", "X6.1", "I0.A" 
  Text(1)   = "I_UNUSED", "X6.2", "I1.A"
  Text(2)   = "I_UNUSED", "X6.3", "I2.A"
  Text(3)   = "I_UNUSED", "X6.4", "I3.A"
EndIoDefText

IoDefText = "MB620-INPUT-B"
  Text(0)   = "",         "X6.5", "I0.B"
  Text(1)   = "",         "X6.6", "I1.B"
  Text(2)   = "",         "X6.7", "I2.B"
  Text(3)   = "",         "X6.8", "I3.B"
EndIoDefText


;;  -----------------------------------------------------------------------    
Module = "Digital Output"
  54
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x20
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0D
    IO_Definition = "MB620-OUTPUT", output, bitToBit,  0, 0, bit, 8
  EndModule_A
  Module_B = 0x00
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFF
  EndModule_B
EndModule

IoDefText = "MB620-OUTPUT"
  Text(0)   = "O_UNUSED", "X7.1", "O0"
  Text(1)   = "O_UNUSED", "X7.2", "O1"
  Text(2)   = "O_UNUSED", "X7.3", "O2"
  Text(3)   = "O_UNUSED", "X7.4", "O3"
  Text(4)   = "O_UNUSED", "X7.5", "O4"
  Text(5)   = "O_UNUSED", "X7.6", "O5"
  Text(6)   = "O_UNUSED", "X7.7", "O6"
  Text(7)   = "O_UNUSED", "X7.8", "O7"
EndIoDefText

;;  ----------------------------------------------------------------------- 
Module = "Override"
  55
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x52 
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0E
    IO_Definition = "MB620-IN-ANA-POTI", input, wordNoSwap, 0, 0, word, 3
  EndModule_A
  Module_B = 0x00
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFF
  EndModule_B
EndModule

IoDefText = "MB620-IN-ANA-POTI"
  Text(0)   = "IW_POTI_1", "X10.1", "Override1"
  Text(1)   = "IW_POTI_2", "X10.2", "Override2"
  Text(2)   = "IW_POTI_3", "X10.3", "Override3"
EndIoDefText


;;  ----------------------------------------------------------------------- 
Module = "Analog"
  56
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Module_A = 0x54 
    strictAdressing = 1
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0x0F
    ;IO_Definition = "MB620-IN-ANA-VOLT", input, wordNoSwap, 0, 0, word, 4
    ;IO_Definition = "MB620-IN-ANA-TEMP", input, wordNoSwap, 8, 0, word, 1
  EndModule_A
  Module_B = 0x00
    Ext_Module_Prm_Data_Len = 3
    Ext_User_Prm_Data_Const(0) = 0x03, 0x01, 0xFF
  EndModule_B
EndModule

IoDefText = "MB620-IN-ANA-VOLT"
  Text(0)   = "IW_ANALOG_3_3_VOLT", "internal", ""
  Text(1)   = "IW_ANALOG_5_VOLT",   "internal", ""
  Text(2)   = "IW_ANALOG_24_VOLT",  "internal", ""
  Text(3)   = "IW_ANALOG_1_5_VOLT", "internal", ""
EndIoDefText

IoDefText = "MB620-IN-ANA-TEMP"
  Text(0)   = "IW_TEMP_SENSOR",     "internal", ""
EndIoDefText

