Also Read
N05 G90 G20 G94; Program in Absolute co-ordinate system and units are in inches, Feed rate in mm/min.
N06 G28 X0 Y0 Z5 ; Tool reference/home command , where X0 ,Y0 and Z5
N10 M06 T01; Tool change command and Select tool number 1 Tool diameter = 0.25 inch.
N15 S2000 M03; Turn on Spindle with 2000 RPM in clockwise direction.
N20 G00 X0 Y0 Z.100; Move the tool rapidly to X0 Y0 and Z0.1 inch absolute location at lower left corner.
N25 X.375 Y.375; Move tool rapidly to X.375, Y.375
N30 G01 Z.25 F80; Move tool with given feed rate of 80 mm/min to down wards in upto Z=0.25
Now the material is removing is started from X.375 Y.375 co-ordinate.
N35 X.375 Y1.375 ; Now move the tool to X.375 , Y1.375 with Z as .25, material removed.
N40 X1.625; Move tool to X1.625
N45 Y.375; Move tool to Y = 0.375
N50 X.375 ; Move tool to X =0.375
N55 G00 Z.10 ; Now move the tool upwards upto Z = 0.1 inch rapidly.
;Upto this the rectangular boarder is created.
; Now create the inside shapes
N60 G00 X1.25 Y.875; Move tool reaidly to X=1.25, Y= 0.875
N65 G01 Z-.25 F80; Now again move tool to down wards to remove material upto Z = 0.25 inch.
N70 G00 Z.100; Move tool upwards to Z=0.1 rapidly.
;One hole is completed
;Now creae another hole
N75 X.875 Y1.25; Move tool in air rapidly up to X= 0.875 and Y = 1.25 inch.
N80 G01 Z-.25 F80; Now move tool inside to work piece upto Z = -0.25 with feed as 80mm/Min.
N85 G00 Z.100; Move tool upwards to Z=0.1 rapidly.
; Hole number 2 alos completed.
;Now generate arc shape "C" with G03
N90 G0 X0.75 Y1.000 ; move tool to X=0.75, Y=1.00 in air
N95 G01 Z-.25;
N100 G03 X1.000 Y.750 R.250; Move tool in circular interpolation with counter clockwise direction with radius of 0.25 inch to X= 1, Y = 0.75
N105 G00 Z.1; Move tool to air from work piece upto Z = 0.1 inch rapidly.
; Now the arc is completed.
;Now create the slot B
N110 G00 X1.125 Y1.125 ; Move tool to point B
N115 G01 Z-.25 F80; move tool inside the work piece.
N120 G01 X1.375 Y1.375 ; Move tool to slot end point
N125 G00 Z.1
N130 G28 X0 Y0 Z5 ; Tool reference/home command , where X0 ,Y0 and Z5
N135 M30; Program END
Comments