Repeating program section repeats, 5 nesting – HEIDENHAIN TNC 320 (340 551-01) User Manual
Page 304
304
npV"hhamV9¤*zpV"h"m=pV"hF4apmFzF"
9.5 Nesting
Program execution
1
"amzpV"h aF¨F4¤F=¤zp*dp4cs
2
¤*zpV"hsa4"ddF=:"m=F¨F4¤F=¤zp*dp4cn
3
¤*zpV"h¢a4"ddF=:"m=F¨F4¤F=¤zp*dp4c¢ m=pO
¤*zpV"h¢"m=F¤mb¤hzp^F¤*zpV"hOph§^a4^a
§"4"ddF=
4
¤*zpV"hsaF¨F4¤F=Oph*dp4cT¬¤zp*dp4cTQ m=pO
¤*zpV"hs"m=F¤mb¤hzp^Fh"amzpV"h
5
"amzpV"h aF¨F4¤F=Oph*dp4csG¤zp*dp4c
QF¤mb¤hzp*dp4cs"m=Fm=pOzpV"h
Repeating program section repeats
Example NC blocks
Program execution
1
"amzpV"h aF¨F4¤F=¤zp*dp4c¢
2
pV"hF4apm*F§FFm*dp4c¢"m=*dp4c¢¬aFzF"F=§a4F
3
"amzpV"h aF¨F4¤F=Oph*dp4c¢Gp*dp4cQ
4
pV"hF4apm*F§FFm*dp4cQ"m=*dp4csQaFzF"F=pm4F
|am4d¤=amV^FzpV"hF4apmFzF"*F§FFm¢¬"m=*dp4c¢}
5
"amzpV"h aF¨F4¤F=Oph*dp4cp*dp4cQ¬|Fm=pO
zpV"h}
0 BEGIN PGM REPS MM
...
15 LBL 1
FVammamVpOzpV"hF4apmFzF"s
...
20 LBL 2
FVammamVpOzpV"hF4apmFzF"¢
...
27 CALL LBL 2 REP 2
^FzpV"hF4apm*F§FFm^a*dp4c"m= ¢
...
|*dp4c¢¬}aFzF"F=§a4F
35 CALL LBL 1 REP 1
^FzpV"hF4apm*F§FFm^a*dp4c"m= s
...
|*dp4csQ}aFzF"F=pm4F
50 END PGM REPS MM