Home › G-codes › Mitsubishi M70 M80 › G10
G10 Program data input for offsets
Mitsubishi M70 M80 G-code · Mill
Writes work offsets and tool offsets from the program. L2 sets G54 to G59, L20 sets G54.1 sets, L10 to L13 set tool length and radius data.
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 L10 P R
Addresses
| Address | What it does |
|---|---|
L2 P | Work offset, P1 to P6 for G54 to G59, P0 external offset |
L20 P | Extended work offset G54.1 P number |
L10 L11 | Tool length geometry and wear, P is offset number |
L12 L13 | Tool radius geometry and wear, P is offset number |
R | Offset value |
How it works
Non-modal, group 00.
Example program
G90 G10 L2 P1 X-12.5 Y-8.25 Z0. (SET G54)
G10 L10 P5 R4.1235 (LENGTH OFFSET 5)
G10 L12 P5 R.25 (RADIUS OFFSET 5)
G10 L10 P5 R4.1235 (LENGTH OFFSET 5)
G10 L12 P5 R.25 (RADIUS OFFSET 5)
Example is in inch. Check offsets and clearances first.
Watch out for
- In G91 the value is added to the stored value. Use G90 to overwrite.
- L10 to L13 meanings apply to tool offset memory type II. Type I uses L10 only.
- Single block and test runs still write the data.
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 |
| 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 Mitsubishi M70 M80 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 Mitsubishi M70 M80 G-codes