G22 Stored stroke check on
Fanuc G-code · Mill, Lathe
On mills: Stored stroke check on
Turns on a second protected zone, a box given by two corner points. The machine stops with an alarm before entering it. Used to protect a fixture or tailstock area.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X Y Z | First corner of the zone, machine coordinates |
I J K | Opposite corner of the zone, machine coordinates |
How it works
Modal, group 04. Cancel with G23.
Example program
G00 X-12. Y-10. (MOVES OUTSIDE THE ZONE ARE OK)
G23 (TURN ZONE OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- A parameter decides if the inside or the outside of the box is forbidden.
- The check uses the tool position as set by the builder. Leave a margin for tool length.
- Give G22 in its own block.
On lathes: Stored stroke check on
Turns on a programmed forbidden area, such as a chuck or tailstock zone. The machine stops with an alarm before it enters.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X Z | First corner of the boundary |
I K | Second corner of the boundary |
How it works
Modal, group 09. Cancel with G23.
Example program
G00 X2.1 Z.1 (APPROACH, CHECK ACTIVE)
G23 (CHECK OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- A parameter sets whether the inside or outside of the box is forbidden.
- Check whether X and I are read as diameter on your machine.
- The check uses the tool tip position with offsets. Test it slowly.
Related codes
G22 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Okuma OSP | Programmable travel limit 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 Fanuc 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 Fanuc G-codes