G83

Machining center, LatheModal, group 09 (lathe 10)

Deep hole drilling cycle (peck drilling, full retract to the R point each time)

Format and notes

G83 X_ Y_ Z_ R_ Q_ (depth of cut per pass) F_ K_

Diagram: G83 motion (side view)

RapidCutting feedQInitial pointR pointHole bottom Z① Rapid to R point② Cut in by Q③ Rapid out to R pointto clear chips④ Rapid back to dabove previous depth⑤ Repeat to hole bottom⑥ Rapid return
After each cut of Q, it retracts to the R point to clear chips, then rapids back to d (a machine setting) short of the previous depth and cuts again. Figure shows G98.

Try it in the simulator (machining center)

G83 retracts to R every Q to clear chips (deep holes); G73 backs off only slightly (high-speed peck). Compare the retracts (the amount is a parameter on real machines).

    X—
    Y—
    Z—
    T—
    S0
    F0
    —0:00

      On lathes: End face deep hole drilling cycle (live tooling, lathe with C axis)

      On lathes (FANUC-type G-code system A) the code does the same job. Group 10.

      Differences between controls and machines

      The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

      SourceMachineItemDetail
      HaasMachining centerFormatG83 X_ Y_ Z_ R_ Q_ F_ or I_ J_ K_ (depth of cut decreasing in steps)On Haas, do not write Q when using I/J/K. Setting 52 lowers the R point to reduce air cutting
      HaasLatheGroup09

      Frequently asked questions about G83

      What is G83 (Deep hole drilling cycle (peck drilling, full retract to the R point each time)) used for and how is it formatted in a CNC program?
      G83 commands "Deep hole drilling cycle (peck drilling, full retract to the R point each time)" on Machining center, Lathe. The standard program format is "G83 X_ Y_ Z_ R_ Q_ (depth of cut per pass) F_ K_". After each Q of cut, retracts at rapid to the R point to clear chips, then rapids back to just short of the previous depth and cuts again
      Is G83 a modal code or a one-shot (non-modal) code?
      G83 is a modal code (Group 09). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
      Does G83 work differently on machining centers (mills) versus CNC lathes?
      On both machining centers and CNC lathes (G-code System A), G83 performs the same function ("Deep hole drilling cycle (peck drilling, full retract to the R point each time)"). However, valid axis addresses (such as X/Y/Z versus diameter/incremental U/W) and parameter numbers can still differ between mill and lathe controls.
      Are there differences in G83 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
      Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G83. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
      How does G83 differ from G73, and what is a typical Q peck depth?
      Unlike G73 (chip-breaking micro-retract), G83 pulls the drill completely out to the R plane after each Q peck so chips clear the flutes and coolant reaches the tip. A typical Q peck depth is 0.5× to 1.0× drill diameter D (0.2–0.5× D for micro-drills or stainless steel).

      Sources

      The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.

      1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
      2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
      3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
      4. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
      5. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
      6. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com