beautypg.com

HEIDENHAIN PT 855 for Milling User Manual

Page 66

background image

I - 4 Programming POSITIP

64

Operating Instructions

POSITIP 855

Subprograms and program section repeats

Subprograms and program section repeats only need to be entered

once in the program. You can then run them up to 999 times.
Subprograms can be run at any point in the program, while pro-

gram section repeats are run several times in succession.

Inserting program marks (labels)

You identify subprograms and program section repeats with labels

(abbreviated in the program to

LBL

).

Labels 1 to 99

Labels 1 to 99 identify the beginning of a subprogram or a program

section which is to be repeated.
Label 0

Label 0 is used only to identify the end of a subprogram.
Label call

In the program, subprograms and program sections are called with

the command

CALL LBL

.

The command

CALL LBL 0

is not allowed.

Subprograms:

After a

CALL LBL

block in the program, POSITIP executes the

called subprogram.

Program section repeats:

POSITIP repeats the program section located before the

CALL

LBL

block. You enter the number of repeats with the

CALL LBL

command.

Nesting program sections

Subprograms and program section repeats can also be "nested."

For example, a subprogram can in turn call another subprogram.
Maximum nesting depth: 8 levels.

Fig. 29: On-screen operating instructions for

program section repeats (page 3

shown)

Fig. 28: On-screen operating instructions for

subprograms (page 5 shown)