You are on page 1of 83

English (en)

V2
12/2005
NC
Programming Course
FK Free Contouring
iTNC 530
TNC 4xx
2003-2005 DR. JOHANNES HEIDENHAIN GmbH
All texts, illustrations and graphics including their parts are copyrighted. They may be
copied and printed out only for private, scientific and noncommercial use for
informational purposes, provided that the duplicates include the copyright notice.
DR. JOHANNES HEIDENHAIN GmbH reserves the right to revoke this permission at any
time. Without the prior written permission of DR. JOHANNES HEIDENHAIN GmbH, the
texts, illustrations and graphics may not be duplicated, saved on a server, included in
newsgroups, used in online services, saved on CD-ROMs or used in printed publications.
The unlawful duplication and/or circulation of the copyrighted texts, illustrations or
graphics are subject to prosecution by criminal and civil law.
1
Fundamentals
2
AN and PA Directional Data
3
Converting FK Programs
4
Block End Points
5
Directional and Orientation Data
6
Auxiliary Points
7
Circle Data, Circle Center Points
8
FK Sections in Conventional Programs
9
Tips and Tricks for FK Programming
10
11
12
HEIDENHAIN FK programming 1.1
Fundamentals of FK Programming 1
FK = Freie Kontur (German for Free Contour)
When is FK necessary?
It is necessary if the workpiece drawing is not dimensioned for NC, and therefore
cannot be programmed with the gray path-function keys. However, the geometric
values given in the drawing must be complete!
Possible information for FK programming:
Known coordinates located on the
contour element or on its extension
Known coordinates located near the
contour element
A
B
P2: X/Y
x
P1: X/Y
x
x
x
P1': X/Y
P2': X/Y
A
B
P1: X/Y
2
0
HEIDENHAIN FK programming 1.2
Fundamentals of FK Programming 2
Directional data that is referenced to
another contour element
Information about the course of the
contour and directional data of the
contour itself
The TNC derives the contour from known data and supports the dialog with
the interactive programming graphics.
A
B
2
0
N18 parallel to AB
A
B
A
B
Motion in
clockwise
direction
AN (rise angle 45)
HEIDENHAIN FK programming 1.3
Requirements for FK programming 3
The TNC needs a fixed starting point from which it can calculate the contour
elements:
Use the gray path function keys to program a position that contains both
coordinates of the working plane before programming the FK contour. Do not use
any Q parameters in this block. For example: L X+20 Y+20 RL
The FK programming feature can only be used to program contour
elements that lie in the working plane.
The working plane is defined in the first BLK FORM block of the part
program.
Enter all available data for every contour element. Even data that does not
change must be entered in every block.
Any data not programmed is considered missing.
HEIDENHAIN FK programming 1.4
Initiating FK dialogs 4
Show the soft keys for FK-dialog initiation
You must consider the following:
What does my contour element look like?
How does my contour element start?
The following possibilities are available:
Soft key Meaning
Straight contour element, angular start
Straight contour element, tangential start
Curved contour element, angular start
Curved contour element, tangential start
Required for entry with polar coordinates
HEIDENHAIN FK programming 1.5
Interactive programming graphics: Setting/activating the graphics 5
Select the Programming and Editing mode of operation.
Select the main menu for screen layout.
Left: program, right: programming graphics
Shift the soft-key row.
Select whether automatic tracing is switched ON or OFF.
Select whether the graphic should be shown with block numbers
(SHOW) or without them (HIDE).
HEIDENHAIN FK programming 1.6
Assignment: FK telephone
1
0
0
100
0
5
0
0
50

R
1
4
R
1
4
R
2
5
R
8
8

Start (R0)
HEIDENHAIN FK programming 1.7
Solution: FK telephone
Complete program 0 BEGIN PGM TELEPHONE MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-10
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X+50 Y+50 R0 F MAX
6 APPR LCT X+50 Y+75 R2 RL F500 Point 1
7 FC DR+ R25 CCX+50 CCY+50 Point 2
8 FCT DR- R14 Point 3
9 FCT DR- R88 CCX+50 CCY+0 Point 4
10 FSELECT 1
11 FCT DR- R14 Point 5
12 FCT X+50 Y+75 DR+ R25 CCX+50 CCY+50 Point 6
13 FSELECT 2
14 DEP LCT X+50 Y+50 R2
15 L Z+100 R0 F MAX M2
16 END PGM TELEPHONE MM
1
0
0
100
0
5
0
0
50

R
1
4
R
1
4
R
2
5
R
8
8

Start (R0)
HEIDENHAIN FK programming 1.8
Interactive programming graphics: Selecting possible solutions 6
The TNC offers graphic solutions
for the entered data.
The user selects the correct
contour element as shown in the
drawing.
Soft key Function
Show solutions that are possible with the entered data (green
contour elements).
Select the solution shown in the drawing.
Enter data for other contour elements if SELECT SOLUTION is
not chosen at this time.
HEIDENHAIN FK programming 1.9
Interactive programming graphics: Selecting possible solutions 7
Color depiction of the contour elements (depends on the machine):
Color Function
Black Contour element is fully defined
Blue More than one solution is possible for the entered
data
Red More data is required to calculate the contour or
contour element
HEIDENHAIN FK programming 1.10
Overview of functions 8
1
): angular or tangential
Element
Straight line with
connection
Arc with connection
Path functions Any
1
Tangential Any
1
Tangential
Block end point
/ Cartesian
+
Y
+
Y
Block end point
/ Polar
coordinates
Directional
data
Auxiliary points
on the contour
+ P2X, P2Y + P2X, P2Y
+ P3X, P3Y
Distance from
the contour
element to the
auxiliary point
Additional
circular data
+ CCY..
+ CCPA.
+ +
HEIDENHAIN FK programming 2.1
Directional Data: The Difference Between AN and PA 1
AN: Connection from starting point to end point
PA: Connection from pole to end point
AN only defines the slope.
PA defines the end point.
+Y
+X
AN = 60
P2
P1
Extension X+
T
r
a
v
e
r
s
e

r
a
n
g
e
+Y
+X
PA = 60
P2
Pol
P1
P1
T
raverse ran
g
e
T
r
a
v
e
r
s
e

r
a
n
g
e
Extension X+
HEIDENHAIN FK programming 2.2
Assignment: Angled workpiece
Solution only possible with FK programming, otherwise the coordinates of
the points must be calculated.
6
0
60
0
0
35
2
00
1
6
3
1

3
1

HEIDENHAIN FK programming 2.3


Solution: Angled workpiece
Complete program 0 BEGIN PGM FK1 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-10
2 BLK FORM 0.2 X+60 Y+60 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X-10 Y-10 R0 F MAX
6 L Z-16 R0 F MAX
7 L X+0 Y+0 RL F5000
8 L Y+35
9 FL Y+60 AN+59
10 FL AN+0
11 FL X+60 Y+35 AN-59
12 L Y+0
13 L X+0
14 DEP LT LEN5
15 L Z+100 R0 F MAX M2
16 END PGM FK1 MM
6
0
60
0
0
35
2
00
1
6
3
1
3
1

HEIDENHAIN FK programming 2.4


Assignment: Flat surface on a shaft
55
+Y
+X
1
6
Depth = 10 mm
HEIDENHAIN FK programming 2.5
Solution: Flat surface on a shaft
Complete program 0 BEGIN PGM SWFK1 MM
1 BLK FORM 0.1 Z X-40 Y-40 Z-20
2 BLK FORM 0.2 X+40 Y+40 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X+40 Y+0 R0 F MAX
6 L Z-10 R0 F MAX
7 APPR LCT X+27.5 Y+0 R2 RL F300
8 FC Y+16 DR- R27.5 CCX+0 CCY+0
9 FL Y+16 AN+0 PDX+0 PDY+0 D16
10 FSELECT 2
11 FC X+27.5 Y+0 DR- R27.5 CCX+0 CCY+0
12 FSELECT 1
13 DEP LCT X+40 Y+0 R2
14 L Z+100 R0 F MAX M2
15 END PGM SWFK1 MM
55
+Y
+X
1
6
Depth = 10 mm
HEIDENHAIN FK programming 3.1
Converting FK Programs 1
Two functions are available:
Program structure (e.g. program-section repeat) is maintained; not suitable for
Q-parameter programs
The control linearizes the programs and calculates the respective Q-parameter
values
Select the program you want to convert.
Shift the soft-key rows until the CONVERT PROGRAM soft key
appears.
Select the soft-key row with functions for converting programs.
Convert the FK blocks of the selected program. The TNC converts all FK
blocks into straight-line blocks (L) and circular-arc blocks (CC, C), and the
program structure is maintained, or
Convert the FK blocks of the selected program. The TNC converts all FK
blocks into straight-line blocks (L) and circular-arc blocks (CC, C), and the
TNC linearizes the program.
The name of the file created by the TNC consists of the old file name and
the extension _nc. Example:
File name of the FK program: HEBEL.H
File name of the conversational dialog program converted by the
control:HEBEL_nc.h
The resolution of the created conversational program is 0.1 m.
The converted program includes the comment SNR and a number after the
converted NC blocks. The number indicates the block number of the FK
program from which the respective conversational block was calculated.
HEIDENHAIN FK programming 4.1
Block end point / Cartesian 1
Absolute
The coordinates of the path end point
are based on the datum.
Example: X+20 Y+25
Incremental
The path end point is based on the
last programmed position.
Example: IX+30 IY+20
Relative (R) with block number of a reference block
Relative X coordinate change
with
Relative Y coordinate change
with
The incremental value is not based on the end point of
the previous block, but instead on the end point of the
referenced block.
The end point of contour element 8 is based on the
end point of block 6. In block 8 you program: IX+17.5
RX6 IY+7.5 RY6
The soft keys for programming with reference blocks have an
additional in their icons:
Example: R Y
When a referenced block is deleted, make sure to change the block in
which the referenced block is referred to!
+X
+Y
IY
IX
Y
X
+X
+Y
IX+17,5
RX 6

IY+7,5
RY 6
N
N
HEIDENHAIN FK programming 4.2
Block end point / Polar coordinates 2
Pole for positioning data in polar coordinates (PR/PA)
Entry of FPOL in Cartesian coordinates
for both axes in the working plane:
FPOL refers to the set datum
FPOL has nothing to do with the
definition of a circle center point
FPOL is effective modally
The polar coordinates of the given
position 3 refer to FPOL 2. This, in
turn, refers to datum 1.
Polar radius referenced to FPOL
Absolute
Distance from FPOL
Incremental
Difference between the previous
entry PR 1 and the new position
data 2
Polar coordinate angle referenced to FPOL.
Directional data in the sense of mathematical rotation.
Absolute
0:Positive direction of the main axis
in the working plane
Incremental
Angular difference between the
previous position 1 and the new
position 2 (as seen from FPOL)
+X
+Y
FPOL X
F
P
O
L

Y
0
FPOL
P
A
+
P
R
1
2
3
+X
+Y
P
R
+
FPOL
I
P
R
+
1
2
+X
+Y
FPOL
0
P
R
P
A
+
I
P
A
+
1
2
HEIDENHAIN FK programming 4.3
Block end point / Polar coordinates 3
Polar coordinates with reference block R (R = relative):
Enter the end point of block 10 in polar coordinates relative to the end point of
block 6.
Program in block 10 the changes from block 6 in the polar radius and angle:
IPR+25 RPR6 IPA-20 RPA6
Relative polar radius change
with
Relative polar angle change
with
+X
+Y

FPOL
PA
I
P
R
+
2
5

R
P
R
6
P
R
IPA20
RPA6
HEIDENHAIN FK programming 4.4
Assignment: Sample part workshop drawing
Block end points/relative references
You are only allowed to use dimensions explicitly given in the drawing!
1
1
0
110
0
0
3
0
2
00
1
0
15
1
5
5
4
5
15
7
0
5
0
X 50
Y 55
45
80
1
0
Starting position
HEIDENHAIN FK programming 4.5
Solution: Sample part workshop drawing
Block end points/relative references
Complete program 0 BEGIN PGM SKETCH MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+110 Y+110 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X+45 Y-20 R0 F MAX
6 L Z-10 F MAX
7 APPR LCT X+45 Y+15 R2 RL F500
8 FL X+15 Y+15
9 FL IX-5 IY+30
10 FL IX-15 IY+70 RX7 RY8
11 FPOL X+50 Y+55
12 FL PR+50 PA+45
13 FL IPR+10 IPA-80 RPR12 RPA12
14 FL X+45 Y+15
15 DEP LCT X+45 Y-20 R2
16 L Z+100 R0 F MAX M2
17 END PGM SKETCH MM
1
1
0
110
0
0
3
0
2
00
1
0
15
1
5
5
4
5
15
7
0
5
0
X 50
Y 55
45
80
1
0
Starting position
HEIDENHAIN FK programming 5.1
Directional Data 1
Gradient angle of an element
Absolute
Referenced to the
direction of the main
axis of the working
plane
For circular arcs,
direction of the entry
tangent
Incremental
Inside angle between
the previous and new
directions
Relative (R) with block number of a
reference block
Reference to the gradient angle in the
end point of another element
with
Example: The inside angle between
element 4 and element 6 is
130
Input in block 6: IAN+130 RAN4
Edge and chord length of an element
Edge length of a
straight element
Chord length of a
circular arc
+X
+Y
IA
N

I
A
N
+
A
N
+
0
AN+
I
A
N

+X
+Y
+
1
3
0

1
1

4
5
3
6
L
E
N
L
E
N
R
+X
+Y
HEIDENHAIN FK programming 5.2
Orientation data 2
Parallels, distance
PAR = Parallels
Orientation data
specifying that the
element is located
parallel to another
element.
DP = Distance
between parallels
Example: Element 10
is parallel to 5 at a
distance of 10 mm
Input in block 10:
PAR5 DP10
Contour
Identification of the
beginning of a closed
contour: +
Identification of the
end of a closed
contour:
A: Any point
designated as the
beginning and end
of the contour
The end point of a contour no longer needs to be closed by entering X and
Y coordinates.
+X
+Y
D
P
1
0
P
A
R

5
6
7
5
8
4
9
10
+X
+Y
C
L
S
D

C
L
S
D
A
HEIDENHAIN FK programming 5.3
Assignment: FK hammer
1
0
0
100
0
3
0
0
15
2
00 5
40
65
1
5
2
0
R
1
1
3
0

8
0

R
1
2
,
5
3
7
,
5
R
1
5
R
1
1
55
Z
R
1
5
R
1
1 5
5

