Everybody knows that any dimensions has tolerance. The dimensions are never without the tolerance. All dimensions has one higher value of it and one lower value of it.
Like this any cutter is also made from the manufacturing so cutter diameter is also not perfect it also has tolerance. For exaple if u buy 10mm of cutter diameter than its diameter is 9.999 to 10.00. It should be like this not exactly.
To get nearest value of machining we need some manipulation with cutter thats why wear word is include in cnc machine.
G40 G41 and G42 to be used for wear in cnc milling machine.
G41 left side cutter compensation
G42 Right side cutter compensation
G40 Cancel all compensation
G41 used for cutter moved towars left side if cutting direction is climb and cutter is right hand side tool for cutting.
G42 used for cutter moved toward right side if cutting direction is conventional and cutter is right hand side tool for cutting.
Cutter compensation used only for planner operation and it cant not used in 3D program.
Example of compensation
G0 G91 G28 Z0
G90 G54 G40 X0 Y0 ← (Cancel all previous compensation)
Z5
G01 Z0 F50
G41 Y100 ← (Left hand side tool compensation)
X200
Y0
X0
Z5
G0 G91 G28 Z0
M30