G-code reference
G141 G-Code: 3D Cutter Compensation (Haas)
3D Cutter Compensation (Haas) — Haas 3D+ cutter compensation that offsets the tool along surface normal vectors (I, J, K) output by CAM, so worn or resharpened tools still cut 3D or 5-axis…
| Property | Value |
|---|---|
| Code | G141 |
| Function | 3D Cutter Compensation (Haas) |
| Modal group | 07 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G141 D_ X_ Y_ Z_ I_ J_ K_ |
What does G141 do?
Haas 3D+ cutter compensation that offsets the tool along surface normal vectors (I, J, K) output by CAM, so worn or resharpened tools still cut 3D or 5-axis surfaces on size.
G141 is modal: once programmed it remains in effect for the following blocks until another code from modal group 07 replaces it or the control is reset.
Syntax and parameters
G141 D_ X_ Y_ Z_ I_ J_ K_| Address | Meaning |
|---|---|
I J K | Surface normal vector |
G141 example program
G141 D01 X10.0 Y5.0 Z-2.0 I0.7071 J0 K0.7071 F500.
G40▶ Open this example in the G-code viewer
Tips and common mistakes
- Requires CAM output with normal vectors.
Controller compatibility
G141 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.