NC Programm Programming ing Course Course
FK Free Contouring
iTNC 530 TNC 4xx
English (en)
© 2003-2005 DR. JOHANNES HEIDENHAIN 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 HEIDENHAIN GmbH reserves the right to revoke this permission at any time. Without the prior written permission of DR. JOHANNES HEIDENHAIN 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.
© 2003-2005 DR. JOHANNES HEIDENHAIN 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 HEIDENHAIN GmbH reserves the right to revoke this permission at any time. Without the prior written permission of DR. JOHANNES HEIDENHAIN 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 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 pat h-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
Fundamentals of FK Programming
2
Directional data that is referenced to another contour element
N18 parallel to AB
Information about the course of the contour and directional data of the contour itself
Motion in clockwise direction
AN (rise angle 45°)
The TNC derives the contour from known data and supports the dialog with the interactive programming graphics.
Requirements for FK programming
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.
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
Initiating FK dialogs
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
4
Interactive programming graphics: Setting/activating the graphics
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).
5
Assignment: FK telephone
Start (R0)
Solution:
FK telephone
Start (R0)
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
Interactive programming graphics: Selecting possible solutions
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.
6
Interactive programming graphics: Selecting possible solutions
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
7
Overview of functions
8
Element
Straight line with connection
Arc with connection
Path functions
Any1
Any1
Tangential
Block end point / Cartesian Block end point / Polar coordinates
Tangential
+ Y +
+ Y +
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. 1
): angular or tangential
Directional Data: The Difference Between AN and PA
1
AN: Connection from starting point to end point
e g n a r e r s e v r a T
Extension X+
AN only defines the slope.
PA: Connection from pole to end point
T ra v er s e r ange
g e n r a e s e r v a T r
Extension X+
PA defines the end point.
Assignment: Angled workpiece
Solution only possible with FK programming, otherwise the coordinates of the points must be calculated.
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
Assignment: Flat surface on a shaft
Depth = 10 mm
Solution:
Flat surface on a shaft
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
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.
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 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!
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
3
definition of a circle center point
FPOL is effective modally
2 1
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
2
Distance from FPOL
1
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
2
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)
1
Block end point / Polar coordinates
Polar coordinates with reference block R (R = relative):
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
3
Assignment: Sample part workshop drawing Block end points/relative references
Starting position
You are only allowed to use dimensions explicitly given in the drawing!
Solution:
Sample part workshop drawing Block end points/relative references
Starting position
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
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
6 5 4
Example: The inside angle between element 4 and element 6 is 130° Input in block 6: IAN+130 RAN4
3
Edge and chord length of an element Edge length of a straight element Chord length of a circular arc
Orientation data
2
Parallels, distance PAR = Parallels Orientation data specifying that the element is located parallel to another element.
10
9
DP = Distance between parallels
4
Example: Element 10 is parallel to 5 at a distance of 10 mm
5
8 7 6
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.
Assignment: FK hammer
Detail Z
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 FORM 0.2 0.2 X+100 X+100 Y+100 Y+100 Z+0 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
Detail Z
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
Auxiliary points PnX, PnY (on ( on the element’s extension) that are not to be approached
1
For straight lines
P2X,P2Y
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
P X,P Y P3X,P3Y
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
Auxiliary point PDX, PDY that needs not be approached, at the distance D to the element (or on the element’s element’s 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.
Auxiliary points – example
3
Auxiliary points on contour element
Auxiliary points on extension of contour element Auxiliary point offset from extension
Auxiliary point offset from contour element
Assignment: FK program without RND and with auxiliary points
Solution:
FK program without RND and with auxiliary points
Complete program
0
BEGIN PGM 223-FK2 MM
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
Contour without RND
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
Overview of functions for circle center point
2
Various programming possibilities:
Cartesian coordinates
with
Polar coordinates
Incremental, polar coordinates, with reference block as well with
Incremental, Cartesian coordinates, with reference block as well with
with
Circle center point with Cartesian coordinates
Absolute, Cartesian coordinates Valid blockwise
3
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
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 ICCY-15 RCCY7
ICCX, ICCY function like I, J in ISO programming
Circle center point with polar coordinates
Absolute polar coordinates Data refers to FPOL. Program FPOL first.
4
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
incrementally
RCCPA: Block number that ICCPA refers to with
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 ICCPA+17 RCCPR6 RCCPA6
The data must be entered in pairs.
Assignment: Barbell
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
Assignment: Pickle as island
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
Assignment: FK3
Depth = 20 mm
Solution:
FK3
Depth = 20 mm
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
Interactive programming graphics: Creating/magnifying/reducing the graphics
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
1
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.
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 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
R7,5
Assignment: Tooth
Depth = 10 mm
Edges with FL blocks can be connected with RND.
Solution:
Tooth
Depth = 10 mm
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
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
Assignment: FK4
Solution:
FK4
Complete program
0
BEGIN PGM FK4 MM
1 BLK FORM 0.1 Z X-50 Y-50 Z-22 X+50
Y+50
2
BLK FORM 0.2
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
Z+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
Assignment: Rotor
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
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
Assignment: Contour
Solution:
Contour
Complete program
0
BEGIN PGM CONTOUR MM
1 BLK FORM 0.1 Z X-60 Y-60 Z-28
Mill circular pocket
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
5
CYCL DEF 5.0 CIRCULAR POCKET
6
CYCL DEF 5.1 SET UP
7
CYCL DEF 5.2 DEPTH -24
8
CYCL DEF 5.3 PLNGNG -6 F300
9
CYCL DEF 5.4 RADIUS 45
-2
10 CYCL DEF 5.5 F300 DR11 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
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 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
Four infeeds
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 C YC L DEF 2 00 DRI LL IN G
Set bore holes
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
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
Assignment: Maltese cross
Enter all known data again.
Don’t change too much at once.
If proposed solutions are marked red, ignore with END SELECT.
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
3
TOOL CALL 8 Z S2500
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
Z+0 R5
Solution:
SP
Maltese cross
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
Assignment: Clamping washer
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.
Solution:
Clamping washer
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
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
Assignment: Ellipse
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.
Solution:
Ellipse
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
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
Assignment: Hook wrench
Depth = 5 mm
Solution:
Hook wrench
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
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
R5
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
Assignment: Hook as a cookie cutter
Depth = 45 mm
Solution:
Main program
Hook as a cookie cutter
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 ~
8
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
C YC L D EF 2 2. 0 R OU GH -O UT ~ 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
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
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
Assignment: FK-SL combination
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
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 ~
7
X+50
Y+50
Z+0
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
C YC L D EF 2 2. 0 R OU GH -O UT ~ 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
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
1 2 C YC L D EF 2 2. 0 R OU GH -O UT ~ 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
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
Allowance
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
Assignment: Clamp
Depth = 10 mm
Solution:
Clamp
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
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 DR34 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 DR48 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 DR65 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