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

; General parameters ==================================================
HDD_Revision    = 1
Vendor_Name     = "HEIDENHAIN"
Model_Name      = "MB620"
;V3;1  HDD_file_Version =  "1.17"
;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 = "MB 620"
  Ident_Number = 50
;V3;1  State = "recommended"
;V3;1  Version = "1.00"
  Order_Number = "ID 617973"
  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 = "MB 620"
;V3;1    Ident_Number = 101
;V3;1    State = "recommended"
;V3;1    Version = "1.01"
;V3;1    VersionInfo = "Handwheel connector added", "Handradanschluss hinzugefgt"
;V3;1    nckMilestone = 11
;V3;1    Order_Number = "ID 617973"
;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 = "MB 620 FS"
  Ident_Number = 51
;V3;1  State = "outdated"
;V3;1  Version = "1.00"
  Order_Number = "ID ------"
  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 = "MB 620 FS"
;V3;1    Ident_Number = 1001
;V3;1    State = "recommended"
;V3;1    Version = "1.01"
;V3;1    VersionInfo = "Order number changed, X2.x corrected to X18.x", "Bestellnummer gendert, X2.x korrigiert zu X18.x"
;V3;1    Order_Number = "ID 660090"
;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 = "MB 620 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 660090"
;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",  input,  byteToBit, 0, 0, bit, 39
    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",      input,  byteToBit, 0, 0, bit, 39
    IO_Definition = "MB620-IN-KEYS-A",    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-B",    input,  byteToBit, 0, 0, bit, 40
    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",      input,  byteToBit, 0, 0, bit, 39
;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-B_II", input,  byteToBit, 0, 0, bit, 39
;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"
  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_UNUSED_KEY_S6",               "S6",  "S6"
  Text(6)   = "I_UNUSED_KEY_TOOL_CHANGE",      "S7",  "S7"
  Text(7)   = "I_UNUSED_KEY_LOCK_TOOL",        "S8",  "S8"
  Text(8)   = "I_UNUSED_KEY_S9",               "S9",  "S9"
  Text(9)   = "I_UNUSED_KEY_FN1",              "S10", "S10"
  Text(10)  = "I_UNUSED_KEY_EXT_COOLANT",      "S11", "S11"
  Text(11)  = "I_UNUSED_KEY_CHIP_REMOVAL",     "S12", "S12"
  Text(12)  = "I_UNUSED_KEY_S13",              "S13", "S13"
  Text(13)  = "I_UNUSED_KEY_AX_X_MINUS",       "S14", "S14"
  Text(14)  = "I_UNUSED_KEY_RAPID_TRAVERSE",   "S15", "S15"
  Text(15)  = "I_UNUSED_KEY_AX_X_PLUS",        "S16", "S16"
  Text(16)  = "I_UNUSED_KEY_RETRACT_AXIS",     "S17", "S17"
  Text(17)  = "I_UNUSED_KEY_PERMISSIVE_MODE",  "S18", "S18"
  Text(18)  = "I_UNUSED_KEY_S19",              "S19", "S19"
  Text(19)  = "I_UNUSED_KEY_S_JOG_CCW",        "S20", "S20"
  Text(20)  = "I_UNUSED_KEY_S_JOG_CW",         "S21", "S21"
  Text(21)  = "I_UNUSED_KEY_S22",              "S22", "S22"
  Text(22)  = "I_UNUSED_KEY_FN2",              "S23", "S23"
  Text(23)  = "I_UNUSED_KEY_INT_COOLANT",      "S24", "S24"
  Text(24)  = "I_UNUSED_KEY_CHIP_CONVEYER",    "S25", "S25"
  Text(25)  = "I_UNUSED_KEY_S26",              "S26", "S26"
  Text(26)  = "I_UNUSED_KEY_AX_Y_MINUS",       "S27", "S27"
  Text(27)  = "I_UNUSED_KEY_AX_Z_MINUS",       "S28", "S28"
  Text(28)  = "I_UNUSED_KEY_AX_4_MINUS",       "S29", "S29"
  Text(29)  = "I_UNUSED_KEY_AX_5_MINUS",       "S30", "S30"
  Text(30)  = "I_UNUSED_KEY_AX_6_MINUS",       "S31", "S31"
  Text(31)  = "I_UNUSED_KEY_S32",              "S32", "S32"
  Text(32)  = "I_UNUSED_KEY_S_STOP",           "S33", "S33"
  Text(33)  = "I_UNUSED_KEY_S_START",          "S34", "S34"
  Text(34)  = "I_UNUSED_KEY_S35",              "S35", "S35"
  Text(35)  = "I_UNUSED_KEY_FN3",              "S36", "S36"
  Text(36)  = "I_UNUSED_KEY_RINSE_WATER_JET",  "S37", "S37"
  Text(37)  = "I_UNUSED_KEY_GUARD_UNLOCK",     "S38", "S38"
  Text(38)  = "I_UNUSED_KEY_S39",              "S39", "S39"
