beautypg.com

5 nesting, Types of nesting, Nesting depth – HEIDENHAIN TNC 320 (340 551-01) User Manual

Page 303: Subprogram within a subprogram

background image

˜ ˜¢¬

303

9.5 Nesting

9.5 Nesting

Types of nesting

„

¤*zpV"h’˜§a›^am˜"˜’¤*zpV"h

„

pV"h˜’F4›apm˜FzF"›’˜§a›^am˜"˜zpV"h˜’F4›apm˜FzF"›

„

¤*zpV"h’˜FzF"›F=

„

pV"h˜’F4›apm˜FzF"›’˜§a›^am˜"˜’¤*zpV"h

Nesting depth

^F˜mF’›amV˜=Fz›^˜a’˜›^F˜m¤h*F˜pO˜’¤44F’’a¦F˜dF¦Fd’˜am˜§^a4^˜

zpV"h˜’F4›apm’˜p˜’¤*zpV"h’˜4"m˜4"dd˜O¤›^F˜zpV"h˜’F4›apm’˜p˜

’¤*zpV"h’

„

"¨ah¤h˜mF’›amV˜=Fz›^˜Op˜’¤*zpV"h’9˜"zzp¨˜–T˜¬¬¬

„

"¨ah¤h˜mF’›amV˜=Fz›^˜Op˜h"am˜zpV"h˜4"dd’9˜^F˜mF’›amV˜=Fz›^˜

a’˜daha›F=˜pmd©˜*©˜›^F˜"¦"ad"*dF˜§pcamV˜hFhp©

„

p¤˜4"m˜mF’›˜zpV"h˜’F4›apm˜FzF"›’˜"’˜pO›Fm˜"’˜=F’aF=

Subprogram within a subprogram

Example NC blocks

0 BEGIN PGM UPGMS MM

...

17 CALL LBL “SP1”

"dd˜›^F˜’¤*zpV"h˜h"cF=˜§a›^˜ ˜s

...

35 L Z+100 R0 FMAX M2

"’›˜zpV"h˜*dp4c˜pO˜›^F
h"am˜zpV"h˜|§a›^˜¬¢}

36 LBL “SP1”

FVammamV˜pO˜’¤*zpV"h˜¢

...

39 CALL LBL 2

"dd˜›^F˜’¤*zpV"h˜h"cF=˜§a›^˜ ˜¢

...

45 LBL 0

m=˜pO˜’¤*zpV"h˜s

46 LBL 2

FVammamV˜pO˜’¤*zpV"h˜¢

...

62 LBL 0

m=˜pO˜’¤*zpV"h˜¢

63 END PGM UPGMS MM