![HEIDENHAIN TNC 407 Скачать руководство пользователя страница 183](http://html1.mh-extra.com/html/heidenhain/tnc-407/tnc-407_user-manual_2118718183.webp)
6-5
TNC 426/TNC 425/TNC 415 B/TNC 407
6
Subprograms and Program Section Repeats
.
.
.
.
.
.
.
.
.
.
.
6.2 Program Section Repeats
Like subprograms, program section repeats are
identified with labels.
Operating sequence
The program is executed up to the end of the
labelled program section (
1
and
2
), i.e. up to the
block with Ln,m.
Then the program section between the called label
and the label call is repeated the number of times
entered after under m (
3
,
4
).
The program is then resumed after the last
repetition (
5
).
Programming notes
• A program section can be repeated up to 65 534
times in succession.
• The total number of times the program section is
executed is always one more than the pro-
grammed number of repeats.
Fig. 6.2:
Flow diagram for a program section repeat;
R
= return jump
1
3
5
4
2
R
R
% ... *
G98 L1 *
L1,2 *
N99999
% ... *
Programming and executing a program section repeat
Mark the beginning:
Select the label setting function.
LABEL NUMBER ?
Program section repeated starting at LABEL 7, for example.
Resulting NC block: G98 L7 *
Specify the number of repeats:
Enter the number of repeats in the block that calls the label. This is also
the block that ends the program section.
The program section from LABEL 7 up to this block will be repeated
ten times. This means it will be run a total of
eleven times.
Resulting NC block: L7,10 *
8
END
7
9
G
ENT
7
1
0
END
L