beautypg.com

4 separate program as subprogram, Operating sequence, Programming notes – HEIDENHAIN iTNC 530 (340 420) ISO programming User Manual

Page 375: Calling any program as a subprogram

background image

HEIDENHAIN iTNC 530

375

9.4 Separ

a

te

Pr

ogr

am as Subpr

ogr

am

9.4 Separate Program as

Subprogram

Operating sequence

1

The TNC executes the part program up to the block in which
another program is called with %.

2

Then the other program is run from beginning to end.

3

The TNC then resumes the first (calling) part program with the
block after the program call.

Programming notes

n

No labels are needed to call any program as a subprogram.

n

The called program must not contain the miscellaneous functions
M2 or M30.

n

The called program must not contain a call with % into the calling
program (endless loop).

Calling any program as a subprogram

U

U

U

U

To select the functions for program call, press the

PGM CALL key.

U

U

U

U

Press the PROGRAM soft key.

U

U

U

U

Enter the complete path name of the program you

want to call and confirm your entry with the END key.

% A G71 *

% B

N99999 % A G71 *

% B G71 *

N99999 % B G71 *

You can also call a program with Cycle G39.

If you want to call a conversational dialog program, enter
the file type .H behind the program name.

The program you are calling must be stored on the hard
disk of your TNC.

You need only enter the program name if the program you
want to call is located in the same directory as the program
you are calling it from.

If the called program is not located in the same directory
as the program you are calling it from, you must enter the
complete path, e.g. TNC:\ZW35\ROUGH\PGM1.H