EasyManua.ls Logo

HEIDENHAIN TNC 155 F - Example of a Customized Macro

HEIDENHAIN TNC 155 F
119 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
9.4 Exalmple of a customized macro
Within the control, the customized macro is stored either in the NC program store or within an EPROM.
The “Bolt hole circle”-cycle 68 requires the following entry parameters:
01 = Number of holes
02 = Radius of pitch circle
Q3 = X-coordinate for pitch circle centre
Q4 = Y-coordinate for pitch circle centre
05 = Set-up clearance for Z-axis
Q6 = Drilling depth iin Z-axis
Q7 = Feed rate for drilling
The first hole of the pitch circle is located on the O”-axis of the X-Y-coordinate system. The variable
parameter program which is stored derives the hole spacing via the total number of holes and executes
machining.
Program example for the customized macro “Bolt hole circle”
0 BEGIN PGM 99999968
MM P
1 DLG-DEF
0/1/2/3/4/5/6/7/ l l l
2 FNI
: Q6 = + 06 + +Q5
Parameter program for customized macro 68
“Bolt hole circle” (if stored within the EPROM
of the control, display on the VDU is not
possible).
3 FN 4 : 050 =
+360.000 DIV +Ql
4 FN 0 : 060 =
+O.OOO
5 CC X+Q3 Y+Q4
6 LBL 11
7 LP PR +Q2 PA+Q60 RO F15999 M
8 L IZ+Q6
RO FQ7 M
9 L IZ-06
RO F15999 M
10 FN 1 : Q60 =
+Q60 + +Q50
11 FN 12 : IF +Q60 LT +361.000 GOT0 LBL 11
12 END PGM 99999968
MM P
89

Table of Contents

Related product manuals