1 0 pr ogr amming examples – HEIDENHAIN TNC 310 (286 140) User Manual

Page 191

Advertising
background image

179

HEIDENHAIN TNC 310

20 LBL 10

21 CYCL DEF 7.0 DATUM SHIFT

22 CYCL DEF 7.1 X+Q1

23 CYCL DEF 7.2 Y+Q2

24 CYCL DEF 10.0 ROTATION

25 CYCL DEF 10.1 ROT+Q8

26 Q35 = (Q6 - Q5) / Q7

27 Q36 = Q5

28 Q37 = 0

29 Q21 = Q3 * COS Q36

30 Q22 = Q4 * SIN Q36

31 L X+Q21 Y+Q22 R0 F MAX M3

32 L Z+Q12 R0 F MAX

33 L Z-Q9 R0 FQ10

34 LBL 1

35 Q36 = Q36 + Q35

36 Q37 = Q37 + 1

37 Q21 = Q3 * COS Q36

38 Q22 = Q4 * SIN Q36

39 L X+Q21 Y+Q22 R0 FQ11

40 FN 12: IF +Q37 LT +Q7 GOTO LBL 1

41 CYCL DEF 10.0 ROTATION

42 CYCL DEF 10.1 ROT+0

43 CYCL DEF 7.0 DATUM SHIFT

44 CYCL DEF 7.1 X+0

45 CYCL DEF 7.2 Y+0

46 L Z+Q12 R0 F MAX

47 LBL 0

48 END PGM ELLIPSE MM

Subprogram 10: Machining operation

Shift datum to center of ellipse

Account for rotational position in the plane

Calculate angle increment

Copy starting angle

Set counter

Calculate X coordinate for starting point

Calculate Y coordinate for starting point

Move to starting point in the plane

Pre-position in tool axis to setup clearance

Move to working depth

Update the angle

Update the counter

Calculate the current X coordinate

Calculate the current Y coordinate

Move to next point

Unfinished? If not finished, return to LBL 1

Reset the rotation

Reset the datum shift

Move to setup clearance

End of subprogram

1

0.1

0 Pr

ogr

amming Examples

Advertising
This manual is related to the following products: