Home › G-codes › Siemens 808D ISO › G10
G10 Write work offsets or tool offsets / Write work offset or tool offset
Siemens 808D ISO G-code · Mill, Lathe
On mills: Write work offsets or tool offsets
With L2 writes a work offset G54 to G59 or the external offset. With L10 to L13 overwrites a tool length or radius offset. Lets the program set its own offsets.
Format
Addresses
| Address | What it does |
|---|---|
L | 2 work offset, 10 length geometry, 11 length wear, 12 radius geometry, 13 radius wear |
P | With L2: 0 external offset, 1 to 6 for G54 to G59. With L10 to L13: offset number |
X Y Z | Work offset values. In G91 they are added to the stored values |
R | Tool offset value |
How it works
Non-modal, group 18. Optional function.
Example program
G10 L10 P11 R200. (LENGTH OFFSET 11 TO 200 MM)
G10 L12 P11 R5. (RADIUS OFFSET 11 TO 5 MM)
G90 G54 G00 X0. Y0. (USE NEW G54)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- G10 can only overwrite tool offsets that already exist in the Siemens tool data. It cannot create a new tool.
- L1 works in place of L11. The manual shows only P0 to P6 with L2, no Fanuc style L20 for the extra G54 P offsets.
- To write only when the block runs, set MD20734 bit 13. G10 then does an internal STOPRE.
On lathes: Write work offset or tool offset
Writes offset values from the program. G10 L2 P sets a work offset; G10 P with X Z R Q overwrites a tool offset. Only existing tool offsets can be changed, not new ones made.
Format
Addresses
| Address | What it does |
|---|---|
L2 P | Work offset: P0 external, P1 to P6 for G54 to G59 |
P | Tool offset number, geometry or wear per MD20734 bit 1 |
X Z | Absolute offset value |
U W | Incremental offset value |
R C | Tool nose radius, R absolute, C incremental |
Q | Cutting edge position (tool tip number) |
How it works
Non-modal, G group 18.
Example program
G10 P1 U-0.02 (TOOL OFFSET 1, X CHANGED BY MINUS 0.02)
G54 (USE WORK OFFSET 1)
G00 X150.0 Z100.0 (SAFE POINT)
Example is in inch. Check offsets and clearances first.
Watch out for
- With MD20734 bit 1 = 1, P1 to P9999 write wear and P10000 plus the number write geometry. Check the bit before using Fanuc style P numbers.
- G10 is normally written ahead of the move (preprocessing). Set MD20734 bit 13 to write it when the block runs, with an internal STOPRE.
Related codes
G10 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Programmable data input, offsets |
| Haas NGC | Programmable offset setting |
| Mazak (EIA) | Program data setting, offsets |
| Okuma OSP | Cancel coordinate shift and rotation |
| Mitsubishi M70 M80 | Program data input for offsets |
| Brother Speedio | Programmable data input |
| Heidenhain TNC (ISO) | Rapid straight line, polar |
| Fagor 8055 8065 | Mirror image cancel |
| Mach3 Mach4 | Set offsets from the program |
| Centroid CNC12 Acorn | Set parameter or offset from program |
| Hurco WinMax (NC) | Data setting, offsets by program |
| Fadal | Programmable data input |
Every G-code for Siemens 808D 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 G10 in the app All Siemens 808D ISO G-codes