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…

By cnccode · Updated
PropertyValue
CodeG141
Function3D Cutter Compensation (Haas)
Modal group07
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG141 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

Format
G141 D_ X_ Y_ Z_ I_ J_ K_
AddressMeaning
I J KSurface normal vector

G141 example program

Example
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.

Frequently asked questions

Is G141 modal?
Yes. G141 belongs to modal group 07 and stays active until another code of that group is programmed.
What does G141 mean in CNC?
G141 means 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 surfaces on size.
What is the difference between G141 and G41?
G141 is 3D Cutter Compensation (Haas), while G41 is Cutter Radius Compensation Left. See the G41 page for its syntax and examples.
Can I use G141 on a lathe?
Usually not with the same meaning: G141 is documented here for milling machines. Check your control manual for the equivalent.