![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
| 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? |
|
#2
| ||||
| ||||
| 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) |
|
#4
| ||||
| ||||
| Newbie to CNC, but been doing machine work for 26 years. |
|
#6
| ||||
| ||||
|
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. |
|
#7
| |||
| |||
| 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. |
|
#8
| ||||
| ||||
| 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. |
|
#9
| ||||
| ||||
| 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 % |
|
#10
| ||||
| ||||
Thanks a bunch. This is starting to remind me of when I was learning Visual Basic. I went from forum to forum asking questions. |
| Sponsored Links |
|
#12
| ||||
| ||||
| 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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |