Program Section Repeats; Programming Notes; Programming And Calling A Program Section Repetition; Flow Diagram For A Program Section Repeat - HEIDENHAIN TNC 407 Manual

Shop-floor programmable contouring controls
Hide thumbs Also See for TNC 407:
Table of Contents

Advertisement

6
Subprograms and Program Section Repeats

6.2 Program Section Repeats

Program section repeats, like subprograms, are
identified with labels.
Principle
The program is executed up to the end of the
labeled program section (
block with CALL LBL.
Then the program section between the called LBL
and the label call is repeated the number of times
entered after REP in the CALL LBL command (
).
4
After the last repetition the program is then
continued (
).
5

Programming notes

• A program section can be repeated up to 65 534
times in succession.
• Behind the slash after REP the TNC counts the
number of repetitions yet to be run.
• Altogether, the program section is always
executed once more than the number of pro-
grammed repeats.

Programming and calling a program section repetition

Mark the beginning
LBL
SET
e.g.
Resulting NC block: LBL 7
Call the label and specify the number or repetitions
Enter the number of desired repetitions in the block that calls the label.
This is also the block that ends the program section.
LBL
CALL
e.g.
e.g.
Resulting NC block: CALL LBL 7 REP 10/10
TNC 425/TNC 415 B/TNC 407
and
), i.e. up to the
1
2
Repeat the program section beginning with LABEL 7.
7
ENT
Execute the program section beginning with LABEL 7.
7
ENT
Repeat the program section from LABEL 7 to this block 10 times. The
1
0
ENT
labeled program section will therefore be executed a total of 11 times.
0
BEGIN PGM ...
.
.
1
.
.
LBL 1
.
,
.
3
2
3
.
R
.
CALL LBL 1 REP 2/2
.
.
5
.
.
END PGM ...
Fig. 6.2:

Flow diagram for a program section repeat;

R = return jump
4
R
6-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents