Can't set it to OP when configPdos is true

More
14 Aug 2024 10:06 - 15 Aug 2024 11:24 #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:
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
/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.
Last edit: 15 Aug 2024 11:24 by nmsk.

Please Log in or Create an account to join the conversation.

More
24 Sep 2024 14:19 #310710 by kworm
Replied by kworm on topic Can't set it to OP when configPdos is true
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 or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum