Programming and Operating — Turning Page 96 808D ADVANCED
Sample
Programs
s
Machining Process
; ===========THREAD===========
N260 T4 D1 ; THREAD
N270 G95 S150 M03 M08
N280 G00 X50.0 Z10.0
N290 CYCLE99( 0 , 20, -18, 20, 2, 0,
1, 0.01, 29, 0, 8, 2, 2.5, 300103, 1, ,
0, 0, 0, 0, 0, 0, 0, 1, , , , 0 )
N300 G00 G40 X500.0 Z500.0
N310 M01
; ========CENTER DRILL=========
N355 T6 D1 ;CENTER DRILL
N360 G95 S1000 M03 M08
N370 G17 G00 X0 Z5
N375 CYCLE82( 5, 0, 2, -5, 0, 0.5 )
N380 G00 G40 X500 Z500
; ============DRILL============
N390 T7 D1 ;DRILL
N400 G95 S1000 M03 M08
N410 G00 X0 Z5
N420 CYCLE82( 5, 0, 2, -20, 0, 0.5)
N430 G00 G40 X500 Z500
; ==========TAP HOLE==========
N440 T8 D1 ;TAP HOLE
N450 G95 S500 M3 M08
N460 G00 X0 Z5
N470 CYCLE84( 5, 0, 2, -18, 0, 0.5,
3, 12, , 0, 200, 200, 3, 0, 0, 0, , 0 )
N480 G0 G40 X500 Z500
; =======Start thread cutting======
N260
N270 G95→spindle feedrate in mm/r
N280
N290 size of thread 2.5 mm, on Z
axis start point →end point:0→20,
diameter at start point / end point are
both 20 mm, reverse distance 2 mm,
ending distance 0 mm, thread depth 1
mm, finishing allowance 0.01 mm, feed
angle 29º, first thread start point offset 0
mm, rough cutting 8 times, idle tool
cutting 2 mm, thread machining path is
thread string number 1
N300 G40→cancel tool radius com-
pensation
N310 delay changing tool
; =======Start center drilling======
N355
N360
N370
N375 drilling depth 5 mm, delay time
at final drilling depth is 0.5 s
(discontinuous drilling)
N380
; =========Start drilling==========
N390
N400
N410
N420 drilling depth 20 mm, delay time
at final drilling depth is 0.5 s
(discontinuous drilling)
N430
; =======Start tapping hole=======
N440
N450
N460
N470 tapping depth 18 mm, deep
drilling delays 0.5 s (discontinuous drill-
ing), spindle rotating direction is M3
when withdrawn, thread size is M12,
spindle stop position is 0º, tapping speed
and turning speed are both 200 mm/min,
tool axis is Z axis, machining way is
tapping, withdraw path is 1 mm
(discontinuous drilling)
N480
; ===========CUT OFF===========
N320 T5 D1 ;CUT-OFF
N330 G18 G96 S200 M03 M08
N340 G00 X55.0 Z10.0
N350 CYCLE92( 40, -50, 6, -1, 0.5, ,
200, 2500, 3, 0.2, 0.08, 500, 0, 0, 1,
0, 11000 )
N351 G00 G40 X500 Z500
N360 G00 G40 X500.0 Z500.0
N370 M30
PART_SUB_3.SPF
G18 G90
G0 X16 Z0
G1 X20 Z-2
Z-15
X19.2 Z-16.493 RND=2.5
Z-20 RND=2.5
X30 CHR=1
Z-35
X40 CHR=1
Z-55
X50
M2;/* end of contour */
; ============Cutting off==========
N320
N330
N340
N350 cutting off start point (X40, Y-50),
depth for speed reduction (diameter) 6
mm, final depth -1, 0.50000, constant
cutting speed is 200 mm/min, maximum
speed at fixed speed is 2500 r/min, spin-
dle rotating direction is M3, feedrate depth
is 0.2 mm/min when rotational speed is
reached, reduced feedrate (until the final
depth) is 0.08 mm/min, reduced speed
(until the final depth) is 500 r/min, ma-
chining path returns to basic plane, alter-
native mode is reverse angle.
N351
N360
N370
***CONTOUR****