Yx z – HEIDENHAIN TNC 407 (280 580) User Manual User Manual
Page 180

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
Spacing between
holes:
IX
=
15 mm
Number of holes:
N
=
6
Depth:
Z
=
10
Hole diameter:
Ø
=
5 mm
Part program
0
BEGIN PGM ROW MM
1
BLK FORM 0.1 Z X+0 Y+0 Z–20
2
BLK FORM 0.2 X+100 Y+100 Z+0
3
TOOL DEF 1 L+0 R+2.5
4
TOOL CALL 1 Z S1000
5
L Z+100 R0 F MAX M6
6
L X–10 Y+10 Z+2 F MAX M3 ............................. Pre-position in the negative X direction by the hole spacing
7
LBL 1 .................................................................. Beginning of the program section to be repeated
8
L IX+15 F MAX
9
L Z–10 F100
10
L Z+2 F MAX ...................................................... Move to the hole position, drill, retract
11
CALL LBL 1 REP 5/5 ........................................... Call LABEL 1; Repeat the program section between block 7
and block 11 five times (for 6 holes!)
12
L Z+100 R0 F MAX M2
13
END PGM ROW MM