Example code for Simple Open EtherCAT master. More...
Go to the source code of this file.
Functions | |
void | main (int argc, char *argv[]) |
void | slaveinfo (char *ifname) |
Variables | |
static ecx_contextt | ctx [] |
int64 | ec_DCtime |
int64 | ec_DCtime2 |
static ec_eringt | ec_elist |
static ec_eringt | ec_elist2 |
static ec_eepromFMMUt | ec_FMMU |
static ec_eepromFMMUt | ec_FMMU2 |
ec_groupt | ec_groups [EC_MAXGROUP] |
ec_groupt | ec_groups2 [EC_MAXGROUP] |
static ec_idxstackT | ec_idxstack |
static ec_idxstackT | ec_idxstack2 |
static ec_PDOassignt | ec_PDOassign |
static ec_PDOassignt | ec_PDOassign2 |
static ec_PDOdesct | ec_PDOdesc |
static ec_PDOdesct | ec_PDOdesc2 |
ec_slavet | ec_slave [EC_MAXSLAVE] |
ec_slavet | ec_slave2 [EC_MAXSLAVE] |
int | ec_slavecount |
int | ec_slavecount2 |
static ec_eepromSMt | ec_SM |
static ec_eepromSMt | ec_SM2 |
static ec_SMcommtypet | ec_SMcommtype |
static ec_SMcommtypet | ec_SMcommtype2 |
static boolean | EcatError = FALSE |
static boolean | EcatError2 = FALSE |
static ecx_portt | ecx_port |
static ecx_portt | ecx_port2 |
static uint8 | esibuf [EC_MAXEEPBUF] |
static uint8 | esibuf2 [EC_MAXEEPBUF] |
static uint32 | esimap [EC_MAXEEPBITMAP] |
static uint32 | esimap2 [EC_MAXEEPBITMAP] |
char | IOmap [4096] |
char | IOmap2 [4096] |
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
Definition in file ec_master.c.
void main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 345 of file ec_master.c.
void slaveinfo | ( | char * | ifname | ) |
Definition at line 146 of file ec_master.c.
|
static |
Definition at line 99 of file ec_master.c.
int64 ec_DCtime |
Definition at line 92 of file ec_master.c.
int64 ec_DCtime2 |
Definition at line 93 of file ec_master.c.
|
static |
current slave for EEPROM cache buffer
Definition at line 66 of file ec_master.c.
|
static |
Definition at line 67 of file ec_master.c.
|
static |
buffer for EEPROM FMMU data
Definition at line 85 of file ec_master.c.
|
static |
Definition at line 86 of file ec_master.c.
ec_groupt ec_groups[EC_MAXGROUP] |
slave group structure
Definition at line 56 of file ec_master.c.
ec_groupt ec_groups2[EC_MAXGROUP] |
Definition at line 57 of file ec_master.c.
|
static |
Definition at line 68 of file ec_master.c.
|
static |
Definition at line 69 of file ec_master.c.
|
static |
PDO assign struct to store data of one slave
Definition at line 75 of file ec_master.c.
|
static |
Definition at line 76 of file ec_master.c.
|
static |
PDO description struct to store data of one slave
Definition at line 78 of file ec_master.c.
|
static |
Definition at line 79 of file ec_master.c.
Main slave data array. Each slave found on the network gets its own record. ec_slave[0] is reserved for the master. Structure gets filled in by the configuration function ec_config().
Definition at line 50 of file ec_master.c.
ec_slavet ec_slave2[EC_MAXSLAVE] |
Definition at line 51 of file ec_master.c.
int ec_slavecount |
number of slaves found on the network
Definition at line 53 of file ec_master.c.
int ec_slavecount2 |
Definition at line 54 of file ec_master.c.
|
static |
buffer for EEPROM SM data
Definition at line 82 of file ec_master.c.
|
static |
Definition at line 83 of file ec_master.c.
|
static |
SyncManager Communication Type struct to store data of one slave
Definition at line 72 of file ec_master.c.
|
static |
Definition at line 73 of file ec_master.c.
Global variable TRUE if error available in error stack
Definition at line 89 of file ec_master.c.
Definition at line 90 of file ec_master.c.
Definition at line 95 of file ec_master.c.
|
static |
Definition at line 96 of file ec_master.c.
|
static |
cache for EEPROM read functions
Definition at line 60 of file ec_master.c.
|
static |
Definition at line 61 of file ec_master.c.
|
static |
bitmap for filled cache buffer bytes
Definition at line 63 of file ec_master.c.
|
static |
Definition at line 64 of file ec_master.c.
char IOmap[4096] |
Definition at line 42 of file ec_master.c.
char IOmap2[4096] |
Definition at line 43 of file ec_master.c.