CNC Machinist Calculator Ultra

Home › G-codes › Okuma OSP › G20

G20 Inch input confirmation / Home position return

Okuma OSP G-code · Mill, Lathe

On mills: Inch input confirmation

Okuma lists G20 as inch input confirmation. The unit system is normally set by parameter, and G20 tells the control the program is in inches.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

G20

How it works

Modal, unit group. Optional feature.

Example program

O1000 (OKUMA MILL SAMPLE)
N1 G20 (INCH PROGRAM)
N2 G15 H1 (WORK COORDINATE SYSTEM 1)
N3 G00 G90 X1. Y1. (POSITION IN INCHES)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Home position return

On Okuma lathes G20 sends the turret to the home position. It is not inch mode like Fanuc G20.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

G20 [HP=]

Addresses

AddressWhat it does
HP=Home position number, check the manual

How it works

One shot.

Example program

O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.2 Z.1 T010101 (LAST CUT)
N3 G97 S500 (CANCEL CSS)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G21 · G00

G20 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucInch input
Haas NGCInch programming check
Mazak (EIA)Inch input
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 Okuma OSP 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 Okuma OSP G-codes

App Store Google Play