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
| Address | What it does |
|---|---|
X Y Z | Limit 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)
…
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
- Okuma G22 and G23 are travel limit codes. Macro calls use CALL or G code macros.
- Test the limit at low rapid override.
Related codes
G22 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Stored stroke check on |
| Brother Speedio | Stored stroke check on |
| Fagor 8055 8065 | Enable or disable work zones |
| Centroid CNC12 Acorn | Work 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