Custom EtherCAT device
- smc.collins
- Offline
- Platinum Member
Less
More
- Posts: 676
- Thank you received: 117
25 May 2023 22:54 #272174
by smc.collins
Replied by smc.collins on topic Custom EtherCAT device
The following user(s) said Thank You: Tady
Please Log in or Create an account to join the conversation.
26 May 2023 05:32 #272186
by Tady
Replied by Tady on topic Custom EtherCAT device
Very intersting device, but its hard to source and expensive and the pin count is too big (176 pins) or it's a BGA package. Not really good for a hobby. Also I'm familiar with STM32 programming or Arduino so I would need to learn the TI sprcific registers, their IDE and a their programmer would be needed. And I don't know their gotchas with there MCUs
Please Log in or Create an account to join the conversation.
26 May 2023 06:29 #272190
by Tady
Replied by Tady on topic Custom EtherCAT device
Well it works. There were two problems. First I browsed trough the source of linuxcnc-ethercat and found that instead of halType="float" I needed to use halType="float-ieee".
Second thing is that "github.com/sittner/linuxcnc-ethercat.git" has a bug, but there is a fork that has this fixed but it was not merged. I used "github.com/djsftree/linuxcnc-ethercat.git" and it work like a charm
RODW maybe you should change your tutorial to use this repo?
Second thing is that "github.com/sittner/linuxcnc-ethercat.git" has a bug, but there is a fork that has this fixed but it was not merged. I used "github.com/djsftree/linuxcnc-ethercat.git" and it work like a charm
RODW maybe you should change your tutorial to use this repo?
Please Log in or Create an account to join the conversation.
26 May 2023 07:48 #272193
by rodw
Replied by rodw on topic Custom EtherCAT device
Great you got it going. I had In my sticky, I added a spoiler that included an update to one of sitners files.
My guess Is the second repo has copied that fix. (I helped him out a bit off forum)
I did not want to deviate too far from the normal repos like Sittner's
My guess Is the second repo has copied that fix. (I helped him out a bit off forum)
I did not want to deviate too far from the normal repos like Sittner's
Please Log in or Create an account to join the conversation.
26 May 2023 07:57 #272194
by Tady
Replied by Tady on topic Custom EtherCAT device
I understand and I'm with you 100%. If you lnow him off forum maybe you can ask him for the fix? So nobody euns in to similar problems?
Please Log in or Create an account to join the conversation.
26 May 2023 08:06 #272195
by rodw
Replied by rodw on topic Custom EtherCAT device
Some people have got it going with sitners version so I have been a bit careful here.
Recently I found Sitners version worked but when I ran it, it errored so I rebuilt it with the changes and it worked.
I have thought of forking his repo and making the changes but I have a few things to do before I get back to Ethercat.
If you want another challenge write a Linuxcnc custom homing module for Ethercat cia402 drives
I started than the devs changed the core code....
Recently I found Sitners version worked but when I ran it, it errored so I rebuilt it with the changes and it worked.
I have thought of forking his repo and making the changes but I have a few things to do before I get back to Ethercat.
If you want another challenge write a Linuxcnc custom homing module for Ethercat cia402 drives
I started than the devs changed the core code....
Please Log in or Create an account to join the conversation.
26 May 2023 08:10 #272196
by Tady
Replied by Tady on topic Custom EtherCAT device
I have absolutley no knowlidge of the CIA402 protocol, and i have no drives
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
26 May 2023 08:52 #272200
by sivaraj
Replied by sivaraj on topic Custom EtherCAT device
May be worth look at this
github.com/kubabuda/ecat_servo
github.com/kubabuda/ecat_servo
Please Log in or Create an account to join the conversation.
26 May 2023 08:52 #272201
by Tady
Replied by Tady on topic Custom EtherCAT device
If you ask me you should clone his repo. I think there is not much activity there and some fixes have been submitted, but none if them were implemented or at least commented on why not
Please Log in or Create an account to join the conversation.
26 May 2023 09:05 #272202
by Tady
Replied by Tady on topic Custom EtherCAT device
I found this.. A bit misleading. There is no servo code there only the implementation for CIA. This is based on easycat library, its the same as mine. I only ported it to STM32Cube. But yes ok I see it has 402 implementation. Ehat I don't understand is why is there an extra module for linuxcnc to use the CiA protocol.. Isn't this only a definition of the PDOs?
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds