18 .8 pr ogr amming examples – HEIDENHAIN TNC 128 (77184x-01) User Manual

Page 456

Advertising
background image

456

Cycles: Coordinate transformations

1

8

.8 Pr

ogr

amming examples

10 CYCL DEF 7.0 DATUM SHIFT

Datum shift for group 2

11 CYCL DEF 7.1 X+75

12 CYCL DEF 7.2 Y+10

13 CALL LBL 1

Call the subprogram for the group

14 CYCL DEF 7.0 DATUM SHIFT

Datum shift for group 3

15 CYCL DEF 7.1 X+45

16 CYCL DEF 7.2 Y+60

17 CALL LBL 1

Call the subprogram for the group

18

Z+250 R0 FMAX M30

End of main program

19 LBL 1

Beginning of subprogram 1: Group of holes

20

X+0 R0 FMAX

Move to 1st hole

21

Y+0 R0 FMAX M99 M3

Move to 1st hole, call cycle

22

X+20 R0 FMAX M99

Move to 2nd hole, call cycle

23

Y+20 R0 FMAX M99

Move to 3rd hole, call cycle

24

X-20 R0 FMAX M99

Move to 4th hole, call cycle

25 LBL 0

End of subprogram 1

26 END PGM SP1 MM

Advertising