beautypg.com

1 labeling subprograms and program section repeats, Labels – HEIDENHAIN iTNC 530 (340 49x-02) ISO programming User Manual

Page 468

background image

468

10 Programming: Subprograms and Program Section Repeats

1

0

.1 Labeling Subpr

ogr

ams a

nd Pr

ogr

am Section Repeats

10.1 Labeling Subprograms and

Program Section Repeats

Subprograms and program section repeats enable you to program a
machining sequence once and then run it as often as desired.

Labels

Subprograms and program section repeats begin with the function
G98 L

in the part program. The letter L stands for "label."

A label is identified by a number between 1 and 999 or by a name you
define. Each LABEL number or LABEL name can be set only once in
the program with G98. The number of label names you can enter is
only limited by the internal memory.

Label 0 (G98 L0) is used exclusively to mark the end of a subprogram
and can therefore be used as often as desired.

If a label name or number is set more than once, the TNC
sends an error message at the end of the G98 block.

With very long programs, you can limit the number of
blocks to be checked for repeated labels with MP7229.