beautypg.com

6 pr ogr amming examples – HEIDENHAIN iTNC 530 (606 42x-02) ISO programming User Manual

Page 268

background image

268

Programming: Subprograms and Program Section Repeats

8.6 Pr

ogr

amming Examples

N90 G98 L1 *

Set label for program section repeat

N100 G91 Z-4 *

Infeed depth in incremental values (in space)

N110 G11 G41 G90 R+45 H+180 F250 *

First contour point

N120 G26 R5 *

Contour approach

N130 H+120 *

N140 H+60 *

N150 H+0 *

N160 H-60 *

N170 H-120 *

N180 H+180 *

N190 G27 R5 F500 *

Contour departure

N200 G40 R+60 H+180 F1000 *

Retract tool

N210 L1.4 *

Return jump to label 1; section is repeated a total of 4 times

N220 G00 Z+250 M2 *

Retract tool, end program

N99999999 %PGMREP G71 *