beautypg.com

Program layout – HEIDENHAIN TNC 640 (34059x-02) User Manual

Page 52

background image

First Steps with the TNC 640

1.3

Programming the first part

1

52

TNC 640 | User's Manual

HEIDENHAIN Conversational Programming | 5/2013

Program layout

NC programs should be arranged consistently in a similar manner.
This makes it easier to find your place, accelerates programming
and reduces errors.

Recommended program layout for simple, conventional contour
machining

1 Call tool, define tool axis

2 Retract the tool

3 Pre-position the tool in the working plane near the contour starting

point

4 In the tool axis, position the tool above the workpiece, or

preposition immediately to workpiece depth. If required, switch on
the spindle/coolant

5 Contour approach

6 Contour machining

7 Contour departure

8 Retract the tool, end program

Further information on this topic

Contour programming: See "Tool movements", page 192

Layout of contour machining
programs

0 BEGIN PGM BSPCONT MM
1 BLK FORM 0.1 Z X... Y... Z...
2 BLK FORM 0.2 X... Y... Z...
3 TOOL CALL 5 Z S5000
4 L Z+250 R0 FMAX
5 L X... Y... R0 FMAX
6 L Z+10 R0 F3000 M13
7 APPR ... RL F500
...
16 DEP ... X... Y... F3000 M9
17 L Z+250 R0 FMAX M2
18 END PGM BSPCONT MM

Recommended program layout for simple cycle programs

1 Call tool, define tool axis

2 Retract the tool

3 Define the machining positions

4 Define the fixed cycle

5 Call the cycle, switch on the spindle/coolant

6 Retract the tool, end program

Further information on this topic

Cycle programming: See User’s Manual for Cycles

Cycle program layout

0 BEGIN PGM BSBCYC MM
1 BLK FORM 0.1 Z X... Y... Z...
2 BLK FORM 0.2 X... Y... Z...
3 TOOL CALL 5 Z S5000
4 L Z+250 R0 FMAX
5 PATTERN DEF POS1( X... Y... Z... ) ...
6 CYCL DEF...
7 CYCL CALL PAT FMAX M13
8 L Z+250 R0 FMAX M2
9 END PGM BSBCYC MM