G87

Machining center, LatheModal, group 09

Back boring cycle (reverse spot facing)

⌨On machining centers

G87 X_ Y_ Z_ R_ Q_ (shift amount) P_ F_ K_

Diagram: G87 motion (side view)

RapidCutting feedInitial pointZR point (below)① At initial point,orient spindle and shift② Through the hole tolower R point (rapid)③ Shift back, spindle CW④ Cut upward to Z⑤ Stop, shift, andrapid out upward
Passes through the hole with the tool shifted away, then at the bottom of the hole (R point) shifts it back and cuts upward to Z (back boring). The R point is below the hole, so G99 cannot be used.

◎On lathes: Side deep hole drilling cycle (live tooling, systems A/B)

The same number means something different on lathes (FANUC-type G-code system A). 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 centercodeG77 (Back Bore Canned Cycle)Haas mills use G77 for back boring. G87 is not in the list
NISTMachining centerFormatG87 X_ Y_ Z_ R_ I_ J_ K_NIST: I/J give the shift position and K gives the top of the counterbore

📚Sources

The meaning shown agrees in at least two sources (agreement confirmed). 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. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com