[etherlab-users] PDO entry registration failed

peak peak peakpeak05 at yahoo.com
Tue Jul 26 07:50:54 CEST 2011


Hi, 

I think the problem is with your domain1_regs. It should be like:

const static ec_pdo_entry_reg_t domain1_regs[] = {
  {0, 0, AKD_ID, 0x1600, 0, &akd_out },  //0x1600
  {0, 0, AKD_ID, 0x1A00, 0, &akd_in },  //0x1A00
  {}
};








Hello,

I'm currently trying to free map a Kollmorgen AKD servo 
drive and having difficulties with the ecrt_domain_reg_pdo_entry_list 
call. Using your 
RTAI example code as a baseline...with etherlab1.5

static ec_master_t *master = NULL;
static ec_master_state_t master_state = {};
spinlock_t master_lock = SPIN_LOCK_UNLOCKED;

// process data
static uint8_t *domain1_pd; // process data memory
static ec_domain_t *domain1 = NULL;
static ec_domain_state_t domain1_state = {};

#define AKD_ID 0x0000006A, 0x00414B44
static unsigned int akd_in ,  in_nada; // offsets for PDO entries
static unsigned int akd_out, out_nada;

ec_slave_config_state_t ss;

const static ec_pdo_entry_reg_t domain1_regs[] = {
  {0, 0, AKD_ID, 0x1600, 0, &akd_out , &out_nada },  //0x1600
  {0, 0, AKD_ID, 0x1A00, 0, &akd_in  , &in_nada  },  //0x1A00
  {}
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20110725/e9b7cb3b/attachment-0004.htm>


More information about the Etherlab-users mailing list