CNC Machinist Calculator Ultra

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

AddressWhat it does
L2 P1 to P6Work offset G54 to G59
L20 PAdditional work offset G54.1 P number
L10 to L13 P RTool offset number P and value R, length or radius, geometry or wear
G90 or G91G90 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G54 · G54.1

G10 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucProgrammable data input, offsets
Haas NGCProgrammable offset setting
Okuma OSPCancel coordinate shift and rotation
Mitsubishi M70 M80Program data input for offsets
Brother SpeedioProgrammable data input
Heidenhain TNC (ISO)Rapid straight line, polar
Fagor 8055 8065Mirror image cancel
Mach3 Mach4Set offsets from the program
Centroid CNC12 AcornSet parameter or offset from program
Hurco WinMax (NC)Data setting, offsets by program
FadalProgrammable 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

App Store Google Play