Detail Z
HEIDENHAIN FK programming 5.4
Solution: FK hammer
Complete program 0 BEGIN PGM 289 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 CALL 11 Z S4000
4 L Z+100 R0 F MAX
5 CC X+30 Y+40
6 LP PR+60 PA+30 R0 F MAX M3
7 L Z+2 R0 F MAX
8 L Z-5 R0 F100
9 APPR PLCT PR+37.5 PA+30 R5 RL F400
10 FL LEN10 AN-60
11 FL AN-150
12 FCT DR+ R12.5
13 FLT AN-100
14 FCT DR- R11 CCX+30 CCY+15
15 FLT
1
0
0
100
0
3
0
0
15
2
00 5
40
65
1
5
2
0
R
1
1
3
0

8
0

R
1
2
,
5
3
7
,
5
R
1
5
R
1
1
55
Z
R
1
5
R
1
1 5
5

Detail Z
HEIDENHAIN FK programming 5.5
Solution: FK hammer
16 FCT DR- R11 CCX+15 CCY+65
17 FLT AN-55
18 FCT DR+ R15
19 FLT AN+30
20 FPOL X+30 Y+40
21 FL PR+37.5 PA+30 LEN10 AN-60
22 DEP PLCT PR+60 PA+30 R5
23 L Z+100 R0 F MAX M2
24 END PGM 289 MM
HEIDENHAIN FK programming 6.1
Auxiliary points PnX, PnY (on the elements extension) that are not to be
approached 1
For straight lines
The programmed straight line
goes through the auxiliary points
The auxiliary points need not be
approached
Always enter auxiliary points as
value pairs (X and Y coordinates),
beginning with P1
It is possible to enter simply one
auxiliary point
For circles
The programmed circular path
goes through the auxiliary points
Auxiliary points must lie on the
defined circle, but need not be
approached
Always enter auxiliary points as
value pairs (X and Y coordinates),
beginning with P1
It is possible to enter simply one
auxiliary point
P2X,P2Y
+X
+Y
0
0
X
1
X
2
Y
1
Y
2
P2X
P2Y
P1X
P1Y
F
L
P2X,P2Y
P3X,P3Y
+X
+Y
0
0
X
1
X
2
Y
1
Y
2
P2X
P2Y
Y
3
X
3
P3X
P3Y
P1X
P1Y
CC
HEIDENHAIN FK programming 6.2
Auxiliary point PDX, PDY that needs not be approached, at the distance D to
the element (or on the elements extension) 2
For straight lines (distance point)
The programmed straight line
does not go through the auxiliary
point
Always enter the auxiliary point as
a value pair (X and Y coordinates)
Perpendicular distance D from the
programmed straight line to the
auxiliary point
Always enter PDX, PDY and D together in a program block.
For circles (distance point)
The programmed circular path
does not go through the auxiliary
point
Always enter the auxiliary point as
a value pair (X and Y coordinates)
Perpendicular distance D from the
programmed circular path to the
auxiliary point
Always enter PDX, PDY and D together in a program block.
+X
+Y

0
0
Y
D
X
D
D
F
L
PDX
PDY
+X
+Y

0
0
Y
D
X
D
PDX
PDY
D
HEIDENHAIN FK programming 6.3
Auxiliary points example 3
+Y
+X
A
B
P2: X/Y
P4: X
Y
D
x
P1: X/Y
P1': X/Y
x
x
x
P3: X
Y
D
P2': X/Y
x
x
P1, P2:
P1', P2 ':
P3 + D:
P4 + D:
Auxiliary points on
contour element
Auxiliary points on
extension of contour
element
Auxiliary point offset from
extension
Auxiliary point offset from
contour element
HEIDENHAIN FK programming 6.4
Assignment: FK program without RND and with auxiliary points
1
0
0
100
0
5
0
0
1
0
9
0
10
90
R
1
0
R
1
0
50
4
00
R
2
0
R
2
0
R
2
0
R
2
0
3
0
HEIDENHAIN FK programming 6.5
Solution: FK program without RND and with auxiliary points
Complete program 0 BEGIN PGM 223-FK2 MM Contour without RND
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 10 Z S5000
4 L Z+100 R0 F MAX M3
5 L X-15 Y+70 R0 F MAX
6 L Z+2 R0 F MAX
7 L Z-30 R0 F2000
8 APPR LCT X+10 Y+70 R2 RL F200
9 FL AN+90
10 FCT DR- R10
11 FLT Y+90 AN+0 P1X+50 P1Y+90
12 FCT DR- R20
13 FLT AN-45 P1X+90 P1Y+50
14 FCT DR- R20
15 FLT AN-90 P1X+90 P1Y+10
16 FCT DR- R10
17 FLT AN+180 P1X+50 P1Y+10
18 FCT DR- R20
19 FLT AN+135 P1X+10 P1Y+50
20 FCT DR- R20
21 FLT X+10 Y+70 AN+90
22 DEP LCT X-15 Y+70 R2
23 L Z+100 R0 F MAX M30
24 END PGM 223-FK2 MM
1
0
0
100
0
5
0
0
1
0
9
0
10
90
R
1
0
R
1
0
50
4
00
R
2
0
R
2
0
R
2
0
R
2
0
3
0
HEIDENHAIN FK programming 7.1
Circle data 1
Circle radius
Example: R18
Absolute
Angle for circle end
point
Example: CCA+145
R and CCA refer to the
circle center point
Incremental
Angle for circle end
point
ICCA refers to the
previous contour angle,
and specifies the
central angle.
Example: ICCA+70
+X
+Y
0

CCX
CC
C
C
Y
C
C
CC
C
C
A
1
4
5

I
C
C
A
70
R
1
8

HEIDENHAIN FK programming 7.2


Overview of functions for circle center point 2
Various programming possibilities:
Cartesian coordinates
Incremental, Cartesian coordinates,
with reference block as well
with
with
Polar coordinates
Incremental, polar coordinates, with
reference block as well
with
with
+X
+Y

F
P
O
L

Y
FPOL X
0
C
C
P
R
CCPA
0
CC
CCA R

HEIDENHAIN FK programming 7.3


Circle center point with Cartesian coordinates 3
Example blocks
Absolute, Cartesian coordinates
Valid blockwise
Data refers to the
datum and not to
FPOL
Example:
FC DR- R18 ICCA-270
CCX+50 CCY+50
Incremental, Cartesian coordinates,
with reference block as well
RCCX: Block number that ICCX refers to
incrementally
with
RCCY: Block number that ICCY refers to
incrementally
with
...
5 FL X+10 Y+10
6 FL...
7 FL X+22 Y+40
8 FL...
9 FL...
10 FC DR- R12 CCA+0 ICCX+25 RCCX5
ICCY-15 RCCY7
ICCX, ICCY function like I, J in ISO
programming
+X
+Y
0

CCX
C
C
Y
CC
R
1
8

50
5
0
0
0
0
1
0
0
10
2
2
40
+X
+Y

CC
R
1
2
ICCX 25
RCCX 5
ICCY -15
RCCY 7

HEIDENHAIN FK programming 7.4


