beautypg.com

6 pr ogr amming examples – HEIDENHAIN TNC 320 (340 551-01) User Manual

Page 309

background image

˜ ˜¢¬

309

9.6 Pr

ogr

amming Examples

7 L X+15 Y+10 R0 FMAX M3

p¦F˜›p˜’›"›amV˜zpam›˜Op˜Vp¤z˜s

8 CALL LBL 1

"dd˜›^F˜’¤*zpV"h˜Op˜›^F˜Vp¤z

9 L X+45 Y+60 R0 FMAX

p¦F˜›p˜’›"›amV˜zpam›˜Op˜Vp¤z˜¢

10 CALL LBL 1

"dd˜›^F˜’¤*zpV"h˜Op˜›^F˜Vp¤z

11 L X+75 Y+10 R0 FMAX

p¦F˜›p˜’›"›amV˜zpam›˜Op˜Vp¤z˜

12 CALL LBL 1

"dd˜›^F˜’¤*zpV"h˜Op˜›^F˜Vp¤z

13 L Z+250 R0 FMAX M2

m=˜pO˜h"am˜zpV"h

14 LBL 1

FVammamV˜pO˜’¤*zpV"h˜s9˜p¤z˜pO˜^pdF’

15 CYCL CALL

pdF˜s

16 L IX.20 R0 FMAX M99

p¦F˜›p˜¢m=˜^pdF:˜4"dd˜4©4dF

17 L IY+20 R0 FMAX M99

p¦F˜›p˜=˜^pdF:˜4"dd˜4©4dF

18 L IX-20 R0 FMAX M99

p¦F˜›p˜T›^˜^pdF:˜4"dd˜4©4dF

19 LBL 0

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

20 END PGM UP1 MM