Skip to content

Asyncronous Event Based Data Access. #70

@Bit2Bi

Description

@Bit2Bi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions