SOEM
v1.4.0
|
Example code for Simple Open EtherCAT master. More...
Functions | |
char * | dtype2string (uint16 dtype) |
char * | SDO2string (uint16 slave, uint16 index, uint8 subidx, uint16 dtype) |
int | si_PDOassign (uint16 slave, uint16 PDOassign, int mapoffset, int bitoffset) |
int | si_map_sdo (int slave) |
int | si_siiPDO (uint16 slave, uint8 t, int mapoffset, int bitoffset) |
int | si_map_sii (int slave) |
void | si_sdo (int cnt) |
void | slaveinfo (char *ifname) |
int | main (int argc, char *argv[]) |
Variables | |
char | IOmap [4096] |
ec_ODlistt | ODlist |
ec_OElistt | OElist |
boolean | printSDO = FALSE |
boolean | printMAP = FALSE |
char | usdo [128] |
char | hstr [1024] |
char | ifbuf [1024] |
Example code for Simple Open EtherCAT master.
Usage : slaveinfo [ifname] [-sdo] [-map] Ifname is NIC interface, f.e. eth0. Optional -sdo to display CoE object dictionary. Optional -map to display slave PDO mapping
This shows the configured slave data.
(c)Arthur Ketels 2010 - 2011
char* dtype2string | ( | uint16 | dtype | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
char* SDO2string | ( | uint16 | slave, |
uint16 | index, | ||
uint8 | subidx, | ||
uint16 | dtype | ||
) |
int si_map_sdo | ( | int | slave | ) |
int si_map_sii | ( | int | slave | ) |
int si_PDOassign | ( | uint16 | slave, |
uint16 | PDOassign, | ||
int | mapoffset, | ||
int | bitoffset | ||
) |
Read PDO assign structure
void si_sdo | ( | int | cnt | ) |
int si_siiPDO | ( | uint16 | slave, |
uint8 | t, | ||
int | mapoffset, | ||
int | bitoffset | ||
) |
void slaveinfo | ( | char * | ifname | ) |
char hstr[1024] |
char ifbuf[1024] |
char IOmap[4096] |
ec_ODlistt ODlist |
ec_OElistt OElist |
boolean printMAP = FALSE |
boolean printSDO = FALSE |
char usdo[128] |