Circle center point with polar coordinates 4
Example blocks
Absolute polar coordinates
Data refers to FPOL.
Program FPOL first.
Example:
FC DR- R24 CCA+145
CCPR+25 CCPA+50
Incremental, polar coordinates, with
reference block as well
RCCPR: Block number that ICCPR refers to
incrementally
with
RCCPA: Block number that ICCPA refers to
incrementally
with
...
5 FPOL X+10 Y+10
6 FL PA+28 PR17
7 FL...
8 FCT...
9 FL...
10 FCT DR- R18 CCA+40 ICCPR+30
ICCPA+17 RCCPR6 RCCPA6
The data must be entered in pairs.
+X
+Y

0
CCPA 50
0
CC
CCA 145
R24

16
2
3
0
0
FPOL X
FPOL Y
C
C
P
R

2
5
28
0
1
0
0
10
+X
+Y

ICCPA 17
RCCPA 6
I
C
C
P
R

3
0
R
C
C
P
R

6
CC
R
1
8
FPOL
R
1
7

CCA 40
HEIDENHAIN FK programming 7.5
Assignment: Barbell
1
0
0
100
0
4
0
0
30
2
00
1
0
6
0

5
5
R
2
0
2
0
HEIDENHAIN FK programming 7.6
Solution: Barbell
Complete program 0 BEGIN PGM 75116 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+4
4 TOOL CALL 1 Z S4000
5 L Z+2 R0 F MAX M3
6 L X+40 Y+30 R0 F2000
7 L Z-10 F100
8 L X+10 Y+30 RR F200
9 FPOL X+40 Y+30
10 FC DR- R30 CCX+40 CCY+30 F500
11 FL AN+60 PDX+40 PDY+30 D10
12 FSELECT 30
13 FC DR- R20 CCPR+55 CCPA+60
14 FSELECT 2
15 FL AN-120 PDX+40 PDY+30 D10
16 FSELECT 3
17 FC X+10 Y+30 DR- R30 CCX+40 CCY+30
18 FSELECT 2
19 L X+40 Y+30 R0
20 L Z+50 R0 F MAX M2
21 END PGM 75116 MM
1
0
0
100
0
4
0
0
30
2
00
1
0
6
0
5
5
R
2
0
2
0
HEIDENHAIN FK programming 7.7
Assignment: Pickle as island
1
0
0
100
0
6
0
0
50
2
00
30
1
5
R
7
5
R
2
0
R
1
0
R
8
0
1
8
HEIDENHAIN FK programming 7.8
Solution: Pickle as island
Complete program 0 BEGIN PGM PICKLE 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 CALL 1 Z S5000
4 L Z+100 R0 F MAX M3
5 L X-20 Y+30 R0 F MAX
6 L Z-18 R0 F MAX
7 APPR LCT X+5 Y+30 R2 RL F600
8 FC DR- R10 CCX+15 CCY+30
9 FCT DR- R80
10 FCT DR- R20 CCX+60 CCY+50
11 FSELECT 2
12 FCT DR+ R75
13 FCT X+5 Y+30 DR- R10 CCX+15 CCY+30
14 FSELECT 1
15 DEP LCT X-20 Y+30 R2
16 L Z+100 R0 F MAX M2
17 END PGM PICKLE MM
1
0
0
100
0
6
0
0
50
2
00
30
1
5
R
7
5
R
2
0
R
1
0
R
8
0
1
8
HEIDENHAIN FK programming 7.9
Assignment: FK3
48,753
R42
R65
84
R10
8
6
Depth = 20 mm
HEIDENHAIN FK programming 7.10
Solution: FK3
Complete program 0 BEGIN PGM FK3 MM
1 BLK FORM 0.1 Z X+0 Y-160 Z-20
2 BLK FORM 0.2 X+160 Y+0 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X+170 Y-86 F MAX
6 L Z-20 R0 F MAX
7 APPR LCT X+149 Y-86 R2 RL F500
8 FC DR- R65 CCX+84 CCY-86
9 FCT DR- R10
10 FPOL X+84 Y-86
11 FCT X+48.753 PR+65 DR+ R42 CCPR+23
12 FSELECT 3
13 FC X+149 Y-86 DR- R65 CCX+84 CCY-86
14 DEP LCT X+170 Y-86 R2 F600
15 L Z+100 R0 F MAX M2
16 END PGM FK3 MM
48,753
R42
R65
84
R10
8
6
Depth = 20 mm
HEIDENHAIN FK programming 8.1
Interactive programming graphics: Creating/magnifying/reducing the
graphics 1
Soft key Cycle
Generate graphics
Generate graphics blockwise
Generate complete graphics from program beginning
Soft key Function
Shift the frame
Enlarge/reduce the frame
Select marked area
HEIDENHAIN FK programming 8.2
Assignment: FK cam
If the first block of an FK contour is an FCT or FLT block, you must have
programmed at least two NC blocks with the gray path function keys
before then. Only then can the TNC uniquely determine the approach
direction.
Do not program an FK contour immediately after an LBL command.
1
0
0
100
0
5
0
0
35
2
00 5
25
3
0
7
5
75
R
2
5
R
2
0
R
1
5
HEIDENHAIN FK programming 8.3
Solution: FK cam
Complete program 0 BEGIN PGM 288 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 CALL 10 Z S4000 R7,5
4 L Z+100 R0 F MAX
5 L X-15 Y+35 R0 F MAX M3
6 L Z-5 R0 F MAX
7 APPR LCT X+5 Y+35 R5 RL F400
8 FC DR- R25 CCX+30 CCY+35
9 FLT
10 FCT DR- R15 CCX+50 CCY+75
11 FLT
12 FCT DR- R20 CCX+75 CCY+25
13 FLT
14 FCT X+5 Y+35 DR- R25 CCX+30 CCY+35
15 DEP LCT X-15 Y+35 R5
16 L Z+100 R0 F MAX M2
17 END PGM 288 MM
1
0
0
100
0
5
0
0
35
2
00 5
25
3
0
7
5
75
R
2
5
R
2
0
R
1
5
HEIDENHAIN FK programming 8.4
Assignment: Tooth
Edges with FL blocks can be connected with RND.
6
0

R
4
0
5
6
0

R
1
0
R
7
5
105
10
R
1
5
3
5

20
R
1
4
60
Depth = 10 mm
HEIDENHAIN FK programming 8.5
Solution: Tooth
Complete program 0 BEGIN PGM TOOTH MM
1 BLK FORM 0.1 Z X-60 Y+0 Z-10
2 BLK FORM 0.2 X+10 Y+185 Z+0
3 TOOL CALL 1 Z S3000
4 L Z+100 R0 F MAX M3
5 L X+20 Y-20 R0 F MAX
6 L Z-5 R0 F MAX
7 L X+0 Y+0 RL F300 M13
8 L X-20
9 RND R10
10 FL AN+120
11 RND R40
12 FL AN+85
13 FPOL X-5 Y+105
14 FCT DR- R10 CCPR+75 CCPA+120
15 FLT
6
0

R
4
0
5
6
0

R
1
0
R
7
5
105
10
R
1
5
3
5

20
R
1
4
60
Depth = 10 mm
HEIDENHAIN FK programming 8.6
Solution: Tooth
16 FCT PR+15 PA+215 DR- R15 CCX-5 CCY+105
17 FCT DR+ R14 LEN28
18 FCT X+0 Y+60 DR+
19 L Y+0
20 DEP LT LEN10
21 L Z+100 R0 F MAX M2
22 END PGM TOOTH MM
HEIDENHAIN FK programming 8.7
Assignment: FK4
R
6
R
1
0
30
100
40
1
0
0
2
20
1
4
27
1
2
0

