Gallery, Projects and General > How do I?? |
Maths failure seeks help.... |
(1/2) > >> |
AdeV:
I'd like to cut some spokes in a 2" radius disc. The manual mill is occupied just now, otherwise I'd use it & the rotary table; but I also have a shiny(ish) new(ish) CNC machine sitting idle, so I figured - what the hell, programming time! Not entirely unexpectedly, I am failing abjectly at what I want to do... Basically, I want to leave a central 7mm radius boss, and approx 5mm radius outside rim. I've located my wheel centre at x=y=0. I figured I'd use the rather handy polar coords function on my Heidenhain 151 controller.... So, in "English", the program does the following: Locates @ 0,0 Set circle centre Moves out 7mm @ angle zero Lowers cutter Moves out 13mm @ angle zero Arcs 60 degrees anticlockwise [this is where it all got a bit weird in my head] Move -13mm @ angle zero Raise cutter Move -7mm @ angle zero (back to circle centre) Rotate coordinate system 60 degrees Repeat above 5 more times. In theory, I thought the above should cut 60 degree slices based on the original circle centre; so clearly I need to offset the cutter a few MMs each time around, to leave some actual spokes Even if the program apparently ran from the same centre point (it doesn't) on each rotation, the angles obviously won't leave any actual spokes... I haven't invoked cutter radius / tool path compensation yet, which won't help... So; is there a set of incantations which will cut some nice spokes? I'd be quite happy with straight ones for the time being, and no fancy variable radiuses... I'm using a 5mm cutter (smallest one I haven't broken). |
sparky961:
Ade, Though I definitely applaud and encourage your manual programming, I have to ask why you don't use a CAM package to generate the code? Personally, I find being able to visualize the toolpath before going to the machine means that I can make a perfect part the first time almost every time. -Sparky |
Stilldrillin:
Ade. It's a very long time since I did that sort of thing. And me brain's getting old........ You're cutting out a triangle? Start, X0 Y7. G01 X3. Y20. X-3. Y20 R40. X0 Y7. Rotate 60*. Repeat. Stop laughing! :palm: David D |
AdeV:
Sparky - as of yet, I've not learned how to do CAD properly, let alone CAM... I might be able to draw it in Solidworks, although there's no guarantee... but then I have to get it translated into either Heidenhain (which I sort-of know), or G-code (which I don't)... Obviously, I _do_ need to figure out all that stuff, but I reckoned, surely there must be some maths out there to do the job, that I could adapt? David - not laughing, puzzling a bit I must admit. Can you convert that into human speak? I've not figured out how to program in G-code yet... |
Stilldrillin:
--- Quote from: AdeV on December 16, 2012, 07:55:47 AM ---David - not laughing, puzzling a bit I must admit. Can you convert that into human speak? I've not figured out how to program in G-code yet... --- End quote --- Ah! Right, Ade. You're cutting a triangle, behind the f/wheel centre, which is X0 Y0. (X&Y coordinates are approximate, only, from now on). Rapid cutter, to triangle peak, X0 Y7. Feed to "depth". Feed to X3. Y20. (27mm out from centre. 3mm to the right of centre line. Giving a spoke length of 13mm + cttr dia). Feed to the mirror image position, X-3. Using a radius of 20mm. Feed back to X0 Y7. Develop from there! It was a lot easier to do on me old Takisawa. Than try to explain on here......... David D |
Navigation |
Message Index |
Next page |