beautypg.com

3 program section repeats, Label g98, Operating sequence – HEIDENHAIN 530 (340 49x-07) ISO programming User Manual

Page 258: Programming notes, Programming a program section repeat, Calling a program section repeat

background image

258

Programming: Subprograms and Program Section Repeats

8.3 Pr

ogr

am Section Repeats

8.3 Program Section Repeats

Label G98

The beginning of a program section repeat is marked by the label
G98 L

. The end of a program section repeat is identified by Ln,m.

Operating sequence

1

The TNC executes the part program up to the end of the program
section (Ln,m)

2

Then the program section between the called LBL Ln,m is repeated
the number of times entered for m

3

The TNC then resumes the part program after the last repetition

Programming notes

„

You can repeat a program section up to 65 534 times in succession

„

The total number of times the program section is executed is always
one more than the programmed number of repeats

Programming a program section repeat

U

To mark the beginning, press the LBL SET key and

enter a LABEL NUMBER for the program section you
wish to repeat. If you want to use a label name, press
the LBL NAME soft key to switch to text entry

U

Enter the program section

Calling a program section repeat

U

Press the LBL CALL key.

U

Call subprogram /repeat

: Enter the label number of

the subprogram you wish to call. If you want to use a
label name, press the LBL NAME soft key to switch
to text entry. If you want to enter the number of a
string parameter as target address: Press the QS soft
key; the TNC will then jump to the label name that is
specified in the string parameter defined.

U

Repeat REP

: Enter the number of repeats, then

confirm with the ENT key.

% ...

G98 L1 *

L1,2 *

N99999 % ...

1

2

R

2/1