beautypg.com

HEIDENHAIN TNC 128 (77184x-02) User Manual

Page 186

background image

Programming: Subprograms and program section repeats

7.6

Programming examples

7

186

TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014

18 CYCL DEF 7.0 DATUM SHIFT
19 CYCL DEF 7.1 X+0
20 CYCL DEF 7.2 Y+0
21 Z+100 R0 FMAX M30
22 LBL 1
23 X+0 R0 FMAX
24 Y+0 R0 FMAX M99

Move to 1st hole, call cycle

25 X+20 R0 FMAX M99

Move to 2nd hole, call cycle

26 Y+20 R0 FMAX M99

Move to 3rd hole, call cycle

27 X-20 R0 FMAX M99

Move to 4th hole, call cycle

28 LBL 0
29 END PGM SP2 MM