2 subprograms, Operating sequence, Programming notes – HEIDENHAIN TNC 320 (340 551-01) User Manual
Page 299: Programming a subprogram, Calling a subprogram, 2 subpr ogr ams 9.2 subprograms
¢¬
299
9.2 Subpr
ogr
ams
9.2 Subprograms
Operating sequence
1
^F F¨F4¤F^Fz"zpV"h¤zp^F*dp4cam§^a4^"
¤*zpV"ha4"ddF=§a^
2
^F¤*zpV"ha^FmF¨F4¤F=Oph*FVammamVpFm=^F
¤*zpV"hFm=ah"cF= ¬
3
^F ^FmF¤hF^Fz"zpV"hOph^F*dp4c"OF^F
¤*zpV"h4"dd
Programming notes
h"amzpV"h4"m4pm"am¤zp¢QT¤*zpV"h
p¤4"m4"dd¤*zpV"ham"m©F¤Fm4F"m="pOFm"=FaF=
¤*zpV"h4"mmp4"ddaFdO
aF¤*zpV"h"^FFm=pO^Fh"amzpV"h|*F^am=^F*dp4c
§a^¬¢p¬}
O¤*zpV"h"Fdp4"F=*FOpF^F*dp4c§a^¬¢p¬:^F©
§add*FF¨F4¤F="dF"pm4FF¦FmaO^F©"Fmp4"ddF=
Programming a subprogram
8
ph"c^F*FVammamV:zF^F cF©
8
mF^F¤*zpV"hm¤h*F
8
ph"c^FFm=:zF^F cF©"m=FmF^F
d"*Fdm¤h*F¬
Calling a subprogram
8
p4"dd"¤*zpV"h:zF^F
cF©
8
Label number:
mF^Fd"*Fdm¤h*FpO^F
¤*zpV"h©p¤§a^p4"ddO©p¤§"mp¤F"d"*Fd
m"hF:zF^FcF©p§a4^pF¨Fm©
8
Repeat REP:
VmpF^F=a"dpV¤Fapm§a^^F
cF©FzF" a¤F=pmd©OpzpV"h
F4apmFzF"
0 BEGIN PGM ...
CALL LBL1
L Z+100 M2
LBL1
LBL0
END PGM ...
¬ampzFhaF=|"*Fd¬apmd©¤F=ph"c
^FFm=pO"¤*zpV"h}