6 pr ogr amming examples – HEIDENHAIN TNC 320 (340 551-01) User Manual
Page 311
¢¬
311
9.6 Pr
ogr
amming Examples
10 L Z+250 R0 FMAX M6
ppd4^"mVF
11 TOOL CALL 2 Z S4000
"ddppd9=add
12 FN 0: Q201 = -25
F§=Fz^Op=addamV
13 FN 0: Q202 = +5
F§zd¤mVamV=Fz^Op=addamV
14 CALL LBL 1
"dd¤*zpV"hsOp^FFmaF^pdFz"Fm
15 L Z+250 R0 FMAX M6
ppd4^"mVF
16 TOOL CALL 3 Z S500
"ddppd9F"hF
17 CYCL DEF 201 REAMING
©4dF=FOamaapm9
Q200=2
;SET-UP CLEARANCE
Q201=-15
;DEPTH
Q206=250
;FEED RATE FOR PLNGNG
Q211=0.5
;DWELL TIME AT DEPTH
Q208=400
;RETRACTION FEED RATE
Q203=+0
;SURFACE COORDINATE
Q204=10
;2ND SET-UP CLEARANCE
18 CALL LBL 1
"dd¤*zpV"hsOp^FFmaF^pdFz"Fm
19 L Z+250 R0 FMAX M2
m=pOh"amzpV"h
20 LBL 1
FVammamVpO¤*zpV"hs9 maF^pdFz"Fm
21 L X+15 Y+10 R0 FMAX M3
p¦Fp"amVzpamOpVp¤zs
22 CALL LBL 2
"dd¤*zpV"h¢Op^FVp¤z
23 L X+45 Y+60 R0 FMAX
p¦Fp"amVzpamOpVp¤z¢
24 CALL LBL 2
"dd¤*zpV"h¢Op^FVp¤z
25 L X+75 Y+10 R0 FMAX
p¦Fp"amVzpamOpVp¤z
26 CALL LBL 2
"dd¤*zpV"h¢Op^FVp¤z
27 LBL 0
m=pO¤*zpV"hs
28 LBL 2
FVammamVpO¤*zpV"h¢9p¤zpO^pdF
29 CYCL CALL
s^pdF§a^"4a¦FOa¨F=4©4dF
30 L 9X+20 R0 FMAX M99
p¦Fp¢m=^pdF:4"dd4©4dF
31 L IY+20 R0 FMAX M99
p¦Fp=^pdF:4"dd4©4dF
32 L IX-20 R0 FMAX M99
p¦FpT^^pdF:4"dd4©4dF
33 LBL 0
m=pO¤*zpV"h¢
34 END PGM UP2 MM