Programming: Subprograms and program section repeats
8.5
Nesting
8
260
TNC 320 | User's Manual
HEIDENHAIN Conversational Programming | 3/2014
Subprogram within a subprogram
Example NC blocks
0 BEGIN PGM UPGMS MM
...
17 CALL LBL "UP1"
Call the subprogram marked with LBL SP1
...
35 L Z+100 R0 FMAX M2
Last program block of the main program (with M2)
36 LBL "UP1"
Beginning of subprogram SP1
...
39 CALL LBL 2
Call the subprogram marked with LBL 2
...
45 LBL 0
End of subprogram 1
46 LBL 2
Beginning of subprogram 2
...
62 LBL 0
End of subprogram 2
63 END PGM UPGMS MM
Program execution
1 Main program UPGMS is executed up to block 17.
2 Subprogram SP1 is called, and executed up to block 39.
3 Subprogram 2 is called, and executed up to block 62. End of
subprogram 2 and return jump to the subprogram from which it
was called.
4 Subprogram 1 is called, and executed from block 40 up to block
45. End of subprogram 1 and return jump to the main program
UPGMS.
5 Main program UPGMS is executed from block 18 up to block 35.
Return jump to block 1 and end of program.
Содержание TNC 320
Страница 4: ...Controls of the TNC 4 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 5: ...Fundamentals ...
Страница 16: ...Contents 16 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 43: ...1 First Steps with the TNC 320 ...
Страница 63: ...2 Introduction ...
Страница 81: ...3 Programming Fundamentals file management ...
Страница 124: ......
Страница 125: ...4 Programming Programming aids ...
Страница 152: ......
Страница 153: ...5 Programming Tools ...
Страница 180: ......
Страница 181: ...6 Programming Programming contours ...
Страница 232: ......
Страница 233: ...7 Programming Data transfer from DXF files or plain language contours ...
Страница 251: ...8 Programming Subprograms and program section repeats ...
Страница 267: ...9 Programming Q Parameters ...
Страница 337: ...10 Programming Miscellaneous functions ...
Страница 357: ...11 Programming Special functions ...
Страница 379: ...12 Programming Multiple Axis Machining ...
Страница 406: ......
Страница 407: ...13 Manual operation and setup ...
Страница 462: ......
Страница 463: ...14 Positioning with Manual Data Input ...
Страница 468: ......
Страница 469: ...15 Test run and program run ...
Страница 497: ...16 MOD functions ...
Страница 525: ...17 Tables and overviews ...