Ethercat Motion Problem

More
20 Dec 2025 09:44 - 20 Dec 2025 09:47 #340336 by lorenzing
Ethercat Motion Problem was created by lorenzing
Hi all,I'm experiencing an issue with my EtherCAT drive. When I try to move any axis through LinuxCNC, the motion is noticeably slower compared to using the drive's own software.I've attached two videos for comparison:
Attachments:
Last edit: 20 Dec 2025 09:47 by lorenzing.

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

More
20 Dec 2025 09:57 #340340 by Hakan
Replied by Hakan on topic Ethercat Motion Problem
Just standard linuxcnc settings. You have Velocity and Accelerations settings for every axis in the ini file. Adjust them to your liking.

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

More
20 Dec 2025 12:46 #340343 by lorenzing
Replied by lorenzing on topic Ethercat Motion Problem
Unfortunately, I never reach the speed set in the .ini file.
The motors move much slower than the set speed and make a lot of noise. If I set the same speed in the drive program, the command executes smoothly and without making any noise.
I'm probably doing something wrong in the configuration.

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

More
20 Dec 2025 15:20 #340348 by jjdege
Replied by jjdege on topic Ethercat Motion Problem
Hi,
try changing the value in the .hal file
setp cia402.0.pos-scale 1000

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

More
20 Dec 2025 15:58 #340350 by lorenzing
Replied by lorenzing on topic Ethercat Motion Problem
Hi jjdege, by changing the pos-scale value, all the movements don't correspond to reality.
I solved most of the problems by changing the SERVO_PERIOD from 2000000 to 1000000.
I've also a problem in display section: MIN_LINEAR_VELOCITY = 0 MAX_LINEAR_VELOCITY = 50.00

Many thanks to all of you

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

More
21 Dec 2025 08:26 #340362 by Hakan
Replied by Hakan on topic Ethercat Motion Problem
Your jog settings are really slow. That's why it moves so slowly.
These are settings in the ini file. I don't use axis so can't advice further on that,
but many users do use axis and should be able to tell you what and where to change.
 

Test the following in the MDI "G1 X200 F20000"
that should give quite a bit better speed. Adjust velocity and acceleration settings in the ini file to your liking.
The drives should work fine. When you ask to much of them they will give you following errors. But you are not near that.

There are some optimizations you can do.

The 2 ms servo period is in itself not a problem. But if you use 2 ms servo period because your computer
can't keep up with 1 ms then you should work on the performance of the computer. It should run flawlessly
without any (well a single one would be ok) "UNMATCHED DATAGRAMS" in the syslog. Check that.

You should also set up DC synchronization of the drives, see here github.com/linuxcnc-ethercat/linuxcnc-et...istributed-clocks.md
syncToRefClock in the master line. dcConf statement for every slave.

When this works fine, check syslog again, there should be no (or maybe one) UNMATCHED DATAGRAMS or other messages
indicating performance problems. In which case you should work on the network performance especially use dkms drivers for
Realtek network adapters.

Then it is standard linuxcnc again. Tune the drives, adjust velocity and acceleration settings.
Attachments:
The following user(s) said Thank You: endian, lorenzing

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

More
25 Dec 2025 15:14 - 25 Dec 2025 15:14 #340498 by ts
Replied by ts on topic Ethercat Motion Problem

Hi,
try changing the value in the .hal file
setp cia402.0.pos-scale 1000

 
[code]Hi. Pardon for offtop. Please could you try to explain what will do linunxCNC when you using this scale, and reach the calculating maximum of +2^31, and momentary jump to -2^31. On my case system stops and there an error of following..
[/code]

Last edit: 25 Dec 2025 15:14 by ts.

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

More
08 Jan 2026 15:51 - 08 Jan 2026 15:55 #341172 by lorenzing
Replied by lorenzing on topic Ethercat Motion Problem
Hi all,
thanks to Hakan, I’m now able to control all the motors without any issues.
However, could someone help me with this error shown by the code dmesg command:  dmesg.txt
Could this error cause problems during machine operation?

Many thanks, Lorenzo
Attachments:
Last edit: 08 Jan 2026 15:55 by lorenzing.

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

More
09 Jan 2026 05:10 - 09 Jan 2026 05:18 #341191 by nanowhat
Replied by nanowhat on topic Ethercat Motion Problem
Which error are you referring to?
 833.377534 pcieport 0000:00:1d.0: AER: Corrected error message received from 0000:00:1d.0
seems to be caused by PCI-express link power management
 8933.654387EtherCAT WARNING 0-4: Other mailbox protocol response for eoe0s4.
Which version of the ethercat library are you using? 1.6 by default has ethernet over ethercat active, and it doesn't seem to be compatible with linuxCNC. With 1.6, one must compile the library from source to disable EoE.
Last edit: 09 Jan 2026 05:18 by nanowhat. Reason: forum code formatting is problematic
The following user(s) said Thank You: lorenzing

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

More
09 Jan 2026 07:19 - 09 Jan 2026 07:20 #341196 by lorenzing
Replied by lorenzing on topic Ethercat Motion Problem
Thanks nanowhat, I checked my version and it’s actually 1.6
lorenzo@LinuxCNC:~$ ethercat version
IgH EtherCAT master 1.6.8 1.6.8.g2543cc5-1+27.2 
Could you help me understand how to disable EoE in this version?

Thanks a lot, Lorenzo.
Last edit: 09 Jan 2026 07:20 by lorenzing.

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

Time to create page: 0.171 seconds
Powered by Kunena Forum