Unterprogramm im unterprogramm – HEIDENHAIN TNC 640 (34059x-05) ISO programming Benutzerhandbuch

Seite 284

Advertising
background image

Programmieren: Unterprogramme und Programmteil-Wiederholungen

8.5

Verschachtelungen

8

284

TNC 640 | Benutzer-Handbuch DIN/ISO-Programmierung | 1/2015

Unterprogramm im Unterprogramm

NC-Beispielsätze

%UPGMS G71 *
...
N17 L “UP1“,0 *

Unterprogramm bei G98 L1 wird aufgerufen

...
N35 G00 G40 Z+100 M2 *

Letzter Programmsatz des

Hauptprogramms mit M2

N36 G98 L “UP1“

Anfang von Unterprogramm UP1

...
N39 L2,0 *

Unterprogramm bei G98 L2 wird aufgerufen

...
N45 G98 L0 *

Ende von Unterprogramm 1

N46 G98 L2 *

Anfang von Unterprogramm 2

...
N62 G98 L0 *

Ende von Unterprogramm 2

N99999999 %UPGMS G71 *

Programm-Ausführung

1 Hauptprogramm UPGMS wird bis Satz 17 ausgeführt
2 Unterprogramm UP1 wird aufgerufen und bis Satz 39

ausgeführt

3 Unterprogramm 2 wird aufgerufen und bis Satz 62

ausgeführt. Ende von Unterprogramm 2 und Rücksprung zum

Unterprogramm, von dem es aufgerufen wurde

4 Unterprogramm UP1 wird von Satz 40 bis Satz 45 ausgeführt.

Ende von Unterprogramm UP1 und Rücksprung ins

Hauptprogramm UPGMS

5 Hauptprogramm UPGMS wird von Satz 18 bis Satz 35

ausgeführt. Rücksprung zu Satz 1 und Programm-Ende

Advertising