beautypg.com

Program layout, 3 pr ogr amming the first par t – HEIDENHAIN TNC 128 (77184x-01) User Manual

Page 41

background image

HEIDENHAIN TNC 128

41

1

.3 Pr

ogr

amming the first par

t

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 first axis in the working plane in front of the
contour starting point

4

Pre-position the second axis in the working plane next to the
contour starting point

5

In the tool axis, position the tool above the workpiece, or
preposition immediately to workpiece depth. If required, switch on
the spindle/coolant

6

Approach the contour

7

Machine the contour

8

Depart the contour

9

Retract the tool, end the program

Further information on this topic:

Contour programming: See "Fundamentals" on page 160

Recommended program layout for simple cycle programs

1

Call the tool, define the 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 the program

Further information on this topic:

Cycle programming: See "Working with fixed cycles" on page 364.

Example: 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 Y... R0 FMAX

7 Z+10 R0 F3000 M13

...

16 X... R0 FMAX

17 Z+250 R0 FMAX M2

18 END PGM BSPCONT MM

Example: 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