CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-22-2010, 01:45 PM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road
parametric program for spiral helical interpolation

Hello, I'm new in this forum, and spent 2 hours searching something about parametric program for spiral helical interpolation for HEIDENHAIN and nothing founded...

I think is not strange need so maybe someone can help me. Will be nice even if you send a "non-parametric" (I mean with fixed values) program!! Or maybe someone knows where I can ask.

Thank you
Reply With Quote

  #2   Ban this user!
Old 05-22-2010, 08:07 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

This program example will cut a 100mm dia hole 50mm deep at XY zero: -

0 BEGIN PGM 1 MM
1 TOOL CALL 1 Z S1000
2 M6
3 LBL 1
3 CC X0 Y0 ; DEFINES ORIGIN OF POLAR CO-ORDINATES
4 L X0 Y0 R0 F5000 M3
5 L Z0 M8
6 LP PA0 PR50 RL F500 ; MOVES TO START POINT WITH CUTTER COMP
7 CP IPA5400 Z-50 DR+ ; COMPLETES 15 REVOLUTIONS. THIS IS THE MAXIMUM ANGULAR MOVEMENT THE CONTROL WILL TAKE ON ONE LINE.
8 CP IPA360 DR+ ; BOTTOM PASS - MAY OR MAY NOT BE REQUIRED
9 L X0 Y0 R0
10 L Z0
11 LBL 0
12 STOP M30
13 END PGM 1 MM

Notation may not be perfect as its from memory. Obviously values are replaced with Qs if you are making a parametric cycle, and you will need to use some logic functions to work out total angular movement if you require a specific pitch or if you want to specify direction, bottom pass, internal/external options.

