Home › G-codes › Mazak (EIA) › G87
G87 Side drilling cycle, live tool
Mazak (EIA) G-code · Lathe
Drills along X on the outside diameter with a radial live tool.
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 X Z C R [Q] [P] F
Addresses
| Address | What it does |
|---|---|
Z C | Hole position |
X | Hole bottom diameter |
R | R plane |
Q | Peck depth |
F | Feed rate |
How it works
Modal, cancel with G80.
Example program
T1313 (.201 RADIAL DRILL)
G98 (FEED PER MINUTE)
G00 X2.2 Z-.5 C0. (ABOVE HOLE)
G87 X1.5 R2.1 Q.1 F8. (DRILL .25 DEEP)
…
G98 (FEED PER MINUTE)
G00 X2.2 Z-.5 C0. (ABOVE HOLE)
G87 X1.5 R2.1 Q.1 F8. (DRILL .25 DEEP)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- X is a diameter. The bottom of a .25 deep hole on a 2.0 bar is X1.5.
Related codes
G87 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Back boring cycle |
| Haas NGC | Boring cycle, stop and manual retract |
| Okuma OSP | Back boring cycle |
| Mitsubishi M70 M80 | Back boring cycle |
| Brother Speedio | Back boring cycle |
| Fagor 8055 8065 | Rectangular pocket canned cycle |
| LinuxCNC Tormach | Back boring cycle, not implemented |
| Mach3 Mach4 | Back boring |
| Hurco WinMax (NC) | Back bore (ISNC) or chip breaker (BNC) |
| Fadal | Bore in and out, Fadal G87 |
| Swiss (Citizen Star) | Side drilling cycle |
Every G-code for Mazak (EIA) 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 Mazak G-codes