CNC Machinist Calculator Ultra

Home › G-codes › Siemens 808D ISO › G87

G87 Back boring cycle / Side peck drilling cycle

Siemens 808D ISO G-code · Mill, Lathe

On mills: Back boring cycle

Orients the spindle, shifts by Q, rapids down through the hole to R at the bottom, shifts back, starts the spindle CW and bores upward to Z. Used for back counterbores.

Format

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

Addresses

AddressWhat it does
X YHole position
ZTop end of the back bore
RStart plane at the bottom of the hole
QTool shift, positive
PDwell, internal units
FFeed rate
KRepeats, in this block only. Use G91 to space them

How it works

Modal, group 9. Cancel with G80 or G00 to G03.

Example program

T07 M06 (BACK BORING BAR)
G90 G54 G00 X50. Y50. S400 M03 (HOLE POSITION)
G43 Z50. H07 (LENGTH OFFSET)
G98 G87 Z-15. R-32. Q3. P1000 F80. (BACK BORE FROM Z-32 UP TO Z-15)
…

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

Watch out for

On lathes: Side peck drilling cycle

Drills along X into the side of the part with pecks of depth Q, using Z and the C axis to position. Without Q it drills to depth in one pass.

Format

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

Addresses

AddressWhat it does
Z CHole position, Z and C angle
X UHole bottom
RInitial point to R point distance, radius value, signed
QPeck depth, no sign
PDwell at the hole bottom
FCutting feed
KNumber of repeats, this block only
MM code that clamps the C axis, if needed

How it works

Modal, G group 10. Cancel with G80.

Example program

G98 M03 S2500 (FEED PER MIN, LIVE DRILL ON)
G00 X55.0 Z-15.0 C0.0 (HOLE 1 POSITION)
G87 X20.0 R-2.0 Q4000 F80.0 (PECK 4 MM ALONG X)
C120.0 (HOLE 2)
…

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

Watch out for

Related codes

G76 · G80 · G98 · G83 · G88 · G89

G87 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucBack boring cycle
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 Siemens 808D ISO 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 Siemens 808D ISO G-codes

App Store Google Play