LinuxCNC S-Curve Accelerations

More
06 May 2025 17:54 #327870 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Will test today or tomorrow.
The following user(s) said Thank You: besriworld, Grotius, zmrdko

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

More
06 May 2025 18:04 #327874 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,

Thanks for your fast responce.

We have an issue on codeberg. I invested today to find why the scurve some times breaks. We then see a
vertical line in the plot of tpmod.curvel.
The curve kind of starting from vel=0 again. Jumping etc.

It seems if my base thread is set to 50000 (too fast),
the scurve lib is not able to finish the algo anymore. Resulting in strange behaviour.
Like a sqrt() function taking about 1 ms to complete, wich is absolulutely madness.

Now if i set the base thread to 80000. Everything goes fine.
So i thought, better you know this also.

The guy in italy had 6 axis ethercat running, very difficult .hal setup, constantly breaking the scurve every move,
even without clothoids.

So now i helped him with remote desktop for hours. And now with a simple config he runs ok. We don't know
his cause exactly. But we are happy the problem is gone now.


 
The following user(s) said Thank You: tivoi, besriworld, zmrdko

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

More
07 May 2025 12:04 #327941 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,

To inform you.

I just synchronized the codeberg lcnc to github's lcnc codebase.
I did messed up some hal source code when trying things out, wich resulted in a non starting simulation config for "run_axis_9".
This is now reverted.

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

More
07 May 2025 23:14 #327965 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Is there a different repository? Just did a git pull
and got: "already up to date"
The following user(s) said Thank You: Grotius

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

More
08 May 2025 06:52 #327982 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,

Its still this one : codeberg.org/skynet/linuxcnc_scurve_compact

I did a forced upload yesterday, resulting the git history is whiped out.
Otherwise maybe to be sure : git clone --recurse-submodules codeberg.org/skynet/linuxcnc_scurve_compact

If you see the new hal pins appearing, it's ok.

I really hope you can run a few motions.



 
The following user(s) said Thank You: endian

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

More
08 May 2025 21:56 - 08 May 2025 22:53 #328031 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations
hi all
i tried to install in 3 different computers with no sucess, all of then was working linuxcnc installed. in the last one it says it could not find tpmod_scurve.so. i was able to run the previous versions, so i copy this file from a previous installation and was able to start in simulation mode but those new hal pins didnt apear to me.


edit
solve the problem moving files from clothoid_3d and scurve to their lib directories.

edit 2
cant run ethercat

when installing  linuxcnc-ethercat this error apears

/home/cnc/scurve2/linuxcnc_scurve_compact/linuxcnc-ethercat/lcec_rtapi.h:22:10: fatal error: rtapi.h: Arquivo ou diretório inexistente
   22 | #include <rtapi.h>
      |          ^~~~~~~~~
edit3
it runs on ethercat now but i cant start a gcode, it says

task: main loop took 0.023097 seconds
tpAbort.
tpAbort.
task: main loop took 0.070196 seconds
tpAbort.
tpAbort.
task: main loop took 0.044852 seconds
task: main loop took 0.011368 seconds

Then the above pins must stay below ~50000 nanosec at runtime.
they all stayed below 50000 nanosec


 
Last edit: 08 May 2025 22:53 by tiagounderground.
The following user(s) said Thank You: Grotius

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

More
09 May 2025 06:55 #328047 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Tia,

Attached file can be renamed to install.sh
This is more or less the install procedure to get it going, excluding the ethercat-master setup.

Furthermore we expanded the current path algo to a new one wich covers abc uvw motion at fillets.
This path algo is active by default.

Furthermore we solved a codeberg issue , related to uvw motions at runtime.
Attachments:
The following user(s) said Thank You: tiagounderground

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

More
09 May 2025 17:23 #328089 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations
I instaled linuxcnc scurve compact with the install script from cmake folder
Is it different from the one in the root scurve compact folder?

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

More
09 May 2025 20:58 #328105 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Well,  ran install.sh and it wiped everything except the base mint installation
on my test computer. Not trying that again.

 

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

More
13 May 2025 20:01 #328413 by Hakan
Replied by Hakan on topic LinuxCNC S-Curve Accelerations
Did that too hehe. All files gone. Luckily it was a new PC so I can redo it.
I mean do it one more time and delete all files again :)
It's the ./build_cmake_rm that is a bit aggressive.

This is the log of that command, it goes a bit further bit I only include up to the point where things go wrong.
Warning: Spoiler!

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

Time to create page: 0.121 seconds
Powered by Kunena Forum