beautypg.com

6 programming examples, 6 pr ogr a mming examples 9.6 programming examples, Example: milling a contour in several infeeds – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 326

background image

326

9 Programming: Subprograms and Program Section Repeats

9.6 Pr

ogr

a

mming Examples

9.6 Programming Examples

Example: Milling a contour in several infeeds

Program sequence

„

Pre-position the tool to the workpiece surface

„

Enter the infeed depth in incremental values

„

Contour milling

„

Repeat downfeed and contour-milling

0 BEGIN PGM PGMWDH MM

1 BLK FORM 0.1 Z X+0 Y+0 Z-40

2 BLK FORM 0.2 X+100 Y+100 Z+0

3 TOOL DEF 1 L+0 R+10

Define the tool

4 TOOL CALL 1 Z S500

Tool call

5 L Z+250 R0 FMAX

Retract the tool

6 L X-20 Y+30 R0 FMAX

Pre-position in the working plane

7 L Z+0 R0 FMAX M3

Pre-position to the workpiece surface

X

Y

100

100

20

75

30

50

20

75

R15

R18

R15