Let us know if you need further clarification (ie if you haven't worked with polar co-ordinates before).

DP

Last edited by christinandavid; 05-23-2010 at 02:30 AM.
Reply With Quote

  #3   Ban this user!
Old 05-23-2010, 06:25 AM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road

If I understood right, it's helical but not spiral... I mean is helical tapered (or conical, spiral...is the same) interpolation that I asked.

Thank you anyway christiandavid. More help?
Reply With Quote

  #4   Ban this user!
Old 05-23-2010, 06:58 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

So you need to produce an involute spiral path in 1st & 2nd axis(X&Y) while feeding in 3rd axis(Z)?

For example to machine a conical surface or tapered thread?

I know this can be achieved using Incremental Linear Polar commands.

If you could give me more information on what you need to achieve, I can give an example program (I don't have access to Heidenhain Controller so forgive any mistakes).
Reply With Quote

  #5   Ban this user!
Old 05-23-2010, 07:11 AM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road

Yes, that is what i want.

I want to mill a hole with helical spiral movement, because is a hole with this end surface (sorry for my limited English).

And what's your mode? I guess you use "sin" and "cos" functions.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-23-2010, 07:18 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Lets make sure we understand each other!

If you simply need to machine a flat-bottomed hole using a spiral path I suggest you use CYCL DEF 5.0 (Circular Pocket).

If you are trying to achieve something more I need more explanation.

DP
Reply With Quote

  #7   Ban this user!
Old 05-23-2010, 07:25 AM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road

I need as you said "an involute spiral path in 1st & 2nd axis(X&Y) while feeding in 3rd axis(Z)".

I guess the cycle 5 is the same as the new cycle 252. But the surface of the hole I need to mill is tapered.
Reply With Quote

  #8   Ban this user!
Old 05-23-2010, 07:33 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

OK, so you can rough machine the hole using drill and/or circular pocket, you just need to finish the sides of the hole to create a tapered hole?

DP
Reply With Quote

  #9   Ban this user!
Old 05-23-2010, 08:01 AM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road

I want to mill with this interpolation because the next tool is a tapered reamer (this was the word I can't find) and like this the reamer will have the same quantity of material in the sides.

(I also have a paremetric program for Fagor but doesn't understand totally)
Reply With Quote

  #10   Ban this user!
Old 05-23-2010, 08:17 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

What are the dimensions of your reamer? The only tapered reamers I have used were for producing a hole for a tapered dowel pin. These have quite a shallow taper angle and can easily ream out from a parallel drilled hole.


Anyway, here is an example of how you could approach a conical motion: -

; 1st section USER DEFINED PARAMETERS
Q1=0. ; X POSITION
Q2=0. ; Y POSITION
Q3=0. ; INITIAL Z POSITION
Q4=-50. ; ULTIMATE Z POSITION
Q5=50. ; INITIAL RADIUS
Q6=30. ; ULTIMATE RADIUS
Q7=-2. ; Z FEED PER REVOLUTION (PITCH)
Q8=180. ; POINTS PER REVOLUTION (CIRCULARITY)
Q9=100. ; FEEDRATE
;
; 2nd section CALCULATED PARAMETERS
Q10=Q4-Q3 ; TOTAL Z SHIFT (-50 in this case)
Q11=Q10/Q7 ; REVOLUTIONS REQUIRED (25)
Q12=360./Q8 ; ANGULAR INCREMENT (.1)
Q13=Q8*Q11 ; TOTAL STEPS REQUIRED (4500)
Q14=Q6-Q5 ; TOTAL RADIAL SHIFT (-20)
Q15=Q14/Q13 ; RADIAL INCREMENT (-0.004)
Q16=Q10/Q13 ; Z INCREMENT (-0.011)
;
L X+Q1 Y+Q2 R0 FMAX ;
CC IX+0. IY+0. ;
L Z+Q3 ;
LP PR+Q5 PA+0. RL FQ9 ;
;
LBL 1 ;
LP IPR+Q15 IPA+Q11 IZ+Q16;
Q13=Q13-1. ;
FN:? IF Q12 GT 0. GOTO (LBL)1 ; I FORGET THE FN NUMBER...
LBL 0 ;
L X+Q1 Y+Q2 R0;
L Z+Q3 FMAX;

As I said before, I have no access to Heidenhain Controller at the moment so I cannot prove out this program - I believe you have a modern controller so you should be able to input the formulae as I have typed them. You could input Q1-Q9 into your main program then call a sub-program to calculate remaining Qs and perform the motions.

This is just one way of approaching the problem and you may wish to input the taper ANGLE for your application, rather than the start/finish radius.
If this is the case you should input a start radius and the angle into the first section - then calculate the finish radius in the second section using trigonometric functions.

I hope this helps. Remember it is quite basic and is only written to work in one direction. It should be a useful starting point and hopefully, somebody else out there will have some input and/or alternative solutions for you.

DP
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-24-2010, 06:30 AM
 
Join Date: May 2010
Location: basque country
Posts: 22
Bastida is on a distinguished road

Hi Christinandavid!

I really thank you very much for the program!! :-))
There are a couple of thing I don't understand:
Isn't it Q12=360/Q8=2 (instead of 0.1??)
And what you use Q12 for?

And if you discount 1 to Q13, isn't it IF Q13 GT 0. GOTO LBL 1? (instead of Q12??)

I'm a little confused. Thank you!!
Reply With Quote

  #12   Ban this user!
Old 05-24-2010, 08:45 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

You are quite correct. Well done, you passed my test...

Seriously, I changed my mind halfway through and my wife wanted the computer back, so I got a bit mixed up.

Let me know if you get it working, or if you spot any other mistakes.

; 1st section USER DEFINED PARAMETERS
Q1=0. ; X POSITION
Q2=0. ; Y POSITION
Q3=0. ; INITIAL Z POSITION
Q4=-50. ; ULTIMATE Z POSITION
Q5=50. ; INITIAL RADIUS
Q6=30. ; ULTIMATE RADIUS
Q7=-2. ; Z FEED PER REVOLUTION (PITCH)
Q8=180. ; POINTS PER REVOLUTION (CIRCULARITY)
Q9=100. ; FEEDRATE
;
; 2nd section CALCULATED PARAMETERS
Q10=Q4-Q3 ; TOTAL Z SHIFT (-50 in this case)
Q11=Q10/Q7 ; REVOLUTIONS REQUIRED (25)
Q12=360./Q8 ; ANGULAR INCREMENT (2.)
Q13=Q8*Q11 ; TOTAL STEPS REQUIRED (4500)
Q14=Q6-Q5 ; TOTAL RADIAL SHIFT (-20)
Q15=Q14/Q13 ; RADIAL INCREMENT (-0.004)
Q16=Q10/Q13 ; Z INCREMENT (-0.011)
;
L X+Q1 Y+Q2 R0 FMAX ;
CC IX+0. IY+0. ;
L Z+Q3 ;
LP PR+Q5 PA+0. RL FQ9 ;
;
LBL 1 ;
LP IPR+Q15 IPA+Q12 IZ+Q16;
Q13=Q13-1. ;
FN:? IF Q13 GT 0. GOTO (LBL)1 ; I FORGET THE FN NUMBER...
LBL 0 ;
L X+Q1 Y+Q2 R0;
L Z+Q3 FMAX;
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
helical interpolation Montabelli Mastercam 2 04-10-2010 09:34 PM
Helical Interoplation (Spiral Cut) kjm30 G-Code Programing 10 02-01-2010 08:29 PM
MV 35/40 Helical Interpolation Millem General Metal Working Machines 2 12-12-2007 08:54 AM
hHow to smooth a program thats got a loop? (helical interpolation) Darc G-Code Programing 6 08-22-2006 08:47 AM
Helical Interpolation dbcoop11 Bridgeport and Hardinge Mills 4 12-31-2004 10:15 AM




All times are GMT -5. The time now is 01:03 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361