beautypg.com

Yx z – HEIDENHAIN TNC 360 User Manual User Manual

Page 95

background image

5-11

TNC 360

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 360511 MM ................................... Begin program; program number 360511; 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 point)

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

L X–10 Y–10 FMAX ............................................. Pre-position in X and Y; rapid traverse

7

L Z–10 FMAX M3 ............................................... Move to working depth; rapid traverse; spindle on with

clockwise rotation

8

L X+5 Y+5 RL F100 ............................................ Move to first contour point – corner point 1 – with radius

compensation (RL) and reduced feed rate (F 100)

9

L Y+95 ................................................................ Move to second contour point – corner point 2: all values that

remain the same as in block 8 need not be re-programmed

10

L X+95 ................................................................ Move to third contour point – corner point 3

11

L Y+5 .................................................................. Move to fourth contour point – corner point 4

12

L X+5 Y+5 .......................................................... Conclude milling, return to first contour point

13

L X–10 Y–10 R0 FMAX ....................................... For safety reasons, retract in X and Y; rapid traverse

14

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

spindle off, coolant off, program stop,
Return jump to block 1

15

END PGM 360511 MM ...................................... End of program