Home › G-codes › Heidenhain TNC (ISO) › G240
G240 Centering cycle
Heidenhain TNC (ISO) G-code · Mill
Spot drills to a depth or to a countersink diameter. Klartext: CYCL DEF 240 CENTERING.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G240 Q200 Q343 Q201 Q344 Q206 Q211 Q203 Q204
Addresses
| Address | What it does |
|---|---|
Q343 | 0 for depth, 1 for diameter |
Q201 | Depth |
Q344 | Diameter of the countersink |
Q206 | Plunging feed rate |
How it works
DEF active. Runs only with G79, M99 or M89.
Example program
N50 G240 CENTERING
Q200=2 ;SET-UP CLEARANCE
Q343=1 ;SELECT DIA.OR DEPTH
Q344=-9 ;DIAMETER
…
Q200=2 ;SET-UP CLEARANCE
Q343=1 ;SELECT DIA.OR DEPTH
Q344=-9 ;DIAMETER
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- With Q343=1 the tool point angle in the tool table must be correct.
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 G240 in the app All Heidenhain TNC G-codes