beautypg.com

Repeating program section repeats, 5 nesting – HEIDENHAIN TNC 320 (340 551-01) User Manual

Page 304

background image

304

n˜pV"hhamV9˜¤*zpV"h’˜"m=˜pV"h˜F4›apm˜FzF"›’

9.5 Nesting

Program execution

1

"am˜zpV"h˜ ˜a’˜F¨F4¤›F=˜¤z˜›p˜*dp4c˜s•

2

¤*zpV"h˜s˜a’˜4"ddF=:˜"m=˜F¨F4¤›F=˜¤z˜›p˜*dp4c˜n

3

¤*zpV"h˜¢˜a’˜4"ddF=:˜"m=˜F¨F4¤›F=˜¤z˜›p˜*dp4c˜–¢˜ m=˜pO˜

’¤*zpV"h˜¢˜"m=˜F›¤m˜b¤hz˜›p˜›^F˜’¤*zpV"h˜Oph˜§^a4^˜a›˜

§"’˜4"ddF=

4

¤*zpV"h˜s˜a’˜F¨F4¤›F=˜Oph˜*dp4c˜T¬˜¤z˜›p˜*dp4c˜TQ˜ m=˜pO˜

’¤*zpV"h˜s˜"m=˜F›¤m˜b¤hz˜›p˜›^F˜h"am˜zpV"h˜ 

5

"am˜zpV"h˜ ˜a’˜F¨F4¤›F=˜Oph˜*dp4c˜sG˜¤z˜›p˜*dp4c˜

Q˜F›¤m˜b¤hz˜›p˜*dp4c˜s˜"m=˜Fm=˜pO˜zpV"h

Repeating program section repeats

Example NC blocks

Program execution

1

"am˜zpV"h˜ ˜a’˜F¨F4¤›F=˜¤z˜›p˜*dp4c˜¢•

2

pV"h˜’F4›apm˜*F›§FFm˜*dp4c˜¢•˜"m=˜*dp4c˜¢¬˜a’˜FzF"›F=˜›§a4F

3

"am˜zpV"h˜ ˜a’˜F¨F4¤›F=˜Oph˜*dp4c˜¢G˜›p˜*dp4c˜Q

4

pV"h˜’F4›apm˜*F›§FFm˜*dp4c˜Q˜"m=˜*dp4c˜sQ˜a’˜FzF"›F=˜pm4F˜

|am4d¤=amV˜›^F˜zpV"h˜’F4›apm˜FzF"›˜*F›§FFm˜¢¬˜"m=˜*dp4c˜¢•}

5

"am˜zpV"h˜ ˜a’˜F¨F4¤›F=˜Oph˜*dp4c˜–˜›p˜*dp4c˜Q¬˜|Fm=˜pO˜

zpV"h}

0 BEGIN PGM REPS MM

...

15 LBL 1

FVammamV˜pO˜zpV"h˜’F4›apm˜FzF"›˜s

...

20 LBL 2

FVammamV˜pO˜zpV"h˜’F4›apm˜FzF"›˜¢

...

27 CALL LBL 2 REP 2

^F˜zpV"h˜’F4›apm˜*F›§FFm˜›^a’˜*dp4c˜"m=˜ ˜¢

...

|*dp4c˜¢¬}˜a’˜FzF"›F=˜›§a4F

35 CALL LBL 1 REP 1

^F˜zpV"h˜’F4›apm˜*F›§FFm˜›^a’˜*dp4c˜"m=˜ ˜s

...

|*dp4c˜sQ}˜a’˜FzF"›F=˜pm4F

50 END PGM REPS MM