Home › G-codes › Heidenhain TNC (ISO) › G251
G251 Rectangular pocket complete
Heidenhain TNC (ISO) G-code · Mill
Roughs and finishes a rectangular pocket with corner radius and allowances. Klartext: CYCL DEF 251 RECTANGULAR POCKET.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G251 Q215 Q218 Q219 Q220 Q368 Q224 Q367 Q207 Q351 Q201 Q202 Q369 Q206 Q338 Q200 Q203 Q204 Q370 Q366 Q385
Addresses
| Address | What it does |
|---|---|
Q215 | Machining operation, 0 rough and finish |
Q218 Q219 | First and second side length |
Q220 | Corner radius |
Q201 | Depth |
Q202 | Plunging depth |
Q366 | Plunging strategy, helix or reciprocating |
How it works
DEF active. Runs only with G79, M99 or M89 at the pocket position.
Example program
N50 G251 RECTANGULAR POCKET
Q215=0 ;MACHINING OPERATION
Q218=80 ;FIRST SIDE LENGTH
Q219=60 ;2ND SIDE LENGTH
…
Q215=0 ;MACHINING OPERATION
Q218=80 ;FIRST SIDE LENGTH
Q219=60 ;2ND SIDE LENGTH
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Q367 sets which point of the pocket the call position refers to. 0 is the center.
- Use a center cutting tool or a helical plunge.
Related codes
Every G-code for Heidenhain TNC (ISO) 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 G251 in the app All Heidenhain TNC G-codes