Can't set it to OP when configPdos is true

  • nmsk
  • Topic Author
  • New Member
  • New Member
More
2 years 2 months ago #307707 by nmsk
Hello, I've had this issue for a while now and I haven't found a proper solution for it, when my drives boot up first I need to configure the pdo mapping, I've done this first in Twincat 3 and I copied it to my xml file. When configpdos is true I get this error while it's trying to go to OP:
Code:
13726.682821] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [13726.684821] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".

I've found a workaround to this by first launching linuxcnc with configpdos as false,i get an error saying that it can't find the pdo then disconnecting the ethernet cable and connecting it again and then launching linuxcnc again, this always works and keeps the mapping I did at the beginning.
I'm currently using a script like this but while it works it doesn't feel right
Code:
/usr/bin/linuxcnc '/home/***/linuxcnc/configs/***/******.ini' #execute the ini for linuxcnc sleep 10 sudo ip link set eno1 down sleep 5 sudo ip link set eno1 up sleep 5 /usr/bin/linuxcnc '/home/***/linuxcnc/configs/***/******.ini' #execute the ini for linuxcnc


Is there a way to do this automatically, or maybe there's an issue I've overlooked.

Please Log in to join the conversation.

More
2 years 1 month ago #310710 by kworm
Hi nmsk,

In researching a similar issue I'm having I ran across this post:

forum.linuxcnc.org/ethercat/51505-new-hardware-trouble

Does your drive support EoE?  If so, this may be a fix as well although I don't know the root cause has been identified.

 

Please Log in to join the conversation.

Time to create page: 0.114 seconds
Powered by Kunena Forum