scurve trajectory planner

More
20 Jan 2025 21:48 #319493 by juliankoenig87
Replied by juliankoenig87 on topic scurve trajectory planner
Just for information. How and where should we report issues and questions?

Is this thread the right one (or one of the older/other ones)?

I understand all pins and parameters with one exception. Can you give me a short overview about hal_blend_speed? I dont get curvature vs. gcode... First of all I dont know the meaning of the word curvature (ouch) :-)
The following user(s) said Thank You: Grotius

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Jan 2025 22:22 - 20 Jan 2025 22:50 #319500 by Grotius
Replied by Grotius on topic scurve trajectory planner
@Julian,

Hal blend speed is a special feature, Mr. Lcvette requested this feature a while ago.
Blend speed can be used to tune a machine to it's inertia limits.

The blend is the fillet (rounding) between 2 trimmed (shortened) gcode lines (segments). Given the G64 P[..] value.
The blend speed is a factor value "0-1".
The blend speed is used to tell the planner how to behave at the blends, focussing on blend speed.
Curvature is the ammount off roundness of a arc or circle. It is related to the radius.
Based on curvature -> radius, the blend speed is calculated by mathematics.

-> hal_blend_speed
minimal value : 0.0
maximal value : 1.0

Example :
hal_blend_speed 0.0 = use blend speed based on curvature only. (safest way of running the machine, lowest output speed)
hal_blend_speed 0.5 = use 50% speed based on curvature, use 50% speed based on gcode feed.
hal_blend_speed 1.0 = use gcode feed only. (can become risky, machine may run beyond inertia limits, highest output speed)

On youtube there is a video, where you can see the difference at runtime on a real cnc machine.
Later on in the video the hal_blend_speed is set to 1.0 at time 5:51
video link

Then you can for example tune your machine to a hal_blend_speed : 0.85
This then you can edit in the source code and recompile. Then it becomes a startup value.
fill in blend speed here.
Last edit: 20 Jan 2025 22:50 by Grotius.
The following user(s) said Thank You: Beef

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

More
20 Jan 2025 23:33 #319502 by ihavenofish
Replied by ihavenofish on topic scurve trajectory planner
O_o

o_O
The following user(s) said Thank You: Grotius

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

More
21 Jan 2025 00:11 #319505 by Beef
Replied by Beef on topic scurve trajectory planner
Grotius you're a madlad

I'm pretty sure you can just send this to a university and they'll send you back a math degree diploma

I've been away from the game for quite a while as I was finishing school myself, but I'll put this to work in the near future
The following user(s) said Thank You: Grotius

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

More
21 Jan 2025 00:27 #319507 by Joco
Replied by Joco on topic scurve trajectory planner
For awareness:

The scurve planner has some behaviour changes around:
motion.feed-hold
motion.adaptove-feed

Under the standard planner per documentation the effects of these pins can be enable or disabled through the use of M53 and M52 respectively.  These M codes are not supported under scurve.  The effects of these pins are always active.

If this departure from current behaviour is material and of concern then we would be interested to understand what the "real world" down sides are to this implementation.

Thanks - James.
 
The following user(s) said Thank You: Grotius, spumco

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

More
21 Jan 2025 01:34 #319511 by spumco
Replied by spumco on topic scurve trajectory planner

For awareness:

The scurve planner has some behaviour changes around:
motion.feed-hold
motion.adaptove-feed

Under the standard planner per documentation the effects of these pins can be enable or disabled through the use of M53 and M52 respectively.  These M codes are not supported under scurve.  The effects of these pins are always active.

If this departure from current behaviour is material and of concern then we would be interested to understand what the "real world" down sides are to this implementation.

Thanks - James.

 

I've never used a feed-hold disable function; I suspect it's a legacy feature intended for machines run by operators who are not 'allowed' to really manipulate the controls.  Or the programmer sees a feature to be cut where feed-hold would lead to issues (drill/tool rubbing and work-hardening the part) and turns off feed hold for that program segment.

Neither have I used adaptive-feed, but I could imagine a situation where the programmer or operator would like to turn it off/on.  Perhaps using block-skip in the program for segments (roughing, maybe?) where adaptive feed is appropriate but not fully proven out.

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

More
21 Jan 2025 08:35 #319529 by Joco
Replied by Joco on topic scurve trajectory planner
Adaptive feed and feed hold are core to how plasmac for plasma machines operates.   However it does not use the gcode on/off capabilities that I have seen.

feed-hold issued during a tapping cycle could be catastrophic as it just stops xyz motion and does nothing to spindle.   Feed-inhibit would be appropriate then as it alllows synch motion as used in tapping to complete.

Adaptive feed along with external offsets allows for some cool cut recovery operations on a plasma or probably any jet cutting machine (e.g. Laser or water jet)
The following user(s) said Thank You: tommylight

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

More
21 Jan 2025 10:51 #319540 by rodw
Replied by rodw on topic scurve trajectory planner


At the risk of repeating myself:
Grotius is like a heat seeking missile, he locks on to something and does not stop! :)
Thank you Grotius.


In this case, the missile orbited earth at least 15 times and probably once around Mars before hitting the Scurve target!

I am in awe with Grotius's tenacity over many years on this!

The following user(s) said Thank You: tommylight, Grotius

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

More
21 Jan 2025 11:43 #319552 by spumco
Replied by spumco on topic scurve trajectory planner

Adaptive feed and feed hold are core to how plasmac for plasma machines operates.   However it does not use the gcode on/off capabilities that I have seen.

feed-hold issued during a tapping cycle could be catastrophic as it just stops xyz motion and does nothing to spindle.   Feed-inhibit would be appropriate then as it alllows synch motion as used in tapping to complete.

Adaptive feed along with external offsets allows for some cool cut recovery operations on a plasma or probably any jet cutting machine (e.g. Laser or water jet)
 

I was under the impression that LCNC already disables feed-hold in the background during tapping or other spindle-synchronized movements.  I think activating feed-hold has no effect until the tool is back at the retract plane.  Which is why I didn't think adding feed-hold disable feature to the s-curve Tp was necessary.

But I could see a use for adaptive feed enable/disable during g-code.  Hope I didn't give the impression I didn't think it was useful.
 
The following user(s) said Thank You: tommylight

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

More
21 Jan 2025 18:54 #319582 by Joco
Replied by Joco on topic scurve trajectory planner
Don’t make that assumption re feedhold. And tapping. The planner is taking things direct from the Hal pin. Not from the lcnc motmod module.

it needs to be explicitly tested. Unless someone has done so already and can confirm what the behaviour is. 
The following user(s) said Thank You: spumco

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

Time to create page: 0.083 seconds
Powered by Kunena Forum