Unterprogramm wiederholen – HEIDENHAIN TNC 620 (34056x-04) ISO programming Benutzerhandbuch
Seite 206

Programmieren: Unterprogramme und Programmteil-Wiederholungen
7.5
Verschachtelungen
7
206
TNC 620 | Benutzer-Handbuch DIN/ISO-Programmierung | 3/2013
Unterprogramm wiederholen
NC-Beispielsätze
%UPGREP G71 *
...
N10 G98 L1 *
Anfang der Programmteil-Wiederholung 1
N11 L2,0 *
Unterprogramm-Aufruf
N12 L1,2 *
Programmteil zwischen diesem Satz und G98 L1
...
(Satz N10) wird 2 mal wiederholt
N19 G00 G40 Z+100 M2 *
Letzter Satz des Hauptprogramms mit M2
N20 G98 L2 *
Anfang des Unterprogramms
...
N28 G98 L0 *
Ende des Unterprogramms
N99999999 %UPGREP G71 *
Programm-Ausführung
1 Hauptprogramm UPGREP wird bis Satz 11 ausgeführt
2 Unterprogramm 2 wird aufgerufen und ausgeführt
3 Programmteil zwischen Satz 12 und Satz 10 wird 2 mal
wiederholt: Unterprogramm 2 wird 2 mal wiederholt
4 Hauptprogramm UPGREP wird von Satz 13 bis Satz 19
ausgeführt; Programm-Ende