![HEIDENHAIN TNC 407 User Manual Download Page 184](http://html1.mh-extra.com/html/heidenhain/tnc-407/tnc-407_user-manual_2118718184.webp)
TNC 426/TNC 425/TNC 415 B/TNC 407
6-6
6
Subprograms and Program Section Repeats
15
5
5
10
Y
X
Z
Example for exercise: Row of holes parallel to the X axis
Coordinates of
the first hole:
X
=
5 mm
Y
=
10 mm
Hole spacing:
IX
=
15 mm
Number of holes:
N
=
6
Depth:
Z
=
10
Hole diameter:
Ø
=
5 mm
Part program
%S66I G71 * .............................................................. Start program
N10 G30 G17 X+0 Y+0 Z–20 * ................................... Define blank form
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+2.5 * ........................................... Define tool
N40 T1 G17 S3500 * .................................................. Call tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract and insert tool
N60 X–10 Y+10 Z+2 M03 * ........................................ Pre-position to the point which is offset in negative X
direction by the hole spacing
N70 G98 L1 * ............................................................. Start of the program section to be repeated
N80 G91 X+15 * ......................................................... Move to drilling position (incremental dimension)
N90 G01 G90 Z–10 F100 * ......................................... Drill (absolute dimension)
N100 G00 Z+2 * ......................................................... Retract
N110 L1,5 * ................................................................ Call LABEL 1; repeat program section from block N70 to
block N110 five times (total of six holes)
N120 Z+100 M02 * .................................................... Retract in the infeed axis
N99999 %S66I G71 *