HEIDENHAIN TNC 370 User Manual page 162

Conversational programming
Table of Contents

Advertisement

6
Subprograms
and Program
Section Repeats
4
6.2
Program
Section Repeats
Example
for exercise:
Row of holes parallel
to X axis
zoordinates
of 1st hole:
X = 5 mm
Y =I0 mm
Spacing between
holes: IX =I5 mm
Vo. of holes:
N=6
iole depth:
z = 10
iole diameter:
0=5mm
Part program
0
BEGIN PGM 360066
MM
1
BLK FORM 0.1 Z X+0 Y+O Z-20
2
BLK FORM 0.2 X+100
Y+lOO Z+O
3
TOOL DEF 1 L+O R+2.5
4
TOOL CALL 1 Z SIOOO
5
L Z+lOO RO FMAX M6
6
L X-l 0 Y+lO Z+2 FMAX M3 _____......................... Pre-position
in negative X direction
7
LBL 1 . . . . ..__._______.__............................................... Beginning
of program
section to be repeated
8
L IX+1 5 FMAX
9
L Z-IO FIOO
10
L Z+2 FMAX _._._._...,.............................,,..,.......... Move to hole position,
drill, retract
11
CALL LBL 1 REP 5/5 . . . . . . . . . .._.._..._....................... Call LABEL 1; repeat program
section between
blocks 7 and
11 five times (for 6 holes!)
12
LZ+lOO
RO FMAX M2
13
END PGM 360066
MM
J
6-6
TNC 370

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents