AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

ec_slave Struct Reference

ec_slave Struct Reference

for list of ethercat slaves detected More...

#include <ethercatmain.h>

Data Fields

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

Detailed Description

for list of ethercat slaves detected

Definition at line 104 of file ethercatmain.h.


Field Documentation

uint8 activeports

active ports bitmap : ....3210 , set if respective port is active

Definition at line 173 of file ethercatmain.h.

uint16 aliasadr

Alias address.

Definition at line 113 of file ethercatmain.h.

uint16 ALstatuscode

AL status code.

Definition at line 109 of file ethercatmain.h.

uint8 blockLRW

if >0 block use of LRW in processdata

Definition at line 221 of file ethercatmain.h.

uint8 CoEdetails

CoE details.

Definition at line 211 of file ethercatmain.h.

uint16 configadr

Configured address.

Definition at line 111 of file ethercatmain.h.

uint16 configindex

link to config table

Definition at line 203 of file ethercatmain.h.

consumed ports bitmap : ....3210, used for internal delay measurement

Definition at line 175 of file ethercatmain.h.

uint8 DCactive

DC sync activation, 0=off, 1=on.

Definition at line 201 of file ethercatmain.h.

int32 DCcycle

DC cycle time in ns.

Definition at line 197 of file ethercatmain.h.

uint16 DCnext

next DC slave

Definition at line 193 of file ethercatmain.h.

uint16 DCprevious

previous DC slave

Definition at line 195 of file ethercatmain.h.

int32 DCrtA

DC receivetimes on port A.

Definition at line 183 of file ethercatmain.h.

int32 DCrtB

DC receivetimes on port B.

Definition at line 185 of file ethercatmain.h.

int32 DCrtC

DC receivetimes on port C.

Definition at line 187 of file ethercatmain.h.

int32 DCrtD

DC receivetimes on port D.

Definition at line 189 of file ethercatmain.h.

int32 DCshift

DC shift from clock modulus boundary.

Definition at line 199 of file ethercatmain.h.

uint16 Dtype

Device type.

Definition at line 123 of file ethercatmain.h.

int16 Ebuscurrent

E-bus current.

Definition at line 219 of file ethercatmain.h.

uint8 eep_8byte

1 = 8 bytes per read, 0 = 4 bytes per read

Definition at line 207 of file ethercatmain.h.

uint32 eep_id

ID from EEprom.

Definition at line 117 of file ethercatmain.h.

uint32 eep_man

Manufacturer from EEprom.

Definition at line 115 of file ethercatmain.h.

uint8 eep_pdi

0 = eeprom to master , 1 = eeprom to PDI

Definition at line 209 of file ethercatmain.h.

uint32 eep_rev

revision from EEprom

Definition at line 119 of file ethercatmain.h.

uint8 entryport

port number on this slave the parent is connected to

Definition at line 181 of file ethercatmain.h.

uint8 EoEdetails

EoE details.

Definition at line 215 of file ethercatmain.h.

ec_fmmut FMMU[EC_MAXFMMU]

FMMU structure.

Definition at line 145 of file ethercatmain.h.

uint8 FMMU0func

FMMU0 function.

Definition at line 147 of file ethercatmain.h.

uint8 FMMU1func

FMMU1 function.

Definition at line 149 of file ethercatmain.h.

uint8 FMMU2func

FMMU2 function.

Definition at line 151 of file ethercatmain.h.

uint8 FMMU3func

FMMU3 function.

Definition at line 153 of file ethercatmain.h.

uint8 FMMUunused

first unused FMMU

Definition at line 225 of file ethercatmain.h.

uint8 FoEdetails

FoE details.

Definition at line 213 of file ethercatmain.h.

uint8 group

group

Definition at line 223 of file ethercatmain.h.

boolean hasdc

has DC capability

Definition at line 167 of file ethercatmain.h.

uint16 Ibits

input bits

Definition at line 133 of file ethercatmain.h.

uint32 Ibytes

input bytes, if Ibits < 8 then Ibytes = 0

Definition at line 135 of file ethercatmain.h.

uint8* inputs

input pointer in IOmap buffer

Definition at line 137 of file ethercatmain.h.

boolean islost

Boolean for tracking whether the slave is (not) responding, not used/set by the SOEM library.

Definition at line 227 of file ethercatmain.h.

uint8 Istartbit

startbit in first input byte

Definition at line 139 of file ethercatmain.h.

uint16 Itype

Interface type.

Definition at line 121 of file ethercatmain.h.

uint8 mbx_cnt

Counter value of mailbox link layer protocol 1..7.

Definition at line 165 of file ethercatmain.h.

uint16 mbx_l

length of write mailbox in bytes, if no mailbox then 0

Definition at line 155 of file ethercatmain.h.

uint16 mbx_proto

mailbox supported protocols

Definition at line 163 of file ethercatmain.h.

uint16 mbx_rl

length of read mailbox in bytes

Definition at line 159 of file ethercatmain.h.

uint16 mbx_ro

mailbox read offset

Definition at line 161 of file ethercatmain.h.

uint16 mbx_wo

mailbox write offset

Definition at line 157 of file ethercatmain.h.

char name[EC_MAXNAME+1]

readable name

Definition at line 231 of file ethercatmain.h.

uint16 Obits

output bits

Definition at line 125 of file ethercatmain.h.

uint32 Obytes

output bytes, if Obits < 8 then Obytes = 0

Definition at line 127 of file ethercatmain.h.

uint8 Ostartbit

startbit in first output byte

Definition at line 131 of file ethercatmain.h.

uint8* outputs

output pointer in IOmap buffer

Definition at line 129 of file ethercatmain.h.

uint16 parent

slave number for parent, 0=master

Definition at line 177 of file ethercatmain.h.

uint8 parentport

port number on parent this slave is connected to

Definition at line 179 of file ethercatmain.h.

int32 pdelay

propagation delay

Definition at line 191 of file ethercatmain.h.

int(* PO2SOconfig)(uint16 slave)

registered configuration function PO->SO

Definition at line 229 of file ethercatmain.h.

uint8 ptype

Physical type; Ebus, EtherNet combinations.

Definition at line 169 of file ethercatmain.h.

uint16 SIIindex

link to SII config

Definition at line 205 of file ethercatmain.h.

ec_smt SM[EC_MAXSM]

SM structure.

Definition at line 141 of file ethercatmain.h.

uint8 SMtype[EC_MAXSM]

SM type 0=unused 1=MbxWr 2=MbxRd 3=Outputs 4=Inputs.

Definition at line 143 of file ethercatmain.h.

uint8 SoEdetails

SoE details.

Definition at line 217 of file ethercatmain.h.

uint16 state

state of slave

Definition at line 107 of file ethercatmain.h.

uint8 topology

topology: 1 to 3 links

Definition at line 171 of file ethercatmain.h.