Operating and Programming — Milling Page 88 808D
Sample
Program
s
N10 G17 G90 G54 G60 ROT
N20 T1 D1; FACEMILL
N30 M6
N40 S4000 M3 M8
N50 G0 X-40 Y0
N60 G0 Z2
; ========Start face milling=========
N70 CYCLE71( 50, 1, 2, 0, -25, -25, 50, 50,
0, 1, , , 0, 400, 11, )
N80 S4500
N90 CYCLE71( 50, 1, 2, 0, -25, -25, 50, 50,
0, 1, , , 0, 400, 32, )
; ========End face milling==========
N100 G0 Z100
N110 T2 D1 ; ENDMILL D8
N120 M6
N130 S4000 M3
N140 M8 G0 X-13 Y16
N150 G0 Z2
; ========Start rectangular pocket rough-
ing==========
N160 _ANF:
N170 POCKET3( 50, 0, 2, -5, 13, 10, 4, -13,
16, 0, 5, 0.1, 0.1, 300, 200, 2, 11, 2.5, , , ,
2, 2)
; ==Adaptive rotation around Z axis==
N180 AROT Z90
N190 _END:
N10
N20 tool 1 is plane milling tool
N30
N40
N50
N60
; =========Start face milling========
N70 start point (X-25,Y-25), the length
and the width are 50 mm, feedrate 400 mm/
min, along the direction parallel to the X axis to
perform roughing.
N80
N90 repeat the process in N80 , the differ-
ence between the two:along the alternate
direction parallel to the X axis to perform
finishing
; =========End face milling=========
N100
N110 tool 2 is face milling tool, diameter 8
mm
N120
N130
N140
N150
; ===Start ① rectangular pocket rough-
ing===
N160 _ANF: Milling start sign
N170 milling rectangular groove (depth 5
mm, length13 mm, width 10 mm, corner
radius 4 mm, groove base point coordi-
nate (X-13,Y16), angle between groove
vertical axis and plane X axis is 0º),
feedrate 300 mm/min, milling direction G2,
rough machining, use G1 vertical groove
center to insert.
; ==Adaptive rotation around Z axis==
N180 rotation in positive direction 90º
N190 _END: Milling end sign
; =======Repeat rectangular pocket milling
3 times==========
N200 REPEAT _ANF _END P=3
; ======Cancel rotation=======
N210 ROT
N220 S4500 M3
; ========Start rectangular pocket finish-
ing=========
N230 _ANF1:
N240 POCKET3( 50, 0, 2, - 5, 13, 10, 4, -13,
16, 0, 2.5, 0.1, 0.1, 300, 200, 2, 2, 2.5, , , ,
2, 2)
; ==Adaptive rotation around Z axis==
N250 AROT Z90
N260 _END1:
; ========Repeat rectangular pocket
milling 3 times=========
N270 REPEAT _ANF1 _END1 P=3
N280 ROT
; ========Cancel rotation=========
; ====Repeat ② ③ ④ rectangular pocket
milling 3 times=====
N200 Repeat N160 ~ N190 operation three
times
; =======Cancel rotation=========
N210 cancel all the coordinate rotation com-
mands
N220
; ===Start ① rectangular pocket finish-
ing===
N230 _ANF1: Milling start sign
N240 milling rectangular groove (depth、
length、width、corner radius、base
point、corner angles are the same as the
above parameters), plane feedrate300 mm/
min, depth direction feedrate200 mm/min,
milling direction G2, finish machining.
; ==Adaptive rotation around Z axis===
N250 rotation in positive direction 90º
N260 _END1: Milling end sign
; ====Finishing ② ③ ④ rectangular
pocket milling =====
N270 repeat N230~N260 operation three
times
N280 cancel all the coordinate rotation
commands
; =====Cancel rotation===========
Machining Process