beautypg.com

Program section repeats, L b l – HEIDENHAIN TNC 122 User Manual User Manual

Page 46

background image

5

Programming

46

TNC 122

Program section repeats

A program section repeat is entered like a subprogram. The end of
the program section is identified simply by the command to repeat
the section.

Label 0 is therefore not set.

CALL LBL

block for a program section repeat

Example of a call label block: CALL L 1 R10 / 10 .

The two numbers with the slash between them indicate that this is
a program section repeat. The number in front of the slash is the
number of repetitions you programmed. The number behind the
slash is the number of repetitions remaining to be run.

Programming example: Program section repeat for slots

Slot lengths

16 mm + tool diameter

Slot depths

– 12 mm

Incremental offset
of the infeed point 15 mm
Slot diameter

6 mm (= tool diameter)

Infeed point coordinates
Slot

X = 30 mm

Y = 10 mm

Y

X

70

0

0

30

55

10

6

40

25

16

1

This example requires a center-cut end mill (ISO 1641).

Example: Label for a program section repeat

Mode of operation: PROGRAMMING AND EDITING

Select the LBL function.

LBL

S E T = E N T / C A L L = L B L

ENT

Select SET to set a label.

L B L ...

ENT

5

Enter the label number.
Confirm your entry. The resulting program block is LBL 5

Enter the blocks for the program section repeat after the
LBL

block.

1