Home › G-codes › Fagor 8055 8065 › G87
G87 Rectangular pocket canned cycle / Face threading cycle (lathe)
Fagor 8055 8065 G-code · Mill, Lathe
On mills: Rectangular pocket canned cycle
Mills a rectangular pocket centered on X Y. J and K are half the width and length. B is the depth step, C the side step, L finishing stock, H finishing feed, V plunge feed.
Format
Addresses
| Address | What it does |
|---|---|
Z | Reference plane |
I | Pocket depth |
J | Half width along abscissa, sign sets direction |
K | Half width along ordinate |
B | Depth step |
C | Side step |
D | Reference plane to surface distance |
H L | Finishing feed and finishing stock |
V | Plunge feed |
How it works
Modal canned cycle. Cancel with G80.
Example program
G0 G90 X0 Y0 Z1.0 S3000 M03 (START)
G87 G98 X2.0 Y1.5 Z0.1 I-0.5 J1.0 K0.5 B0.15 C0.2 D0.05 H15.0 L0.01 V5.0 F20.0 (2 BY 1 POCKET 0.5 DEEP)
G80 (CANCEL CYCLE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- J and K are half sizes. A 2 by 1 pocket is J1.0 K0.5.
- Set tool radius in the tool table. The cycle uses it.
- Plunge feed V is often forgotten. Use a ramp capable end mill.
On lathes: Face threading cycle (lathe)
Cuts a thread on the face along X in several passes, with the same parameters as G86.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X Z | Thread start point |
Q R | Thread end point |
I | Thread depth |
B | First pass depth |
C | Thread pitch |
A | Infeed angle |
How it works
Not modal.
Example program
G97 S300 M03 (RPM MODE)
G87 X2.0 Z0 Q1.0 R0 I-0.03 B0.008 D0.04 C0.05 (FACE THREAD)
Example is in inch. Check offsets and clearances first.
Watch out for
- On Fagor mills G87 is a rectangular pocket.
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 |
| 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 Fagor 8055 8065 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 Fagor 8055 8065 G-codes