Limit RPM and adjust feedrate
Hi,
I would like to know if it´s possible and reliable to change our milling posts to cap spindle RPM to a value and adjust the feedrates proportionally.
I saw this code in another post, is it enough?
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 don´t have a problem having a post for each machine, for me it´s better than having multiple programs.