You are on page 1of 83

NC

Programming Course

FK Free Contouring

iTNC 530
TNC 4xx

English (en)
V2
12/2005
© 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
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
P2': X/Y

x
B

x
P2: X/Y

x
P1: X/Y

A
x

P1': X/Y

Known coordinates located near the


contour element

P1: X/Y

B
20

HEIDENHAIN FK programming 1.1


Fundamentals of FK Programming 2

Directional data that is referenced to


another contour element
N18 parallel to AB

20
A

Information about the course of the


contour and directional data of the
contour itself
B
Motion in
clockwise
direction
A

B
AN (rise angle 45°)

The TNC derives the contour from known data and supports the dialog with
the interactive programming graphics.

HEIDENHAIN FK programming 1.2


Requirements for FK programming 3

„ 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.

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

HEIDENHAIN FK programming 1.3


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.4


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.5


Assignment: FK telephone

100

 Ã
ÀÅ R14
R14

5
R2
Á Ä

R88
50
Start (R0)

0
50
0

100

HEIDENHAIN FK programming 1.6


Solution: FK telephone

100

 Ã
ÀÅ R14
R14

5
R2
Á Ä

R88
50
Start (R0)

50
0

100
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

HEIDENHAIN FK programming 1.7


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.8


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.9


Overview of functions 8

Straight line with


Element Arc with connection
connection
Path functions Any1 Tangential Any1 Tangential

Block end point + +


/ Cartesian Y Y
Block end point
+ +
/ Polar
coordinates

Directional
data

Auxiliary points + P2X, P2Y + P2X, P2Y


on the contour + P3X, P3Y
Distance from
the contour
element to the
auxiliary point
Additional
circular data

+ CCY..

+ CCPA.

1): angular or tangential

HEIDENHAIN FK programming 1.10


Directional Data: The Difference Between AN and PA 1

AN: Connection from starting point to end point

+Y

e
P2

g
ran
rse
ve
Tra AN = 60°
Extension X+
P1
+X

AN only defines the slope.

PA: Connection from pole to end point

Traverse
range
+Y P1
nge P2
ra
se
er
av
Tr
PA = 60°
P1 Extension X+
Pol
+X

PA defines the end point.

HEIDENHAIN FK programming 2.1


Assignment: Angled workpiece

60

31° 31°

35

0
60

20

0
0

16

Solution only possible with FK programming, otherwise the coordinates of


the points must be calculated.

HEIDENHAIN FK programming 2.2


Solution: Angled workpiece

60

31° 31°

35

60

20

0
0

16
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

HEIDENHAIN FK programming 2.3


Assignment: Flat surface on a shaft

+Y
16

+X

55

Depth = 10 mm

HEIDENHAIN FK programming 2.4


Solution: Flat surface on a shaft

+Y

16
+X

55

Depth = 10 mm

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

HEIDENHAIN FK programming 2.5


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 3.1


Block end point / Cartesian 1

Absolute
The coordinates of the path end point +Y
are based on the datum.
Example: X+20 Y+25 IY
IX
Incremental Y
The path end point is based on the
last programmed position. +X
X
Example: IX+30 IY+20

Relative (R) with block number of a reference block


Relative X coordinate change +Y
with
É
È
Ç
Relative Y coordinate change Ä IX+17,5 IY+7,5
RY 6
with RX 6
Å
Æ
The incremental value is not based on the end point of +X
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 N in their icons:
„ Example: R Y N
„ When a referenced block is deleted, make sure to change the block in
which the referenced block is referred to!

HEIDENHAIN FK programming 4.1


Block end point / Polar coordinates 2

Pole for positioning data in polar coordinates (PR/PA)


Entry of FPOL in Cartesian coordinates 3
+Y
for both axes in the working plane:

PR

PA+
„ FPOL refers to the set datum FPOL

„ FPOL has nothing to do with the 2

FPOL Y
definition of a circle center point
1
„ FPOL is effective modally
+X
The polar coordinates of the given
position 3 refer to FPOL 2. This, in FPOL X
turn, refers to datum 1.

Polar radius referenced to FPOL


Absolute +Y 2
Distance from FPOL

+
IPR
1

+
Incremental

PR
FPOL
Difference between the previous
entry PR 1 and the new position
data 2
+X

Polar coordinate angle referenced to FPOL.


Directional data in the sense of mathematical rotation. 2
Absolute +Y IPA+
1
0°:Positive direction of the main axis
PR

in the working plane


PA+

Incremental
FPOL

Angular difference between the
previous position 1 and the new
position 2 (as seen from FPOL) +X

HEIDENHAIN FK programming 4.2


