Hi,

Indeed, some slaves are not in OP state. There are 6 slaves on my network, two 
of them are in PREOP state.

I can get their states using ethercat slaves -v command but when I run ethercat 
master command, master is in OP state.

Can master be considered as OP state if at least one slave is in OP state?


Best reagards


________________________________
De : Graeme Foot <graeme.f...@touchcut.com>
Envoyé : lundi 29 juin 2020 00:12
À : BUSSIERES Vincent; etherlab-users@etherlab.org
Objet : RE: AL States


Hi,



If you are using ecrt_master_state() the al_states parameter is filled in by 
all slaves with an OR operation.  So for each bit that is set you can interpret 
that as at least one slave was in that state.  If there is a state bit set you 
are not happy with (or expecting) then you will need to interrogate each slave 
individually to find out which slave(s) are in that state, using 
ecrt_slave_config_state().



On startup (or comms interruption and recovery) you can expect to see slaves at 
different stages on the way to OP mode.  If you are fully operational and you 
have a PREOP bit set, then you likely have a device that is not known so is not 
configured, or has the wrong address so it is not being attached to correctly.  
If a slave stays in SAFEOP then you probably have a configuration error, check 
the logs to figure out the problem.



Regards,

Graeme.



From: etherlab-users <etherlab-users-boun...@etherlab.org> On Behalf Of 
BUSSIERES Vincent
Sent: Friday, 26 June 2020 9:25 PM
To: etherlab-users@etherlab.org
Subject: [etherlab-users] AL States



Hello,



I’d like to display AL state in my HMI.



AL states are :

  *   Bit0 : INIT
  *   Bit1 : PREOP
  *   Bit2 : SAFEOP
  *   Bit3 : OP



But when I read AL states, states are respetively :



  *   0x02      (0010)
  *   0x03      (0011)
  *   0x0a      (1010)
  *   0x0e      (1110)
  *   0x0a      (1010)



So, in some cases I don’t know in which state I am ?

How can I determine AL State ?



Regards



Vincent BUSSIERES

Responsable Technique Logiciel



[1572337113342]

ZE Ma Campagne

36, Impasse Félix Nadar

16000 ANGOULEME

Tel: 33 (0)9.72.40.35.08

www.hemeria-group.com<https://webmail.nexeya.fr/owa/redir.aspx?C=GK_BqKCZef7LtPZnqnd_LGYr1NG9sz4Smy3iKIwO-pXqtJC7VgzXCA..&URL=http%3a%2f%2fwww.hemeria-group.com%2f>
P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce 
courriel qu'en cas de nécessité.

Ce message et les fichiers pouvant être attachés sont confidentiels, réservés à 
l'usage unique des destinataires et n'engagent HEMERIA sous aucune forme que ce 
soit.
This email and any files transmitted with it are confidential, intented solely 
for the unique use of the recipients and don't commit HEMERIA.






_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to