Generate pitch as feed in G code with a Fanuc post (turning) in fusion 360

Generate pitch as feed in G code with a Fanuc post (turning) in fusion 360

Anonymous
Not applicable
463 Views
2 Replies
Message 1 of 3

Generate pitch as feed in G code with a Fanuc post (turning) in fusion 360

Anonymous
Not applicable

Is there a way to automatically generate the pitch in the G code  instead of the feed with a Fanuc turning  post ?

 

Original

 

 

Requested

......
N23 M29 S500
N24 G84 X0. Z-0.55 R0.15 P0 F0.050 (pitch)
N25 G80

.....

 

I tried few changes in the post without sucess.

 

thanks

 

Fred

0 Likes
Accepted solutions (1)
464 Views
2 Replies
Replies (2)
Message 2 of 3

djowen40
Advocate
Advocate
Accepted solution

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

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks djowen41 I tried and it working !!!

 

thanks 

 
0 Likes