Ethercat Setup help needed for beginner

More
28 Mar 2026 20:58 #344893 by Spezidrohne
Replied by Spezidrohne on topic Ethercat Setup help needed for beginner

In seriousness though, I find its less about beginner vs expert in CNC stuff, and more about if you are well versed in linux usage. Most of my troubles setting up were because the instructions just assume you know everything about linux already and leave a lot of critical details out.

Exactly. And i dont rallye have any prior knowledge to this in linux.

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

More
28 Mar 2026 21:46 #344894 by Spezidrohne
Replied by Spezidrohne on topic Ethercat Setup help needed for beginner
Well, i tried just copying the files and the call to the halfile in axis_mm.ini and now i get the error trivkins already exist. Tried removing the x axis parts in core_sim.hal, and i cant save it, as it has root as owner. How do i Bypass this?

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

More
29 Mar 2026 06:53 #344896 by Hakan
Replied by Hakan on topic Ethercat Setup help needed for beginner
When you start lnuxcnc with sim config from the window system menu, there is a question
whether to make a copy of the config, say yes. You find it then at $HOME/linuxcnc/configs/sim_axis or similar
and your user should own the files.

In the ini file, remove all HALFILE= that has "sim" in them.

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

  • grandixximo
  • grandixximo's Avatar
  • Away
  • Elite Member
  • Elite Member
More
29 Mar 2026 08:14 #344899 by grandixximo
Replied by grandixximo on topic Ethercat Setup help needed for beginner
coresim will still be in the hal lib, which is symlinked and cannot be modified by user.

try to make a base configuration with pncconf, I think that is how I started.

it makes it easier to understand what is happening, also read the docs, very insightful.

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

More
29 Mar 2026 12:04 #344902 by Spezidrohne
Replied by Spezidrohne on topic Ethercat Setup help needed for beginner
Tried removing all halfiles with sim, still get error trivkins already exist.

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

  • grandixximo
  • grandixximo's Avatar
  • Away
  • Elite Member
  • Elite Member
More
29 Mar 2026 12:25 #344903 by grandixximo
Replied by grandixximo on topic Ethercat Setup help needed for beginner
It's because it is loaded twice, and once it is from coresim.hal
you will see loadrt [KINS]KINEMATICS or loadrt trivkins or something similar in your hal, that conflicts with the same thing that is written in coresim,hal you can only load kinematics once
and you cannot modify that, it's in the libraries, you can remove the
HALFILE = core_sim.hal
from your ini file
Or as I advised before start from a pncconf configuration, that is more local, and it is easier to understand, as you change settings in pncconf and you see the hal changing, it is more intuitive, just take it easy, it is a steep learning curve.

 

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

More
29 Mar 2026 12:45 #344905 by Spezidrohne
Replied by Spezidrohne on topic Ethercat Setup help needed for beginner
I did that, but it didn't work. Then remebered i am in mm. And i changed axis.ini and not axis_mm.ini. Commented out everything except the cia halfile in the mm file, and it worked. I can now drive the servo from the gui. But i get an immediate following error on the joint.

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

More
29 Mar 2026 12:49 #344906 by Spezidrohne
Replied by Spezidrohne on topic Ethercat Setup help needed for beginner
I can see the number changing on the DRO when i turn the shaft of the motor, i guess there is some setting missing on the pitch/turns per mm ?

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

More
29 Mar 2026 14:08 - 29 Mar 2026 14:12 #344909 by Hakan
Replied by Hakan on topic Ethercat Setup help needed for beginner
lcec.0.n.pos-scale
Set it to how much the encoder increases when moving the axis one mm.
setp lcec.0.2.pos-scale 500
for example, or maybe you have one of those with crazy big numbers. Same anyway.
Read encoder value from lcec.0.2.actual-position (before any scaling)
Last edit: 29 Mar 2026 14:12 by Hakan.

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

  • andrax
  • andrax's Avatar
  • Away
  • Elite Member
  • Elite Member
More
29 Mar 2026 15:04 #344912 by andrax
Replied by andrax on topic Ethercat Setup help needed for beginner

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.

I only broke 4 mice from throwing them in anger... its fiiiinnnee.

In seriousness though, I find its less about beginner vs expert in CNC stuff, and more about if you are well versed in linux usage. Most of my troubles setting up were because the instructions just assume you know everything about linux already and leave a lot of critical details out. I am working with one of my customers to trying an make a true step by step guide.

If you do know "nothing", step and direction with a mesa card is generally pretty safe cause its mostly done by a wizard. You aren't mucking in the terminal or doing much editing in HAL.

(also important to note ethercat in linuxcnc has some quirks too, its not quite "final" in my opinion)


This sounds familiar to me.
I just ended up tearing the whole setup apart in frustration every time and starting over from scratch.

@Spezidrone, this isn’t meant to be a criticism. But it really is an advantage to build a test system with steppers first. That’s the best way to get to know the system and all its configurations.
Etercat sounds simple. Plug the LAN cable into the servo and it’s plug-and-play. If only it were that easy...
If you really want to go through with this, we’d be happy to help, of course.
Welcome to the world of jitter, EMC, XML errors, Hall errors, jumps, and dmesg error logs.
 

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

Time to create page: 0.120 seconds
Powered by Kunena Forum