I'm working with Linux ethercat igh master 1.5.2. It needs a configuration of the slave, that it is connected with. Such as pdo, sdo, vendor, product code, position, alias.
Here is my modification of "user" example. I tried to exchange data cyclically, but haven't got effect. Did anyone connect igh master and ICE board successfully?
// process data
static uint8_t *domain1_pd = NULL;
#define TexasPos 0, 2
#define TEXAS 0xE000059D, 0x54490001
// offsets for PDO entries
static unsigned int off_texas_value;
static unsigned int off_texas_status;
const static ec_pdo_entry_reg_t domain1_regs[] = {
{TexasPos, TEXAS, 0x1A00, 0, &off_texas_status},
{TexasPos, TEXAS, 0x1601, 0, &off_texas_value},
{}
};
static unsigned int counter = 0;
static unsigned int blink = 0;
/*****************************************************************************/
#if CONFIGURE_PDOS
// Texas ------------------------
static ec_pdo_entry_info_t texas_channels[] = {
{0x1A00, 0, 32}, // channel 1 status
{0x1601, 0, 32}, // channel 1 value
};
static ec_pdo_info_t texas_pdos[] = {
{0x1A00, 1, &texas_channels[0]},
{0x1601, 1, &texas_channels[1]}
};
static ec_sync_info_t texas_syncs[] = {
{0, EC_DIR_INPUT, 1, &texas_pdos[0]},
{1, EC_DIR_OUTPUT, 1, &texas_pdos[1]},
{0xff}
};
#endif