There was no original cod egiven for comparison but not sure if that matters. i will give a before and after sample at the end.
I assume you are using a right tapping operation? If so you need to mod the canned cycle tapping op in your post. (Make a copy rather than saving in the original)
Starting at line 1107 of the built in Fanuc post:
case "right-tapping":
if (!F) {
F = tool.getTappingFeedrate();
}
writeBlock(mFormat.format(29), sOutput.format(tool.spindleRPM));
writeBlock(
(properties.type == "A") ? "" : gRetractModal.format(98), conditional(properties.type != "A", gAbsIncModal.format(90)), gCycleModal.format(84),
getCommonCycle(x, y, z, cycle.retract),
"P" + milliFormat.format(P),
feedOutput.format(tool.threadPitch)
);
break; note that
feedOutput.format(F)
has changed to
feedOutput.format(tool.threadPitch)
Test everything in a dry run. I take no responsibility if you break something.
G Code before Modification:
N23 M29 S500
N24 G84 X0. Z64. R84. P0 F350.
N25 G80
New g code with the above modification (note i am using and M4x0.7 tap as the tool):
N23 M29 S500
N24 G84 X0. Z64. R84. P0 F0.7
N25 G80