beautypg.com

Yx z – HEIDENHAIN TNC 407 (280 580) User Manual User Manual

Page 115

background image

TNC 425/TNC 415 B/TNC 407

5-16

5

Programming Tool Movements

5.4

Path Contours - Cartesian Coordinates

Example for exercise: Milling a rectangle

Coordinates of the corner points:

1

X =

5 mm

Y = 5 mm

2

X =

5 mm

Y = 95 mm

3

X = 95 mm

Y = 95 mm

4

X = 95 mm

Y = 5 mm

Milling depth:

Z =–10 mm

100

95

5

–10

5

100

95

3

1

2

4

Y

X

Z

Part program

0

BEGIN PGM RECTANG MM .............................. Begin program; program name RECTANG; dimensions in

millimeters

1

BLK FORM 0.1 Z X+0 Y+0 Z-20

2

BLK FORM 0.2 X+100 Y+100 Z+0 ..................... Define blank form for graphic workpiece simulation

(MIN and MAX points)

3

TOOL DEF 1 L+0 R+5

4

TOOL CALL 1 Z S1000 ....................................... Define tool in the program; call tool in the spindle axis Z;

spindle speed S = 1000 rpm

5

L Z+100 R0 FMAX M6 ....................................... Retract in the spindle axis; rapid traverse; insert tool

6

APPR LT X+5 Y+5 Z–10 LEN20 RL F100 M3 ..... Approach contour on a straight line with tangential connection

7

L Y+95 ................................................................ Move to second contour point - corner point

. All values not

programmed remain the same as in block 8

8

L X+95 ................................................................ Move to third contour point - corner point

9

L Y+5 .................................................................. Move to fourth contour point, corner point

10

L X+5 Y+5 .......................................................... Conclude milling: Return to first contour point

11

DEP LN LEN+20 F100 ........................................ Depart contour on a straight line perpendicular to the last

contour element

12

L Z+100 FMAX M2 ............................................. Move tool to setup clearance; rapid traverse; spindle OFF,

coolant OFF, program run STOP, return to block 1 of the
program

13

END PGM RECTANG MM .................................. End of program