Home › G-codes › LinuxCNC Tormach › G10 L1
G10 L1 Set tool table entry
LinuxCNC Tormach G-code · Mill and lathe
Writes values straight into the tool table for tool P: length offsets, radius, lathe angles and orientation.
Format
G10 L1 P [X] [Y] [Z] [R] [I] [J] [Q]
Addresses
| Address | What it does |
|---|---|
P | Tool number |
X Y Z | Tool offsets to store |
R | Tool radius |
I J | Lathe front and back angles |
Q | Lathe tool orientation |
How it works
Non modal.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
G10 L1 P1 Z1.875 R0.25 (TOOL 1 LENGTH 1.875, .500 DIAMETER)
T1 M6 G43 (LOAD AND APPLY NEW LENGTH)
G0 X0 Y0 Z1
G10 L1 P1 Z1.875 R0.25 (TOOL 1 LENGTH 1.875, .500 DIAMETER)
T1 M6 G43 (LOAD AND APPLY NEW LENGTH)
G0 X0 Y0 Z1
Example is in inch. Check offsets and clearances first.
Watch out for
- The new values do not take effect for the loaded tool until G43 is programmed again.
- Error if cutter compensation is on or P is missing or zero.
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 L1 in the app All LinuxCNC Tormach G-codes