Monday, November 5, 2018

Circular Milling Using Macro Variable


All parameter in form of variable while you make a program of circular milling. 

You just have to set only cutter diameter and hole diameter. This program is automatically calculate path of rotation.

Now see step by step what i did.

Hole Milling

%

O0001
N1 #100=12 (Hole Diameter)
N2 #101=8 (Cutter Diameter)
N3 #102=#100 - #101 (Center Distance)
N4 #103=#102/2 (Calculation)
N5 #104=1 (First Depth of cut)
N6 #105=1 (Global Depth of cut)
N7 #106=15 (Total Depth of cut)

N8 G0 G91 G28 Z0
N9 G90 G54 X0 Y0 M03 S2000
N10 Z5
N11 WHILE[#104LE#106]DO1

N12 G1 Z-#104 F200
N13 X-#103
N14 G03 X#103 I#103
N15 X-#103 I-#103
N16 #104=#104+#105
N17 END1

N18 G01 Z5 F200
N19 G0 G91 G28 Z0
N20 M05
N21 M30
%

Here i make only program for hole milling while i using climb milling, but whenever you make a program for boss milling you should change parameter of above program. 

There are only two changes made in program in line no. 3 and line no. 14.

Now we are using G02 for climb boss milling and  equation should be like this  #102=#100+#101 instead of subtraction.