Unterprogramm wiederholen, 5 v e rsc h ac ht elung e n – HEIDENHAIN iTNC 530 (340 420) ISO programming Benutzerhandbuch

Seite 378

Advertising
background image

378

9 Programmieren: Unterprogramme und Programmteil-Wiederholungen

9.5 V

e

rsc

h

ac

ht

elung

e

n

Unterprogramm wiederholen

NC-Beispielsätze

Programm-Ausführung

1

Hauptprogramm UPGREP wird bis Satz N110 ausgeführt

2

Unterprogramm 2 wird aufgerufen und ausgeführt

3

Programmteil zwischen Satz N120 und Satz N100 wird 2 mal wie-
derholt: Unterprogramm 2 wird 2 mal wiederholt

4

Hauptprogramm UPGREP wird von Satz N130 bis Satz N190 ein-
mal ausgeführt; Programm-Ende

%UPGREP G71 *

...

N100 G98 L1 *

Anfang der Programmteil-Wiederholung 1

N110 L2,0 *

Unterprogramm-Aufruf

N120 L1,2 *

Programmteil zwischen diesem Satz und G98 L1

...

(Satz N100) wird 2 mal wiederholt

N190 G00 G40 Z+100 M2 *

Letzter Satz des Hauptprogramms mit M2

N200 G98 L2 *

Anfang des Unterprogramms

...

N280 G98 L0 *

Ende des Unterprogramms

N999999 %UPGREP G71 *

Advertising