G-code reference

G23 G-Code: Stored Stroke Check Off

Stored Stroke Check Off — Disables the programmable forbidden zone enabled with G22.

By cnccode · Updated
PropertyValue
CodeG23
FunctionStored Stroke Check Off
Modal group04
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG23

What does G23 do?

Disables the programmable forbidden zone enabled with G22.

G23 is modal: once programmed it remains in effect for the following blocks until another code from modal group 04 replaces it or the control is reset.

Syntax and parameters

Format
G23

G23 example program

Example
G23

▶ Open this example in the G-code viewer

Controller compatibility

G23 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G23 modal?
Yes. G23 belongs to modal group 04 and stays active until another code of that group is programmed.
What does G23 mean in CNC?
G23 means Stored Stroke Check Off. Disables the programmable forbidden zone enabled with G22.
What is the difference between G23 and G22?
G23 is Stored Stroke Check Off, while G22 is Stored Stroke Check On. See the G22 page for its syntax and examples.
Can I use G23 on a lathe?
Yes, G23 is used on both mills and lathes, although some parameters differ between them.