G40, G41, G42 Cutter Compensation Commands

Code Practice

OBJECTIVE

After completing this unit, you should be able to:

  • identify the reasons for using cutter compensation
  • choose between G41 and G42 in CNC code

To turn cutter compensation off, program G40. It is OK to turn compensation off when it is already off. This is called a redundant command.  Redundant means repeat.

To turn cutter diameter compensation on left (i.e., the cutter stays to the left of the programmed path when the tool radius is positive), program G41 D# .

To turn cutter diameter compensation on right (i.e., the cutter stays to the right of the programmed path when the tool radius is positive), program G42 D# .

The D number should normally be the slot number of the tool in the spindle.

It is an error if:
· the D number is not an integer, is negative or is larger than the number of carousel slots,
· the XY-plane is not active,
· cutter radius compensation is commanded to turn on when it is already on.

Questions


Adapted from “Cutter Radius Compensation (G40, G41, & G42)” by ManufacturingET is licensed under CC BY-SA 4.0

License

Icon for the Creative Commons Attribution 4.0 International License

Support for CNC Copyright © by Lisa Hillyard is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book