[etherlab-users] puzzle about ecrt_master_receive in cyclic_task

Richard Hacker ha at igh.de
Mon Feb 29 15:54:12 CET 2016


There is no waiting inside the ecrt_master_receive() function. If a 
packet is not there by the time this function is called, you get an 
error. You need to do the waiting in your program.

- Richard


Am 2016-02-29 um 13:57 schrieb Yin:
> Hi everyone, I have found the ethercat master will do some regular
> sending and receiving job
> to scan slaves on the bus when it was started. But when we run our
> application program, the
> /ecrt_master_receive /will be first executed in /cyclic_task/ function
> and  do sending in the last,
> that meas it can't receive frame sent by application program itself.
> So I want to know when the/cyclic_task/ function _be first __executed_,
> does the/ecrt_master_receive
> /will receive any frame or wait for a while and at the same time the
> master itself will also send and receive
> its own frame?
> Thanks a lot for attention!
> //
>
>
>
>
> --
> -------------------end---------------------
> am strong, therefore I am.
> --by Yin(^-^)
>
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>



More information about the Etherlab-users mailing list