Operating and Programming — Milling Page 90 808D
Sample
Program
s
N10 G17 G90 G60 G54
N20 T1 D1 ;FACEMILL D50
N30 M6
N40 S3500 M3
N50 G0 X0 Y0
N60 G0 Z2
; =======Start face milling========
N70 CYCLE71( 50, 1, 2, 0, 0, 0, 50, -50 , ,
1, 40, , 0.1, 300, 11, )
N80 S4000 M3
N90 CYCLE71( 50, 0.1, 2, 0, 0, 0, 50, -50 ,
, 1, 40, , 0, 250, 32, )
; ======Start contour milling======
N100 T2 D2 ;END MILL
N110 M6
N120 S3500 M6
N130 CYCLE72( "CON1:CON1_E", 50, 0, 2,
-5, 2, 0.1, 0.1, 300, 300, 11, 42, 1, 4, 300, 1, 4)
; =======Start path milling with radius
compensation ========
N140 T4 D1 ;ENDMILL D10
N150 M6
N160 S4000 M3
N170 G0 X55 Y-15
N180 G0 Z2
N190 G1 F300 Z-8
N200 G42 G1 Y-15 X50
N210 G1 X44 Y-2 RND=2
N220 G1 Y0 X 22
N230 G40 Y30
N240 M30
N10
N20 tool 1 is milling tool, diameter 50 mm
N30
N40
N50 back to workpiece zero point
N60
; =========Start face milling======
N70 start point (X0,Y0), the length and the
width are 50 mm, feedrate 300 mm/min,
finishing allowance 0.1 mm, along the direction
parallel to the X axis to perform the rough
machining
N80
N90 start point (X0,Y0), the length and the
width are 50 mm, feedrate 250 mm/min, finish-
ing allowance 0, along the direction parallel to
the X axis to perform the finish machining
; =====Start contour milling=======
N100 tool 2 is milling tool
N110
N120
N130 contour cutting depth 5 mm, all finishing
allowances 0.1 mm, the feedrate of surface
machining and cutting direction 300 mm/min,
use G42 to activate the compensation, use G1
to do rough machining, approaching path is
along a straight line, length 4 mm, the parame-
ters of feedrate/path/length in retraction and
approach are equal.
; ====Start path milling with radius com-
pensation ===
N140 tool 4 is face milling tool, diameter 10
mm
N150
N160
N170
N180
N190
N200 G42 activate tool radius compensation
N210 starts from (X44,Y-2) insert a reverse
circle, radius is 2 mm
N220 (X22,Y0) is the reverse circle point
N230 G40 cancel tool radius compensation
N240
;*************CONTOUR************
CON1:
;#7__DlgK contour definition begin - Don't
change!;*GP*;*RO*;*HD*
G17 G90 DIAMOF;*GP*
G0 X3 Y3 ;*GP*
G2 X3.27 Y-40.91 I=AC(-52.703) J=AC(-
19.298) ;*GP*
G3 X46.27 Y-47 I=AC(38.745) J=AC
(54.722) ;*GP*
G1 X42 Y-8 ;*GP*
X3 Y3 ;*GP*
;CON,0,0.0000,4,4,MST:0,0,AX:X,Y,I,J
;*GP*;*RO*;*HD*
;S,EX:3,EY:3;*GP*;*RO*;*HD*
;ACW,DIA:0/35,EX:3.27,DEY:-
43.91,RAD:60;*GP*;*RO*;*HD*
;ACCW,DIA:0/35,DEX:43,EY:-
47,RAD:102;*GP*;*RO*;*HD*
;LA,EX:42,EY:-8;*GP*;*RO*;*HD*
;LA,EX:3,EY:3;*GP*;*RO*;*HD*
;#End contour definition end - Don't
change!;*GP*;*RO*;*HD*
CON1_E:;****** CONTOUR ENDS*******
This program is additional descrip-
tion information created by the
system automatically after finishing
the programming of the rough cut-
ting CYCLE72 and does not affect
the system execution.
Machining Process