beautypg.com

2 6 subprograms – HEIDENHAIN TNC 310 (286 140) Pilot User Manual

Page 26

background image

2 6

Subprograms

S

= Jump;

R

= Return jump

Subprogram Nesting:
A Subprogram within a Subprogram

1

The main program runs up to the first subprogram call CALL LBL1.

2

Subprogram 1 runs up to the second subprogram call CALL LBL2.

3

Subprogram 2 runs to its end.

4

Subprogram 1 resumes and runs to its end.

5

The main program resumes.

• A subprogram cannot call itself.

• Subprograms can be nested up to a maximum depth of

8 levels.

This manual is related to the following products: