Ethercat Motion Problem

More
10 months 1 week ago - 10 months 1 week ago #340336 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:
Last edit: 10 months 1 week ago by lorenzing.

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

More
10 months 1 week ago #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
10 months 1 week ago #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
10 months 1 week ago #340348 by jjdege
Replied by jjdege on topic Ethercat Motion Problem
Hi,
try changing the value in the .hal file
Code:
setp cia402.0.pos-scale 1000

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

More
10 months 1 week ago #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
10 months 1 week ago #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.
The following user(s) said Thank You: endian, lorenzing

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

Time to create page: 0.346 seconds
Powered by Kunena Forum