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


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-01-2008, 01:15 PM
ynnek's Avatar  
Join Date: Apr 2008
Location: USA
Posts: 66
ynnek is on a distinguished road
Question Variable pitch screw

Looking for some info on how to program such a monster. It has become a tough task trying to create a 3d model in TurboCAD v15 Professional Mechanical to generate the code from. But I think I may be over complicating it. I am begining to think it would be easier to code by hand, I just need a starting point.
I know this was a very vague post, I am merely trying to understand what needs to be done. The screw I will cut will made from UHMW or Delrin with a stainless steel thru shaft, the machine I will cut this on will be a CNC router (to be built or bought in the near future) with a 4th axis. I may be building one if I do not get one purchased soon, as of now I have no machine specs, just looking for theory.

here is a link to the turbocad user forum thread on this subject
Can anyone help?
Reply With Quote

  #2  
Old 08-02-2008, 12:08 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Someone else was asking about this not too long ago. 4th axis wrap will do the trick and you are correct, it is quite simple to hand code it once you understand what is going on. A full scale model does very little good when it comes time to machine it other than unwinding the helix on each side of the groove.

Have a read here to get started:

http://www.cnczone.com/forums/showthread.php?t=60323
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 08-02-2008, 09:49 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Are determined to do it with a router?

G32 on a lathe allows variable pitch threading.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4   Ban this user!
Old 08-02-2008, 10:50 AM
ynnek's Avatar  
Join Date: Apr 2008
Location: USA
Posts: 66
ynnek is on a distinguished road

Originally Posted by Geof View Post
Are determined to do it with a router?

G32 on a lathe allows variable pitch threading.
Yeah, cuz I will be getting a 4x8 router to build the setup parts for our filling lines. I just figured with a machine that large I could install a 4th axis & leave it in place just for making the variable pitch infeed screws. With that being said, can I not control the 4th axis like a lathe? Or is it not that simple?

Newbie to CNC, but been doing machine work for 26 years.
Reply With Quote

  #5   Ban this user!
Old 08-02-2008, 10:59 AM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

are you talking about a feedscrew, like a augar? or a timing screw?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-02-2008, 12:05 PM
ynnek's Avatar  
Join Date: Apr 2008
Location: USA
Posts: 66
ynnek is on a distinguished road
Smile

Originally Posted by jamesweed View Post
are you talking about a feedscrew, like a augar? or a timing screw?
Yes, it is an infeed screw to a rotary filler. It has to be timed with a starwheel. The profile of the thread varies with the shape of the bottles being fed into the machine. We run 3 basic shapes of bottles, they are round, oval, & rectangular.
Reply With Quote

  #7   Ban this user!
Old 08-02-2008, 12:35 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by ynnek View Post
....install a 4th axis & leave it in place just for making the variable pitch infeed screws. With that being said, can I not control the 4th axis like a lathe? Or is it not that simple?

Newbie to CNC, but been doing machine work for 26 years.
Controlling a 4th axis like a lathe is not possible.

Hu's approach will work, some machines actually have this ability in the control to map the Y axis onto the A axis.

You could even program it by hand the hard way, which could be worthwhile if you are doing a lot and quick machining is important. But it would be very tedious to fake a continuously variable lead by using a lot of 90 degree rotations each at a constant lead; I think it could be done using several incremental subroutines.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #8   Ban this user!
Old 08-02-2008, 07:34 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

I work on a rotary mill producing feedscrews for the plastics and food industeries. My B axis can rotate 99000 degrees before it has to be unwound. ive made a couple of "fake" variable lead screws but what I did was change pitch every .500 inch. I dont understand the y axis fakeout...what we do is this...360/2.0=180multiplier. so if Xaxis moves 5.0 then A axis will rotate 900 degrees to maintain 2.0 pitch(5*180)and so on. im using mostly carbide endmills to mill with. i have 4 axis but my Y axis mostly stays on centerline of part. Am I on the same page as you with this line of thought? If I can be of more help, let me know.
Reply With Quote

  #9   Ban this user!
Old 08-02-2008, 09:06 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

This is the macro I used on these "variable" pitch screws. This macro did all the math to find all the A axis moves. Lots of math to find degree moves on a screw. I use programmed Casio caculators to help with the tons of math to find all the degree moves on feed screws. Not hard math, just lots of it. Not that I expect that you can use this macro on a cnc router, but just to show it can be done. Our 3 custom made 3-4 axis rotary mills are 100% programmed and operated with macro type programs.

