AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

ethercatdc.c File Reference

ethercatdc.c File Reference

Distributed Clock EtherCAT functions. More...

Go to the source code of this file.

Functions

void ecx_dcsync0 (ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift)
 Set DC of slave to fire sync0 at CyclTime interval with CyclShift offset.
void ecx_dcsync01 (ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift)
 Set DC of slave to fire sync0 and sync1 at CyclTime interval with CyclShift offset.
boolean ecx_configdc (ecx_contextt *context)
 Locate DC slaves, measure propagation delays.

Detailed Description

Distributed Clock EtherCAT functions.

Definition in file ethercatdc.c.


Function Documentation

boolean ecx_configdc ( ecx_contextt context )

Locate DC slaves, measure propagation delays.

Parameters:
[in]context= context struct
Returns:
boolean if slaves are found with DC

Definition at line 252 of file ethercatdc.c.

void ecx_dcsync0 ( ecx_contextt context,
uint16  slave,
boolean  act,
uint32  CyclTime,
int32  CyclShift 
)

Set DC of slave to fire sync0 at CyclTime interval with CyclShift offset.

Parameters:
[in]context= context struct
[in]slaveSlave number.
[in]actTRUE = active, FALSE = deactivated
[in]CyclTimeCycltime in ns.
[in]CyclShiftCyclShift in ns.

Definition at line 35 of file ethercatdc.c.

void ecx_dcsync01 ( ecx_contextt context,
uint16  slave,
boolean  act,
uint32  CyclTime0,
uint32  CyclTime1,
int32  CyclShift 
)

Set DC of slave to fire sync0 and sync1 at CyclTime interval with CyclShift offset.

Parameters:
[in]context= context struct
[in]slaveSlave number.
[in]actTRUE = active, FALSE = deactivated
[in]CyclTime0Cycltime SYNC0 in ns.
[in]CyclTime1Cycltime SYNC1 in ns. This time is a delta time in relation to the SYNC0 fire. If CylcTime1 = 0 then SYNC1 fires a the same time as SYNC0.
[in]CyclShiftCyclShift in ns.

Definition at line 94 of file ethercatdc.c.