在这里面主要用到的是ecx_configdc、ecx_dcsync0、ecx_dcsync01、ecx_porttime、ecx_prevport、ecx_parentport ecx_porttime staticint32ecx_porttime(ecx_contextt*context,uint16 slave,uint8 port){...} 这个函数很简单,就是根据输入的从站编号和端口编号返回端口锁存的时间,也就是示例图中的tA0,tB0,tC0...
With my PATCH, you can call in PRE_OP ec_configdc(). After that immediately (<100ms) you call ec_dcsync0( slave , ...), that start the SYNC0 Impuls in the future ... Look at ecx_dcsync0() in ethercatdc.c t = ((t1 + SyncDelay) / CyclTime) * CyclTime + CyclTime + Cyc...
I assume the next troubleshooting step would be the ec_dcsync0 testing - I tried setting that on WIN32, but we will see on RPi Author keithiscool commented Jun 24, 2024 I tried using "ecx_context.manualstatechange = 1;" without success Any ideas why the drive state reads 0x08 (OPER...
[1].blockLRW = 1; ecx_context.grouplist[0].blockLRW = 1; // Configure Distributed Clocks ec_configdc(); ec_dcsync0(1, TRUE, 1000000U, 0); // Configure IOMAP ec_config_map(&IOmap); // TI suggested work-around; // set the system time delay to 1...
Simple Open Source EtherCAT Master. Contribute to tomyqg/SOEM development by creating an account on GitHub.
Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} zhang-jinyu / SOEM Public forked from OpenEtherCATsociety/SOEM Notifications You must be signed in to change notification settings Fork 0 Star 0 ...
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/ ...
Simple Open Source EtherCAT Master. Contribute to zhang-jinyu/SOEM development by creating an account on GitHub.
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 */ b = 0x00; ecx_BWR(context->port, ...
Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} zhang-jinyu / SOEM Public forked from OpenEtherCATsociety/SOEM Notifications You must be signed in to change notification settings Fork 0 Star 0 ...