[etherlab-users] state of the slave
Florian Pose
fp at igh-essen.com
Wed Apr 14 15:25:23 CEST 2010
On Wed, Apr 14, 2010 at 01:03:06PM +0000, Juri Gerke wrote:
> I use the ecrt_slave_config_state( ) function to read the state of a
> salve. If I disconnect a slave during the cyclic phase, the state of
> other connected slaves switch from 8(OP) to 0. But it is still
> possible to read the correct process data of the connected ones. The
> command of the commandline-tool "ethercat slaves" shows that the
> master starts to scan the bus. If the scan finished, the states of
> the slaves switch back to 8(OP). Is there a faster way to get know
> the current state?
Yes, ecrt_domain_state().
--
Best regards,
Florian Pose
http://etherlab.org
More information about the Etherlab-users
mailing list