10-09-2024
03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-09-2024
03:04 AM
Hiii @AndyDHarlow ,
I have worked on proper solution for you. Kindly refer this and make the necessary changes to your post. Kindly undo/remove all previous changes mentioned above from Post.
Update the getfeed Function as per code below.
function getFeed(f) {
// This lime of code makes sures that value is passed on s_Spindle in case of Part Transfer
//START--------------------------------------------------------------------------------------------------------------
var s_Spindle = spindleSpeed;
var strategies = ["turningSecondarySpindleReturn", "turningSecondarySpindlePull", "turningSecondarySpindleGrab"];
if (strategies.indexOf(getParameter("operation-strategy")) != -1) {
s_Spindle = cycle.spindleSpeed;
}
//END---------------------------------------------------------------------------------------------------------------
_f = (currentSection.feedMode != FEED_PER_REVOLUTION && machineState.feedPerRevolution) ? f / s_Spindle : f;
if (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 "F=R" + (firstFeedParameter + feedContext.id);
}
}
currentFeedId = undefined; // force Q feed next time
}
return feedOutput.format(_f); // use feed value
}
Also remove the below line of code from these cases case " secondary-spindle-grab" , case "secondary-spindle-return" and case "secondary-spindle-pull"
writeBlock(getCode("FEED_MODE_UNIT_REV")); // mm/rev ##REMOVE THIS LINE and Replace with the code below :
gFeedModeModal.reset();
writeBlock(getCode("FEED_MODE_UNIT_MIN"));
Note : Take care about the positioning of "G94". Adjust to it as per requirement.
Fusion