Block end point / Polar coordinates 3

Polar coordinates with reference block R (R = relative):

+Y
Ä FPOL PA–
IPR
+25
RPR
6
PR Å

Æ
IPA–20
RPA6
É
Ç
È
+X

Relative polar radius change


with

Relative polar angle change


with

 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

HEIDENHAIN FK programming 4.3


Assignment: Sample part workshop drawing
Block end points/relative references

110

15

10
50
45°

X 50
70

Y 55
80°
30

15
5 Starting position
0

20

0
110
0

10
15

45

You are only allowed to use dimensions explicitly given in the drawing!

HEIDENHAIN FK programming 4.4


Solution: Sample part workshop drawing
Block end points/relative references

110

15

10
50
45°

X 50

70
Y 55
80°
30

15
5 Starting position
0

20

0
110
0

10
15

45

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

HEIDENHAIN FK programming 4.5


Directional Data 1

Gradient angle of an element


Absolute
„ Referenced to the +Y
direction of the main AN+
axis of the working

AN
plane

+
„ For circular arcs, 0°
direction of the entry
IAN–
tangent

IA
Incremental

N+
°
Inside angle between IAN
the previous and new
directions
+X

Relative (R) with block number of a


reference block
+Y 6
Reference to the gradient angle in the
end point of another element 5
with

°
30
4

+1
11°
Example: The inside angle between
element 4 and element 6 is
130°
Input in block 6: IAN+130 RAN4 3

+X

Edge and chord length of an element


Edge length of a +Y
LEN
straight element
N
LE

Chord length of a
circular arc
R

+X

HEIDENHAIN FK programming 5.1


Orientation data 2

Parallels, distance
PAR = Parallels
10
Orientation data +Y
specifying that the DP 10

PAR 5
element is located
parallel to another
element. 9

8
DP = Distance 4
between parallels 7
Example: Element 10
is parallel to 5 at a 5
6
distance of 10 mm
+X
Input in block 10:
PAR5 DP10

Contour
Identification of the
beginning of a closed
+Y
contour: +

Identification of the SD
end of a closed CL
contour: –

A
A: Any point
designated as the CLS
beginning and end D–
of the contour
+X

The end point of a contour no longer needs to be closed by entering X and


Y coordinates.

HEIDENHAIN FK programming 5.2


Assignment: FK hammer

100

55°

R15
1
R1

65

20
5
37,
30°

40
R1
2,5
80
°

15
R1
1

5
20

0
100
30
0

15

55
R15
1

°
R1

Detail Z

HEIDENHAIN FK programming 5.3


Solution: FK hammer

100

55°

R15
1
R1
65

20
5
37,

30°
40
R1
2,5

80
°
15

R1
1
0

5
20

0
100
30
0

15

55
R15
1

°
R1

Detail Z

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

HEIDENHAIN FK programming 5.4


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 5.5


Auxiliary points PnX, PnY (on the element’s extension) that are not to be
approached 1

For straight lines


„ The programmed straight line
goes through the auxiliary points +Y
Y2 P2X
„ The auxiliary points need not be
approached P2Y

FL
P2X,P2Y „ Always enter auxiliary points as
value pairs (X and Y coordinates), Y1 P1X
beginning with P1 P1Y

„ It is possible to enter simply one 0


auxiliary point +X

X1

X2
For circles
„ The programmed circular path
goes through the auxiliary points +Y P3X
Y3
„ Auxiliary points must lie on the P3Y
defined circle, but need not be
CC
P2X,P2Y approached Y2
P3X,P3Y P2X
„ Always enter auxiliary points as Y1 P2Y
value pairs (X and Y coordinates), P1X
P1Y
beginning with P1
0
„ It is possible to enter simply one +X
0

X1

X3

X2
auxiliary point

HEIDENHAIN FK programming 6.1


Auxiliary point PDX, PDY that needs not be approached, at the distance D to
the element (or on the element’s extension) 2

For straight lines (distance point)


„ The programmed straight line
does not go through the auxiliary +Y Á
point

FL
„ Always enter the auxiliary point as D
a value pair (X and Y coordinates) YD
„ Perpendicular distance D from the
À PDX
PDY
programmed straight line to the
auxiliary point
0
+X

XD
0
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 +Y
point Á
„ Always enter the auxiliary point as
a value pair (X and Y coordinates)
„ Perpendicular distance D from the
programmed circular path to the À
D
YD PDX
auxiliary point PDY
0
XD +X
0

Always enter PDX, PDY and D together in a program block.

HEIDENHAIN FK programming 6.2


Auxiliary points – example 3

+Y

x
P2': X/Y

