Gee Two Two: Stored stroke check function on
G22 Turns on a “Safe zone” where the machine cannot be programmed to enter, think of it as a “crash barrier” or “Idiot buffer”. Very useful for new users who may be likely to make grammatical mistakes for experienced folks can be a bit of a nuisance. Think of it as a *fence around bits you don’t want to hit.
These cost a LOT, A Kitagawa B210 power chuck.(I used to make these, RIP Tertius, you were a good man)

You really don’t want to pile your tools into this at Rapid speed.

In the below you can see the barrier line in RED

The blue circle intersection is the point you use to define the blocking function in X and Z axis. This can be closer or further away from the chuck but the cup shaped zone inside it is protected. If the machine tries to go past it will stop and will need to be moved outside the barrier in manual mode before it can be started again. On milling machines it’s a little different but the mechanism is similar. It also stops idiots ramming spindles or turrets into beds ,chucks and the general scenery.
It can also be turned off in the machine parameters but I’m not going in to how you do that.
Syntax:
G22 X*.* Z*.* this will create a barrier with the biggest diameter and furthest right hand point of the *safe* zone. On Mazaks this would be called the “Chuck Barrier”.
- X*.* or Z*.* are positions as shown above.
G22 Is A Modal Command