beautypg.com

HEIDENHAIN TNC 410 User Manual

Page 208

background image

195

HEIDENHAIN TNC 410

9.3 Program Section Repeats

Programming a subprogram

ú

To mark the beginning, press the LBL SET key and
enter a label number.

ú

Enter the subprogram.

ú

To mark the end, press the LBL SET key and enter the
label number “0”.

Calling a subprogram

ú

To call a subprogram, press the LBL CALL key.

ú

Label number: Enter the label number of the
subprogram to be called, then confirm with the END
key.

CALL LBL 0 is not permitted (label 0 is only used to mark
the end of a subprogram).

9.3 Program section repeats

The beginning of a program section repeat is marked by the label
LBL. The end of a program section repeat is identified by
CALL LBL REP.

Operating sequence
1
The TNC executes the part program up to the end of the program

section (CALL LBL REP).

2 Then the program section between the called LBL and the label

call CALL LBL REP is repeated the number of times entered after
REP.

3 The TNC then resumes the part program after the last repetition.

Operating constraints

You can repeat a program section up to 65 534 times in
succession.

In the additional status display the TNC shows how many
repetitions remain (see section ”1.4 Status Displays”).

The total number of times the program section is executed is
always one more than the programmed number of repeats.

BEGIN PGM ...

LBL1

CALL LBL1 REP 2

END PGM ...