Printed from Kezuriba (kezuriba.net/en/nc/g44/)
G44
Machining centerModal, group 08Tool length compensation – (subtracts the offset)
Format and notes
G44 Z_ H_
- Rarely used now; standardizing on G43 is normal
- G43 adds the offset and G44 subtracts it. If the offset is negative, the direction reverses (with G44 and a negative offset, the tool shifts in the + direction) (Siemens ISO dialect)
- A common mistake: calling with G44 an offset number that was measured and entered on the assumption of G43 (add). If the offset is a positive value, the tool moves down (toward the workpiece) by twice the offset from the correct position, which can cause a crash into the tool or workpiece
- Cancel with G49 or H00 (Siemens ISO dialect)
- Command G43, G44 and G49 while in G00 or G01 mode. Commanding them in G02/G03 mode or inside a canned cycle causes an error (Siemens ISO dialect)
- If you write Z in the block that applies the offset, the tool moves to the position including the offset. If the block has only H without Z, Z moves by the offset amount. If you change H to another number, it moves by the difference between the two offsets (Siemens ISO dialect)
- Within one machine and one program, keep the way offsets are entered (whether tool length is entered as a positive value) and the use of G43/G44 consistent. Mixing them invites mix-ups
- Tool radius compensation (G41, G42) can also be called while tool length compensation mode is active (Siemens ISO dialect)
- Whether Z moves immediately in the block where the offset is selected, or at the next Z command, can be changed by a machine setting (the Siemens ISO dialect selects it with machine data)
Example
(H05 = 5.000) G90 G54 G00 X0 Y0 ; G44 Z-20. H05 ; (Z GOES TO -20 - 5 = -25) G01 Z-28. F100 ; (Z GOES TO -33) G00 Z0 H00 ; (H00 CANCELS, Z GOES TO 0) G43 Z-20. H05 ; (WITH G43: -20 + 5 = -15) G49 G00 Z0 ; (CANCEL)
An example showing how the destination changes between G44 and G43, assuming offset number 05 holds 5.000. With G44 the tool moves to the commanded Z minus 5 mm; with G43, to the commanded Z plus 5 mm. Even with the same offset number, mixing up G43 and G44 changes the destination by 10 mm (twice the offset). The values are for illustration.
Differences between controls and machines
The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.
| Source | Machine | Item | Detail |
|---|---|---|---|
| NIST | Machining center | Availability | Not definedGroup 8 in RS274/NGC contains only G43/G49 |
| LinuxCNC | — | Availability | There is no G44 (tool length compensation is G43, G43.1 and G43.2, with G49 to cancel) |
| Haas | Machining center | Notes | On newer software (NGC 100.21.000.1100 and later), tool length compensation and the group 08 codes (G43, G44) persist through power-off. The offset stays applied unless cancelled with G49 or H00 |
Frequently asked questions about G44
- What is G44 (Tool length compensation – (subtracts the offset)) used for and how is it formatted in a CNC program?
- G44 commands "Tool length compensation – (subtracts the offset)" on Machining center. The standard program format is "G44 Z_ H_". Rarely used now; standardizing on G43 is normal
- Is G44 a modal code or a one-shot (non-modal) code?
- G44 is a modal code (Group 08). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
- Does G44 work differently on machining centers (mills) versus CNC lathes?
- G44 is primarily used on Machining center. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
- Are there differences in G44 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G44. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
Sources
The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- LinuxCNC project — G-Codes (LinuxCNC Documentation) linuxcnc.org
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov