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.
| Property | Value |
|---|---|
| Code | G11 |
| Function | Programmable Data Input Cancel |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | G10 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
G10 L50 … G11G11 example program
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.