beautypg.com

6 programming examples – HEIDENHAIN TNC 410 User Manual

Page 213

background image

9 Programming: Subprograms and Program Section Repeats

200

Example: Milling a contour in several infeeds

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

Mill the contour

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
4 TOOL CALL 1 Z S500
5 L Z+250 R0 FMAX
6 L X-20 Y+30 R0 F MAX
7 L Z+0 R0 FMAX M3
8 LBL 1
9 L IZ-4 R0 F MAX
10 APPR CT X+2 Y+30 CCA90 R+5 RL F250
11 FC DR- R18 CLSD+ CCX+20 CCY+30
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
19 L X-20 Y+0 R0 F MAX
20 CALL LBL 1 REP 4
21 L Z+250 R0 FMAX M2
22 END PGM PGMWDH MM

Define the tool

Call the tool

Retract the touch probe

Pre-position in the working plane

Pre-position to the workpiece surface

Set label for program section repeat

Infeed depth in incremental values (in the open)

Approach contour

Contour

Depart contour

Retract tool

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

Retract in the tool axis, end of program

X

Y

100

100

20

75

30

50

20

75

R15

R18

R15