Macros | Functions
ethercatconfig.h File Reference

Headerfile for ethercatconfig.c. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EC_NODEOFFSET   0x1000
 
#define EC_TEMPNODE   0xffff
 

Functions

int ecx_config_init (ecx_contextt *context, uint8 usetable)
 
int ecx_config_map_group (ecx_contextt *context, void *pIOmap, uint8 group)
 
int ecx_config_overlap_map_group (ecx_contextt *context, void *pIOmap, uint8 group)
 
int ecx_reconfig_slave (ecx_contextt *context, uint16 slave, int timeout)
 
int ecx_recover_slave (ecx_contextt *context, uint16 slave, int timeout)
 

Detailed Description

Headerfile for ethercatconfig.c.

Definition in file ethercatconfig.h.

Macro Definition Documentation

◆ EC_NODEOFFSET

#define EC_NODEOFFSET   0x1000

Definition at line 19 of file ethercatconfig.h.

◆ EC_TEMPNODE

#define EC_TEMPNODE   0xffff

Definition at line 20 of file ethercatconfig.h.

Function Documentation

◆ ecx_config_init()

int ecx_config_init ( ecx_contextt context,
uint8  usetable 
)

Enumerate and init all slaves.

Parameters
[in]context= context struct
[in]usetable= TRUE when using configtable to init slaves, FALSE otherwise
Returns
Workcounter of slave discover datagram = number of slaves found

Definition at line 308 of file ethercatconfig.c.

◆ ecx_config_map_group()

int ecx_config_map_group ( ecx_contextt context,
void *  pIOmap,
uint8  group 
)

Map all PDOs in one group of slaves to IOmap with Outputs/Inputs in sequential order (legacy SOEM way).

Parameters
[in]context= context struct
[out]pIOmap= pointer to IOmap
[in]group= group to map, 0 = all groups
Returns
IOmap size

Definition at line 1172 of file ethercatconfig.c.

◆ ecx_config_overlap_map_group()

int ecx_config_overlap_map_group ( ecx_contextt context,
void *  pIOmap,
uint8  group 
)

Map all PDOs in one group of slaves to IOmap with Outputs/Inputs overlapping. NOTE: Must use this for TI ESC when using LRW.

Parameters
[in]context= context struct
[out]pIOmap= pointer to IOmap
[in]group= group to map, 0 = all groups
Returns
IOmap size

Definition at line 1350 of file ethercatconfig.c.

◆ ecx_reconfig_slave()

int ecx_reconfig_slave ( ecx_contextt context,
uint16  slave,
int  timeout 
)

Reconfigure slave.

Parameters
[in]context= context struct
[in]slave= slave to reconfigure
[in]timeout= local timeout f.e. EC_TIMEOUTRET3
Returns
Slave state

Definition at line 1551 of file ethercatconfig.c.

◆ ecx_recover_slave()

int ecx_recover_slave ( ecx_contextt context,
uint16  slave,
int  timeout 
)

Recover slave.

Parameters
[in]context= context struct
[in]slave= slave to recover
[in]timeout= local timeout f.e. EC_TIMEOUTRET3
Returns
>0 if successful

Definition at line 1488 of file ethercatconfig.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49