3
0
3
0
R
1
1
HEIDENHAIN FK programming 8.8
Solution: FK4
Complete program 0 BEGIN PGM FK4 MM
1 BLK FORM 0.1 Z X-50 Y-50 Z-22
2 BLK FORM 0.2 X+50 Y+50 Z+0
3 TOOL CALL 1 Z S8000
4 L Z+100 R0 F MAX M3X
5 L X+70 Y+0 R0 F MAX
6 L Z+5 R0 F MAX
7 L Z-14 R0 F50
8 APPR LCT X+46 Y+0 R5 RL F200
9 FC DR- R6 CCX+40 CCY+0
10 FPOL X+0 Y+0
11 FLT PR+11 PA-60
12 RND R10
13 FL
14 FCT DR- R6 CCPR+40 CCPA-120
15 FLT PR+11 PA+180
16 RND R10
17 FL
18 FCT DR- R6 CCPR+40 CCPA+120
19 FLT PR+11 PA+60
20 RND R10
21 FL
22 FCT X+46 Y+0 DR- R6 CCPR+40 CCPA+0
23 DEP LCT X+70 Y+0 R5
24 L Z+100 R0 F MAX M30
25 END PGM FK4 MM
R
6
R
1
0
30
100
40
1
0
0
2
20
1
4
27
1
2
0

3
0
3
0
R
1
1
HEIDENHAIN FK programming 8.9
Assignment: Rotor
4
9
,
5
R
2
6
,5
45
R
3
5
45
0
1
8
HEIDENHAIN FK programming 8.10
Solution: Rotor
Complete program 0 BEGIN PGM ROTOR MM
1 BLK FORM 0.1 Z X-40 Y-40 Z-20
2 BLK FORM 0.2 X+40 Y+40 Z+0
3 TOOL CALL 1 Z S8000
4 L Z+100 R0 F MAX M3
5 L X-55 Y+0 R0 F MAX
6 L Z+5 R0 F MAX
7 L Z-18 R0 F50
8 APPR LCT X-35 Y+0 R5 RL F300
9 FC DR- R35 CCX+0 CCY+0
10 FPOL X+0 Y+0
11 FC DR+ R26.5 CCPR+49.5 CCPA+135
12 FC DR- R35 CCX+0 CCY+0
13 FSELECT 2
14 FC DR+ R26.5 CCPR+49.5 CCPA+45
15 FSELECT 1
4
9
,
5
R
26,5
45
R
3
5
45
0
1
8
HEIDENHAIN FK programming 8.11
Solution: Rotor
16 FC DR- R35 CCX+0 CCY+0
17 FSELECT 2
18 FC DR+ R26.5 CCPR+49.5 CCPA-45
19 FSELECT 1
20 FC DR- R35 CCX+0 CCY+0
21 FSELECT 2
22 FC DR+ R26.5 CCPR+49.5 CCPA-135
23 FSELECT 1
24 FC X-35 Y+0 DR- R35 CCX+0 CCY+0
25 FSELECT 2
26 DEP LCT X-55 Y+0 R5
27 L Z+100 R0 F MAX M300
28 END PGM ROTOR MM
HEIDENHAIN FK programming 8.12
Assignment: Contour
R
9
0
60
5
5
4*R10
R
9
0
2
80
R
9
0
R
9
0
9
0
R
5
7
R49
45
R
1
0
R
1
0
45
5
5
60
4
HEIDENHAIN FK programming 8.13
Solution: Contour
Complete program 0 BEGIN PGM CONTOUR MM
1 BLK FORM 0.1 Z X-60 Y-60 Z-28
2 BLK FORM 0.2 X+60 Y+60 Z+0
3 TOOL CALL 1 Z S6000
4 L Z+100 R0 F MAX M3
Mill circular pocket 5 CYCL DEF 5.0 CIRCULAR POCKET
6 CYCL DEF 5.1 SET UP -2
7 CYCL DEF 5.2 DEPTH -24
8 CYCL DEF 5.3 PLNGNG -6 F300
9 CYCL DEF 5.4 RADIUS 45
10 CYCL DEF 5.5 F300 DR-
11 L X+0 Y+0 Z+2 R0 F MAX M99
Pre-rough inside of pocket 12 CYCL DEF 4.0 POCKET MILLING
13 CYCL DEF 4.1 SET UP 2
14 CYCL DEF 4.2 DEPTH -6
15 CYCL DEF 4.3 PLNGNG 5 F300
16 CYCL DEF 4.4 X50
17 CYCL DEF 4.5 Y60
18 CYCL DEF 4.6 F200 DR- RADIUS 0
19 L Z-22 R0 F MAX M99
R
9
0
60
5
5
4*R10 R
9
0
2
80
R
9
0
R
9
0
9
0
R
5
7
R49
45
R
1
0
R
1
0
45
5
5
60
4
HEIDENHAIN FK programming 8.14
Solution: Contour
Finish inside of pocket 20 CC X-60 Y+0
21 L Z-30 R0 F500
22 APPR LCT X-30 Y+0 R2 RL F500
23 FC DR+ R90 CCX+60 CCY+0
24 RND R10
25 FC DR+ R90 CCX+0 CCY+55
26 FSELECT 2
27 RND R10
28 FC DR+ R90 CCX-60 CCY+0
29 FSELECT 2
30 RND R10
31 FC DR+ R90 CCX+0 CCY-55
32 FSELECT 2
33 RND R10
34 FC X-30 Y+0 DR+ R90 CCX+60 CCY+0
35 FSELECT 2
36 DEP LCT X+0 Y+0 R2
37 L Z+2 R0 F MAX
Mill outside of contour 38 LBL 1 Four infeeds
39 L X+70 Y+0 R0 F MAX
40 L IZ-7.7
41 APPR LCT X+49 Y+0 R1 RL F500
42 FC DR- R49 CCX+0 CCY+0
43 FCT DR+ R10
44 FPOL X+0 Y+0
45 FCT DR- R10 CCPR+57 CCPA-45
46 FSELECT 1
47 FCT DR+ R10
48 FCT DR- R49 CCX+0 CCY+0
49 FSELECT 2
50 FCT DR+ R10
51 FCT DR- R10 CCPR+57 CCPA-135
52 FSELECT 1
53 FCT DR+ R10
54 FCT DR- R49 CCX+0 CCY+0
55 FSELECT 2
39 L X+70 Y+0 R0 F MAX
40 L IZ-7.7
41 APPR LCT X+49 Y+0 R1 RL F500
42 FC DR- R49 CCX+0 CCY+0
43 FCT DR+ R10
44 FPOL X+0 Y+0
45 FCT DR- R10 CCPR+57 CCPA-45
46 FSELECT 1
47 FCT DR+ R10
48 FCT DR- R49 CCX+0 CCY+0
HEIDENHAIN FK programming 8.15
Solution: Contour
49 FSELECT 2
50 FCT DR+ R10
51 FCT DR- R10 CCPR+57 CCPA-135
52 FSELECT 1
53 FCT DR+ R10
54 FCT DR- R49 CCX+0 CCY+0
55 FSELECT 2
56 FCT DR+ R10
57 FCT DR- R10 CCPR+57 CCPA+135
58 FSELECT 1
59 FCT DR+ R10
60 FCT DR- R49 CCX+0 CCY+0
61 FSELECT 2
62 FCT DR+ R10
63 FCT DR- R10 CCPR+57 CCPA+45
64 FSELECT 1
65 FCT DR+ R10
66 FCT X+49 Y+0 DR- R49 CCX+0 CCY+0
67 FSELECT 2
68 DEP LCT X+70 Y+0 R2
69 CALL LBL 1 REP 3/3
70 L Z+100 R0 F MAX M6
71 TOOL CALL 2 Z S5000
72 L Z+100 R0 F MAX M3
73 CYCL DEF 200 DRILLING
Q200=2 Set-up clearance
Q201=-29 Depth
Q206=150 Feed rate for plunging
Q202=10 Plunging depth
Q210=0 Dwell time at top
Q203=+0 Surface coordinate
Q204=50 2nd set-up clearance
Q211=0 Dwell time at depth
Set bore holes 74 LP PR+57 PA+45 R0 F MAX M99
75 LP PA+135 R0 F MAX M99
76 LP PA-135 R0 F MAX M99
77 LP PA-45 R0 F MAX M99
78 L Z+100 R0 F MAX M2
79 END PGM CONTOUR MM
HEIDENHAIN FK programming 8.16
Assignment: Maltese cross
Enter all known data again.
Dont change too much at once.
If proposed solutions are marked red, ignore with END SELECT.
5
0
50
0
0
-50
2
00
-
5
0
7
4
4
8
2
5

