Posted by: davidhayden | June 18, 2010

Proven Tips, Tools and Tactics: Understanding G83


So you need to drill some holes. Most of the holes are at the same depth, but not all of them and all of them are deep enough that you need to retract the drill to clear the chips. The G83 code may be just the code you are looking for.
 
 

Code Data

Code: G83
Modal: Yes
Group: 01
Action: Drilling
ANSI Std: Yes
Requirements: Point to move to(X,Y), Feed Rate at which to move (F), Peck Depth (Q), Final Depth (Z)
Options: R (rapid return plane, Feed rate, G98 / G99 Rapid plane selection, G17/G18/G19, Q depth of peck
Conflicting G Codes G00, G02, G03, G04, G80 All Canned Cycles, Any other G code in Groups 00, 01 or 09

Description and How to Use G83

The G83 is the NC command that tells the machine to:

  • Move to an X,Y location
  • Rapid to a clearance Plane (R Plane)
  • Feed into the hole the amount specified by the Q paramater at the feedrate specified by the F paramater
  • Completely retract the drill out of the hole to clear the chips
  • Rapid back into the hole a short distance from the bottom
  • Continue feeding down into the hole by the amount specified by the Q paramater
  • Retract as before
  • And continue this pecking cycle until the final depth specified by the Z paramater is reached
  • After reaching the final depth, retract to the reference plane above the part
  • Move to the next hole and start the process all over again.

Here is a side by side comparison to drill 1 hole 1″ deep, with a full retract every .25″ ( hole to be drilled at X0, Y0) at 2 IPM

With G83…………………………………………Without G83
G00 G90 X0 Y0 ……………………………………G00 G90 X0 Y0
Z.1 ……………………………………………………………Z.1
G83 Z-1.0 Q.25 F2.0………………………….G01 Z-.25 F2.0
X1.0 Y0.0 (drill new hole)…………………..G00 Z.1
…………………………………………………………………….Z-.24
……………………………………………………………………G01 Z-.5
……………………………………………………………………G00 Z.1
……………………………………………………………………Z-.49
……………………………………………………………………G01 Z-.75
……………………………………………………………………G00 Z.1
……………………………………………………………………Z-.74
…………………………………………………………………..G01 Z-1.0
…………………………………………………………………..G00 Z.1
…………………………………………………………………..X1. Y0 (move to new location to start this all over again

Can you see the time savings in using canned cycles?
Now imagine having to drill 15, 20, or more holes. With the G83, all you have to do is enter the new XY location and the rest is done for you. When CNC machines had very limited memory, you could easily use up all of the available memory drilling a few holes.

Also imagine, having to edit the depth of the pecks. With the canned cycle, all you have to do is change the Q value one time and all holes following the change will have the new peck depth. Without canned cycles, you would have to edit every single drill cycle and update every single peck.

The beauty of all canned cycles, this one included is that you can change the parameters as often as necessary. For example, if you wanted to take shallow pecks for some holes and deeper pecks for other holes, all you have to do is specify a new Q where you want to use the different peck depth.

The Q parameter is modal, so once you set it, it will not change until you set it to something different.

There are many canned drilling cycles you can use to save time. Look for future articles to learn more about these labor saving commands.


For a complete introduction to the fundamentals of CNC programming, take a look at 7 Easy Steps to CNC Programming . . . A Beginner’s Guide or 7 Easy Steps to CNC Programming . . . A Beginner’s Guide, the Ebook
   

Advertisements

Responses

  1. Can you please send me a Drill Peck cycle like the full
    T6 M06
    S600 M03
    Ect..
    Thank you.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: