CNC Milling | Profile Definition Example with Tool Radius Compensation (G41 and G42)

In this article, we write CNC program example for profile machining with tool radius compensation (G41 and G42) in CNC Milling machines.

0
1912

Technical Drawing

Profile definition with tool radius compensation (G40/G41/G42)

CNC Program

N5 T2 D2
N10 G0 G90 G42 X0 Y0 Z5 S1000 M3 M41
N20 G94 G1 Z-5 F150
N30 X10.858 F200 ; Start machining the profile.
N40 G2 X39.142 I14.142 J-5
N50 G1 X100
N60 Y50
N70 X90 Y42
N80 X80 Y50
N90 Y20
N100 X55
N110 X38.672 Y56.172
N120 G3 X10 Y50 I-13.672 J-6.172
N130 G1 X10 Y20
N140 X0
N150 Y0 ; Finish machining the profile.
N160 G1 Z5
N170 G0 G40 X-30 Y-30 Z20 M30

G Codes Explanation

G00 Rapid traverse
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G41 and G42 Tool Radius Compensation
G90 Absolute command
G91 Increment command

 


Need to More?

Our volunteers have worked together and carefully prepared the articles published here in their native language without using machine translation. You can search the entire site for more information on the subject. You can start a discussion on CNCarea.com forums and join us to get support, ask questions, improve a published article or give your opinion.


Previous articleCNC Lathe | G50.2 and G51.2 | Polygon Turning
Next articleG02 and G03 Code Examples