HEIDENHAIN TNC 370 User Manual page 173

Conversational programming
Table of Contents

Advertisement

7
Programming
with Q Parameters
-
7.1
Q Parameters
Instead of Numerical
Values
.-
.-
L
Example
for exercise:
Full circle
Circle center CC:
X
= 50mm
Y
= 50mm
Beginning
and end
of circular arc C:
X
= 50 mm
Y
=
Omm
Milling
depth:
Z
= -5mm
Tool radius:
R
= 15mm
Part program
without
Q parameters
0
BEGIN 360074
MM . . . . . . . . . . . . .._.......................... Start of program
1
BLK FORM 0.1 Z X+0 Y+O Z-20
Blank form definition
2
BLK FORM 0.2 X+1 00 Y+lOO Z+O
3
TOOL DEF 6 L+O R+15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool definition
4
TOOL CALL 6 Z S500
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool call
5
CC X+50 Y+50 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinates
of circle center CC
6
L Z+lOO RO FMAX M6
Insert tool
7
L X+30 Y-20 FMAX . . . . . . . . . . . . . .._.......................... Pre-position
tool
8
L Z-5 FMAX M3
9
L X+50 Y+O RR FIOO . . . . . . . . . . .._._..__....................... Move to first contour point with radius compensation
10
C X+50 Y+O DR+ __..........................._._..____________..
Mill circular arc C around circle center CC; coordinates
of end
point: X = +50 mm and Y = 0; positive direction
of rotation
11
L X+70 Y-20 RO FMAX
12
L Z+lOO FMAX M2
13
END PGM 360074
MM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Retract tool and end program
Part program
with
Q parameters
0
BEGIN PGM 3600741
MM
1
FN 0: Ql = +I00
Clearance
height
2
FN 0: Q2 = +30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start pos. X
3
FN 0: 03 = -20 . . . . . . . . . . . .._.__................................. Start-End
pos. Y
4
FN 0: Q4 = +70
. . . . . . . . . .._..._................................ End pos. X
5
FN 0: Q5 = -5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Milling depth
Blocks 1 to 12:
6
FN 0: Q6 = +50 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Center point X
7
FN 0: Q7
Assign numerical
values to the
= +50
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Center point Y
8
FN 0: Q8 = +50
. . . . . . . . . . . . . ..__.___._....................... Circle starting point X
Q parameters
9
FN 0: 09 = +0 _...................................................
Circle starting point Y
10
FN 0: 010 = +0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool length L
11
FN 0: Ql 1 = +I 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool radius R
12
FN 0: Q20 = +I 00 . . . . .._.__....__............................. Milling feed rate F
1
13
BLK FORM 0.1 .Z X+0 Y+O Z-20
14
BLK FORM 0.2 X+100
Y+lOO Z+O
15
TOOL DEF 1 L+QlO
R+Ql 1
16
TOOL CALL 1 Z S500
17
CC X+06
Y+Q7
Blocks 13 to 24:
18
L Z+Ql
RO FMAX M6
Corresponding
to blocks 1 to 12
19
L X+Q2 Y+Q3 F MAX
from program
360074
20
L Z+Q5 F MAX M3
21
L X+08
Y+Q9 RR FQ20
22
C X+Q8 Y+Q9 DR+
23
L X+Q4 Y+Q3 RO FMAX
24
L Z+Ql
FMAX M2
25
END PGM 3600741
MM
,
L
TNC 370
7-5
L

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents