Introduction
Tool diameter compensation helps the machine adjust the path to cut the exact size of the part, even if the tool is bigger or smaller than expected.
G41 Dxx (left compensation) G42 Dxx (right compensation) G40 (cancel compensation)
G41 D1 G01 X50 Y50 F100
G42 D2 G01 X100 Y0 F150
G40 G01 X0 Y0
N10 G90 G40 G21 N20 T1 M06 N30 G00 X0 Y0 N40 G41 D1 G01 X50 Y0 F200 N50 Y50 N60 G40 G00 X0 Y0 N70 M30
G41 X100 Y50 G40 G42 X150 Y75
Pass the test and this pattern moves unknown