LinuxCNC S-Curve Accelerations
- snowgoer540
-
- Offline
- Moderator
-
Less
More
- Posts: 2431
- Thank you received: 802
17 Apr 2025 14:07 #326525
by snowgoer540
Replied by snowgoer540 on topic LinuxCNC S-Curve Accelerations
Fair enough. Perhaps when it’s ready for prime time, we can work through the other issues to come up with a cohesive solution and find a way to push the project as a whole forward.
I prefer to be positively realistic
Keep up the nice work!
I prefer to be positively realistic

Keep up the nice work!
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
Less
More
- Posts: 2388
- Thank you received: 2308
17 Apr 2025 17:20 #326530
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi,
Using the linuxcnc iso & ethercat my jog speed is max 5000 mm/min. and apptime 50000.
This is tested on a laptop. Very bad performance.
I used to have apptime 15000 and jog speed around 19000 mm/min using a desktop pc.
Using the linuxcnc iso & ethercat my jog speed is max 5000 mm/min. and apptime 50000.
This is tested on a laptop. Very bad performance.
I used to have apptime 15000 and jog speed around 19000 mm/min using a desktop pc.
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
Less
More
- Posts: 2388
- Thank you received: 2308
18 Apr 2025 10:41 #326588
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi,
I was just able to compile the scurve planner with the original linuxcnc Makefile system.
repository
Use the ./install script to install linuxcnc. It first installs the libscurve & libclothoid3d locally.
Then it just runs the axis_scurve_mm.ini config using scurve.
Hmm, interesting development.
Now a dev can make modifications to their needs, and merge it, if they want to.
I was just able to compile the scurve planner with the original linuxcnc Makefile system.
repository
Use the ./install script to install linuxcnc. It first installs the libscurve & libclothoid3d locally.
Then it just runs the axis_scurve_mm.ini config using scurve.
Hmm, interesting development.
Now a dev can make modifications to their needs, and merge it, if they want to.
The following user(s) said Thank You: tommylight, snowgoer540, endian
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11192
- Thank you received: 3732
19 Apr 2025 08:13 #326669
by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
I can't see why the new planner can't be put in its own folder under /src/emc together with its build system. Surely linuxcnc's make system can call another build environment. In fact some of the lcnc code is written in c++
Have a look at the header files in src/emc/rs274ngc. Classs don't exist in C
Have a look at the header files in src/emc/rs274ngc. Classs don't exist in C
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
Less
More
- Posts: 2388
- Thank you received: 2308
19 Apr 2025 08:38 #326672
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Rod,
The planner is indeed in it's own folder under src/emc/planner link
It uses the original Makefile to build the planner.
If you use 2 different build systems we experienced a kind off linking errors. Resulting that
the motmod.so and liblinuxcnchal.so had to be recompiled by cmake. But the excact reason why
this is, is unknown for me.
The planner is indeed in it's own folder under src/emc/planner link
It uses the original Makefile to build the planner.
If you use 2 different build systems we experienced a kind off linking errors. Resulting that
the motmod.so and liblinuxcnchal.so had to be recompiled by cmake. But the excact reason why
this is, is unknown for me.
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11192
- Thank you received: 3732
19 Apr 2025 12:32 #326704
by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
I have not looked at this for a few years but I was interested in state_tags which is a structure added to emcmot_command_t in motion.h
From memory, the data is duplicated into a class in the rs274ngc module which I assumed was to deal with the different compilers. So there must be a way. Such messy redundant code.....
From memory, the data is duplicated into a class in the rs274ngc module which I assumed was to deal with the different compilers. So there must be a way. Such messy redundant code.....
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
Less
More
- Posts: 2388
- Thank you received: 2308
20 Apr 2025 09:55 #326751
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Rod,
You mean adding the cmake project into the original makelists.txt file and build it from there is the way to go?
I did not test that option.
I think the state_tags are just used to get or set the current states of the cnc. In my view it has nothing to do with
compilers.
You mean adding the cmake project into the original makelists.txt file and build it from there is the way to go?
I did not test that option.
I think the state_tags are just used to get or set the current states of the cnc. In my view it has nothing to do with
compilers.
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11192
- Thank you received: 3732
20 Apr 2025 12:11 #326757
by rodw
I noticed that Linuxcnc uses submake files for each folder in src/emc but you don't seem to do that.
Also because you mention motmod.so and liblinuxcnchal.so I assume you have modified the code in other modules. If that is the case, is there a way that planner can specify what it needs to use at run time so these modules can be used with both tpmod and planner?
It would be so cool to incorporate this into the base code and if it is modular as the original designers of Linuxcnc intended, it wont break anything existing.. and it becomes available to everybody.
Replied by rodw on topic LinuxCNC S-Curve Accelerations
I don't know anything about make or cmake but yes, just use cmake for the emc/src/planner folder.Hi Rod,
You mean adding the cmake project into the original makelists.txt file and build it from there is the way to go?
I did not test that option.
I noticed that Linuxcnc uses submake files for each folder in src/emc but you don't seem to do that.
Also because you mention motmod.so and liblinuxcnchal.so I assume you have modified the code in other modules. If that is the case, is there a way that planner can specify what it needs to use at run time so these modules can be used with both tpmod and planner?
It would be so cool to incorporate this into the base code and if it is modular as the original designers of Linuxcnc intended, it wont break anything existing.. and it becomes available to everybody.
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
Less
More
- Posts: 2388
- Thank you received: 2308
20 Apr 2025 12:31 #326760
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Rod,
Here is the submakefile that is used for the tpmod_scurve.
This repository uses the original makefile system to compile the scurve. It has no cmake build system.
It's quite straightforward. It can not be made simpler to incorporate into the source.
Here is the submakefile that is used for the tpmod_scurve.
This repository uses the original makefile system to compile the scurve. It has no cmake build system.
It's quite straightforward. It can not be made simpler to incorporate into the source.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds