You are on page 1of 32

Solved Examples for

Milling Programs
Example (1)

Point Coordinates Point Coordinates


P1 ( 95 , 60 ) P13 ( 20 , 70 )
P2 ( 73 , 27 ) P14 ( 22 , 69 )
P3 ( 70 , 21 ) P15 ( 27 , 72 )
P4 ( 70 , 20 ) P16 ( 60 , 95 )
P5 ( 60 , 10 ) C1 ( 60 , 60 )
P6 ( 50 , 20 ) C2 ( 60 , 20 )
P7 ( 50 , 21 ) C3 ( 20 , 60 )
P8 ( 47 , 27 ) C4 ( 75 , 22 )
P9 ( 27 , 47 ) C5 ( 45 , 22 )
P10 ( 22 , 50 ) C6 ( 23 , 45 )
P11 ( 20 , 50 ) C7 ( 23 , 74 )
Program Number: M2 Sheet # :1/1
N G M X Y Z I J F S NOTES
10 90 Absolute Data
20 71 Metric Units
30 94 Feed Units in mm/min
40 00 0 0 5 Tool on air at zero point
50 00 95 60 Rapid motion to P1
60 03 1500 Spindle Start
70 01 -5 100 Depth of cut =5mm
80 02 73 27 35 0 100 Cir. Inter. P1 P2 c.w
90 03 70 21 2 5 100 Cir. Inter. P2 P3 c.c.w
100 02 70 20 10 1 100 Cir. Inter. P3 P4 c.w
110 02 60 10 10 0 100 Cir. Inter. P4 P5 c.w
120 02 50 20 0 10 100 Cir. Inter. P5 P6 c.w
130 02 50 21 10 0 100 Cir. Inter. P6 P7 c.w
140 03 47 27 5 1 100 Cir. Inter. P7 P8 c.c.w
150 02 27 47 13 33 100 Cir. Inter. P8 P9 c.w
160 03 22 50 4 2 100 Cir. Inter. P9 P10 c.c.w
170 02 20 50 2 10 100 Cir. Inter. P10 P11 c.w
180 02 10 60 0 10 100 Cir. Inter. P11 P12 c.w

190 02 20 70 10 0 100 Cir. Inter. P12 P13 c.w

200 02 22 69 0 10 100 Cir. Inter. P13 P14 c.w


Cir. Inter. P14 P15
210 03 27 72 1 5 100
c.c.w
220 02 60 95 33 12 100 Cir. Inter. P15 P16 c.w

230 02 95 60 0 35 100 Cir. Inter. P16 P1 c.w


240 00 5 Raise The Tool
250 06 2 10 Change Tool
260 00 60 20 Rapid motion to C2
270 01 -15 100 Depth of cut =15mm
280 00 5 Raise The Tool
290 00 20 60 Rapid motion to C3
300 01 -15 100 Depth of cut =15mm
310 00 5 Raise The Tool
320 O6 3 5 Change Tool
330 00 60 60 Rapid motion to C1
340 87 50 40 -10 100 Canned Cycle Dish Milling
350 80 Cancel Canned Cycle
360 05 Stop Spindle
370 02 End Of Program
72
Example (2)

Point Coordinates Point Coordinates


P1 (145,50) P12 (60,45)
P2 (130,35) P13 (54,45)
P3 (122,37) P14 (35,30)
P4 (95,42) P15 (15,50)
P5 (80,30) P16 (35,70)
P6 (45,10) P17 (54,55)
P7 (5,50) C1 (35,50)
P8 (45,90) C2 (45,50)
P9 (55,88) C3 (130,50)
P10 (135,64) C4 (104,13)
P11 (60,55)

72
Program Number: M3 Sheet # :1/1

N G M X Y Z I J F S NOTES
10 90 Absolute Data
20 71 Metric Units
30 94 Feed Units in mm/min
Tool on air at zero
40 00 0 0 5 5
point
50 00 145 50 Rapid motion to P1
60 03 1500 Spindle Start
70 01 -5 100 Depth of cut = 5mm
Cir. Inter. P1 P2
80 02 130 35 15 0 100
c.w
Cir. Inter. P2 P3
90 02 122 37 0 15 100
c.w
100 03 80 30 18 24 100 Cir. Inter. P3 P4 c.c.w
Cir. Inter. P4 P5
110 02 45 10 35 20 100
c.w
120 02 5 50 0 40 100 Cir. Inter. P5 P6 c.w
130 02 45 90 40 0 100 Cir. Inter. P6 P7 c.w
Cir. Inter. P7 P8
140 02 55 88 0 40 100
c.w
150 01 135 64 Lin. Inter. P8 P9
160 02 145 150 5 14 Cir. Inter. P9 P1 c.w
170 00 5 Raise the tool
180 00 41 47.5 Rapid motion to P10
190 01 -5 0 100 Depth of cut = 5mm
200 01 60 45 100 Lin. Inter. P10 P11
210 01 54 45 100 Lin. Inter. P11 P12
220 02 35 30 19 5 100 Cir. Inter. P12 P13 c.w

230 02 15 50 0 20 100 Cir. Inter. P13 P14 c.w

240 02 35 70 20 0 100 Cir. Inter. P14 P15 c.w

260 02 54 55 0 20 100 Cir. Inter. P15 P16 c.w


260 01 41 47.5 Lin. Inter. P16 P10
270 00 5 Raise the tool
280 05 Stop Spindle
290 02 End Of Program

72
Example (3)

Point Coordinates Point Coordinates


P1 ( 75 , 5.5 ) P10 ( 111 , 20 )
P2 ( 93 , 9 ) P11 ( 121 , 30 )
P3 ( 108.5 , 7 ) P12 ( 103 , 50 )
P4 ( 121 , 2 ) P13 ( 75 , 22 )
P5 ( 139 , 20 ) C1 ( 75 , 50 )
P6 ( 131 , 35 ) C2 ( 99 , -3 )
P7 ( 123 , 50 ) C3 ( 121 , 20 )
P8 ( 131 , 20 ) C4 ( 141 , 50 )
P9 ( 121 , 10 ) C5 ( 75 , 14 )

03
Program Number: M1 Sheet # :1/3

