CNC Machinist Calculator Ultra

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

G12 D I [K Q] [L] [Z] F

Addresses

AddressWhat it does
DTool diameter offset number. Must not be zero
IRadius of the first circle, or the finish radius if K is not used
KRadius of the finished circle
QRadius step between circles. Use with K
LLoop count to repeat deeper cuts
ZDepth of cut or depth step
FFeed rate

How it works

Non-modal, group 00.

Example program

T2 M06 (.5 END MILL)
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

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

G12 I [K] [Q] [L] [D] F [X]

Addresses

AddressWhat it does
IRadius of the first circle, or the finish circle if no K
KRadius of the finished circle
QRadius stepover, used with K
LLoop count for deeper cuts
DTool radius or diameter offset number, D0 for tool center
FFeed rate
XDepth of cut or increment

How it works

Non-modal, group 00.

Example program

T1111 (.25 END MILL, LIVE TOOL)
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

Related codes

G13 · G150 · G41 · G17

G12 on other controls

The same number can mean something different on another control.

ControlMeaning
Heidenhain TNC (ISO)Clockwise arc, polar
Mach3 Mach4Circle 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

App Store Google Play