EndIoDefText                                      

IoDefText = "MB620-IN-KEYS-A"
  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-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"
  Text(6)   = "",  "S107",  "S107"
  Text(7)   = "",  "S108",  "S108"
  Text(8)   = "",  "S109",  "S109"
  Text(9)   = "",  "S110",  "S110"
  Text(10)  = "",  "S111",  "S111"
  Text(11)  = "",  "S112",  "S112"
  Text(12)  = "",  "S113",  "S113"
  Text(13)  = "",  "S114",  "S114"
  Text(14)  = "",  "S115",  "S115"
  Text(15)  = "",  "S116",  "S116"
  Text(16)  = "",  "S117",  "S117"
  Text(17)  = "",  "S118",  "S118"
  Text(18)  = "",  "S119",  "S119"
  Text(19)  = "",  "S120",  "S120"
  Text(20)  = "",  "S121",  "S121"
  Text(21)  = "",  "S122",  "S122"
  Text(22)  = "",  "S123",  "S123"
  Text(23)  = "",  "S124",  "S124"
  Text(24)  = "",  "S125",  "S125"
  Text(25)  = "",  "S126",  "S126"
  Text(26)  = "",  "S127",  "S127"
  Text(27)  = "",  "S128",  "S128"
  Text(28)  = "",  "S129",  "S129"
  Text(29)  = "",  "S130",  "S130"
  Text(30)  = "",  "S131",  "S131"
  Text(31)  = "",  "S132",  "S132"
  Text(32)  = "",  "S133",  "S133"
  Text(33)  = "",  "S134",  "S134"
  Text(34)  = "",  "S135",  "S135"
  Text(35)  = "",  "S136",  "S136"
  Text(36)  = "",  "S137",  "S137"
  Text(37)  = "",  "S138",  "S138"
  Text(38)  = "",  "S139",  "S139"
  Text(39)  = "",  "X2.4",  "-ES.B.SMOP"
EndIoDefText
IoDefText = "MB620-IN-KEYS-B_II"
  Text(0)   = "",  "S101",  "S101"
  Text(1)   = "",  "S102",  "S102"
  Text(2)   = "",  "S103",  "S103"
  Text(3)   = "",  "S104",  "S104"
  Text(4)   = "",  "S105",  "S105"
  Text(5)   = "",  "S106",  "S106"
  Text(6)   = "",  "S107",  "S107"
  Text(7)   = "",  "S108",  "S108"
  Text(8)   = "",  "S109",  "S109"
  Text(9)   = "",  "S110",  "S110"
  Text(10)  = "",  "S111",  "S111"
  Text(11)  = "",  "S112",  "S112"
  Text(12)  = "",  "S113",  "S113"
  Text(13)  = "",  "S114",  "S114"
  Text(14)  = "",  "S115",  "S115"
  Text(15)  = "",  "S116",  "S116"
  Text(16)  = "",  "S117",  "S117"
  Text(17)  = "",  "S118",  "S118"
  Text(18)  = "",  "S119",  "S119"
  Text(19)  = "",  "S120",  "S120"
  Text(20)  = "",  "S121",  "S121"
  Text(21)  = "",  "S122",  "S122"
  Text(22)  = "",  "S123",  "S123"
  Text(23)  = "",  "S124",  "S124"
  Text(24)  = "",  "S125",  "S125"
  Text(25)  = "",  "S126",  "S126"
  Text(26)  = "",  "S127",  "S127"
  Text(27)  = "",  "S128",  "S128"
  Text(28)  = "",  "S129",  "S129"
  Text(29)  = "",  "S130",  "S130"
  Text(30)  = "",  "S131",  "S131"
  Text(31)  = "",  "S132",  "S132"
  Text(32)  = "",  "S133",  "S133"
  Text(33)  = "",  "S134",  "S134"
  Text(34)  = "",  "S135",  "S135"
  Text(35)  = "",  "S136",  "S136"
  Text(36)  = "",  "S137",  "S137"
  Text(37)  = "",  "S138",  "S138"
  Text(38)  = "",  "S139",  "S139"
EndIoDefText
IoDefText = "MB620-IN-ESB_II"
  Text(0)  = "",   "X18.4", "-ES.B.SMOP"
EndIoDefText


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

IoDefText = "MB620-IN-FIXED-A"
  Text(0)   = "I_UNUSED_HW_PERMISSION_BUTTON",  "X30.2", "I4.A"
  Text(1)   = "I_UNUSED_ES_HW",                 "X30.6", "-ES.A.HW"
  Text(2)   = "I_UNUSED_PERMISSION_BUTTON",     "X31.2", "I5.A"
  Text(3)   = "I_UNUSED_NC_START",              "X31.5", "I6.A"
  Text(4)   = "I_UNUSED_NC_STOP",               "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