N G M X Y Z I J F S NOTES
91 Incremental Data
10
Code G 91
71 Metric Units
20
Code G 71
94 Feed Units in mm/min
30
mm per min. CODE G 94
00 0 0 5 Tool on air at zero point
40 ( ) 5 mm
J =TOOL DIAM.=5 I=TOOL NUM Z =5mm
00 70 5.5 Rapid motion to P1
50
)P1 (75,5 CODE G00
03 1500 Spindle Start
60
1500 R.P.M CODE M03
92 1 Start Subroutine
70 I X OR Y
CODE M92
01 -10 100 Depth of cut = 5mm
80
5 mm Z G 01 100 mm per min.
03 23 3.5 0 44.5 100 Cir. Inter. P1 P2 c.c.w
5mm ) C1(70,50 )P1(70,5.5
90
P2 (93,9) ,X=(93-70) ,Y=(9 -5.5) WHERE P1=(70,5.5) ,P2=(93,9) ,I=I 70-70 I, J=I
)5.5-50 I ,WHERE P1= (70,5.5) & CENTER C1 (70,50
02 15.5 -2 6 12 100 Cir. Inter. P2 P3 c.w
5mm C2 P2 X=(108.5 93 ) P3
100
,Y=(7-9), WHERE P2=(93,9), P3=(108.5, 7), I= I 93-99 I, J=I 9-(-3) I, WHERE
)P2=(93,9), C2=(99,-3
03 12.5 -5 12.5 13 100 Cir. Inter. P3 P4 c.c.w
110
C3 P3 P4 5mm
03 18 18 0 18 100 Cir. Inter. P4 P5 c.c.w
120
C3 P4 P5 5mm
03 -8 15 18 0 100 Cir. Inter. P5 P6 c.c.w
130
C3 P5 P6 5mm
02 -8 15 10 15 100 Cir. Inter. P7 P8 c.w
140
C4 P7 P8 5mm
00 10 Raise The Tool
150
5mm CODE G00
00 8 -30 Rapid motion to P8
160
P8 CODE G00 20 C3

03
Program Number: M1 Sheet # :2/3

N G M X Y Z I J F S NOTES
01 -10 100 Depth of cut = 5mm
170
5mm 10 mm Z CODE G01
02 -10 -10 10 0 100 Cir. Inter. P9 P10 c.w
180
C3 P8 P9 5mm
Cir. Inter. P10 P11
02 -10 10 0 10 100
190 c.w
C3 P9 P10 5mm
02 10 10 10 0 100 Cir. Inter. P10 P11 c.w
200
C3 P10 P11 5mm
02 -10 10 0 10 100 Cir. Inter. P11 P12 c.w
210
C3 P11 P8 5mm
00 10 Raise The Tool
220
5mm CODE G00
00 -28 30 Rapid motion to P12
230
P12 CODE G00
01 -10 100 Depth of cut = 5mm
240
5mm 10 mm Z CODE G01
Cir. Inter. P13
02 -28 -28 28 0 100
250 P14c.w
C1 P12 P13 5mm
00 10 Raise The Tool
260
5mm CODE G00
93 1 End Subroutine
270
SUBROUTINE 1 CODE M93 I= SUBROUTINE NAME
28 1 0 Mirror Image about Y
280
CODE G28 Y X=1 Y=0
94 1 Call Subroutine
290
SUBROTINE 1 Y CODE M94
28 Cancel Mirror Image
300
MIRROR IMAGE CODE G28
28 0 1 Mirror Image about X
310
CODE G28 X X=0 Y=1
94 1 Call Subroutine
320
SUBROTINE 1 X CODE M94
28 Cancel Mirror Image
330
MIRROR IMAGE CODE G28

07
Program Number: M1 Sheet # :3/3

N G M X Y Z I J F S NOTES

28 1 1 Mirror Image about Y & X


340
CODE G28 X & Y X=1,Y=1
94 1 Call Subroutine
350
SUBROTINE 1 X,Y CODE M94
28 Cancel Mirror Image
360
MIRROR IMAGE CODE G28
06 2 7 Change Tool
370 BED DRILLING I=TOOL NUM. J=TOOL
DIAM.
00 0 44.5 Rapid motion to C1
380 C1 CODE G00 ) P1(70,5.5 ) C1(70,50 ) X=(70-70
)Y=(50-5.5
83 8 -20 0 -36 100 Canned Cycle Ped Dr.
390 X C1 X=NUM.OF HOLES, C5
I=X5-X1 ,J=Y5-Y1 ,Z=DEPTH OF CUT, F=FEED RATE
80 Cancel Canned Cycle
400
CANNED CYCLE CODE G80
06 3 3 Change Tool
410
CODE M06 I=TOOL NUM., J=R OUTER R INNER
Canned Cycle Dish
87 16 10 -15 100
.Mil.
420

X=OUTER DIAM. , Y=INNER DIAM.
80 Cancel Canned Cycle
430
CANNED CYCLE CODE G80
05 Stop Spindle
440
CODE M05
02 End Of Program
450
CODE M02

00
Example (4)

Point Coordinates Point Coordinates


P1 ( 40 , 45 ) P9 ( 75 , 60 )
P2 ( 75 , 10 ) P10 ( 90 , 45 )
P3 ( 110 , 45 ) P11 ( 75 , 30 )
P4 ( 110 , 85 ) P12 ( 60 , 45 )
P5 ( 100 , 95 ) C1 ( 75 , 45 )
P6 ( 90 , 87 ) C2 ( 100 , 85 )
P7 ( 79 , 80 ) C3 ( 81 , 90 )
P8 ( 75 , 80 ) C4 ( 50 , 45 )

03
Program Number: M4 Sheet # :1/1

N G M X Y Z I J F S NOTES
10 90
20 71
30 94
40 00 0 0 5 1
50 00 40 45
60 03 1500
70 01 -5
80 03 75 10 35 0 100
90 03 110 45 0 35 100
100 01 110 85 100
110 03 100 95 10 0 100
120 03 90 87 0 10 100
130 02 79 80 9 3 100
140 03 75 80 4 35 100
150 03 40 45 0 35 100
160 00 5
170 00 75 60
180 00 -5 100
190 02 90 45 0 15 100
200 02 75 30 15 0 100
210 02 60 45 0 15 100
220 02 75 60 15 0 100
230 5
240 06 2 5
250 91
260 00 0 -15
83 8 -25 0
270
80
280
290 25 40
300 1 -15 100
310 15
320 05
250 02

03
Example (5)

Point Coordinates Point Coordinates


P1 ( 130 , 50 ) P11 ( 70 , 50 )
P2 ( 100 , 20 ) P12 ( 30 , 15 )
P3 ( 75 , 35 ) P13 ( 25 , 20 )
P4 ( 67 , 40 ) P14 ( 30 , 25 )
P5 ( 50 , 40 ) P15 ( 35 , 20 )
P6 ( 45 , 35 ) C1 ( 100 , 50 )
P7 ( 45 , 20 ) C2 ( 67 , 34 )
P8 ( 30 , 5 ) C3 ( 50 , 35 )
P9 ( 15 , 20 ) C4 ( 30 , 20 )
P10 ( 15 , 50 ) C5 ( 115 , 50 )
03
Program Number: M5 Sheet # :1/1

N G M X Y Z I J F S NOTES
10 91
20 71
30 94
40 00 0 0 5 1 5
50 00 130 50
60 03 1500
70 92
80 01 -10 100
90 02 -30 -30 30 0 100
100 02 -25 15 0 30 100
110 03 -8 5 8 1 100
120 01 -17 0 100
130 03 -5 -5 0 5 100
140 01 0 -15 100
150 02 -15 -15 15 0 100
160 02 -15 15 0 15 100
170 01 0 30 100
180 00 10
190 00 55 0
200 01 -10 100
210 03 5 -15 30 0 100
220 00 10
230 06 2 10
240 00 -45 -20
250 01 -20 100
260 00 10
270 93
280 28 0 1
290 94
300 28
310 00 -30 0
320 06 3 5
330 83 4 -20 15 0 100
340 80
350 05
360 02

02
Example (6)

Point Coordinates Point Coordinates


P1 (75,90) P7 (120,0)
P2 (115,50) P8 (75,0)
P3 (112,33) C1 (75,50)
P4 (110,30) C2 (120,10)
P5 (120,20) C3 (120,30)
P6 (130,10)

02
Program Number: M6 Sheet # :1/1

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90

100

110

120

130

140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290

02
Example (7)

Point Coordinates Point Coordinates


P1 ( 0 , 50 ) P9 ( 60 , 35 )
P2 ( 10 , 40 ) P10 ( 45 , 50 )
P3 ( 53 , 27 ) P11 ( 15 , 50 )
P4 ( 60 , 25 ) P12 ( 10 , 45 )
P5 ( 85 , 50 ) P13 ( 5 , 50 )
P6 ( 55 , 50 ) C1 ( 10 , 50 )
P7 ( 60 , 45 ) C2 ( 60 , 50 )
P8 ( 65 , 40 ) C3 ( 60 , 40 )

33
Program Number: M7 Sheet # :1/1

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310

33
Example (8)

Point Coordinates Point Coordinates


P1 ( 74 , -0.5 ) P10 ( 54 , 28 )
P2 ( 29 , 44.5 ) P11 ( 74 , 8 )
P3 ( 29.5 , 46.5 ) C1 ( 74 , 44.5 )
P4 ( 55 , 64 ) C2 ( 74 , 28 )
P5 ( 70.5 , 68 ) C3 ( 59 , 28 )
P6 ( 74 , 69.5 ) C4 ( 44 , 44.5 )
P7 ( 74 , 18 ) C5 ( 34 , 44.5 )
P8 ( 64 , 28 ) C6 ( 59.5 , 78.5 )
P9 ( 59 , 33 ) C7 ( 74 , 64.5 )

37
Program Number: M8 Sheet # :1/1

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310

41
30
Example (9)

Point Coordinates Point Coordinates


P1 ( 27 , 47.5 ) P12 ( 34 , 40.5 )
P2 ( 27 , 75 ) P13 ( 35 , 75 )
P3 ( 50 , 98 ) P14 ( 50 , 90 )
P4 ( 53 , 97.5 ) P15 ( 65 , 75 )
P5 ( 59 , 102.5 ) P16 ( 50 , 60 )
P6 ( 66 , 109.5 ) C1 ( 50 , 75 )
P7 ( 73 , 102.5 ) C2 ( 31 , 75 )
P8 ( 73 , 75 ) C3 ( 34 , 47.5 )
P9 ( 50 , 52 ) C4 ( 46 , 47.5 )
P10 ( 47, 52.5 ) C5 ( 54 , 102.5 )
P11 ( 41 , 47.5 )
33
Program Number: M9 Sheet # :1/1

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370

33
Example (10)

Point Coordinates Point Coordinates


P1 (26,50) P14 (130,35)
P2 (16,33) P15 (145,50)
P3 (10,20) P16 (45,50)
P4 (25,5) P17 (15,20)
P5 (37,11) P18 (25,10)
P6 (45,15) P19 (35,20)
P7 (50,14) P20 (25,30)
P8 (75,6) C1 (75,50)
P9 (110,24) C2 (25,20)
P10 (125,30) C3 (130,50)
P11 (130,30) C4 (125,10)
P12 (150,50) C5 (45,5)
P13 (115,50) C6 (5,50)

33
Program Number: M10 Sheet # :1/2

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370
380
390

4532
Program Number: M10 Sheet # :2/2

N G M X Y Z I J F S NOTES
400
410
420
430
440
450
460
470

46
32
Example (11)

Point Coordinates Point Coordinates


P1 ( 135 , 50 ) P12 ( 39 , 20.5 )
P2 ( 100 , 15 ) P13 ( 40 , 25 )
P3 ( 30 , 15 ) P14 ( 30 , 35 )
P4 ( 20 , 25 ) P15 ( 30 , 62.5 )
P5 ( 21 , 29 ) P16 ( 47.5 , 80 )
P6 ( 16 , 74.5 ) P17 ( 75 , 50 )
P7 ( 12.5 , 80 ) C1 ( 100 , 50 )
P8 ( 30 , 97.5 ) C2 ( 30 , 25 )
P9 ( 34 , 102 ) C3 ( 30 , 80 )
P10 ( 108 , 84 ) C4 ( -20 , 47.5 )
P11 ( 47 , 89 ) C5 ( -50 , 66 )

32
Program Number: M11 Sheet # :1/2

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
330
340
350
360
370
380

48
33
Program Number: M11 Sheet # :2/2

N G M X Y Z I J F S NOTES
390
340
350
360
370
380

33
Example (12)

Point Coordinates Point Coordinates


P1 (83,100) C1 (80,85)
P2 (95,85) C2 (175,89)
P3 (116,35) C3 (105,25)
P4 (117,15) C4 (80,-24)
P5 (99,12) C5 (55,25)
P6 (61,12) C6 (90,80)
P7 (45,14) C7 (30,75)
P8 (10,71) C8 (60,23)
P9 (21,93) C9 (80,50)

37
Program Number: M12 Sheet # :1/1

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290

30
Example (13)

33
Point Coordinates Point Coordinates
P1 ( 70 , 31 ) P16 ( 33 , 92 )
P2 ( 53 , 21 ) P17 ( 25 , 84 )
P3 ( 37 , 12 ) P18 ( 33 , 76 )
P4 ( 19 , 30 ) P19 ( 70 , 76 )
P5 ( 22 , 40 ) P20 ( 70 , 67 )
P6 ( 18 , 63 ) P21 ( 37 , 38 )
P7 ( 11 , 84 ) P22 ( 45 , 30 )
P8 ( 13 , 93 ) P23 ( 37 , 22 )
P9 ( 43 , 161 ) P24 ( 29 , 30 )
P10 ( 70 , 179 ) C1 ( 70 , 11 )
P11 ( 40 , 149 ) C2 ( 37 , 30 )
P12 ( 70 , 119 ) C3 ( 3 , 51 )
P13 ( 70 , 106 ) C4 ( 33 , 84 )
P14 ( 25 , 104 ) C5 ( 70 , 149 )
P15 ( 70 , 92 ) C6 ( 70 , 127 )

33
Program Number: M13 Sheet # :1/2

N G M X Y Z I J F S NOTES
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360

33
Program Number: M13 Sheet # :2/2

N G M X Y Z I J F S NOTES
370
380
390
400
410
420
430
440
450
460
470
480
490
500
510
520
530
540
550
560

32

You might also like