Gallery, Projects and General > How do I??
Maths help please: Approximating a Flat Iteratively
awemawson:
It looks like negative angles ARE acceptable to the Cosine function.
I've modified the program to give the -30 offset and taken my luck in my hands and cut metal :bugeye:
We have a flat, but displaced in X by about 9 mm so tweaking required
Youtube video uploading as I type
Archie Opteryx:
Andrew, that's brilliant :clap: :clap: :clap:
I don't know why the flat is offset. Your program looks OK to me. I wonder if your X zero is offset for some reason. Is there a work offset or tool compensation in effect? Perhaps you could move to X0 (with a suitably large value of Z, of course) and see if the centre of the cutter lines up with the centre of the spindle. Another check would be to move to X = (25+10)/2 to see if the cutter just touches the edge of the stock.
I assume the cutter diameter really is 10mm. Looks pretty close though, compared with the 25mm stock.
Other than that, I can only think of something weird happening in the program...
awemawson:
Archie,
T9 (the endmill) has a suitable Z offset but it's X offset is zero. Yes it lines up with the spindle centre when sent to X=0, and is a true 10 mm diameter.
I'll do a few more experiments tomorrow and see what's happening.
Archie Opteryx:
Watching the video again, I notice that when the cutter moves to R1, the "stand clear" position, and the spindle rotates (lines N0115 and N0120), a small cut is made. R1 = R13 + 10 = 25 + 10 = 35, which should keep the cutter well clear of the work.
With a 25mm diameter stock and a 10mm diameter cutter, the point of contact will be at X = (25+10)/2, exactly half that figure. Strange coincidence?
Is it possible that X is in "diameter mode", so when you ask it for 10mm it assumes you want 10mm diameter and only moves 5mm?
I know some lathe DROs can be switched between reading radius and diameter...
awemawson:
Theoretically it's always working in diameter mode but as I say I'll experiment in the morning.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version