scurve trajectory planner
- Evgen
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 3
24 Mar 2025 21:49 #324830
by Evgen
Replied by Evgen on topic scurve trajectory planner
Hello! I have intersting problem. I use solidcam iMachining procedures for milling. With ordinary TP I have some strange deaccelerations and my servos don't like it. Then I check your tp, it try to stop every g-code segment. I can't understand where is problem. Help me, please. White screenshot - new tp, black - ordinary tp. All tests on pictures are in simulation.
Please Log in or Create an account to join the conversation.
- Grotius
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2349
- Thank you received: 2256
25 Mar 2025 10:03 #324861
by Grotius
Replied by Grotius on topic scurve trajectory planner
Hi Evgen,
If you try to do roughing G64 P1 Q0 or even G64 P2 Q0
The velocity will be more constant. And the path tends to be G3 continious.
My conclusion for the file:
From what i see is that the file set a velmax for a lot off indiviual G1 line segments. The planner will react to this.
Some off the line - line segments transitions in the file are very sharp, non smooth. Tiny clothoid fillets, will slow down the
motion.
If you try to do roughing G64 P1 Q0 or even G64 P2 Q0
The velocity will be more constant. And the path tends to be G3 continious.
My conclusion for the file:
From what i see is that the file set a velmax for a lot off indiviual G1 line segments. The planner will react to this.
Some off the line - line segments transitions in the file are very sharp, non smooth. Tiny clothoid fillets, will slow down the
motion.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4251
- Thank you received: 1873
25 Mar 2025 10:21 #324862
by Aciera
Replied by Aciera on topic scurve trajectory planner
I don't understand why 'feed-mm-per-second' drops to zero every time 'current-vel' reaches a local minimum.
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- Evgen
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 3
25 Mar 2025 14:46 #324879
by Evgen
Replied by Evgen on topic scurve trajectory planner
Hello! I try P1. The movement becomes smoother, but still srange. And also srange deaccelerations in traditional tp at moment when movement is smooth and feedrate doesn't change. same programs an non linuxcnc machines works fine. I have such problem on much 3 many years ago. The reason was CPU usage.
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18370
- Thank you received: 5014
25 Mar 2025 16:17 #324893
by PCW
Replied by PCW on topic scurve trajectory planner
Are you sure that is not just an artifact of running a non-realtime (SIM) installation?
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- Evgen
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 3
25 Mar 2025 17:08 #324894
by Evgen
Replied by Evgen on topic scurve trajectory planner
Yes,I'm sure. Firstly I got this problem on real machine with MESA card.
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18370
- Thank you received: 5014
25 Mar 2025 17:22 #324895
by PCW
Replied by PCW on topic scurve trajectory planner
Can you post the gcode?
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- Grotius
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2349
- Thank you received: 2256
25 Mar 2025 17:35 - 25 Mar 2025 17:39 #324897
by Grotius
Replied by Grotius on topic scurve trajectory planner
Hi,
When i run Posix non-realtime or Posix realtime scurve planner, i both get the same results as Evgen is telling us.
The hal pins that are flippering, blinking :
I didn't look any further.
What is using the hal pin : motion.feed-mm-per-second for example?
I personally never used it, that's maybe i didn't noticed this behaviour.
@Pcw, link to gcode he posted before:
forum.linuxcnc.org/media/kunena/attachme...i3DRough_target2.ngc
When i run Posix non-realtime or Posix realtime scurve planner, i both get the same results as Evgen is telling us.
The hal pins that are flippering, blinking :
- motion.feed-mm-per-second
- motion.feed-mm-per-minute
- motion.feed-inches-per-second
- motion.feed-inches-per-minute
- motion.feed-upm
I didn't look any further.
What is using the hal pin : motion.feed-mm-per-second for example?
I personally never used it, that's maybe i didn't noticed this behaviour.
@Pcw, link to gcode he posted before:
forum.linuxcnc.org/media/kunena/attachme...i3DRough_target2.ngc
Last edit: 25 Mar 2025 17:39 by Grotius.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4251
- Thank you received: 1873
25 Mar 2025 17:37 #324898
by Aciera
Gcode is attached here:
forum.linuxcnc.org/38-general-linuxcnc-q...ner?start=210#324830
Replied by Aciera on topic scurve trajectory planner
Can you post the gcode?
Gcode is attached here:
forum.linuxcnc.org/38-general-linuxcnc-q...ner?start=210#324830
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4251
- Thank you received: 1873
25 Mar 2025 17:43 #324901
by Aciera
from:
linuxcnc.org/docs/devel/html/man/man9/motion.9.html
Replied by Aciera on topic scurve trajectory planner
What is using the hal pin : motion.feed-mm-per-second for example?
from:
linuxcnc.org/docs/devel/html/man/man9/motion.9.html
Attachments:
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
Time to create page: 0.121 seconds