Home › G-codes › LinuxCNC Tormach › G10 L10
G10 L10 Set tool offset from current position
LinuxCNC Tormach G-code · Mill and lathe
Changes the tool table so the current position reads as the given value with that tool. Used to touch off a tool on the part.
Format
G10 L10 P [X] [Y] [Z] [R] [I] [J] [Q]
Addresses
| Address | What it does |
|---|---|
P | Tool number |
X Y Z | Value the current position should read |
R I J Q | Optional radius, angles and orientation |
How it works
Non modal.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T2 M6 G43 (DRILL TO TOUCH OFF)
(JOG TOOL TIP TO TOP OF PART BY HAND, THEN)
G10 L10 P2 Z0 (TOP OF PART IS Z0 FOR TOOL 2)
…
T2 M6 G43 (DRILL TO TOUCH OFF)
(JOG TOOL TIP TO TOP OF PART BY HAND, THEN)
G10 L10 P2 Z0 (TOP OF PART IS Z0 FOR TOOL 2)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Axes not named keep their old offsets.
- Program G43 after it so the loaded tool uses the new value.
- Uses the active work offset, so pick the right G54 to G59.3 first.
Related codes
Every G-code for LinuxCNC Tormach 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 G10 L10 in the app All LinuxCNC Tormach G-codes