HEIDENHAIN TNC 426 B, TNC 430
241
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 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.
0 BEGIN PGM ...
LBL1
CALL LBL1 REP 2/2
END PGM ...
LKAP9.PM6
30.06.2006, 07:04
241
www.EngineeringBooksPdf.com
Summary of Contents for TNC 426 B
Page 3: ...BAUSKLA PM6 30 06 2006 07 03 2 www EngineeringBooksPdf com ...
Page 4: ...BAUSKLA PM6 30 06 2006 07 03 3 www EngineeringBooksPdf com ...
Page 6: ...CINHALT PM6 30 06 2006 07 03 2 www EngineeringBooksPdf com ...
Page 16: ...CINHALT PM6 30 06 2006 07 03 12 www EngineeringBooksPdf com ...
Page 17: ...Introduction 1 Dkap1 pm6 30 06 2006 07 03 1 www EngineeringBooksPdf com ...
Page 29: ...Manual Operation and Setup 2 Dkap2_3 pm6 30 06 2006 07 03 13 www EngineeringBooksPdf com ...
Page 83: ...Programming Tools 5 Fkap5 pm6 30 06 2006 07 03 67 www EngineeringBooksPdf com ...
Page 106: ...Fkap5 pm6 30 06 2006 07 03 90 www EngineeringBooksPdf com ...
Page 107: ...Programming Programming Contours 6 Gkap6 pm6 30 06 2006 07 04 91 www EngineeringBooksPdf com ...
Page 165: ...Hkap7 pm6 30 06 2006 07 03 150 www EngineeringBooksPdf com ...
Page 166: ...Programming Cycles 8 kkap8 pm6 30 06 2006 07 03 151 www EngineeringBooksPdf com ...
Page 253: ...kkap8 pm6 30 06 2006 07 04 238 www EngineeringBooksPdf com ...
Page 265: ...LKAP9 PM6 30 06 2006 07 04 250 www EngineeringBooksPdf com ...
Page 266: ...Programming Q Parameters 10 MKAP10 PM6 30 06 2006 07 04 251 www EngineeringBooksPdf com ...
Page 297: ...MKAP10 PM6 30 06 2006 07 04 282 www EngineeringBooksPdf com ...
Page 298: ...Test Run and Program Run 11 NKAP11 PM6 30 06 2006 07 04 283 www EngineeringBooksPdf com ...
Page 312: ...MOD Functions 12 Okap12 pm6 30 06 2006 07 04 297 www EngineeringBooksPdf com ...
Page 332: ...Tables and Overviews 13 Pkap13 pm6 30 06 2006 07 04 317 www EngineeringBooksPdf com ...