Home › G-codes › Haas NGC › G156
G156 Broaching canned cycle
Haas NGC G-code · Lathe
Pecks a stationary broach tool along Z to cut keyways or splines in a bore. The main spindle is oriented with M19 first. Needs software 100.20.000.1000 or later.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G156 Z [W] K [X] [U] [I] [Y] [V] [C] [D] F
Addresses
| Address | What it does |
|---|---|
Z | Total depth along Z |
W | Incremental total depth |
K | Peck length along Z |
X | Diameter of the last slice |
U | Incremental X to the last slice |
I | X step between slices |
Y V | Y position or increment, optional |
C | C axis position |
D | Clearance when returning |
F | Feed per minute |
How it works
Modal, group 09. Cancel with G80.
Example program
T0808 (.125 KEYWAY BROACH)
M19 P0 (ORIENT SPINDLE)
G98 (FEED PER MINUTE)
G00 G54 X.98 Z.1 (START INSIDE 1.0 BORE)
…
M19 P0 (ORIENT SPINDLE)
G98 (FEED PER MINUTE)
G00 G54 X.98 Z.1 (START INSIDE 1.0 BORE)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Orient the spindle with M19 P or R before G156 so the keyway lands where you want it.
- Take small X steps. Broach tools break easily.
Related codes
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 G156 in the app All Haas NGC G-codes