G98 G-Code And G99 G-Code: Canned Cycle Return Or Feedrate ...

Table of Contents

  1. CNCCookbook's G-Code Tutorial
  2. G98 G-Code and G99 G-Code:  Lathe or Mill?
  3. G98 and G99 on Mills:  Retract depth after a canned cycle return
  4. G98 and G99 on Lathes:  Feedrate Mode
    1. Next Article: G04 GCode: Pause / Dwell for Precise Timing

CNCCookbook's G-Code Tutorial

G98 G-Code and G99 G-Code:  Lathe or Mill?

The interpretation of G98 and G99 g-codes can vary, contingent on if they are being used on a lathe or mill. While this is not the case for all g-code dialects, it is certainly true for Fanuc and Haas.

G98 and G99 on Mills:  Retract depth after a canned cycle return

G81 drilling and spot-drilling cycle diagram, four-step machining operation.

On a mill, G98 and G99 control the return point after a canned cycle.  If G98 mode is set, it returns to the initial Z plane after the canned cycle.  If G99 is set, it returns to the R-plane after the canned cycle.

This is very much a fine tuning parameter.  Z is higher than R.  Typically, it will be the "Safe Z" that CAM programs use so they can move at rapids speeds without running into anything.  Be careful though, that all depends on how you post is set up or how you've written the program.  All G98 guarantees is that it'll return to the initial Z position things were at when the canned cycle began.

The R-Plane is something you will have specified when you began the canned cycle.  Typically it is closer to the workpiece than the initial Z.  Most CAM software will be set up to rapid from that Z to the R position and then to switch to the feedrate before going further.

G98 and G99 on Lathes:  Feedrate Mode

On lathes, the behavior of G98 and G99 is completely different.  It's used to set the Feedrate Mode.  Think of it as how feedrate will be specified.

G98 specifies feedrate per minute.  G99 specifies feedrate per revolution.

So, with G98, if you write "F100" in the g-code, it gives a feedrate of 100 inches per minute.  With G99, "F100" would be crazy fast-100 inches per revolution of the spindle.  You'd be more likely to see "F0.004", which is 4 thousands per revolution.

Why would you use G99?

Because it makes it a lot easier to deal with feedrates.  G98 lets you enter the chipload of your tool as the feedrate.  That's pretty sweet because you can enter feedrates that are independent of the spindle rpms, which just saves you making calculations.

As such G98 and G99 go hand in hand with G96 CSS-style spindle speed setting.

Next Article: G04 GCode: Pause / Dwell for Precise Timing

You Might Also Like

  • Feed Rate Mode G Codes (G93, G94, and G95)
  • Cracking the Code: G28 G-Code for Machinists
  • CNC Lathe G-Code and M-Code Reference List for CNC Lathes
  • What if you had CAM for your Lathe and didn't even know it?
  • G-Code and M-Code List [ Easy Examples & Tutorials ]

Be the first to know about updates at CNC Cookbook

Join our newsletter to get updates on what's next at CNC Cookbook.

Subscribe

Từ khóa » G98 G99 Cnc