master/types.c
changeset 67 56964b20c15d
parent 66 cab9cc6a2721
child 72 7c986b717411
equal deleted inserted replaced
66:cab9cc6a2721 67:56964b20c15d
    38 unsigned char sm2_41xx[] = {0x00, 0x10, 0x04, 0x00, 0x24, 0x00, 0x01, 0x00};
    38 unsigned char sm2_41xx[] = {0x00, 0x10, 0x04, 0x00, 0x24, 0x00, 0x01, 0x00};
    39 
    39 
    40 unsigned char sm2_5001[] = {0x00, 0x10, 0x04, 0x00, 0x24, 0x00, 0x01, 0x00};
    40 unsigned char sm2_5001[] = {0x00, 0x10, 0x04, 0x00, 0x24, 0x00, 0x01, 0x00};
    41 unsigned char sm3_5001[] = {0x00, 0x11, 0x05, 0x00, 0x20, 0x00, 0x01, 0x00};
    41 unsigned char sm3_5001[] = {0x00, 0x11, 0x05, 0x00, 0x20, 0x00, 0x01, 0x00};
    42 
    42 
       
    43 unsigned char sm2_5101[] = {0x00, 0x10, 0x03, 0x00, 0x24, 0x00, 0x01, 0x00};
       
    44 unsigned char sm3_5101[] = {0x00, 0x11, 0x05, 0x00, 0x20, 0x00, 0x01, 0x00};
       
    45 
    43 /*
    46 /*
    44   Konfigurationen der Memory-Management-Units
    47   Konfigurationen der Memory-Management-Units
    45 
    48 
    46   Byte   1-4: Logical Start Address (is set later)
    49   Byte   1-4: Logical Start Address (is set later)
    47   Byte   5-6: Length
    50   Byte   5-6: Length
    65 
    68 
    66 unsigned char fmmu0_41xx[] = {0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07,
    69 unsigned char fmmu0_41xx[] = {0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07,
    67                               0x00, 0x10, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00};
    70                               0x00, 0x10, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00};
    68 
    71 
    69 unsigned char fmmu0_5001[] = {0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x07,
    72 unsigned char fmmu0_5001[] = {0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x07,
       
    73                               0x00, 0x11, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00};
       
    74 
       
    75 unsigned char fmmu0_5101[] = {0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x07,
    70                               0x00, 0x11, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00};
    76                               0x00, 0x11, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00};
    71 
    77 
    72 /*****************************************************************************/
    78 /*****************************************************************************/
    73 
    79 
    74 /* Klemmen-Objekte */
    80 /* Klemmen-Objekte */
   125 {
   131 {
   126     "Beckhoff", "EL5001", "SSI-Interface",
   132     "Beckhoff", "EL5001", "SSI-Interface",
   127     EC_MAILBOX_SLAVE, sm0_multi, sm1_multi, sm2_5001, sm3_5001, fmmu0_5001, 5
   133     EC_MAILBOX_SLAVE, sm0_multi, sm1_multi, sm2_5001, sm3_5001, fmmu0_5001, 5
   128 };
   134 };
   129 
   135 
       
   136 ec_slave_type_t Beckhoff_EL5101 =
       
   137 {
       
   138     "Beckhoff", "EL5101", "Incremental Encoder Interface",
       
   139     EC_MAILBOX_SLAVE, sm0_multi, sm1_multi, sm2_5101, sm3_5101, fmmu0_5101, 5
       
   140 };
       
   141 
   130 /*****************************************************************************/
   142 /*****************************************************************************/
   131 
   143 
   132 /**
   144 /**
   133    Beziehung zwischen Identifikationsnummern und Klemmen-Objekt.
   145    Beziehung zwischen Identifikationsnummern und Klemmen-Objekt.
   134 
   146 
   145     {0x00000002, 0x07D43052, &Beckhoff_EL2004},
   157     {0x00000002, 0x07D43052, &Beckhoff_EL2004},
   146     {0x00000002, 0x0C1E3052, &Beckhoff_EL3102},
   158     {0x00000002, 0x0C1E3052, &Beckhoff_EL3102},
   147     {0x00000002, 0x0C5A3052, &Beckhoff_EL3162},
   159     {0x00000002, 0x0C5A3052, &Beckhoff_EL3162},
   148     {0x00000002, 0x10063052, &Beckhoff_EL4102},
   160     {0x00000002, 0x10063052, &Beckhoff_EL4102},
   149     {0x00000002, 0x10243052, &Beckhoff_EL4132},
   161     {0x00000002, 0x10243052, &Beckhoff_EL4132},
   150     {0x00000002, 0x13893052, &Beckhoff_EL5001}
   162     {0x00000002, 0x13893052, &Beckhoff_EL5001},
       
   163     {0x00000002, 0x13ED3052, &Beckhoff_EL5101}
   151 };
   164 };
   152 
   165 
   153 unsigned int slave_ident_count = sizeof(slave_idents)
   166 unsigned int slave_ident_count = sizeof(slave_idents)
   154      / sizeof(ec_slave_ident_t);
   167      / sizeof(ec_slave_ident_t);
   155 
   168