Skip to content

G22/G23: Programmed stroke limits

Activates or deactivates zone checking/stored limits according to control.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Safety
Machine
Milling, Turning, Mill-turn
Risk
High
Example
G22 / G23

How to write it on each control

Example
G22 / G23
Fanuc
G22 / G23

It depends on parameters; can protect or block machine areas.

ISO común—

It is not universal; check the exact use per control.

Parameters

X Y Z
Upper limit of the forbidden zone. · mm
I J K
Lower limit of the forbidden zone. · mm

Machine: Milling, Turning, Mill-turn

Sources

Frequently Asked Questions (FAQ)

What does G22/G23 mean in a CNC program?

Activates or deactivates zone checking/stored limits according to control. In the catalogue it appears as "Programmed stroke limits", within the Safety family.

How is G22/G23 written on each control?

Fanuc: G22 / G23. The exact syntax depends on the control version and the machine parameters: always confirm with the manufacturer's manual.

Can you give me an example of G22/G23?

G22 / G23 — Activates or deactivates zone checking/stored limits according to control.

Which machines use G22/G23?

G22/G23 is used in: Milling, Turning, Mill-turn.

What should you watch out for with G22/G23?

High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.

Related apps