Subprograms; Operating Sequence; Programming Notes - HEIDENHAIN TNC 640 User Manual

Hide thumbs Also See for TNC 640:
Table of Contents

Advertisement

Subprograms and Program Section Repeats | Subprograms
9.2

Subprograms

Operating sequence

1 The control executes the part program up to the Ln,0 command
for calling a subprogram
2 The subprogram is then executed until the subprogram end
G98 L0
3 The control then resumes the part program from the block after
the subprogram call Ln,0

Programming notes

A main program can contain any number of subprograms
You can call subprograms in any sequence and as often as
desired
A subprogram cannot call itself
Write subprograms after the block with M2 or M30
If subprograms are located before the block with M2 or M30
in the part program, they will be executed at least once even if
they are not called
HEIDENHAIN | TNC 640 | ISO Programming User's Manual | 10/2017
9
351

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 640 5e

Table of Contents