30.07.2013 Views

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 Subprograms and Program Section Repeats<br />

6.2 Program Section Repeats<br />

Principle<br />

<strong>TNC</strong> <strong>360</strong><br />

As with subprograms, program section repeats are<br />

marked with labels.<br />

The program is executed up to the end of the<br />

labelled program section (block with Ln,m)<br />

( 1 , 2 ).<br />

Then the program section between the called<br />

LABEL and the label call is repeated the number of<br />

times entered for m ( 3 , 4 ).<br />

After the last repetition, the program is resumed<br />

( 5 ).<br />

Programming notes<br />

• A program section can be repeated up to 65 534<br />

times in succession.<br />

• The total number of times the program section<br />

will be carried out is always one more than the<br />

programmed number of repetitions.<br />

Programming and calling a program section repeat<br />

To mark the beginning:<br />

L<br />

G<br />

9<br />

e.g. 7<br />

8<br />

LABEL NUMBER?<br />

END<br />

ENT<br />

Resulting NC block: G98 L7 *<br />

.<br />

7 1 0<br />

END<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

.<br />

% ... *<br />

G98 L1 *<br />

L1,2 *<br />

N9999 % ... *<br />

Fig. 6.2: Flow diagram with program section repeats;<br />

R = return jump<br />

Select the label setting function.<br />

Number of repetitions<br />

The number of repetitions is entered in the block which calls the label.<br />

This block also identifies the end of the program section.<br />

Resulting NC block: L7,10 *<br />

1<br />

2 3<br />

R R<br />

Repeat the program section beginning with LABEL 7, for example.<br />

Repeat the program section from LABEL 7 to this block 10 times. In<br />

this example, the program section will therefore be executed a total of<br />

11 times.<br />

5<br />

4<br />

6-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!