G86

Machining centerModal, group 09

Boring cycle (spindle stops at the hole bottom, rapid out)

Format and notes

G86 X_ Y_ Z_ R_ F_ K_

Diagram: G86 motion (side view)

RapidCutting feedSpindle stops at bottomInitial pointR pointHole bottom Z① Rapid to R point② Feed to hole bottom③ Stop spindle④ Rapid out
Feeds to the hole bottom, stops the spindle, and rapids out. On retraction the cutting edge may leave a line on the bore. Figure shows G98.

Try it in the simulator (machining center)

G85 feeds out (reaming/boring), G86 stops the spindle and rapids out, G82 dwells at the bottom.

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

      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
      NISTMachining centerFormatG86 … P_ (dwell at hole bottom)

      Frequently asked questions about G86

      What is G86 (Boring cycle (spindle stops at the hole bottom, rapid out)) used for and how is it formatted in a CNC program?
      G86 commands "Boring cycle (spindle stops at the hole bottom, rapid out)" on Machining center. The standard program format is "G86 X_ Y_ Z_ R_ F_ K_". Because the spindle is stopped and the tool is pulled out at rapid, the cutting edge may leave a light line on the bore wall. Use G76 if marks are unacceptable
      Is G86 a modal code or a one-shot (non-modal) code?
      G86 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 G86 work differently on machining centers (mills) versus CNC lathes?
      G86 is primarily used on Machining center. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
      Are there differences in G86 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 G86. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.

      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. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
      3. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov