beautypg.com

4 p a th cont ours—car te sian coor dinat e s – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 136

background image

136

6 Programming: Programming Contours

6.4 P

a

th Cont

ours—Car

te

sian Coor

dinat

e

s

Example: Circular movements with Cartesian coordinates

0 BEGIN PGM CIRCULAR MM

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

Define blank form for graphic workpiece simulation

2 BLK FORM 0.2 X+100 Y+100 Z+0

3 TOOL DEF 1 L+0 R+10

Define tool in the program

4 TOOL CALL 1 Z X4000

Call tool in the spindle axis and with the spindle speed S

5 L Z+250 R0 FMAX

Retract tool in the spindle axis at rapid traverse FMAX

6 L X-10 Y-10 R0 FMAX

Pre-position the tool

7 L Z-5 R0 F1000 M3

Move to working depth at feed rate F = 1000 mm/min

8 APPR LCT X+5 Y+5 R5 RL F300

Approach the contour at point 1 on a circular arc with

tangential connection

9 L X+5 Y+85

Point 2: first straight line for corner 2

10 RND R10 F150

Insert radius with R = 10 mm, feed rate: 150 mm/min

11 L X+30 Y+85

Move to point 3: Starting point of the arc with CR

12 CR X+70 Y+95 R+30 DR-

Move to point 4: End point of the arc with CR, radius 30 mm

13 L X+95

Move to point 5

14 L X+95 Y+40

Move to point 6

15 CT X+40 Y+5

Move to point 7: End point of the arc, circular arc with tangential

connection to point 6, TNC automatically calculates the radius

X

Y

95

5

95

5

85

40

40

30

70

R10

R30

1

1

1

2

1

3

1

4

1

5

1

6

1

7