beautypg.com

6 pr ogr a mming examples – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 327

background image

HEIDENHAIN TNC 320

327

9.6 Pr

ogr

a

mming Examples

8 LBL 1

Set label for program section repeat

9 L IZ-4 R0 FMAX

Infeed depth in incremental values (in space)

10 APPR CT X+2 Y+30 CCA90 R+5 RL F250

Approach to the contour.

11 FC DR- R18 CLSD+ CCX+20 CCY+30

Contour

12 FLT

13 FCT DR- R15 CCX+50 CCY+75

14 FLT

15 FCT DR- R15 CCX+75 CCY+20

16 FLT

17 FCT DR- R18 CLSD- CCX+20 CCY+30

18 DEP CT CCA90 R+5 F1000

Depart the contour

19 L X-20 Y+0 R0 FMAX

Retract tool

20 CALL LBL 1 REP 4

Return jump to LBL 1; section is repeated a total of 4 times

21 L Z+250 R0 FMAX M2

Retract in the tool axis, end program

22 END PGM PGMWDH MM