CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G20

G20 Inch programming check / Select inches

Haas NGC G-code · Mill, Lathe

On mills: Inch programming check

Tells the control the program is in inches. On Haas the units are set by Setting 9, and G20 checks that the setting matches.

Format

G20

How it works

Modal, units group 06.

Example program

O01000 (INCH PROGRAM)
G20 (CONFIRM INCH MODE)
G17 G40 G80 G90 (SAFE START)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Select inches

Confirms the program is in inch. Use Setting 9 to choose inch or metric. G20 alarms if Setting 9 is not set to inch.

Format

G20

How it works

Modal, group 06.

Example program

G00 G18 G20 G40 G80 G99 (SAFE STARTUP, INCH)
T0101 (OD TOOL)
G00 G54 X2.1 Z.1 (APPROACH, VALUES IN INCHES)

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
Mazak (EIA)Inch input
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 Haas NGC 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 Haas NGC G-codes

App Store Google Play