G-code reference

G11 G-Code: Programmable Data Input Cancel

Programmable Data Input Cancel — Ends the parameter-input mode started with G10 L50 on Fanuc controls. Between G10 L50 and G11 each block writes a parameter value.

By cnccode · Updated
PropertyValue
CodeG11
FunctionProgrammable Data Input Cancel
Modal group00
TypeOne-shot (non-modal) — active only in its own block
Used onMills and lathes
SyntaxG10 L50 … G11

What does G11 do?

Ends the parameter-input mode started with G10 L50 on Fanuc controls. Between G10 L50 and G11 each block writes a parameter value.

G11 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.

Syntax and parameters

Format
G10 L50 … G11

G11 example program

Example
G10 L50
N1620 R2000 (parameter 1620 = 2000)
G11

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Writing parameters from a program is powerful and risky — back up parameters first.

Controller compatibility

G11 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 G11 modal?
No. G11 is a one-shot (group 00) code and only acts in the block where it appears.
What does G11 mean in CNC?
G11 means Programmable Data Input Cancel. Ends the parameter-input mode started with G10 L50 on Fanuc controls. Between G10 L50 and G11 each block writes a parameter value.
What is the difference between G11 and G10?
G11 is Programmable Data Input Cancel, while G10 is Programmable Data Input (Set Offsets). See the G10 page for its syntax and examples.
Can I use G11 on a lathe?
Yes, G11 is used on both mills and lathes, although some parameters differ between them.