345
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 CALL PGM.
2
Then the other program is run from beginning to end.
3
The TNC then resumes the first (calling) part program with the
block behind 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 program call into the calling
program, otherwise an infinite loop will result.
Calling any program as a subprogram
U
To select the functions for program call, press the
PGM CALL key.
U
Press the PROGRAM soft key.
U
Enter the complete path name of the program you
want to call and confirm your entry with the END key.
0 BEGIN PGM A
CALL PGM B
END PGM A
0 BEGIN PGM B
END PGM B
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
If you want to call an ISO program, enter the file type .I
after the program name.
You can also call a program with Cycle 12 PGM CALL.
Summary of Contents for TNC 426
Page 3: ......
Page 4: ......
Page 8: ...IV...
Page 10: ...VI...
Page 26: ......
Page 27: ...1 Introduction...
Page 41: ...2 Manual Operation and Setup...
Page 54: ......
Page 55: ...3 Positioning with Manual Data Input MDI...
Page 59: ...4 Programming Fundamentals of NC File Management Programming Aids Pallet Management...
Page 122: ......
Page 123: ...5 Programming Tools...
Page 153: ...6 Programming Programming Contours...
Page 201: ...7 Programming Miscellaneous functions...
Page 226: ......
Page 227: ...8 Programming Cycles...
Page 366: ......
Page 367: ...9 Programming Subprograms and Program Section Repeats...
Page 381: ...10 Programming Q Parameters...
Page 424: ......
Page 425: ...11 Test run and Program Run...
Page 443: ...12 MOD Functions...
Page 472: ......
Page 473: ...13 Tables and Overviews...
Page 496: ......