kachurovskiy / lathecode

Text format for lathe parts and other objects with circular symmetry
MIT License
10 stars 3 forks source link

Tool shapes #6

Closed Festivejelly closed 6 months ago

Festivejelly commented 7 months ago

Loving the tool so far it makes designing gcode an absolute breeze.

However my best tools are actually diamond shaped, I use ground sharp inserts designed for aluminium. But they work great on everything.

But with latheCode I can only define a rectangular or circular shaped tool.

I use DCMT and CCMT normally when facing:

https://www.shop-apt.co.uk/carbide-inserts-for-turning-uni-tip/dcgt-070202-alu-ak10-carbide-inserts-for-turning-ground-and-polished-for-aluminium-uni-tip.html https://www.shop-apt.co.uk/carbide-inserts-for-turning-uni-tip/ccgt-060202-alu-ak10-carbide-inserts-for-turning-ground-and-polished-for-aluminium-uni-tip.html

with these tools

https://www.shop-apt.co.uk/apt-93-sdjcrl-lathe-turning-tools-for-dcmt-inserts/sdjcr-1010-f07-apt-lathe-turning-tool-for-dcmt-0702-inserts.html -

So ideally I want to be able to specify this diamond type tool so that it doesnt generate plunge cuts.

So essentially if diamond tool is selected do lots of surfacing and facing to get to dimension

kachurovskiy commented 7 months ago

I've added support for angled tools, please give it a try.

Festivejelly commented 7 months ago

Sweet lord that was quick ill give it a test :)

Festivejelly commented 7 months ago

That doesnt seem to be working for me. Ive specified the tool as per the readme but it still tries to make the plunge cuts:

UNITS MM STOCK D12

TOOL ANG R0.2 L7.75 A30 NA55

L5.5 DS0 DE4 L1.5 D8 L1 D10.5

kachurovskiy commented 7 months ago

Cut logic is not dependent on the tool at the moment. It's always doing face cutting to reduce part deflection. Cutting e.g. a chess figure would be much less feasible if we thin out the part first. I'm open to supporting multiple cut strategies in the future but I wonder about real-world benefits of turning vs. plunging here.

Festivejelly commented 7 months ago

Ah I see how you mean now. I was thinking it was going to try plunging in the middle of the stock but it wont. I think plunge cuts with a surfacing pass will absolutely be sufficient here.

Festivejelly commented 6 months ago

Looking at the finish that plunge cuts do it really isnt as good as turning passes.

Take a cone plunging in multiple steps then doing a very thin finishing pass yields ugly results.

image

I hand coded this Gcode and it yields a much better surface finish. Maybe we could specify the depth of a finishing pass?

image

kachurovskiy commented 6 months ago

Can you please share the lathecode for this part?

Festivejelly commented 6 months ago

Sure its:

UNITS MM STOCK D12

TOOL RECT R0.2 L3

L5.5 DS0 DE4 L1.5 D8 L1 D10.5

kachurovskiy commented 6 months ago

Here's the toolpath I have generated for it with my local changes for the finish pass:

image

Finish depth by default is 0.1mm but can be adjusted. Would that work?

Festivejelly commented 6 months ago

That looks good. I tried specifying the finishing path cut depth before but it didnt seem to be creating that path.

kachurovskiy commented 6 months ago

@Festivejelly finish pass should work now, please give it a try.

Festivejelly commented 6 months ago

@kachurovskiy this works really well thanks for adding this. I like the animation too, nice touch! Given you've added support for the other tools and depth of cut control I think this one can be closed now. Nice work.