You are on page 1of 4

LAB#8: COMPLEX PART USING TOOL DIAMETER COMPENSATION

Description:
In this lab we are using the G41 and G42 code. This code is used to give cutter compensations. The G41
is used to give cutter compensation to left while G42 is right of tool path. G40 is used to switch the
radius/diameter compensation off.

Graph:
The graph for the part is attached below:

Complex Part Using Tool Diameter Compensation 8

26
Example:
We will make the ‘M’ letter part by using the CNC Simulator Pro and G90 (absolute co-ordinate
system). We will first make outer cut around the block and then inner cut.
For this part we must remove the material from the block of 70×100×10 mm. We first start by giving the
co-ordinate of the point as we have done in the graph attached above. The tool diameter and dimensions
are also to be noted hence our co-ordinates have variation to actual co-ordinates by the value of the tool
radius. The tool centre follows the actual co-ordinate. To tackle this situation, we are using tool radius
compensation.
G-Code:
The CNC code for the above part is given below:
(FOR OUTER CUT)
$AddRegPart 5
O0001;
N10 M06 ET3;
N30 G92 X0 Y0 Z10;
N40 G00 X0 Y0 Z0 F50 S500 M03;
N45 G41 D10;
N50 G00 X05 Y05 Z-10;
N70 G01 X5 Y100;
N80 X37.5 Y50;
N90 X70 Y100;
N100 X70 Y05;
N110 X65 Y05;
Complex Part Using Tool Diameter Compensation 8
N120 X65 Y80;
N130 X37.5 Y40;
N140 X10 Y80;
N150 X10 Y05;
N160 X0 Y05;
N170 X0 Y0;
N180 G40;
N185 G42 D10;
N186 G01 X20 Y05;
N200 X20 Y70
N210 X37.5 Y30;
N220 X55 Y70;
N230 X55 Y-5;
N240 X30 Y-5;
N250 X30 Y27;
N260 X50 Y27;
N270 X50 Y0;
N280 X35 Y0;
N290 X35 Y10;
N295 Z30;
N310 G40;
N320 G00 X15 Y100;
N325 G41 D10;
N330 G01 Z-10;
N340 X37.5 Y60;
N350 X65 Y105;
N360 X25 Y105;

27
N370 X37.5 Y70;
N380 X50 Y105;
N390 X30 Y105;
N391 X37.5 Y55;
N392 X37.5 Y105;
N393 X50 Y100;
N394 X25 Y100;
N400 G28;
N410 D40;
N420 M05;
N430 M30;
(FOR INNER CUT)
$AddRegPart 5
N10 M06 T02;
N20 G17 G90 G21;
N30 G92 X0 Y0 Z10;
N40 G00 X0 Y0 Z0 F50 S500 M03;
N45 G42 D10;
N50 G00 X05 Y15 Z50;
N65 G01 Z-10;
N70 X5 Y100;
N80 X37.5 Y50;
N90 X70 Y100;
N100 X70 Y15;
N110 Z50;
N130 G40;
N135 G28;
Complex
N140 M05;Part Using Tool Diameter Compensation 8
N150 M30;
The $AddRegPart 5 is the default input command of the CNC Simulator Pro. It inserts the
workpiece of our own dimensions we give to the CNC simulator. Also, tool added start with E which are
the embedded tool in the software.
G92 Code is used for setting the workpiece offset so that our zero position in the top left corner of the
workpiece.
Tool used Part:
The tool used in the simulation are:
 ET3: End Mill Cutter for milling having diameter of 10 mm.
CNC Simulator Pro:
The screenshots from the CNC Simulator Pro are attached below:

28
Complex Part Using Tool Diameter Compensation 8

29

You might also like