Programming and calling subprograms – HEIDENHAIN TNC 360 User Manual User Manual
Page 126
Advertising

6-3
TNC 360
6
Subprograms and Program Section Repeats
e.g.
6.1
Subprograms
LBL
CALL
NO
ENT
LBL
SET
LBL
SET
5
ENT
Programming and calling subprograms
To mark the beginning of the subprogram:
LABEL NUMBER?
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.
LABEL NUMBER?
End of subprogram.
Resulting NC block: LBL 0
To call the subprogram:
A subprogram is called with its label number.
LABEL NUMBER?
Calls the subprogram following LBL 5.
REPEAT REP?
Program section is subprogram: no repetitions.
Resulting NC block: CALL LBL 5
The command CALL LBL 0 is not allowed because label 0 can only be used to mark the end of a subprogram.
0
ENT
5
e.g.
ENT
Advertising