EasyManuals Logo

HEIDENHAIN TNC 640 User Manual

HEIDENHAIN TNC 640
948 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #369 background imageLoading...
Page #369 background image
Subprograms and Program Section Repeats | Nesting
9
HEIDENHAIN | TNC 640 | Conversational Programming User's Manual | 10/2017
369
Repeating a subprogram
Example
0 BEGIN PGM UPGREP MM
...
10 LBL 1
Beginning of program section repeat 1
11 CALL LBL 2
Subprogram call
12 CALL LBL 1 REP 2
Program section call with two repeats
...
19 L Z+100 R0 FMAX M2
Last block of the main program with M2
20 LBL 2
Beginning of subprogram
...
28 LBL 0
End of subprogram
29 END PGM UPGREP MM
Program execution
1 Main program UPGREP is executed up to block 11.
2 Subprogram 2 is called and executed.
3 Program section between block 12 and block 10 is repeated
twice. This means that subprogram 2 is repeated twice.
4 Main program UPGREP is executed from block 13 up to block
19. Return jump to block 1 and end of program.

Table of Contents

Other manuals for HEIDENHAIN TNC 640

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HEIDENHAIN TNC 640 and is the answer not in the manual?

HEIDENHAIN TNC 640 Specifications

General IconGeneral
Control TypeCNC
AxesUp to 18 axes
InterfacesEthernet, USB, RS-232
Spindle ControlYes
PLCIntegrated
StorageSSD
Programming LanguagesDIN/ISO
Safety Featuressafety functions according to EN ISO 13849-1
DimensionsVaries based on configuration
WeightVaries based on configuration
Operating SystemWindows

Related product manuals