Subprograms, expert programs, Nc program conversion, 2 pr ogr a mming not e s – HEIDENHAIN CNC Pilot 4290 V7.1 User Manual

Page 122

Advertising
background image

122

4.2 Pr

ogr

a

mming Not

e

s

Subprograms, expert programs

Subprograms are used to program the contour or the machining
process.

In the subprograms, transfer parameters are available as variables.
You can fix the designation of the transfer parameter (see
“SUBPROGRAM section” on page 145).

In every subprogram, the variables #256 to #285 are available for
internal calculations.

Subprograms can be nested up to six times. Nesting means that a
subprogram calls a further subprogram, etc.

If a subprogram is to be run repeatedly, enter the number of times the
subprogram is to be repeated in the Q parameter.

The CNC PILOT distinguishes between local and external
subprograms.

„

Local subprograms are in the file of the NC main program. Local
subprograms can only be called in from their corresponding main
programs.

„

External subprograms are stored in separate NC files and can be
called in from any NC main program or other NC subprograms.

Expert programs

An expert program is a subprogram that executes complex processes
and is adapted to the machine configurations (for example, workpiece
transfer to opposing spindles). Expert programs are usually provided
by the machine tool builder.

NC program conversion

For variable programming and user communication, keep in mind that
the CNC PILOT interprets the complete NC program before the
program run.

The CNC PILOT differentiates between:

„

# variables that are calculated during the conversion of the NC
program

„

V variables are calculated at run time, which means during the
execution of an NC block.

„

Inputs/outputs during NC program conversion

„

Inputs/outputs during NC program run

Advertising