Monday,15-December-2014

HEIDENHAIN iTNC 530 spiral outside to inside idea

That is my small idea for program, that produce horizontal XY spiral face clean. Analog to Cycle 5 but it work from outside to inside. Basic, that can use any tool to produce any diameter, but keep in mind that it is stupid to use 50mm to try spiral on 30mm surface. From other hand, with 20mm endmill is quite nice to produce 100mm cylinder face

Keep in mind also that depending of the tool size the start point can be very different. In example if we clean 65mm diameter with 20 or 10mm will give different start point and if there is jaw or something can be crashed or milled

Here is the program if you wish be free to use it:

0 BEGIN PGM test MM
1 BLK FORM 0.1 Z X-36 Y-36 Z-1
2 BLK FORM 0.2 X+36 Y+36 Z+1
3 TOOL CALL 5 Z S2500
4 ;------------------------------
5 Q1 = 65 ;diameter of piece
6 ;------------------------------
7 Q2 = ( Q1 / 2 ) ;diameter / 2
8 Q3 = Q2 + Q108 + 3 ;safe stop
9 ;Q108-take tool R from offset list
10 Q4 = ( 1.2 * Q108 ) / 360 ;step spiral
11 Q5 = INT ( Q2 / Q4 ) ;how many turns
12 Q6 = Q5 ;counter for repeat
13 Q7 = INT ( ( FRAC ( Q5 / 360 ) ) * 360 )
14 ;Q7-calculate start position
15 ;------------------------------
16 CC X+0 Y+0
17 LP PR+Q3 PA+Q7 R0 FMAX
18 L Z+2 R0 FMAX M3
19 L Z-0.2 R0 F3000
20 LP PR+Q2 PA+Q7 R0
21 CP IPA+360 DR-
22 LBL 1
23 LP PR+Q2 PA+Q5 R0
24 Q5 = Q5 - 1
25 Q2 = Q2 - Q4
26 CALL LBL 1 REPQ6
27 L Z+2 R0 F2000 M2
28 END PGM test MM