LinuxCNC S-Curve Accelerations

More
25 Apr 2025 22:27 #327060 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
I can not test that as it requires EtherCat hardware.

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

More
26 Apr 2025 08:17 #327077 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,

The referred config file is a simulation for use with no hardware. 
I thought if this runs ok on your pc, maybe you have a idea why it will not run ok on real hardware.

i have it running with huge ferror values.





 

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

More
27 Apr 2025 02:03 #327122 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations

I can not test that as it requires EtherCat hardware.

I think you could just create a normal pncconf config for your hardware and set the ini file tpmod etc to use the scurve planner.
Once configured Linuxcnc does not care if its Ethercat or mesa.

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

More
27 Apr 2025 03:28 - 27 Apr 2025 03:31 #327125 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
I looked at the sim config an edited a mesa config to add the new TP, but it does
show major acceleration spikes (~500K)  lasting 1 servo period. I needed to set
large  following error limits  to avoid the spike triggering a following error.

Note that this is not hardware related but may have a relation to scaling so I can try again
by modifying the sim config to make sure everything else remains the same.
 
Last edit: 27 Apr 2025 03:31 by PCW.
The following user(s) said Thank You: tommylight, rodw, Grotius

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

More
29 Apr 2025 10:24 #327281 by zmrdko
Replied by zmrdko on topic LinuxCNC S-Curve Accelerations
it worked on my Delta B3 Ethercat servos using CIA402/CSP config (see attachment).
i used linuxcnc-scurve-compat  from codeberg.
Attachments:
The following user(s) said Thank You: Grotius

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

More
29 Apr 2025 12:26 #327290 by langdons
Replied by langdons on topic LinuxCNC S-Curve Accelerations
S-Curves would be nice.

Constant acceleration causes machine wobble.

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

More
29 Apr 2025 20:57 - 29 Apr 2025 22:25 #327314 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
OK it does work, my test configuration was missing the
default/max velocity and accel settings in the TRAJ section
of the .ini file. This (missing values) seems to work with the
standard TP (maybe it has some kind of working defaults)
but fails with  the S-Curve TP.

Note that I can still trigger following errors with actual
hardware as  the S-Curve TP does not seem to obey joint
acceleration constraints.

The TRAJ and joint accelerations are both set to 200 here:

 

But that acceleration is exceeded (and trips a following error when
it exceeds the hardware's accel limit of 240)
Attachments:
Last edit: 29 Apr 2025 22:25 by PCW.
The following user(s) said Thank You: rodw, Grotius, Unlogic

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

More
30 Apr 2025 10:18 #327333 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Pcw,

Thanks again for your effort.

What do you advise at this moment?
You can tune the planner with scurve jerk value in the hal section. This changes the accelation profile.
This jerk value is not integrated to the .ini file so far.

I assume you could tune your ini config to run without following error? Or is this not the case?

Indeed if you set acceleration to 200, the scurve max acceleration will be 400 at inflection point.
Exceeding your max acc off 240.
The following user(s) said Thank You: tommylight

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

More
30 Apr 2025 16:25 #327365 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Indeed if you set acceleration to 200, the scurve max acceleration will be 400 at inflection point.
Exceeding your max acc off 240.


I will try this, note that this is a difference from LinuxCNCs standard TP where the
acceleration bound in the ini file is obeyed at all points.
(unless you have backlash compensation enabled)

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

More
30 Apr 2025 16:37 #327368 by langdons
Replied by langdons on topic LinuxCNC S-Curve Accelerations
acceleration = floor(max_acc/2)

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

Time to create page: 0.188 seconds
Powered by Kunena Forum