CNC Machinist Calculator Ultra

Home › G-codes › Okuma OSP › G22

G22 Programmable travel limit on

Okuma OSP G-code · Mill

Turns on a program set travel limit so the axes cannot enter a protected area. On Okuma G22 is not a macro call.

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

Format

G22 X Y Z

Addresses

AddressWhat it does
X Y ZLimit position, check the manual for the exact words

How it works

Modal. Cancel with G23.

Example program

O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G22 X10. Y5. Z0 (TRAVEL LIMIT ON, VALUES ARE EXAMPLES)
N3 G00 G90 X1. Y1. (NORMAL MOVES)
…

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

Watch out for

Related codes

G23

G22 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucStored stroke check on
Brother SpeedioStored stroke check on
Fagor 8055 8065Enable or disable work zones
Centroid CNC12 AcornWork envelope on

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 G22 in the app All Okuma OSP G-codes

App Store Google Play