R
3
8
1
0
100
HEIDENHAIN FK programming 8.17
Solution: Maltese cross
Main program 0 BEGIN PGM 275 MM
1 BLK FORM 0.1 Z X-50 Y-50 Z-20
2 BLK FORM 0.2 X+50 Y+50 Z+0
3 TOOL CALL 8 Z S2500 R5
4 L Z+100 R0 F MAX
5 L Z+2 R0 F MAX M3
6 CALL LBL 10
7 LBL 5
8 CYCL DEF 10.0 ROTATION
9 CYCL DEF 10.1 IROT-90
10 CALL LBL 10
11 CALL LBL 5 REP 2/2
12 CYCL DEF 10.0 ROTATION
13 CYCL DEF 10.1 ROT+0
14 L Z+100 R0 F MAX M2
5
0
50
0
0
-50
2
00
-
5
0
7
4
4
8
25
R
3
8
1
0
100
HEIDENHAIN FK programming 8.18
Solution: Maltese cross
SP 15 LBL 10
16 CC X+0 Y+0
17 LP PR+70 PA+180 R0 F1000
18 L Z-10
19 APPR PLCT PR+50 PA+180 R2 RL F500
20 FPOL X+0 Y+0
21 FC DR- R50 CCX+0 CCY+0
22 FL AN+65 PDX+0 PDY+0 D48
23 FSELECT 4
19 FSELECT 1
20 FC DR- R35 CCX+0 CCY+0
21 FSELECT 2
22 FC DR+ R26.5 CCPR+49.5 CCPA-135
23 FSELECT 1
24 FC DR+ R38 CCPR+75 CCPA+135
25 FSELECT 2
26 FL AN+25 PDX+0 PDY+0 D48
27 FSELECT 1
28 FC PR+50 PA+90 DR- R50 CCA+90
29 DEP PLCT PR+70 PA+90 R2
30 LBL 0
31 END PGM 275 MM
HEIDENHAIN FK programming 8.19
Assignment: Clamping washer
Correct typing errors with the NO ENT key.
You can use the LEFT ARROW key to return to the FK dialog from the RL
/ RR dialog request.
Continue programming even if the contour is shown in red. Only stop if
the TNC displays an error message.
9
3
6

R
8
5
R
2
5
15

7
5

R
6
0
R
5
0
R
2
5
R
5
8
7
R
1
2
Depth = 2 mm
HEIDENHAIN FK programming 8.20
Solution: Clamping washer
Complete program 0 BEGIN PGM CLAMPINGWASHER MM
1 BLK FORM 0.1 Z X-100 Y-70 Z-10
2 BLK FORM 0.2 X+80 Y+100 Z+0
3 TOOL CALL 5 Z S3000 F500
4 L X+0 Y+100 Z+10 R0 F500 M13
5 L Z-5 R0 F200
6 L Y+85 RL
7 FC DR- R85 CCX+0 CCY+0
8 FPOL X+0 Y+0
9 FCT DR- R25 CCPR+60 CCPA+54
10 FLT
11 FCT DR- R50 CCX+0 CCY-9
12 FLT
13 FCT Y-7 DR- R58 CCY-7
14 FL Y-7 LEN58 AN+0
15 FC DR+ R25 CCX+0 CCY+0
16 FSELECT3
17 FLT AN+165
18 FC X+0 Y+85 DR- R85 CCX+0 CCY+0
19 L Y+100 R0
20 L Z+10
21 CC X+0 Y+0
22 LP PR+60 PA+54
9
3
6

R
8
5
R
2
5
15
7
5

R
6
0
R
5
0
R
2
5
R
5
8
7
R
1
2
Depth = 2 mm
HEIDENHAIN FK programming 8.21
Solution: Clamping washer
23 L Z-5
24 LP PR+72 PA+54 RL
25 CP PA+105 DR+
26 FC PR+48 PA+105 DR+ R12 CCPR+60 CCPA+105
27 FC PR+48 PA+54 DR- R48 CCX+0 CCY+0
28 FCT PR+72 PA+54 DR+ R12 CCPR+60 CCPA+54
29 CC X+0 Y+0
30 LP PR+60 PA+54 R0
31 L Z+100 R0 FMAX M30
32 END PGM CLAMPINGWASHER MM
HEIDENHAIN FK programming 8.22
Assignment: Ellipse
Clear the error message No NC program block permitted until FK
contour is resolved with the ARROW UP key.
Recalculate the interactive FK graphics with GOTO 0, START SINGLE or
PGM MGT.
Reduce or enlarge details with the << and >> soft keys, and assume
them with the WINDOW DETAIL soft key.
50 50
R
1
0
0
R
1
0
0
R
3
2
R
3
2
2
5
2
5
5
0
Depth = 2 mm
HEIDENHAIN FK programming 8.23
Solution: Ellipse
Complete program 0 BEGIN PGM ELLIPSE MM
1 BLK FORM 0.1 Z X-90 Y-60 Z-10
2 BLK FORM 0.2 X+90 Y+60 Z+0
3 TOOL CALL 5 Z S3333 F444
4 L X-90 Y+0 Z+10 FMAX M13
5 L Z-5 F500
6 L X-82 RL
7 FC DR- R32 CCX-50 CCY+0
8 FCT DR- R100
9 FCT DR- R32 CCX+50 CCY+0
10 FSELECT1
11 FCT DR- R100
12 FCT X-82 Y+0 DR- R32 CCX-50 CCY+0
13 FSELECT1
14 L X-90 R0
15 L Z+10
16 L X+0 Y+0
17 L Z-5
18 L IX+25 RL
19 CC X+0 Y+0
20 C X+25 Y+0 DR+
21 L IX-25 R0
22 L Z+10
23 L X+50
24 L Z-5
50 50
R
1
0
0
R
1
0
0
R
3
2
R
3
2
2
5
2
5
5
0
Depth = 2 mm
HEIDENHAIN FK programming 8.24
Solution: Ellipse
25 L IX+12.5 RL
26 CC X+50 Y+0
27 C X+62.5 DR+
28 L IX-12.5 R0
29 L Z+10
30 L X-50
31 L Z-5
32 L IX+12.5 RL
33 CC X-50 Y+0
34 C X-37.5 Y+0 DR+
35 L IX-12.5 R0
36 L Z+100 R0 FMAX M30
37 END PGM ELLIPSE MM
HEIDENHAIN FK programming 8.25
Assignment: Hook wrench
1
3
8 0
35
-35
1
6
0
20
28
1
3
4
1
0
0
1
0
5
-5
R
7
0
R
5
R8
4
R
4
0
R
6
0
R
6
0
R
1
8
R
1
2
3
0

