6 pr ogr amming examples – HEIDENHAIN iTNC 530 (34049x-08) User Manual
Page 304
Advertising

304
Programming: Subprograms and program section repeats
8.6 Pr
ogr
amming examples
6 L X+15 Y+10 R0 FMAX M3
Move to starting point for group 1
7 CALL LBL 1
Call the subprogram for the group
8 L X+45 Y+60 R0 FMAX
Move to starting point for group 2
9 CALL LBL 1
Call the subprogram for the group
10 L X+75 Y+10 R0 FMAX
Move to starting point for group 3
11 CALL LBL 1
Call the subprogram for the group
12 L Z+250 R0 FMAX M2
End of main program
13 LBL 1
Beginning of subprogram 1: Group of holes
14 CYCL CALL
Hole 1
15 L IX+20 R0 FMAX M99
Move to 2nd hole, call cycle
16 L IY+20 R0 FMAX M99
Move to 3rd hole, call cycle
17 L IX-20 R0 FMAX M99
Move to 4th hole, call cycle
18 LBL 0
End of subprogram 1
19 END PGM SP1 MM
Advertising