HEIDENHAIN TNC 360 User Manual User Manual

Page 129

Advertising
background image

TNC 360

6-6

6

Subprograms and Program Section Repeats

6.2

Program Section Repeats

Example for exercise: Row of holes parallel to X-axis

Coordinates of 1st hole: X = 5 mm

Y =10 mm

Spacing between holes: IX =15 mm

No. of holes:

N = 6

Hole depth:

Z = 10

Hole diameter:

Ø = 5 mm

Part Program

0

BEGIN PGM 360066 MM

1

BLK FORM 0.1 Z X+0 Y+0 Z–20

2

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

3

TOOL DEF 1 L+0 R+2,5

4

TOOL CALL 1 Z S1000

5

L Z+100 R0 FMAX M6

6

L X–10 Y+10 Z+2 FMAX M3 .............................. Pre-position in negative X-direction

7

LBL 1 .................................................................. Beginning of program section to be repeated

8

L IX+15 FMAX

9

L Z–10 F100

10

L Z+2 FMAX ....................................................... Move to hole position, drill, retract

11

CALL LBL 1 REP 5/5 ........................................... Call LABEL 1; repeat program section between blocks 7 and

11 five times (for 6 holes!)

12

L Z+100 R0 FMAX M2

13

END PGM 360066 MM

5

Y

X

Z

15

10

5

55

Advertising