Lbl set, Call, Programming and calling subprograms – HEIDENHAIN TNC 407 (280 580) User Manual User Manual
Page 177
Advertising

6-3
TNC 425/TNC 415 B/TNC 407
6
Subprograms and Program Section Repeats
5
e.g.
LBL
CALL
NO
ENT
ENT
LBL
SET
LBL
SET
0
5
e.g.
ENT
ENT
Programming and calling subprograms
Mark the beginning:
LABEL NUMBER ?
The subprogram begins with label number 5.
Resulting NC block: LBL 5
Mark the end:
A subprogram always ends with LABEL 0.
LABEL NUMBER ?
End of subprogram
Resulting NC block: LBL 0
Call the subprogram:
A subprogram is called by its label number.
LABEL NUMBER ?
Calls the subprogram behind LBL 5.
REPEAT REP ?
The program section is a subprogram: no repetitions.
Resulting NC block: CALL LBL 5
The command CALL LBL 0 is not permitted, because label 0 is used only to mark the end of a subprogram.
Advertising