5 programming examples – HEIDENHAIN TNC 310 (286 140) User Manual

Page 169

Advertising
background image

157

HEIDENHAIN TNC 310

9.5 Programming Examples

8 CYCL DEF 200 DRILLING

Q200=2 ;SET-UP CLEARANCE

Q201=-3 ;DEPTH

Q206=250 ;FEED RATE FOR PLUNGING

Q202=3 ;PLUNGING DEPTH

Q210=0 ;DWELL TIME AT TOP

Q203=+0 ;SURFACE COORDINATE

Q204=10 ;2ND SET-UP CLEARANCE

9 CALL LBL 1

10 L Z+250 R0 FMAX M6

11 TOOL CALL 2 Z S4000

12 FN 0: Q201 = -25

13 FN 0: Q202 = +5

14 CALL LBL 1

15 L Z+250 R0 FMAX M6

16 TOOL CALL 3 Z S500

17 CYCL DEF 201 REAMING

Q200=2 ;SET-UP CLEARANCE

Q201=-15 ;DEPTH

Q206=250 ;FEED RATE FOR PLUNGING

Q211=0.5 ;DWELL TIME AT DEPTH

Q208=400 ;RETRACTION FEED RATE

Q203=+0 ;SURFACE COORDINATE

Q204=10 ;2ND SET-UP CLEARANCE

18 CALL LBL 1

19 L Z+250 R0 F MAX M2

20 LBL 1

21 L X+15 Y+10 R0 F MAX M3

22 CALL LBL 2

23 L X+45 Y+60 R0 F MAX

24 CALL LBL 2

25 L X+75 Y+10 R0 F MAX

26 CALL LBL 2

27 LBL 0

28 LBL 2

29 CYCL CALL

30 L IX+20 R0 F MAX M99

31 L IY+20 R0 F MAX M99

32 L IX-20 R0 F MAX M99

33 LBL 0

34 END PGM UP2 MM

Cycle definition: Centering

Call subprogram 1 for the entire hole pattern

Tool change

Call the drilling tool

New depth for drilling

New plunging depth for drilling

Call subprogram 1 for the entire hole pattern

Tool change

Tool call: reamer

Cycle definition: REAMING

Call subprogram 1 for the entire hole pattern

End of main program

Beginning of subprogram 1: Entire hole pattern

Move to starting point for group 1

Call subprogram 2 for the group

Move to starting point for group 2

Call subprogram 2 for the group

Move to starting point for group 3

Call subprogram 2 for the group

End of subprogram 1

Beginning of subprogram 2: Group of holes

1st hole with active fixed cycle

Move to 2nd hole, call cycle

Move to 3rd hole, call cycle

Move to 4th hole, call cycle

End of subprogram 2

Advertising
This manual is related to the following products: