SOEM
v1.3.0
|
#include <ethercatmain.h>
for list of ethercat slaves detected
uint8 ec_slavet::activeports |
active ports bitmap : ....3210 , set if respective port is active
uint16 ec_slavet::aliasadr |
Alias address
uint16 ec_slavet::ALstatuscode |
AL status code
uint8 ec_slavet::blockLRW |
if >0 block use of LRW in processdata
uint8 ec_slavet::CoEdetails |
CoE details
uint16 ec_slavet::configadr |
Configured address
uint16 ec_slavet::configindex |
link to config table
uint8 ec_slavet::consumedports |
consumed ports bitmap : ....3210, used for internal delay measurement
uint8 ec_slavet::DCactive |
DC sync activation, 0=off, 1=on
int32 ec_slavet::DCcycle |
DC cyle time in ns
uint16 ec_slavet::DCnext |
next DC slave
uint16 ec_slavet::DCprevious |
previous DC slave
int32 ec_slavet::DCrtA |
DC receivetimes on port A
int32 ec_slavet::DCrtB |
DC receivetimes on port B
int32 ec_slavet::DCrtC |
DC receivetimes on port C
int32 ec_slavet::DCrtD |
DC receivetimes on port D
int32 ec_slavet::DCshift |
DC shift from clock modulus boundary
uint16 ec_slavet::Dtype |
Device type
int16 ec_slavet::Ebuscurrent |
E-bus current
uint8 ec_slavet::eep_8byte |
1 = 8 bytes per read, 0 = 4 bytes per read
uint32 ec_slavet::eep_id |
ID from EEprom
uint32 ec_slavet::eep_man |
Manufacturer from EEprom
uint8 ec_slavet::eep_pdi |
0 = eeprom to master , 1 = eeprom to PDI
uint32 ec_slavet::eep_rev |
revision from EEprom
uint8 ec_slavet::entryport |
port number on this slave the parent is connected to
uint8 ec_slavet::EoEdetails |
EoE details
ec_fmmut ec_slavet::FMMU[EC_MAXFMMU] |
FMMU structure
uint8 ec_slavet::FMMU0func |
FMMU0 function
uint8 ec_slavet::FMMU1func |
FMMU1 function
uint8 ec_slavet::FMMU2func |
FMMU2 function
uint8 ec_slavet::FMMU3func |
FMMU3 function
uint8 ec_slavet::FMMUunused |
first unused FMMU
uint8 ec_slavet::FoEdetails |
FoE details
uint8 ec_slavet::group |
group
boolean ec_slavet::hasdc |
has DC capabillity
uint16 ec_slavet::Ibits |
input bits
uint32 ec_slavet::Ibytes |
input bytes, if Ibits < 8 then Ibytes = 0
uint8* ec_slavet::inputs |
input pointer in IOmap buffer
boolean ec_slavet::islost |
TRUE is slave is not responding at all
uint8 ec_slavet::Istartbit |
startbit in first input byte
uint16 ec_slavet::Itype |
Interface type
uint8 ec_slavet::mbx_cnt |
Counter value of mailbox link layer protocol 1..7
uint16 ec_slavet::mbx_l |
length of write mailbox in bytes, if no mailbox then 0
uint16 ec_slavet::mbx_proto |
mailbox supported protocols
uint16 ec_slavet::mbx_rl |
length of read mailbox in bytes
uint16 ec_slavet::mbx_ro |
mailbox read offset
uint16 ec_slavet::mbx_wo |
mailbox write offset
char ec_slavet::name[EC_MAXNAME+1] |
readable name
uint16 ec_slavet::Obits |
output bits
uint32 ec_slavet::Obytes |
output bytes, if Obits < 8 then Obytes = 0
uint8 ec_slavet::Ostartbit |
startbit in first output byte
uint8* ec_slavet::outputs |
output pointer in IOmap buffer
uint16 ec_slavet::parent |
slave number for parent, 0=master
uint8 ec_slavet::parentport |
port number on parent this slave is connected to
int32 ec_slavet::pdelay |
propagation delay
int(* ec_slavet::PO2SOconfig)(uint16 slave) |
registered configuration function PO->SO
uint8 ec_slavet::ptype |
Physical type; Ebus, EtherNet combinations
uint16 ec_slavet::SIIindex |
link to SII config
uint8 ec_slavet::SMtype[EC_MAXSM] |
SM type 0=unused 1=MbxWr 2=MbxRd 3=Outputs 4=Inputs
uint8 ec_slavet::SoEdetails |
SoE details
uint16 ec_slavet::state |
state of slave
uint8 ec_slavet::topology |
topology: 1 to 3 links