Program Section Repeats - HEIDENHAIN TNC 426 B User Manual

Table of Contents

Advertisement

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 you wish to call.
Repeat REP: Ignore the dialog question with the NO
ENT key. Repeat REP is used only for program section
repeats.
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 is repeated the number of times entered after REP .
3 The TNC then resumes the part program after the last repetition.
Programming notes
You can repeat a program section up to 65 534 times in
succession.
The number behind the slash after REP indicates the number of
repetitions remaining to be run.
The total number of times the program section is executed is
always one more than the programmed number of repeats.
HEIDENHAIN TNC 426 B, TNC 430
www.EngineeringBooksPdf.com
0 BEGIN PGM ...
LBL1
CALL LBL1 REP 2/2
END PGM ...
241

Advertisement

Table of Contents
loading

Table of Contents