5
10
0
Depth = 5 mm
HEIDENHAIN FK programming 8.26
Solution: Hook wrench
Complete program 0 BEGIN PGM 295 MM
1 BLK FORM 0.1 Z X+0 Y-35 Z-20
2 BLK FORM 0.2 X+160 Y+35 Z+0
3 TOOL CALL 8 Z S4000 R5
4 L Z+100 R0 F MAX
5 L X-10 Y-10 R0 F MAX
6 L Z-5 R0 F MAX M3
7 APPR LCT X+0 Y+0 R2 RR F400
8 FL AN+0
9 FCT DR- R70
10 FCT DR+ R60 CCX+105 CCY+28
11 FSELECT 2
12 FCT DR+ R12
13 FCT DR+ R18 CCX+138 CCY-5
14 FLT LEN5 AN+170
15 FL X+134 AN-150
16 FSELECT 1
1
3
8 0
35
-35
1
6
0
20
28
1
3
4
1
0
0
1
0
5
-5
R
7
0
R
5
R8
4
R
4
0
R
6
0
R
6
0
R
1
8
R
12
30
5
10
0
Depth = 5 mm
HEIDENHAIN FK programming 8.27
Solution: Hook wrench
17 FL LEN4 IAN-90
18 FCT DR- R8
19 FCT DR- R60 CCX+105
20 FSELECT 1
21 FCT DR- R40 CCX+100
22 FCT Y+20 DR+ R5
23 FSELECT 2
24 FLT X+0 AN+180
25 FSELECT 1
26 L Y+0
27 DEP LCT X-10 Y-10 R2
28 L Z+100 R0 FMAX M2
29 END PGM 295 MM
HEIDENHAIN FK programming 8.28
Assignment: Hook as a cookie cutter
110
12
50
-10
44
R
1
0
-25
3
0
R
4
0
R
6
R
6
R
2
4
R
1
,5
R
3
6
R
5
R
5
R
6
5
R
5
0
65
0
0
Depth = 45 mm
HEIDENHAIN FK programming 8.29
Solution: Hook as a cookie cutter
Main program 0 BEGIN PGM HOOK2 MM
1 BLK FORM 0.1 Z X-50 Y-50 Z-50
2 BLK FORM 0.2 X+120 Y+70 Z+0
3 TOOL CALL 1 Z S5000
4 L Z+100 R0 F MAX M3
5 CYCL DEF 14.0 CONTOUR GEOMETRY
6 CYCL DEF 14.1 CONTOUR LABEL 2
7 CYCL DEF 20.0 CONTOUR DATA ~
Q1=-45 Milling depth
Q2=1 Path overlap
Q3=+1 Allowance for side
Q4=+0 Allowance for floor
Q5=+0 Surface coordinate
Q6=+2 Set-up clearance
Q7=+0 Clearance height
Q8=0 Rounding radius
Q9=-1 Direction
8 CYCL DEF 22.0 ROUGH-OUT ~
Q10=-10 Plunging depth
Q11=100 Feed rate for plunging
Q12=200 Feed rate for roughing-out
Q18=0 Coarse-roughing tool
Q19=150 Reciprocation feed rate
9 CYCL CALL M13
HEIDENHAIN FK programming 8.30
Solution: Hook as a cookie cutter
10 CYCL DEF 14.0 CONTOUR GEOMETRY
11 CYCL DEF 14.1 CONTOUR LABEL 1/3
12 FN 0: Q1 =-1 Depth
13 FN 0: Q3 =+0.1 Allowance
14 LBL 10
15 CYCL CALL M13
16 FN 2: Q1 = +Q1 - +1 Calculation of depth
17 FN 1: Q3 =+Q3 + +0.1 Calculation of allowance
18 CALL LBL 10 REP 44/44
19 L Z+100 R0 F MAX M2
SP Hook outside contour 20 LBL 1
21 L X+110 Y-15 RL
22 L X+65
23 RND R5
24 L Y-25
25 FC DR+ R50 CCX+65 CCY-75
26 FCT DR- R65
27 FCT DR- R40 CCX+0 CCY+0
28 FSELECT 2
29 FLT
30 FCT DR- R10 CCX+0 CCY+50
31 FLT
32 FCT DR+ R6 CCX+0 CCY+0
33 FCT DR+ R24
34 FCT DR+ R6 CCX+12 CCY+0
35 FSELECT 2
36 FCT DR- R1.5
37 FCT DR- R36 CCX+44 CCY-10
38 FSELECT 2
39 FCT Y+15 DR+ R5
40 FLT X+110 Y+15 AN+0
41 FSELECT 1
42 L Y-15
43 LBL 0
HEIDENHAIN FK programming 8.31
Solution: Hook as a cookie cutter
SP Hook inside contour 44 LBL 2
45 L X+110 Y-15 RR
46 L X+65
47 RND R5
48 L Y-25
49 FC DR+ R50 CCX+65 CCY-75
50 FCT DR- R65
51 FCT DR- R40 CCX+0 CCY+0
52 FSELECT 2
53 FLT
54 FCT DR- R10 CCX+0 CCY+50
55 FLT
56 FCT DR+ R6 CCX+0 CCY+0
57 FCT DR+ R24
58 FCT DR+ R6 CCX+12 CCY+0
59 FSELECT 2
60 FCT DR- R1.5
61 FCT DR- R36 CCX+44 CCY-10
62 FSELECT 2
63 FCT Y+15 DR+ R5
64 FLT X+110 Y+15 AN+0
65 FSELECT 1
66 L Y-15
67 LBL 0
SP Frame 68 LBL 3
69 L X-70 Y+0 RR
70 L Y+80
71 L X+130
72 L Y-70
73 L X-70
74 L Y+0
75 LBL 0
76 END PGM HOOK2 MM
HEIDENHAIN FK programming 8.32
Assignment: FK-SL combination
3
00
45
2
0
3
2
R
4
4
3
28
R
5
80
56
R
5
86,584
1
0
HEIDENHAIN FK programming 8.33
Solution: FK-SL combination
Main program 0 BEGIN PGM FK-SL COMBO MM
1 BLK FORM 0.1 Z X-50 Y-50 Z-30
2 BLK FORM 0.2 X+50 Y+50 Z+0
3 TOOL CALL 1 Z S3500
4 CYCL DEF 14.0 CONTOUR GEOMETRY
5 CYCL DEF 14.1 CONTOUR LABEL 1/3
6 CYCL DEF 20.0 CONTOUR DATA ~
Q1=-20 Milling depth
Q2=1 Path overlap
Q3=+0 Allowance for side
Q4=+0 Allowance for floor
Q5=+0 Surface coordinate
Q6=+2 Set-up clearance
Q7=+0 Clearance height
Q8=0 Rounding radius
Q9=-1 Direction
7 CYCL DEF 22.0 ROUGH-OUT ~
Q10=-5 Plunging depth
Q11=100 Feed rate for plunging
Q12=200 Feed rate for roughing-out
Q18=0 Coarse-roughing tool
Q19=150 Reciprocation feed rate
8 CYCL CALL M13
9 CYCL DEF 14.0 CONTOUR GEOMETRY
10 CYCL DEF 14.1 CONTOUR LABEL 2/3
3
00
45
2
0
3
2
R
4
4
3
28
R
5
80
56
R
5
86,584
1
0
HEIDENHAIN FK programming 8.34
Solution: FK-SL combination
11 CYCL DEF 20.0 CONTOUR DATA ~
Q1=-10 Milling depth
Q2=1 Path overlap
Q3=+0 Allowance for side
Q4=+0 Allowance for floor
Q5=+0 Surface coordinate
Q6=+2 Set-up clearance
Q7=+0 Clearance height
Q8=0 Rounding radius
Q9=-1 Direction
12 CYCL DEF 22.0 ROUGH-OUT ~
Q10=-5 Plunging depth
Q11=100 Feed rate for plunging
Q12=200 Feed rate for roughing-out
Q18=0 Coarse-roughing tool
Q19=150 Reciprocation feed rate
13 CYCL CALL M13
14 L Z+100 R0 F MAX M2 Allowance
SP Contour level 2 15 LBL 1
16 CC X+0 Y+0
17 LP PR+28 PA+0 RL
18 FC Y-14 DR- R28 CCX+0 CCY+0
19 FSELECT 1
20 FL AN+180
21 FCT X+14 DR+ R5
22 FLT AN-90
23 FC X+0 Y-28 DR- R28 CCX+0 CCY+0
24 FCT X-14 DR- R28
25 FSELECT 2
26 FL AN+90
27 FCT Y-14 DR+ R5
28 FLT AN+180
29 FC Y+14 DR- R28 CCX+0 CCY+0
30 FSELECT 2
31 FL AN+0
32 FCT X-14 DR+ R5
33 FLT AN+90
34 FC X+14 DR- R28 CCX+0 CCY+0
35 FSELECT 1
36 FL AN-90
37 FCT Y+14 DR+ R5
38 FLT AN+0
39 FPOL X+0 Y+0
40 FC PR+28 PA+0 DR- R28 CCX+0
41 LBL 0
HEIDENHAIN FK programming 8.35
Solution: FK-SL combination
SP Contour level 1 42 LBL 2
43 CC X+0 Y+0
44 LP PR+16 PA-45 RL
45 FC DR- R16 CCX+0 CCY+0
46 FPOL X+0 Y+0
47 FLT AN-178.292
48 FCT DR- R4 CCPR+17.5 CCPA-135
49 FLT AN+88.292
50 FCT DR- R16 CCX+0 CCY+0
51 FLT AN+1.708
52 FCT DR- R4 CCPR+17.5 CCPA+45
53 FLT AN-91.708
54 FCT PR+16 PA-45 DR- R16 CCX+0 CCY+0
55 LBL 0
SP Rectangle level 3 56 LBL 3
57 L X+40 Y+0 RL
58 L Y+40
59 RND R5
60 L X-40
61 RND R5
62 L Y-40
63 RND R5
64 L X+40
65 RND R5
66 L Y+0
67 LBL 0
68 END PGM FK-SL COMBO MM
HEIDENHAIN FK programming 8.36
Assignment: Clamp
1
0
R
4
8
6
0

