master/types.c
changeset 195 674071846ee3
parent 153 32446a24c322
child 197 b9a6e2c22745
child 1618 5cff10efb927
equal deleted inserted replaced
194:c21e7c12dd50 195:674071846ee3
     1 /******************************************************************************
     1 /******************************************************************************
     2  *
     2  *
     3  *  t y p e s . c
     3  *  t y p e s . c
     4  *
     4  *
     5  *  EtherCAT-Slave-Typen.
     5  *  EtherCAT slave descriptions.
     6  *
     6  *
     7  *  $Id$
     7  *  $Id$
     8  *
     8  *
     9  *****************************************************************************/
     9  *****************************************************************************/
    10 
    10 
    16 /*****************************************************************************/
    16 /*****************************************************************************/
    17 
    17 
    18 const ec_sync_t mailbox_sm0 = {0x1800, 246, 0x26, {NULL}};
    18 const ec_sync_t mailbox_sm0 = {0x1800, 246, 0x26, {NULL}};
    19 const ec_sync_t mailbox_sm1 = {0x18F6, 246, 0x22, {NULL}};
    19 const ec_sync_t mailbox_sm1 = {0x18F6, 246, 0x22, {NULL}};
    20 
    20 
    21 /*****************************************************************************/
    21 /******************************************************************************
    22 
    22  *  slave objects
    23 /* Klemmen-Objekte */
    23  *****************************************************************************/
    24 
       
    25 /*****************************************************************************/
       
    26 
    24 
    27 const ec_slave_type_t Beckhoff_EK1100 = {
    25 const ec_slave_type_t Beckhoff_EK1100 = {
    28     "Beckhoff", "EK1100", "Bus Coupler", EC_TYPE_BUS_COUPLER,
    26     "Beckhoff", "EK1100", "Bus Coupler", EC_TYPE_BUS_COUPLER,
    29     {NULL} // Keine Sync-Manager
    27     {NULL} // no sync managers
    30 };
    28 };
    31 
    29 
    32 /*****************************************************************************/
    30 /*****************************************************************************/
    33 
    31 
    34 const ec_slave_type_t Beckhoff_EK1110 = {
    32 const ec_slave_type_t Beckhoff_EK1110 = {
    35     "Beckhoff", "EK1110", "Extension terminal", EC_TYPE_NORMAL,
    33     "Beckhoff", "EK1110", "Extension terminal", EC_TYPE_NORMAL,
    36     {NULL} // Keine Sync-Manager
    34     {NULL} // no sync managers
    37 };
    35 };
    38 
    36 
    39 /*****************************************************************************/
    37 /*****************************************************************************/
    40 
    38 
    41 const ec_slave_type_t Beckhoff_BK1120 = {
    39 const ec_slave_type_t Beckhoff_BK1120 = {
    42     "Beckhoff", "BK1120", "KBUS Coupler", EC_TYPE_NORMAL,
    40     "Beckhoff", "BK1120", "KBUS Coupler", EC_TYPE_NORMAL,
    43     {NULL} // Keine Sync-Manager
    41     {NULL} // no sync managers
    44 };
    42 };
    45 
    43 
    46 /*****************************************************************************/
    44 /*****************************************************************************/
    47 
    45 
    48 const ec_field_t el1014_in = {"InputValue", 1};
    46 const ec_field_t el1014_in = {"InputValue", 1};
    49 
    47 
    50 const ec_sync_t el1014_sm0 = { // Inputs
    48 const ec_sync_t el1014_sm0 = { // inputs
    51     0x1000, 1, 0x00,
    49     0x1000, 1, 0x00,
    52     {&el1014_in, NULL}
    50     {&el1014_in, NULL}
    53 };
    51 };
    54 
    52 
    55 const ec_slave_type_t Beckhoff_EL1014 = {
    53 const ec_slave_type_t Beckhoff_EL1014 = {
   193 };
   191 };
   194 
   192 
   195 /*****************************************************************************/
   193 /*****************************************************************************/
   196 
   194 
   197 /**
   195 /**
   198    Beziehung zwischen Identifikationsnummern und Klemmen-Objekt.
   196    Mapping between vendor IDs and product codes <=> slave objects.
   199 
       
   200    Diese Tabelle stellt die Beziehungen zwischen bestimmten Kombinationen
       
   201    aus Vendor-IDs und Product-Codes und der entsprechenden Klemme her.
       
   202    Neue Klemmen müssen hier eingetragen werden.
       
   203 */
   197 */
   204 
   198 
   205 ec_slave_ident_t slave_idents[] =
   199 ec_slave_ident_t slave_idents[] = {
   206 {
       
   207     {0x00000002, 0x03F63052, &Beckhoff_EL1014},
   200     {0x00000002, 0x03F63052, &Beckhoff_EL1014},
   208     {0x00000002, 0x044C2C52, &Beckhoff_EK1100},
   201     {0x00000002, 0x044C2C52, &Beckhoff_EK1100},
   209     {0x00000002, 0x04562C52, &Beckhoff_EK1110},
   202     {0x00000002, 0x04562C52, &Beckhoff_EK1110},
   210     //{0x00000002, 0x04602C22, &Beckhoff_BK1120},
   203     //{0x00000002, 0x04602C22, &Beckhoff_BK1120},
   211     {0x00000002, 0x07D43052, &Beckhoff_EL2004},
   204     {0x00000002, 0x07D43052, &Beckhoff_EL2004},
   220     {0x000000D4, 0x00000017, &TR_Electronic_LinEnc2},
   213     {0x000000D4, 0x00000017, &TR_Electronic_LinEnc2},
   221     {}
   214     {}
   222 };
   215 };
   223 
   216 
   224 /*****************************************************************************/
   217 /*****************************************************************************/
   225 
       
   226 /* Emacs-Konfiguration
       
   227 ;;; Local Variables: ***
       
   228 ;;; c-basic-offset:4 ***
       
   229 ;;; End: ***
       
   230 */