P4: X B
Y P1, P2: Auxiliary points on

x
D P2: X/Y contour element

P1', P2 ': Auxiliary points on

x
extension of contour
element
x

P1: X/Y P3 + D: Auxiliary point offset from


extension
P1': X/Y A
P4 + D: Auxiliary point offset from
x

contour element

P3: X
Y
D
+X

HEIDENHAIN FK programming 6.3


Assignment: FK program without RND and with auxiliary points

100

90
R1
0

R20
R20
50
R20
R20

R1
0

10

0 100
50
0

40

30

0
90
10

HEIDENHAIN FK programming 6.4


Solution: FK program without RND and with auxiliary points

100

90
R1
0

R20
R20
50
R20

R20

R1
0
10

100
50
0

40

30

0
90
10

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

HEIDENHAIN FK programming 6.5


Circle data 1

Circle radius
Example: R18 +Y Á
C A 7 0°
Absolute  IC
CCA14
5
Angle for circle end

°
point 0°
CC

8
R1
Example: CCA+145

CCYCC
R and CCA refer to the
circle center point
À
+X
Incremental CCXCC
Angle for circle end
point
ICCA refers to the
previous contour angle,
and specifies the
central angle.
Example: ICCA+70

HEIDENHAIN FK programming 7.1


Overview of functions for circle center point 2

Various programming possibilities:

Cartesian coordinates
+Y
à R CCA

Incremental, Cartesian coordinates, Â



with reference block as well CC

PR
with

CC
CCPA

with Á

FPOL Y
À
Polar coordinates +X
FPOL X

Incremental, polar coordinates, with


reference block as well
with

with

HEIDENHAIN FK programming 7.2


Circle center point with Cartesian coordinates 3

Absolute, Cartesian coordinates


„ Valid blockwise +Y
„ Data refers to the
datum and not to
FPOL
50
Á CC

Example:

8
FC DR- R18 ICCA-270

R1
CCX+50 CCY+50

CCY
À
0
+X
CCX

50
Incremental, Cartesian coordinates, 0
with reference block as well +Y
RCCX: Block number that ICCX refers to Ç
incrementally
40
Æ
with
ICCY -15
È
RCCY 7
2
R1
RCCY: Block number that ICCY refers to Å CC É
incrementally
with 10
Ä ICCX 25
RCCX 5
0
+X
22
0

10

Example blocks
...
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 ICCX, ICCY function like I, J in ISO
ICCY-15 RCCY7 programming

HEIDENHAIN FK programming 7.3


Circle center point with polar coordinates 4

Absolute polar coordinates


Data refers to FPOL. +Y
Program FPOL first.
CCA 145°
Example:
FC DR- R24 CCA+145 R24 Â
CCPR+25 CCPA+50 CC 0°

25
PR
CC
CCPA 50°
16 0°
FPOL X
FPOL Y
Á
0
À
+X

23
Incremental, polar coordinates, with 0
reference block as well È
+Y
É
RCCPR: Block number that ICCPR refers to
Ç Ç R1
8
incrementally CCA 40°
Æ
R 30
CC
6
with CP R
RC CP
IC

ICCPA 17°
RCCPA: Block number that ICCPA refers to RCCPA 6
incrementally 7
R1
with 10 Å 28°
Ä FPOL
0
+X
0

10

Example blocks
...
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 The data must be entered in pairs.
ICCPA+17 RCCPR6 RCCPA6

HEIDENHAIN FK programming 7.4


Assignment: Barbell

100

R20

20

55
60
°
30

20

0
40
0

100

10

HEIDENHAIN FK programming 7.5


Solution: Barbell

100

R20

20

55
60
°
30

20

0
40
0

100

10
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

HEIDENHAIN FK programming 7.6


Assignment: Pickle as island

100

0
R2
50
R8
0

30 0
R1
R75

20

0
60
0

18
15

100

HEIDENHAIN FK programming 7.7


Solution: Pickle as island

100

0
R2
50

R8
0
30 0
R1

R75
0

20

0
60
0

18
15

100
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

HEIDENHAIN FK programming 7.8


Assignment: FK3

86

Depth = 20 mm

R65

R42

48,753

84 R10

HEIDENHAIN FK programming 7.9


Solution: FK3

86
Depth = 20 mm

R65

R42

48,753

84 R10

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

HEIDENHAIN FK programming 7.10


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.1


Assignment: FK cam

100

R15
75

35
5
R2
25 R2
0

5
20

0
30

50

75
0

100

„ 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.

HEIDENHAIN FK programming 8.2


Solution: FK cam

100

R15
75

35
5
R2
25 R2
0

