Home › G-codes › Mazak (EIA) › G10
G10 Program data setting, offsets
Mazak (EIA) G-code · Mill
Writes offsets from the program. G10 L2 sets a G54 to G59 work offset, L20 sets a G54.1 offset, and L10 to L13 set tool length and radius offsets.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G10 L2 P X Y Z or G10 L20 P X Y Z or G10 L10 P R
Addresses
| Address | What it does |
|---|---|
L2 P1 to P6 | Work offset G54 to G59 |
L20 P | Additional work offset G54.1 P number |
L10 to L13 P R | Tool offset number P and value R, length or radius, geometry or wear |
G90 or G91 | G90 replaces the value, G91 adds to it |
How it works
Non-modal.
Example program
G90 G10 L2 P1 X-15.25 Y-8.5 Z-12.375 (SET G54)
G90 G10 L20 P5 X-10. Y-6. Z-12. (SET G54.1 P5)
G90 G10 L10 P12 R-6.250 (TOOL 12 LENGTH GEOMETRY)
G90 G10 L12 P12 R.250 (TOOL 12 RADIUS GEOMETRY)
G90 G10 L20 P5 X-10. Y-6. Z-12. (SET G54.1 P5)
G90 G10 L10 P12 R-6.250 (TOOL 12 LENGTH GEOMETRY)
G90 G10 L12 P12 R.250 (TOOL 12 RADIUS GEOMETRY)
Example is in inch. Check offsets and clearances first.
Watch out for
- Mazak can store tool length in Mazatrol TOOL DATA or in the tool offset table. Writing the wrong table gives a crash. Check which one your EIA program uses.
- In G91 the value is added. Running the program twice doubles the shift.
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 |
| 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 Mazak (EIA) 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 Mazak G-codes