Cloud-Automation / node-soem

Simple Open EtherCAT Master (SOEM) Port for Node.js
18 stars 9 forks source link

Ibytes / Obytes limited to 8 bytes ? #11

Closed lionel590 closed 1 year ago

lionel590 commented 1 year ago

Hi Stefan, is there any reason why you limit Ibytes, same applies to Obytes, to 8 bytes ? shouldn't we just make sure that num bytes reported by slave matches the bits ?

numbytes = ec_slave[i].Ibytes;
if ((numbytes == 0) && (ec_slave[i].Ibits > 0)) numbytes = 1;
if (numbytes > 8) numbytes = 8;

Rgds

stefanpoeter commented 1 year ago

Ohh, this is an old project and no longer supported :-) Feel free to fork and use it :-)