Ethercat AX5206 stuck in SAFEOP
18 Oct 2019 18:58 #148215
by cman1024
Ethercat AX5206 stuck in SAFEOP was created by cman1024
I am having trouble getting a Beckhoff AX5206 to transition into OP mode.
It is a dual channel servo drive and has two servo motors attached to it. In twincat it configures properly into the OP state. I am sending the identical SDO values to the drive under linuxcnc ethercat driver which works except it stays in SAFEOP instead of transitioning to OP.
The ethercat lcec driver starts properly and all of the PDO mappings are working appropriately. No errors are stored in the drive. I query all of the "error" related IDN's and they remain empty.
'S-0-0021 IDN-list of invalid operation data for CP2 (PreOp)' - empty
'S-0-0022 IDN-list of invalid operation data for CP3 (SafeOp)' - empty
On the same machine I also have 2 AX5125 drives. They are configured properly and go direclty into OP mode correctly.
Has anyone run into this issue? I saw somewhere in etherlab-users mailing list that someone had run into the drive not going into OP when they would configured both drives but it would go into OP mode when they configured only one of the drives (it didn't matter which) but there was no resolution posited for the issue.
in syslog - Ethercat is giving me an error on slave 8. timeout while setting state SAFEOP, but the drive is in SAFEOP state.
Any recomendations or ideas?
It is a dual channel servo drive and has two servo motors attached to it. In twincat it configures properly into the OP state. I am sending the identical SDO values to the drive under linuxcnc ethercat driver which works except it stays in SAFEOP instead of transitioning to OP.
The ethercat lcec driver starts properly and all of the PDO mappings are working appropriately. No errors are stored in the drive. I query all of the "error" related IDN's and they remain empty.
'S-0-0021 IDN-list of invalid operation data for CP2 (PreOp)' - empty
'S-0-0022 IDN-list of invalid operation data for CP3 (SafeOp)' - empty
On the same machine I also have 2 AX5125 drives. They are configured properly and go direclty into OP mode correctly.
Has anyone run into this issue? I saw somewhere in etherlab-users mailing list that someone had run into the drive not going into OP when they would configured both drives but it would go into OP mode when they configured only one of the drives (it didn't matter which) but there was no resolution posited for the issue.
in syslog - Ethercat is giving me an error on slave 8. timeout while setting state SAFEOP, but the drive is in SAFEOP state.
Any recomendations or ideas?
Please Log in or Create an account to join the conversation.
18 Oct 2019 19:33 - 18 Oct 2019 19:36 #148220
by chimeno
Replied by chimeno on topic Ethercat AX5206 stuck in SAFEOP
Hi cman1024, I use the BECKHOFF drivers of the AX5000 series and the truth is that they are a bit difficult to configure and usually fail also in the loss of synchronism, it seems to me that the problem you have is with one of the PDO? It could be that some configuration is wrong, the first thing you would do would be to configure only the driver first. I attached it to you
Regards
Chimeno
Regards
Chimeno
Last edit: 18 Oct 2019 19:36 by chimeno.
Please Log in or Create an account to join the conversation.
19 Oct 2019 13:05 #148318
by cman1024
Replied by cman1024 on topic Ethercat AX5206 stuck in SAFEOP
I think that the drive is taking too long to transition from PREOP to SAFEOP.
In syslog I found this:
EtherCAT ERROR 0-8: Timeout while setting state SAFEOP.
but the drive does ultimately end up in SAFEOP and has no errors.
It does take quite a few seconds to write all of the PDO's to that drive. Either I need to speed that process up, or increase the timeout of the ethercat component while it is waiting for the drive to change to SAFEOP.
Is there some setting that I could change? I haven't been able to find it.
In syslog I found this:
EtherCAT ERROR 0-8: Timeout while setting state SAFEOP.
but the drive does ultimately end up in SAFEOP and has no errors.
It does take quite a few seconds to write all of the PDO's to that drive. Either I need to speed that process up, or increase the timeout of the ethercat component while it is waiting for the drive to change to SAFEOP.
Is there some setting that I could change? I haven't been able to find it.
Please Log in or Create an account to join the conversation.
21 Oct 2019 18:25 - 21 Oct 2019 21:28 #148484
by chimeno
Replied by chimeno on topic Ethercat AX5206 stuck in SAFEOP
Hi cman1024,
As far as I know, it is only necessary more time in the AX5000x200 series, currently linuxcnc-ethercat expects each device to be in OP mode before moving on to the next one, which works in TWINCAT3 does not necessarily have to work in linuxcnc-ethercat, I am sorry not to be muya help, try to check the configuration that is all correct.
Regards
Chimeno
This is the change of must change in the igh ethertlab master
+#define EC_AL_STATE_CHANGE_TIMEOUT 15
As far as I know, it is only necessary more time in the AX5000x200 series, currently linuxcnc-ethercat expects each device to be in OP mode before moving on to the next one, which works in TWINCAT3 does not necessarily have to work in linuxcnc-ethercat, I am sorry not to be muya help, try to check the configuration that is all correct.
Regards
Chimeno
This is the change of must change in the igh ethertlab master
+#define EC_AL_STATE_CHANGE_TIMEOUT 15
Last edit: 21 Oct 2019 21:28 by chimeno.
Please Log in or Create an account to join the conversation.
24 Oct 2019 06:52 #148673
by chimeno
Replied by chimeno on topic Ethercat AX5206 stuck in SAFEOP
Hi cman1024,
I would like to know what configuration igh, debian, linuxcnc-ethercat, linuxcnc, applying the PLL patches of these using for the AX5000,
I would like to know what configuration igh, debian, linuxcnc-ethercat, linuxcnc, applying the PLL patches of these using for the AX5000,
Please Log in or Create an account to join the conversation.
28 Oct 2019 16:34 #148986
by cman1024
Replied by cman1024 on topic Ethercat AX5206 stuck in SAFEOP
Ok so I have solved this problem. The dual channel AX5000 does take a very long time to transition from PREOP->SAFEOP->OP.
I changed this in the ethercat master to 10 seconds.
+#define EC_AL_STATE_CHANGE_TIMEOUT 10
After that things have worked reliably.
I started out with the basic config that you gave me and that was able to get my drive to transition to OP. As I added more and more of the SDO config back in, it started to get back into the timeout error. Once I changed the ethercat driver to have a 10 second timeout, then things worked.
Thanks so much for your help!
I changed this in the ethercat master to 10 seconds.
+#define EC_AL_STATE_CHANGE_TIMEOUT 10
After that things have worked reliably.
I started out with the basic config that you gave me and that was able to get my drive to transition to OP. As I added more and more of the SDO config back in, it started to get back into the timeout error. Once I changed the ethercat driver to have a 10 second timeout, then things worked.
Thanks so much for your help!
The following user(s) said Thank You: chimeno
Please Log in or Create an account to join the conversation.
29 Oct 2019 18:30 #149066
by chimeno
Replied by chimeno on topic Ethercat AX5206 stuck in SAFEOP
hello cman1024,
I'm glad things worked for you and I could help you.
I'm glad things worked for you and I could help you.
Please Log in or Create an account to join the conversation.
30 Oct 2019 14:52 #149179
by BICHLER
Replied by BICHLER on topic Ethercat AX5206 stuck in SAFEOP
Hi
i am new to linuxcnc and i want beckhoff ethercat
use ax5000.
please ask for an explanation step by step.
Thank you very much
i am new to linuxcnc and i want beckhoff ethercat
use ax5000.
please ask for an explanation step by step.
Thank you very much
Please Log in or Create an account to join the conversation.
04 Nov 2019 20:22 - 04 Nov 2019 20:22 #149553
by chimeno
Replied by chimeno on topic Ethercat AX5206 stuck in SAFEOP
Hi BICHILER,
It is very difficult to give you a step-by-step manual on, although I will give you a summary:
1 - Install ISO kernel version RT-PREEMPT "linuxcnc.org/testing-stretch-rtpreempt/"
2 - Install the IGH driver version in two ways
- Simple EC-DEBIANIZE "github.com/sittner/ec-debianize"
- Complicated "github.com/ribalda/ethercat"
- Create your own configuration "etherlab.org/en/ethercat/"
3 - install linuxcnc-ethercat
- Simple "github.com/sittner/linuxcnc-ethercat"
4 -WINDOWS PC installs TWINCAT3 "beckhoff.com/twincat3"
5-you need an INTEL card to work in real time on the WINDOWS PC with TWINCAT3.
5 -WIRESHARK Installation "wireshark.org/"
6- Configure your AX5000 with SERVOMOTOR has to work in TWINCAT3 without configuration errors
7-Activate the WIRESHARK recorder to capture data from the NETWORK port and see the order in which the SOE packet configuration is sent, the order of the BYTES is correct to pass to linuxcnc-ethercat.
8- pass the configuration in an .XML file
9-configure linuxcnc-ethercat with a generic or predefined controller, there are examples
10-to run !!
The manual is a bit simple, but search, test, modify, and when you don't know more, ask!
I hope I have helped you
Regards
Chimeno
It is very difficult to give you a step-by-step manual on, although I will give you a summary:
1 - Install ISO kernel version RT-PREEMPT "linuxcnc.org/testing-stretch-rtpreempt/"
2 - Install the IGH driver version in two ways
- Simple EC-DEBIANIZE "github.com/sittner/ec-debianize"
- Complicated "github.com/ribalda/ethercat"
- Create your own configuration "etherlab.org/en/ethercat/"
3 - install linuxcnc-ethercat
- Simple "github.com/sittner/linuxcnc-ethercat"
4 -WINDOWS PC installs TWINCAT3 "beckhoff.com/twincat3"
5-you need an INTEL card to work in real time on the WINDOWS PC with TWINCAT3.
5 -WIRESHARK Installation "wireshark.org/"
6- Configure your AX5000 with SERVOMOTOR has to work in TWINCAT3 without configuration errors
7-Activate the WIRESHARK recorder to capture data from the NETWORK port and see the order in which the SOE packet configuration is sent, the order of the BYTES is correct to pass to linuxcnc-ethercat.
8- pass the configuration in an .XML file
9-configure linuxcnc-ethercat with a generic or predefined controller, there are examples
10-to run !!
The manual is a bit simple, but search, test, modify, and when you don't know more, ask!
I hope I have helped you
Regards
Chimeno
Last edit: 04 Nov 2019 20:22 by chimeno.
The following user(s) said Thank You: tommylight, BICHLER
Please Log in or Create an account to join the conversation.
18 Jan 2020 17:42 - 20 Jan 2020 08:51 #155105
by Stoneland
Replied by Stoneland on topic Ethercat AX5206 stuck in SAFEOP
Hi, cman1024
I have trouble getting a Beckhoff AX5203 with AX5801 safety card to work.
Ethercat driver is working ok and beckhoff io cards with EK1100 are working ok.
AX5203 works with twincat drive manager.
Can you (or anyone) share ethercat config, drive config and hal files?
I have trouble getting a Beckhoff AX5203 with AX5801 safety card to work.
Ethercat driver is working ok and beckhoff io cards with EK1100 are working ok.
AX5203 works with twincat drive manager.
Can you (or anyone) share ethercat config, drive config and hal files?
Last edit: 20 Jan 2020 08:51 by Stoneland.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds