Printed from Kezuriba (kezuriba.net/en/nc/g41/)
G41
Machining center, LatheModal, group 07Cutter compensation left (tool is on the left of the direction of travel)
Format and notes
G17 G01 G41 X_ Y_ D_ F_
- D is the offset number (not the radius value itself)
- Start the compensation (start-up) with a linear move. In the NIST language specification it is used only in the XY plane (G17) and cannot be used during a canned cycle. Check the machine's manual to see whether it can be used in other planes
- During compensation, the control reads ahead to blocks that contain X or Y movement and checks whether the tool path would gouge the part (Haas looks ahead 2 blocks). A path that would gouge stops with an alarm
- An inside arc smaller than the compensation amount (the tool radius) triggers an alarm because the tool cannot fit (Haas). Make inside radii equal to or larger than the tool radius
- Compensation start and cancel (G40) are both done in a linear move block. Compensation cannot be started or canceled in a G02/G03 arc block (Haas). Make the starting linear move at least as long as the tool radius (Haas, Tormach)
Diagram: Cutter radius compensation: left (G41) and right (G42) of travel direction
Full guide with examples: Machining center programming basics (practise G54, G43 and G41 in a simulator)
Try it in the simulator (machining center)
G41 offsets the tool to the left of the travel direction by its radius, leaving X10–70, Y10–50. Remove D1 or change to G42 and watch the shape change.
Simulator with exercises: Machining center page
On lathes: Tool nose radius compensation, left
On lathes (FANUC-type G-code system A) the code does the same job. Group 07.
- Register the nose radius and the imaginary tool tip number (tool nose orientation) on the tool offset screen
Diagram (lathe): tool nose radius compensation, imaginary tip and nose center
Frequently asked questions about G41
- What is G41 (Cutter compensation left (tool is on the left of the direction of travel)) used for and how is it formatted in a CNC program?
- G41 commands "Cutter compensation left (tool is on the left of the direction of travel)" on Machining center, Lathe. The standard program format is "G17 G01 G41 X_ Y_ D_ F_". D is the offset number (not the radius value itself)
- Is G41 a modal code or a one-shot (non-modal) code?
- G41 is a modal code (Group 07). 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 G41 work differently on machining centers (mills) versus CNC lathes?
- On both machining centers and CNC lathes (G-code System A), G41 performs the same function ("Cutter compensation left (tool is on the left of the direction of travel)"). However, valid axis addresses (such as X/Y/Z versus diameter/incremental U/W) and parameter numbers can still differ between mill and lathe controls.
- Are there differences in G41 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- While the core behavior of G41 is shared across most ISO-compatible CNC controls (FANUC, Mitsubishi Electric, Haas), controls using native conversational or proprietary dialects (such as Okuma OSP, Siemens native mode, or Heidenhain) or machine-specific M-code tables may use different syntax. Always verify with single-block execution and distance-to-go display on a new machine.
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. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
- Tormach Inc. — Cutter Compensation (G40, G41, G42) tormach.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- Ministry of Health, Labour and Welfare (MHLW), Human Resources Development Bureau, Office of the Councillor for Skills Evaluation — Human resource development manual using the practical exam tasks of the Grade 3 Skilled Worker Test: CNC lathe work (March 2018) waza.mhlw.go.jp