G-code reference
G49 G-Code: Tool Length Compensation Cancel
Tool Length Compensation Cancel — Cancels G43/G44 tool length offset. It is typically placed in safe start lines and before tool changes.
| Property | Value |
|---|---|
| Code | G49 |
| Function | Tool Length Compensation Cancel |
| Modal group | 08 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G49 |
What does G49 do?
Cancels G43/G44 tool length offset. It is typically placed in safe start lines and before tool changes.
G49 is modal: once programmed it remains in effect for the following blocks until another code from modal group 08 replaces it or the control is reset.
Syntax and parameters
G49G49 example program
G91 G28 Z0
G49
G90▶ Open this example in the G-code viewer
Tips and common mistakes
- Cancelling with a Z move active causes a sudden Z jump on some controls — cancel at home.
Controller compatibility
G49 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.