[etherlab-users] How to check if all slaves have reached operational state?

2018-10-04 Thread Mohsen Alizadeh Noghani
Dear EtherLab users,
After activating the master and starting frame exchange, is there a way to
check whether all states have reached operational?
*Additional info:*
Currently, in my code
, I just
send empty frames for long enough (trial and error) so that when I exit the
loop, my slaves (servo drives) are in OP state.
I have tried checking the working counter in the loop and exiting from it
after the domain's working counter becomes equal to our expected value.
However, there is still a small delay after that happens and the second
slave reaching operational state.
Best,
Mohsen
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] How to check if all slaves have reached operational state?

2018-10-04 Thread Ian Prochazka
Would user command from OS console give you the answer:

x@x::~$ ethercat slaves



The ethercat commands can be used while your application is running. Try 
'ethercat --help' for other options



Best regards,

Ian




From: etherlab-users [etherlab-users-boun...@etherlab.org] On Behalf Of Mohsen 
Alizadeh Noghani [m.aliza...@gmail.com]
Sent: Thursday, October 04, 2018 3:06 AM
To: etherlab-users@etherlab.org
Subject: [etherlab-users] How to check if all slaves have reached operational 
state?

Dear EtherLab users,
After activating the master and starting frame exchange, is there a way to 
check whether all states have reached operational?
Additional info:
Currently, in my 
code, I just 
send empty frames for long enough (trial and error) so that when I exit the 
loop, my slaves (servo drives) are in OP state.
I have tried checking the working counter in the loop and exiting from it after 
the domain's working counter becomes equal to our expected value. However, 
there is still a small delay after that happens and the second slave reaching 
operational state.
Best,
Mohsen
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users