Home › G-codes › Swiss (Citizen Star) › G87
G87 Side drilling cycle
Swiss (Citizen Star) G-code · Lathe
Drills or pecks in X with a cross live tool, with the spindle held by the C axis.
Format
G87 Z C X R Q P F [K]
Addresses
| Address | What it does |
|---|---|
Z C | Hole position |
X | Hole bottom diameter |
R | Start point in X |
Q | Peck depth |
F | Feed |
How it works
Modal, group 10. Cancel with G80.
Example program
M18 (CITIZEN C AXIS ON)
M80 S3=3000 (CITIZEN ROTARY TOOL ON)
G00 X.6 Z.25 C0. T1100 (CROSS DRILL)
G87 X.1 R-.1 Q.03 F.001 (CROSS PECK)
…
M80 S3=3000 (CITIZEN ROTARY TOOL ON)
G00 X.6 Z.25 C0. T1100 (CROSS DRILL)
G87 X.1 R-.1 Q.03 F.001 (CROSS PECK)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Turn on the C axis and the live tool first. On Citizen that is M18 and M80 with S3=.
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 |
| Mazak (EIA) | Side drilling cycle, live tool |
| 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 |
Every G-code for Swiss (Citizen Star) 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 Swiss G-codes