Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adjust feed rate proportionately to spindle speed

1 REPLY 1
SOLVED
Reply
Message 1 of 2
rstpeng
226 Views, 1 Reply

Adjust feed rate proportionately to spindle speed

On machines with limited RPM I'd like the post to automatically adjust the feed rate by the proportionate amount that the spindle speed is limited by. This is adjusted from the current Haas NGC post.

 

I added this to the properties section at the head of the post so the user can enter the RPM on the post page.

 

  MaxRPM: {
    title       : "Spindle Speed",
    description : "Adjust cutting data based on machine rpm",
    group       : "Machine Lab",
    type       : "spatial",
    value      : 12000.,
    scope      : "post"
  }, 

 

 

And adjusted the getFeed section like this. But the MaxRPM value isn't being read through to the getFeed function. If I add a var directly in the function the output is adjusted correctly but I don't know why it's not reading from the properties section
 

 

function getFeed(f) {
  // var MaxRPM = 3000.0; // this line makes the logic work when uncommented
  if (spindleSpeed > MaxRPM) {
    var adjustmentRatio = MaxRPM / spindleSpeed;
    f *= adjustmentRatio; // Adjust feed rate proportionally
  
  }

  if (getProperty("useG95")) {
    return feedOutput.format(f / spindleSpeed); // use feed value
  }
  if (typeof activeMovements != "undefined" && activeMovements) {
    var feedContext = activeMovements[movement];
    if (feedContext != undefined) {
      if (!feedFormat.areDifferent(feedContext.feed, f)) {
        if (feedContext.id == currentFeedId) {
          return ""; // nothing has changed
        }
        forceFeed();
        currentFeedId = feedContext.id;
        return settings.parametricFeeds.feedOutputVariable + (settings.parametricFeeds.firstFeedParameter + feedContext.id);
      }
    }
    currentFeedId = undefined; // force parametric feed next time
  }
  return feedOutput.format(f); // use feed value
}

 

 
I also need to actually change the outputted spindle RPM  but wasn't sure what section of the post to actually edit.
 
 
1 REPLY 1
Message 2 of 2
aju_augustine
in reply to: rstpeng

Hi @rstpeng ,

To retrieve the values of MaxRPM, which is defined in your post properties, you can modify your post as illustrated below:

function getFeed(f) {
  if (spindleSpeed > getProperty("MaxRPM")) {
    var adjustmentRatio = getProperty("MaxRPM") / spindleSpeed;
    f *= adjustmentRatio; // Adjust feed rate proportionally

  }

 

I hope this solution proves helpful for your needs. 

 

 



Aju Augustine
Technology Consultant

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report