Unterprogramm im unterprogramm, 5 v e rsc h ac ht elung e n – HEIDENHAIN TNC 620 (340 56x-02) ISO programming Benutzerhandbuch

Seite 190

Advertising
background image

190

Programmieren: Unterprogramme und Programmteil-Wiederholungen

7.

5 V

e

rsc

h

ac

ht

elung

e

n

Unterprogramm im Unterprogramm

NC-Beispielsätze

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 1 wird von Satz 40 bis Satz 45 ausgeführt. Ende
von Unterprogramm 1 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

%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 *

Advertising