Ethercat Setup help needed for beginner

More
7 months 6 days ago #344770 by Spezidrohne
Hi,
i am verry new to LinuxCNC and want to build a machine. The Axis will be made with Stepperonline A6 Servos with ethercat. But i´m stuck at the ethercat configuration, as I basically dont know anything about it. All i know is that i need an .hal, .ini, .xml and .conf file. I have already installed the ethercat drivers with the guide from rodw and can set the preop/ini mode via the Ethercat slave ... command. What do i do next? I have opended and created a machine, with the axis sim preset, now with the folders in my home directory. How do i create the needed files and integrate them, so it works? I have looked through multiple topics on the forum, but cant get any wiser with them. As I said, total beginner. Any step by step help much appreciated.

Thanks.
Spezi

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

More
7 months 5 days ago #344815 by Hakan
Basically what you do is replace the motion part of the sim config with the ethercat motion.
Here is an example I often refer to. You do need the cia402 component as well.
github.com/dbraun1981/hal-cia402/tree/main/example

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

More
7 months 5 days ago #344828 by Spezidrohne
So i just take those files and copy them in the folder of my machine?

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

More
7 months 5 days ago #344847 by andrax
Er, no. It’s not that simple; LinuxCNC isn’t plug-and-play. If you don’t have any prior knowledge, you should put the A6 aside for now and start with simple stepper motors. You’ll first need to learn how the system works and what each component does. With EtherCAT, you’re moving beyond the hobbyist level, and even professionals sometimes find it frustrating.

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

More
7 months 5 days ago #344853 by rodw

and even professionals sometimes find it frustrating.
Sometimes????? More often than that! image missing /media/kunena/emoticons/w00t.png

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

More
7 months 4 days ago #344868 by Hakan
It's easy when you know it.
The problem is to come to know enough.

Anyway, it's not that hard and there is virtually no difference between
setting up stepper drives or servo drives with EtherCAT.
The cia402 layer makes them look the same.

The example I gave is a starting point.
You can copy the files to your installation, change the HALFILE=cia402.hal in the ini file
and give it a try.

But you are going to need to adopt and edit the files to your specific setup.
Number of drives, what number/name they have. And you need to add other
functions like spindle. That's in the sim file. So you need to mix them together
and take the motion part from cia402.hal and the other functions spindle, limits etc
from the sim config.
 

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

Time to create page: 0.304 seconds
Powered by Kunena Forum