Home › G-codes › Heidenhain TNC (ISO) › G221
G221 Linear point pattern
Heidenhain TNC (ISO) G-code · Mill
Calls the last defined machining cycle on a grid of rows and columns. Klartext: CYCL DEF 221 CARTESIAN PATTERN.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G221 Q225 Q226 Q237 Q238 Q242 Q243 Q224 Q200 Q203 Q204 Q301
Addresses
| Address | What it does |
|---|---|
Q225 Q226 | Starting point |
Q237 Q238 | Spacing in first and second axis |
Q242 | Number of columns |
Q243 | Number of lines |
How it works
Calls the cycle by itself. No G79 is needed.
Example program
N50 G200 DRILLING
Q201=-15 ;DEPTH
N60 G221 CARTESIAN PATTERN
Q225=+10 ;STARTNG PNT 1ST AXIS
…
Q201=-15 ;DEPTH
N60 G221 CARTESIAN PATTERN
Q225=+10 ;STARTNG PNT 1ST AXIS
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Q224 rotates the whole grid around the start point.
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 G221 in the app All Heidenhain TNC G-codes