Introduction
Tool compensation helps the CNC machine adjust for the tool's size and shape so the final part matches the exact dimensions you want.
G41 D1 ; Tool radius compensation left G42 D1 ; Tool radius compensation right G40 ; Cancel tool radius compensation
G41 D1 G01 X50 Y50 F100 G40
G42 D2 G01 X100 Y0 F200 G40
N10 G21 G90 N20 T1 M06 N30 G41 D1 N40 G01 X50 Y0 F150 N50 Y50 N60 G40 N70 M30
G42 in a CNC program?G41 X10 Y10 G40 G42 X20 Y20
Pass the test and this pattern moves unknown