CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G87

G87 Back boring cycle / Side drilling cycle, live tool

Fanuc G-code · Mill, Lathe

On mills: Back boring cycle

Orients the spindle, shifts off center by Q, rapids down through the hole to R below the part, shifts back, and feeds up to Z to bore the back side. Then orients, shifts and rapids out.

Format

G87 X Y Z R Q [P] F [K]

Addresses

AddressWhat it does
X YHole position
ZTop of the back bore, end of the upward feed
RStart point below the part, bottom of the cycle
QShift amount, always positive
PDwell at top, milliseconds
FFeed rate
KNumber of repeats

How it works

Modal, group 09. Cancel with G80 or any group 01 code. Only G98 return is allowed.

Example program

T9 M06 (BACK BORE BAR)
G90 G54 G00 X2. Y1.5 S800 M03 (HOLE CENTER)
G43 H09 Z1. M08 (CLEARANCE)
G98 G87 Z-.75 R-1.1 Q.1 F4. (BACK BORE FROM Z-1.1 UP TO Z-.75)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Side drilling cycle, live tool

Drills along X into the side of the part with a radial live tool. Q gives peck drilling.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

G87 Z(W) C(H) X(U) R [Q] [P] F [K] [M]

Addresses

AddressWhat it does
Z CHole position along the part and angle
XHole bottom as a diameter
RR point
QPeck depth, no decimal point
PDwell at the bottom
FFeed
KRepeat count

How it works

Modal, group 10. Cancel with G80.

Example program

T1010 (.201 DRILL, RADIAL LIVE TOOL)
G98 (FEED PER MINUTE)
G00 Z-.5 C0 X2.2 M08 (FIRST HOLE)
G87 X1.2 R-.1 Q1000 F5. (PECK .1 TO 1.2 DIA)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G76 · G98 · G80 · G83 · G88

G87 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCBoring cycle, stop and manual retract
Mazak (EIA)Side drilling cycle, live tool
Okuma OSPBack boring cycle
Mitsubishi M70 M80Back boring cycle
Brother SpeedioBack boring cycle
Fagor 8055 8065Rectangular pocket canned cycle
LinuxCNC TormachBack boring cycle, not implemented
Mach3 Mach4Back boring
Hurco WinMax (NC)Back bore (ISNC) or chip breaker (BNC)
FadalBore in and out, Fadal G87
Swiss (Citizen Star)Side drilling cycle

Every G-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G87 in the app All Fanuc G-codes

App Store Google Play