You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am wondering if there is a suitable method to read data from slave on an event based pattern. In case of the native SOEM code what memory address or variable should be listened to?
Actually, I am reading the data from slave in a continous loop like:
`
do {
for (i = 0; i < oloop; i++) outData += *(ec_slave[0].outputs + i );
for (i = 0; i < iloop; i++) inData += *(ec_slave[0].inputs + i );
} while(true);
`
Helpful hints are much appreciated.
The text was updated successfully, but these errors were encountered:
If you want to know if a slave variable has changed, there is no built-in method to monitor changes. Data from all the slaves is collected in a single round-trip EtherCAT frame and simply copied to the IOMap array to which the .inputs and .outputs variables are pointing to.
Hello,
I am wondering if there is a suitable method to read data from slave on an event based pattern. In case of the native SOEM code what memory address or variable should be listened to?
Actually, I am reading the data from slave in a continous loop like:
`
do {
for (i = 0; i < oloop; i++) outData += *(ec_slave[0].outputs + i );
for (i = 0; i < iloop; i++) inData += *(ec_slave[0].inputs + i );
} while(true);
`
Helpful hints are much appreciated.
The text was updated successfully, but these errors were encountered: