HEIDENHAIN NC 124 User Manual

Page 98

Advertising
background image

8

Subprograms and Program Section Repeats

98

TNC 124

Example: Entering a program section repeat: CALL LBL

Program Section Repeats

Go to the second soft-key row.

Call label.

The TNC offers the label number that was last set.

/

R e p e a t R E P ?

4

ENT

L a b e l n u m b e r ?

1

ENT

ENT

Accept the default label number.

Enter a label number (here, 1). Confirm your entry.

The current block now contains the called label: CALL LBL 1.

or

or

Enter the number of repeats (here, 4).

Confirm your entry.

After a CALL LBL block in the operating mode PROGRAM RUN, the

TNC repeats those program blocks that are located behind the LBL

block with the called number and before the CALL LBL block.

Note that the program section will always be executed one more

time than the programmed number of repeats.

Program blocks

0

BEGIN PGM 70

MM

Start of program, program number, unit of measurement

1

F 9999

High feed rate for pre-positioning

2

Z+20

Clearance height

3

TOOL CALL 9 Z

Call tool data, here tool 9, tool axis Z

4

S 1800

Spindle speed

5

M 3

Spindle ON, clockwise

6

X+30

R0

X coordinate infeed point slot

1

7

Y+10

R0

Y coordinate infeed point slot

1

8

LBL 1

Start of program section 1

9

F 150

Machining feed rate during program section repeat

1 0

Z - 1 2

Infeed

1 1

I X + 1 6

R 0

Mill slot

1 2

F 9999

High feed rate for retracting and pre-positioning

1 3

Z + 2

Retract

1 4

I X - 1 6

R 0

Positioning in X

1 5

I Y + 1 5

R 0

Positioning in Y

1 6

CALL LBL 1 REP 4 / 4

Repeat program section 1 four times

17

Z+20

Clearance height

18

M 2

Stop program run, spindle STOP, coolant OFF

19

END PGM 70

MM

End of program, program number, unit of measurement

Advertising