Home › G-codes › Haas NGC › G12
G12 Circular pocket milling clockwise
Haas NGC G-code · Mill, Lathe
On mills: Circular pocket milling clockwise
Mills a round pocket or bore clockwise from the current position, which must be the pocket center. Can rough out in steps with Q and K, and repeat depth steps with L and Z.
Format
Addresses
| Address | What it does |
|---|---|
D | Tool diameter offset number. Must not be zero |
I | Radius of the first circle, or the finish radius if K is not used |
K | Radius of the finished circle |
Q | Radius step between circles. Use with K |
L | Loop count to repeat deeper cuts |
Z | Depth of cut or depth step |
F | Feed rate |
How it works
Non-modal, group 00.
Example program
G90 G54 G00 X2. Y1.5 S2500 M03 (POCKET CENTER)
G43 H02 Z.1 M08 (APPROACH)
G01 Z-.25 F10. (FEED TO DEPTH AT CENTER)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Position the tool at the pocket center before G12. It cuts relative to that point.
- G12 is conventional milling with M03. G13 gives climb milling with M03.
- The D offset must hold the cutter diameter or radius as set up on the control.
On lathes: Circular pocket milling clockwise
Mills a circular pocket or circle clockwise with a live tool. Works in the G17 plane, or with G268. It implies cutter comp right.
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 |
|---|---|
I | Radius of the first circle, or the finish circle if no K |
K | Radius of the finished circle |
Q | Radius stepover, used with K |
L | Loop count for deeper cuts |
D | Tool radius or diameter offset number, D0 for tool center |
F | Feed rate |
X | Depth of cut or increment |
How it works
Non-modal, group 00.
Example program
M133 P2000 (LIVE TOOL FORWARD 2000 RPM)
G98 G17 (FEED PER MINUTE, XY PLANE)
G00 G54 X0 Y0 Z.1 (POCKET CENTER)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Rapid to the center of the circle before G12.
- On a lathe only the G17 and G268 planes work with G12 and G13.
- I must be bigger than the tool radius and smaller than K.
Related codes
G12 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Heidenhain TNC (ISO) | Clockwise arc, polar |
| Mach3 Mach4 | Circle or pocket, clockwise |
Every G-code for Haas NGC 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 G12 in the app All Haas NGC G-codes