LinuxCNC and Beckhoff AX5000 servo drives

More
6 months 2 weeks ago - 6 months 2 weeks ago #345697 by Surmetall
Thanks, endian, for the converter. I tried to integrate my AX5125 into LinuxCNC. I converted the TwinCAT 3 export and tried to get it running in LinuxCNC. I can see the AX5125 as a slave and some of its pins. Unfortunately, I can’t get it from Pre-OP to OP mode. I’m definitely doing something wrong but I’m not sure where to look.

I hope someone can help. Which data do you need? I assume the .xml, .hal, and .ini files?

Is it okay if I post them here, or would it be better to start a separate thread? Thanks in advance.

Greetings
Tom
Last edit: 6 months 2 weeks ago by Surmetall.

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

More
6 months 2 weeks ago #345705 by endian
check this topic 

If it will not help you. let me know below

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

More
6 months 1 week ago #345782 by Surmetall
HEllo Endian,

thank you for the link i tried my best to fix it myself (and later with help of AI...) i hope i understood most of the problems.



I am trying to get a Beckhoff AX5125-0000-0216 running.

Current situation:
- LinuxCNC 2.9.8
- IgH EtherCAT master 1.6.8
- all other slaves on the real machine bus go OP
- only the AX5125 stays in PREOP / PREOP+ERROR

I also tested AX-only (only the AX connected to the LinuxCNC EtherCAT port, no other slaves) and it still does not go beyond PREOP. So it does not look like bus order / other slaves are the root cause.
It runs perfekt in TC3 also after  change from 2ms to 1ms i could jog it by hand.

What I already verified:
- TwinCAT project was switched to 1 ms
- exported again from TwinCAT
- converter run with c -i
- appTimePeriod = 1000000
- IDN 1 = e803
- IDN 2 = e803
- generated assignActivate 740 was changed to 730

Observed errors during the different attempts:
- AL status 0x0045: MBX_SOE
- AL status 0x001D: Invalid output configuration
- Writing IDN 0x80CC failed
- SoE configuration failed
- sometimes PDO entry 0x0024:00 is not mapped
- in AX-only test it still remains PREOP

Current result with LinuxCNC running:
- all non-AX slaves = OP
- AX5125 = PREOP E

I am attaching:
1. current ethercat-conf.xml
2. current initCmds/Antrieb-1-AX5-0-initCmds.xml
3. TwinCAT 1 ms export XML
4. ethercat slaves output
5. ethercat pdos -p 7 output
6. relevant dmesg output

Question:
Do you see an obvious issue in the AX SoE startup / telegram / DC setup, and what would be the correct minimal working config for AX5125-0000-0216 with lcec?





Thank you very very much for your time and help!

All the best
Tom

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

More
6 months 1 week ago #345786 by endian
Are u using current version of translator?

Because I can clearly see subindexes of pdos are 0x00 instead of 0x01 which is clear issue to me l... 

Download latest translator version and try export again.. versions before were buggy 

Check it or edit it manually(fastest) and let me know
The following user(s) said Thank You: Surmetall

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

More
6 months 1 week ago #345796 by Surmetall
Thanks for your quick reply. It is very possible that I made a mistake somewhere.For some reason, I am unable to create and download the ZIP file using the button in the top right. Is this the correct link? I get an error message whenever I try to generate and download the ZIP. Is this the correct link:  codeberg.org/endian/twincat3_to_lcec_eth...ator/src/branch/main  Because of that, I used AI assistance to download the data via the terminal instead. There is a high chance that something went wrong during that process.I will redo everything from scratch this evening: download, export, and convert it again, just to make sure nothing is going wrong on my end.I do feel a bit bad about it. There is now such a great configurator that makes the whole process manageable even for beginners, and I still somehow managed to get it wrong. Apparently there is always a dumbest possible user, and in this case, that would be me. :'(

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

More
6 months 1 week ago #345799 by endian
Download just the publish .exe file from here 

codeberg.org/endian/twincat3_to_lcec_eth.../branch/main/publish

Thats all you need ... Export working config from the TC3, open .exe file, type c -i, hit enter key, drag and drop file to open console, hit enter.... It starts and it will search through root folder of twincat to find real DC configs and it exports the .xml config of master to lcec shape with every startup SDOs which are very important... I did this translator just and only for this feature + some user friendly and free interface too...
The following user(s) said Thank You: Surmetall

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

Time to create page: 0.080 seconds
Powered by Kunena Forum