CNC Machinist Calculator Ultra

Home › G-codes › Mazak (EIA) › G20

G20 Inch input

Mazak (EIA) G-code · Mill and lathe

Sets the program units to inch. All positions, offsets used and feed rates are read in inches.

Format

G20

Addresses

AddressWhat it does
G20No addresses

How it works

Modal, group 06.

Example program

O1000 (INCH PROGRAM)
G20 (INCH)
G17 G40 G49 G80 G90 (SAFETY LINE)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G21

G20 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucInch input
Haas NGCInch programming check
Okuma OSPInch input confirmation
Mitsubishi M70 M80Inch input
Brother SpeedioInch input
Fagor 8055 8065Lower work zone limits (8055)
LinuxCNC TormachInch units
Mach3 Mach4Inch units
Centroid CNC12 AcornInch units
Hurco WinMax (NC)Inch input (ISNC)
FadalCheck for inch setting
Swiss (Citizen Star)Inch 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 G20 in the app All Mazak G-codes

App Store Google Play