6 Subprograms and Program Section Repeats
L
6.1 Subprograms
Programming and calling subprograms
To mark the beginning of the subprogram
The subprogram begins with label number 5.
Resulting NC block: LBL 5
To mark the end of the subprogram
A subprogram must always end with label number 0.
T&i.mrdmmT
L
Resulting NC block: LBL 0
End of subprogram.
To call the subprogram
A subprogram is called with its label number.
Calls the subprogram following LBL 5.
Program section is subprogram: no repetitions.
Resulting NC block: CALL LBL 5
The command CALL LBL 0
is not atlowed because label 0 can only be
used t# mark the end of a sukprogram+
L
TNC 370
6-3