- reset activation register in ecx_set_slaves_to_default
This commit is contained in:
parent
1b0635ca28
commit
d7a3b608b3
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Simple Open EtherCAT Master Library
|
* Simple Open EtherCAT Master Library
|
||||||
*
|
*
|
||||||
* File : ethercatconfig.c
|
* File : ethercatconfig.c
|
||||||
@ -202,6 +202,8 @@ static void ecx_set_slaves_to_default(ecx_contextt *context)
|
|||||||
ecx_BWR(context->port, 0x0000, ECT_REG_RXERR , 8 , &zbuf, EC_TIMEOUTRET3); /* reset CRC counters */
|
ecx_BWR(context->port, 0x0000, ECT_REG_RXERR , 8 , &zbuf, EC_TIMEOUTRET3); /* reset CRC counters */
|
||||||
ecx_BWR(context->port, 0x0000, ECT_REG_FMMU0 , 16 * 3 , &zbuf, EC_TIMEOUTRET3); /* reset FMMU's */
|
ecx_BWR(context->port, 0x0000, ECT_REG_FMMU0 , 16 * 3 , &zbuf, EC_TIMEOUTRET3); /* reset FMMU's */
|
||||||
ecx_BWR(context->port, 0x0000, ECT_REG_SM0 , 8 * 4 , &zbuf, EC_TIMEOUTRET3); /* reset SyncM */
|
ecx_BWR(context->port, 0x0000, ECT_REG_SM0 , 8 * 4 , &zbuf, EC_TIMEOUTRET3); /* reset SyncM */
|
||||||
|
b = 0x00;
|
||||||
|
ecx_BWR(context->port, 0x0000, ECT_REG_DCSYNCACT , sizeof(b) , &b, EC_TIMEOUTRET3); /* reset activation register */
|
||||||
ecx_BWR(context->port, 0x0000, ECT_REG_DCSYSTIME , 4 , &zbuf, EC_TIMEOUTRET3); /* reset system time+ofs */
|
ecx_BWR(context->port, 0x0000, ECT_REG_DCSYSTIME , 4 , &zbuf, EC_TIMEOUTRET3); /* reset system time+ofs */
|
||||||
w = htoes(0x1000);
|
w = htoes(0x1000);
|
||||||
ecx_BWR(context->port, 0x0000, ECT_REG_DCSPEEDCNT , sizeof(w) , &w, EC_TIMEOUTRET3); /* DC speedstart */
|
ecx_BWR(context->port, 0x0000, ECT_REG_DCSPEEDCNT , sizeof(w) , &w, EC_TIMEOUTRET3); /* DC speedstart */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user