beautypg.com

6 pr ogr amming examples, Example: erosion hole row parallel to x axis – HEIDENHAIN TNC 406 User Manual

Page 205

background image

184

9 Programming: Subprograms and Program Section Repeats

9.6 Pr

ogr

amming Examples

Example: Erosion hole row parallel to X axis

0 BEGIN PGM ROW MM

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

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

Define the blank

3 CYCL DEF 1.0 GENERATOR

Cycle GENERATOR (see ”Cycle 1 GENERATOR” on page 133)

4 CYCL DEF 1.1 P-TAB 10

Select erosion table (here, table 10)

5 CYCL DEF 1.2 MAX=8 MIN=8

Set power stage (here, to stage 8)

6 TOOL DEF 1 L+0 R+2.4

Define electrode in the program

7 TOOL CALL 1 Z U+0.1

Call electrode in the infeed axis Z, undersize 0.1 mm

8 L Z+100 R0 F MAX

Retract in the infeed axis; rapid traverse; insert electrode

9 L X-10 Y+10 Z+2 F MAX M3

Pre-position to eroding distance in negative X direction

10 LBL 1

Start of the program block to be repeated

11 L IX+15 F MAX

Position above the cavity; rapid traverse

12 L Z-10 M36

Sink; eroding ON

13 L Z+2 F MAX M37

Retract electrode; rapid traverse; eroding OFF

14 CALL LBL 1 REP 5/5

Call LBL 1; program section between block 10 and

block 14 is repeated five times (for 6 cavities!)

15 L Z+100 R0 F MAX

Retract electrode

16 END PGM ROW MM

Z

Y

X

¬ 5

5

10

15

This manual is related to the following products: