Programming and calling subprograms -3 – HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual
Page 181
Advertising

6-3
TNC 426/TNC 425/TNC 415 B/TNC 407
6
Subprograms and Program Section Repeats
Programming and calling subprograms
Mark the beginning:
Select the label setting function.
LABEL NUMBER?
The subprogram begins with (for example) label number 5.
Resulting NC block: G98 L5 *
Mark the end:
A subprogram always ends with label number 0.
Select the label setting function.
LABEL NUMBER?
End of subprogram.
Resulting NC block: G98 L0 *
Call the subprogram:
A subprogram is called by its label number.
Call the subprogram behind label 5.
Resulting NC block: L5,0 *
The command L0,0 is not permitted (label 0 is only used to mark the end of a subprogram).
9
8
L
ENT
G
5
END
0
0
END
G
8
ENT
9
END
5
Advertising