beautypg.com

Program layout – HEIDENHAIN TNC 128 (77184x-02) User Manual

Page 48

background image

First Steps with the TNC 128

1.3

Programming the first part

1

48

TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014

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 in the program",
page 168

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 Z+250 R0 FMAX
5 X... R0 FMAX
6 Z+10 R0 F3000 M13

...
16 X... R0 FMAX
17 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 "Cycle fundamentals", page 371

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 Z+250 R0 FMAX
5 PATTERN DEF POS1( X... Y... Z... ) ...
6 CYCL DEF...
7 CYCL CALL PAT FMAX M13
8 Z+250 R0 FMAX M2
9 END PGM BSBCYC MM