Example – 1
The dimensions of the workpiece blank are as follows: length = 110 mm, breadth = 110 mm, and thickness = 5 mm. An end-mill cutter with a diameter of 10 mm will be used for machining purposes.
%1111
(Example
1)
N05
G21 G90 G94                             (Preparatory
function codes)
N10
T1 M06                                       (T1
number tool change)
N15
M03 S2000 M07                         (Spindle
ON with 2000 RPM & Coolant ON)
N20
G00 G54 D1 X-10 Y0 Z5          (Axis
positioning considering work offset & tool offset)
N25
G01 Z-5.5 F150                          (Z-axis
movement for the depth of cut)
N30
G41 X0 Y0                                 (Cutter
compensation left & positioning at A point)
N35
Y75                                             (Positioning
at B point)
N40
X25 Y100                                   (Positioning
at C point) 
N45
X50                                             (Positioning
at D point)
N50
Y75                                             (Positioning
at E point)  
N55
X100                                           (Positioning
at F point)
N60
Y15                                             (Positioning
at G point)  
N65
G02 X85 Y0 R15 F100              (Positioning
at H point with 15 mm radius path)
N70
G01 X0 F150                              (Return
to position A)
N75
G00 G40 X-15 Y-15                   (Cancelling
cutter compensation and shifting axes)  
N80
Z5 M05 M09                               (Retracting
Z-axis, Spindle stop, and Coolant off)
N85
G00 G53 X0 Y0 Z0                    (Cancelling
work offset & returning to machine zero)
N90
M30                                             (End
of the program)
Example
– 2 
The dimensions of the workpiece blank are as follows: length = 310 mm, breadth = 160 mm, and thickness = 10 mm. An end-mill cutter with a diameter of 10 mm will be used for machining purposes.
%2222
(Example
2)
N05
G21 G90 G94                             (Preparatory
function codes)
N10
T2 M06                                       (Tool
change)
N15
M03 S1000 M07                         (Spindle
& Coolant ON)
N20
G00 G54 D1 X-10 Y0 Z-5          (Axis
positioning with work offset & tool offset)
N25
G01 Z10.5 F200                         (Z-axis
movement for the depth of cut)
N30
G42 X0 Y0                                 (Cutter
compensation Right & positioning at A point))
N35
Y70                                             (Positioning
at B point)
N40
X30                                             (Positioning
at C point) 
N45
X100 Y150                                 (Positioning
at D point)
N50
X140                                           (Positioning
at E point)  
N55
Y110                                           (Positioning
at F point)
N60
G02 X220 Y110 R40 F100        (Positioning
at G point with 40 mm radius path)  
N65
G03 X300 Y110 R40 F100        (Positioning
at H point with 40 mm radius path)
N70
G01 Y0 F200                              (Positioning
at I point) 
N75
X280                                           (Positioning
at J point)
N80
G02 X200 Y0 R40 F100            (Positioning
at K point with 40 mm radius path)  
N85
G01 X180 F200                          (Positioning
at L point)  
N90
Y40                                             (Positioning
at M point)  
N95
X140                                           (Positioning
at N point)
N100
G03 X60 Y40 R40 F100          (Positioning
at O point with 40 mm radius path)  
N105
G01 X30 F200                          (Positioning
at P point)
N110
Y0                                             (Positioning
at Q point)
N115
X0                                             (Returning
at A Point)
N100
G00 G40 X-15 Y-15                 (Cancelling
cutter compensation and shifting axes)  
N105
Z5 M05 M09                             (Retracting
Z-axis, Spindle stop, and Coolant off)
N110
G00 G53 X0 Y0 Z0                  (Cancelling
work offset & returning to machine zero)
N105
M30                                           (End
of the program)
Example – 3
The dimensions of the workpiece blank are as follows: length = 130 mm, breadth = 110 mm, and thickness = 10 mm. An end-mill cutter with a diameter of 10 mm will be used for machining purposes.
%3333
(Example
3)
N05
G21 G90 G94                             (Preparatory
function codes)
N10
T3 M06                                       (Tool
change)
N15
M03 S3000 M07                         (Spindle
ON with 3000 RPM & Coolant ON)
N20
G00 G54 D1 X-10 Y0 Z5          (Axis
positioning considering work offset & tool offset)
N25
G01 Z-10.5 F200                        (Z-axis
movement for the depth of cut)
N30
G41 X0 Y0                                 (Cutter
compensation left & positioning at A point)
N35
Y85                                             (Positioning
at B point)
N40
G02 X15 Y100 F100                  (Positioning
at C point with 15 mm radius path) 
N45
G01 X45 F200                            (Positioning
at D point)
N50
G02 X65 Y80 I20 J0 F100         (Positioning
at E point with 20 mm radius path)  
N55
G01 Y60 F200                            (Positioning
at F point)
N60
X85                                             (Positioning
at G point)  
N65
G02 X100 Y45 R15 F100          (Positioning
at H point with 15 mm radius path)
N70
G01 Y40 F150                            (Positioning
at I point) 
N75
G02 X90 Y30 R10 F100            (Positioning
at J point with 10 mm radius path)
N80
X85                                             (Positioning
at K point)  
N85
G03 X65 Y10 I-20 J0 F100        (Positioning
at L point with 20 mm radius path)  
N90
Y0                                               (Positioning
at M point)  
N95
X0                                               (Positioning
at A point)  
N100
G00 G40 X-15 Y-15                 (Cancelling
cutter compensation and shifting axes)  
N105
Z5 M05 M09                             (Retracting
Z-axis, Spindle stop, and Coolant off)
N110
G00 G53 X0 Y0 Z0                  (Cancelling
work offset & returning to machine zero)
N105
M30                                           (End
of the program)
Example – 4
The dimensions of the workpiece blank are as follows: length = 170 mm, breadth = 170 mm, and thickness = 80 mm. An end-mill cutter with a diameter of 10 mm will be used for machining purposes.
%4444
(Example
4)
N05
G21 G90 G94        
N10
T4 M06                                       (Considering
10 mm diameter end-mill)      
N15
M03 S1500 M07       
N20
G00 G54 G42 D1 X0 Y0 Z-85  (Z-axis
positioning 5 mm above work-piece)
N25
G01 Z-20 F150                           (Z-axis
taking the depth of cut 20 mm)
N30
X10                                             (Cutter
entering work-piece 10 mm)
N35
Y180                                           (Making
10 mm slot on work-piece)
N40
G00 Z-85                                    (Z-axis
return 5 mm above work-piece) 
N45
G00 X20 Y0                               (Positioning
for the second cut)
N50
G01 Z-20 F150                           (Again
cutter entering work-piece)  
N55
Y180                                           (Finishing
to make 20 mm slot)
N60
G00 Z-85                                    (Z-axis
return 5 mm above work-piece)  
N65
G00 G41 X160 Y0                     (Positioning
for first circular cutting)
N70
G01 Z-20 F150                           (Cutter
downward for first circular cut)
N75
G02 X170 Y10 R30 F100          (First
circular cut)  
N80
G00 Z-85                                    (Z-axis
return 5 mm above work-piece)  
N85
G00 X150 Y0                             (Positioning
for Second circular cutting)
N90
G01 Z-20 F150                           (Cutter
downward for Second circular cut)
N95
G02 X170 Y20 R30 F100          (Second
circular cut)  
N100
G00 Z-85                                  (Z-axis
return 5 mm above work-piece)  
N105
G00 X140 Y0                           (Positioning
for Third circular cutting)
N110
G01 Z-20 F150                          (Cutter
downward for Third circular cut)
N115
G02 X170 Y30 R30 F100        (Third
circular cut)  
N120
Z-85 M05 M09                          (Retracting
Z-axis, Spindle stop, and Coolant off)
N125
M30                                           (End
of the program)




No comments:
Post a Comment