5
20

0
30

50

75
0

100
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

HEIDENHAIN FK programming 8.3


Assignment: Tooth

R10

R75
5° 60°
R15

105
35°

R40 R14

10

60

Depth = 10 mm
°
60

20

Edges with FL blocks can be connected with RND.

HEIDENHAIN FK programming 8.4


Solution: Tooth

R10

R75

60°
R15

105

35°
R40 R14

10

60

Depth = 10 mm
°
60

20

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

HEIDENHAIN FK programming 8.5


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.6


Assignment: FK4

R6

0
R1

30
100

120°

R1

30
1

30 27
40

22

0
14
100

HEIDENHAIN FK programming 8.7


Solution: FK4

R6

0
R1

30
100

120°

R1

30
1
30 27
40

22

0
14
100

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

HEIDENHAIN FK programming 8.8


Assignment: Rotor

R35
R26,5

45°
49
,5

45°

0
18

HEIDENHAIN FK programming 8.9


Solution: Rotor

R35
R26,5

45°

49
,5
45°

0
18
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

HEIDENHAIN FK programming 8.10


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.11


Assignment: Contour

60 60

R90
R10

R10

45°

55
90
R57
R49

4*R10 R90
R90
45°

55
R90

4
28

HEIDENHAIN FK programming 8.12


Solution: Contour

60 60

R90
R10

R10
45°

55
90
R57
R49

4*R10 R90
R90
45°

55
R90

4
28

0
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

HEIDENHAIN FK programming 8.13


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.14


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.15


Assignment: Maltese cross

50

8
R3
25°

74
100
0

48

-50

50

20

0
-50

10
„ Enter all known data again.
„ Don’t change too much at once.
„ If proposed solutions are marked red, ignore with END SELECT.

HEIDENHAIN FK programming 8.16


Solution: Maltese cross

50

8
R3
25°

74
100
0

48

-50

50

20

0
-50

10
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

HEIDENHAIN FK programming 8.17


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.18


Assignment: Clamping washer

° 15°
75 36°

R25

R12

R6

R85
0

5
R50
R2
7

9
R58

Depth = 2 mm

„ 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.

HEIDENHAIN FK programming 8.19


Solution: Clamping washer

° 15°
75 36°

R25

R12

R6

R85
0

5
R50

R2
7

9
8
R5

Depth = 2 mm

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

HEIDENHAIN FK programming 8.20


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.21


Assignment: Ellipse

50 50

R1
00

R32

50
R32
25

25
00
R1

Depth = 2 mm

„ 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.

HEIDENHAIN FK programming 8.22


Solution: Ellipse

50 50

R1
00
R32

50
R32

25

25
00
R1

Depth = 2 mm

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

HEIDENHAIN FK programming 8.23


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.24


Assignment: Hook wrench

35
28
5
20
30°
R5 10°

0
R4

R60

8
R8

R1
0 R12
-5
0
R7

R60
-35
0

134
138

160
100
105
Depth = 5 mm

HEIDENHAIN FK programming 8.25


Solution: Hook wrench

35
28
5
20
30°
R5 10°

0
R4

R60

8
R8

R1
0 R12
-5
0
R7

R60
-35
0

134
138

160
100
105
Depth = 5 mm

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

HEIDENHAIN FK programming 8.26


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.27


Assignment: Hook as a cookie cutter

R1
0

50

R36
R24
R1,5

R5
0

30
R6
R6 R5
-10
0
R4

R65

-25

R5
0
Depth = 45 mm

0 12 44 65 110

HEIDENHAIN FK programming 8.28


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.29


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.30


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.31


Assignment: FK-SL combination

56

86,584°

43

R4
28

R5

45°
R5
32

80

20

0
10
30

HEIDENHAIN FK programming 8.32


Solution: FK-SL combination

56

86,584°

43

R4
28

R5

45°
R5
32

80

20

0
10
30
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

HEIDENHAIN FK programming 8.33


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.34


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.35


Assignment: Clamp

° 60
60 °

R6

R4
R6 R6

8
R6

6
R1

R60
R42 R6

30°
15
6

10
R3

R6

20
R10
Depth = 10 mm

HEIDENHAIN FK programming 8.36


Solution: Clamp

° 60
60 °

R6

R4
R6 R6

8
R6

6
R1
R60
R4
2 R6

30°
15
6
10

R3

R6

20
R10
Depth = 10 mm

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

HEIDENHAIN FK programming 8.37


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 8.38


Tips and Tricks for FK Programming 1

„ Enter all known data again.


„ Don’t 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.

HEIDENHAIN FK programming 9.1

You might also like