%
(PROGRAM SETS FLIGHT WIDTH)
(ON BACKSIDE IF #33=1)
(**MILL BACKSIDE?** 1=YES 0=NO )
#33=
(**ENDMILL DIA.?**)
#32=
(ACTUAL O.D.?)
#11=
(FLIGHT WIDTH?)
#12=
(SMALL LEAD MULTI ?)
#13=
(LARGE LEAD MULTI ?)
#14=
(LEAD CHANGE START?)
#16=
(LEAD CHANGE ENDPOINT?)
#17=
(HOW MANY LEAD CHANGES?)
#15=
(FLIGHT LENGTH?)
#2=
(PROGRAM DEPTH?)
#20=
(FEED RATE?)
#10=
(SPINDLE SPEED?)
#18=
(**********EXIT EDITOR**********)
M98P4
G90
#9=1
#500=#13
#510=[#17-#16]
#510=[#510/#15](X(?)PER LEAD CHANGE)
#511=[#13-#14]
#15=#15+1
#511=[#511/#15](MULTI CHANGE)
#15=#15-1
#500=[#500+#511]
#1=#16 (CURRENT X POSITION)
N1 (MATH TO SET FLIGHT WIDTH)
#500=#500-#511(SMALL LEAD)
#505=#500-#511(LARGER LEAD)
IF[#33EQ0]GOTO2(FRONT OR BACK?)
#29=[#12+#32]
#26=[#11*3.141593]
#27=[360/#500]
#27=[#27/#26]
#28=ATAN[#27]/[#26]
#27=#29/COS[#28]
#512=#27
#27=[#27*#500](A ANSWER)
#8=[-#27]
#30=[360/#505]
#30=[#30/#26]
#31=ATAN[#30]/[#26]
#30=#29/COS[#31]
#513=#30(LARGE X ANSWER)
#514=#513-#512(DIFFERENCE)
#512=0
IF[#514LE0]GOTO2
#27=[#514*#505](BARRIER MATH)
#28=[#514-#28]
#28=[#27/#500]
#28=[#514/#28]
#27=[#514*#28]
#3=#27 (FINAL ANSWER TO - )
N2
IF[#9EQ1]GOTO4
#1=[#1+#510-#3](ACTUAL X POSITION)
#25=[#510-#3]
GOTO5
N4 (SETS METER ZONE)
#1=[#1+#513-#3]
#25=#1
#513=0
N5
#25=[#25*#500]
#6=[#6+#25] (ACTUAL A POSITION)
#3=0
#514=0
IF[#9EQ0]GOTO9
M3S#18
M00(**READY TO START**)
G0A[#8](*SETS ACTUAL FLIGHT WIDTH*)
G70A0
GX-#1A[#6](**RAPID TO START**)
G1F1Z-#20
#9=0
#8=0
N9
G1F#10X-#1A[#6](*PROGRAMMED MOVE*)
IF[#1GE#17]GOTO3
#504=[#504+1](RESTART COUNTER(?))
GOTO1
N3
#7=[#2-#1]
#25=[#7*#14]
#6=[#6+#25]
G1F#10X-#2A[#6](*PROGRAMMED MOVE*)
G0Z0
X0A0

#500=0
#510=0
#511=0
#505=0
#512=0
#513=0
#514=0
#504=0
M2
%
Reply With Quote

  #10   Ban this user!
Old 08-03-2008, 02:53 PM
ynnek's Avatar  
Join Date: Apr 2008
Location: USA
Posts: 66
ynnek is on a distinguished road
Smile

Originally Posted by jamesweed View Post
I work on a rotary mill producing feedscrews for the plastics and food industeries. My B axis can rotate 99000 degrees before it has to be unwound. ive made a couple of "fake" variable lead screws but what I did was change pitch every .500 inch. I dont understand the y axis fakeout...what we do is this...360/2.0=180multiplier. so if Xaxis moves 5.0 then A axis will rotate 900 degrees to maintain 2.0 pitch(5*180)and so on. im using mostly carbide endmills to mill with. i have 4 axis but my Y axis mostly stays on centerline of part. Am I on the same page as you with this line of thought? If I can be of more help, let me know.
This all looks very promising. I will have to learn more on CNC programming before I completely understand this. My brother has some experience on HAAS & Citizen 7 axis machining centers, I will be working with him on this. I will see what he thinks Monday. I am sure this will be a very big help.

Thanks a bunch. This is starting to remind me of when I was learning Visual Basic. I went from forum to forum asking questions.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-04-2008, 07:54 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,040
Kiwi is on a distinguished road

ynnek
I'm working on a VB program to generate variable helix code. If you post the specs of variable pitch screw, I'll try and produce some code for you.
eg. Start Pitch, Mid Pitch, End Pitch and Spacings.
Reply With Quote

  #12   Ban this user!
Old 08-04-2008, 06:26 PM
ynnek's Avatar  
Join Date: Apr 2008
Location: USA
Posts: 66
ynnek is on a distinguished road
Talking

Originally Posted by Kiwi View Post
ynnek
I'm working on a VB program to generate variable helix code. If you post the specs of variable pitch screw, I'll try and produce some code for you.
eg. Start Pitch, Mid Pitch, End Pitch and Spacings.
I will get you some specs. As I said earlier in the post the profile of the thread will be either round, rectangular, or oval. Is your VB program going to be capable of generating the code for 4th axis milling?

BTW, thanks for the reply. I have downloaded a trial of MeshCAM & it looks promising as it has 4th axis capability. I will just have to be able to build a 3D solid model to work from.
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
Motor gearing and screw pitch? viroy Linear and Rotary Motion 1 04-04-2008 11:33 AM
EMC2 variable pitch / variable diameter threading. samco General Metalwork Discussion 0 03-09-2008 01:40 PM
what bearing fit with acme screw 1/2 -10(for cheap ball screw) apex Linear and Rotary Motion 4 07-27-2007 11:15 AM
What speed and pitch ball screw George Benchtop Machines 0 01-08-2006 12:14 PM
Ball screw size/pitch? jakk100 DIY-CNC Router Table Machines 7 06-18-2003 10:21 AM




All times are GMT -5. The time now is 10:15 PM.





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