6
0

R
6 R
6
R
6
0
R
1
6
R
3
6
R
4
2
1
5
R
6
R
6
2
0
3
0

R
1
0
R
6
R
6
Depth = 10 mm
HEIDENHAIN FK programming 8.37
Solution: Clamp
Complete program 0 BEGIN PGM CLAMP MM
1 BLK FORM 0.1 Z X-60 Y-60 Z-10
2 BLK FORM 0.2 X+80 Y+60 Z+0
3 TOOL CALL 1 Z S3333 F500
4 L X+0 Y-55 Z+10 R0 FMAX M13
5 L Z-5
6 L Y-42 RL
7 FPOL X+0 Y+0
8 FC PR+42 PA+150 DR- R42 CCX+0 CCY+0
9 FC PR+48 DR- R6 CCPR+42
10 FSELECT2
11 FCT DR- R48
12 FCT PR+42 PA+30 DR- R6
13 FSELECT1
14 FC DR- R42 CCX+0 CCY+0
15 FCT DR+ R6
16 FLT AN-30 PDX+0 PDY+0 D10
17 FSELECT3
18 FCT DR- R10 CCPR+60 CCPA-30
19 FLT PAR16 DP20
20 FCT DR+ R6
21 FCT X+0 Y-42 DR- R42 CCX+0 CCY+0
22 FSELECT2
23 L Y-55 R0
24 L Z+10
25 LP PR+26 PA+60
26 L Z-5
1
0
R
4
8
6
0

6
0

R6 R6
R
60
R
1
6
R
3
6
R
4
2
1
5
R
6
R
6
2
0
3
0

R
1
0
R
6
R
6
Depth = 10 mm
HEIDENHAIN FK programming 8.38
Solution: Clamp
27 LP PR+36 PA+60 RL
28 CC X+0 Y+0
29 CP PA+90 DR+
30 RND R6
31 LP PR+16 PA+90
32 RND R6
33 CP PA+30 DR-
34 RND R6
35 LP PR+36 PA+30
36 RND R6
37 CP PA+60 DR+
38 LP PR+26 PA+60 R0
39 L Z+10
40 LP PR+26 PA+240
41 L Z-5
42 LP PR+36 PA+240 RL
43 CP PA+270
44 RND R6
45 LP PR+16 PA+270
46 RND R6
47 CP PA+210 DR-
48 RND R6
49 LP PR+36 PA+210
50 RND R6
51 CP PA+240 DR+
52 LP PR+26 PA+240 R0
53 L Z+10
54 L X+0 Y+0
55 L Z-5
56 L X+7.5 RL
57 C X+7.5 Y+0 DR+
58 L X+0 R0
59 L Z+10
60 L PR+60 PA-30
61 CC
62 L Z-5
63 LP IPR+5 PA-30 RL
64 CP IPA+360 DR-
65 CC X+0 Y+0
66 LP PR+60 PA-30 R0
67 L Z+10
68 L X+0 Y+0
69 END PGM CLAMP MM
HEIDENHAIN FK programming 9.1
Tips and Tricks for FK Programming 1
Enter all known data again.
Dont change too much at once.
If proposed solutions are marked red, ignore with END SELECT.
Correct typing errors with the NO ENT key.
You can use the LEFT ARROW key to return to the FK dialog from the RL
/ RR dialog request.
Continue programming even if the contour is shown in red. Do not stop
until the TNC outputs an error message.
Clear the error message No NC program block permitted until FK
contour is resolved with the ARROW UP. key
Recalculate the interactive FK graphics with GOTO 0, START SINGLE or
PGM MGT.
Reduce or enlarge details with the << and >> soft keys, and assume
them with the WINDOW DETAIL soft key.

You might also like