I will implement it for you; consider it as
a birthday present ;)
But you have to give me a while - not yet sure when I will do it.
--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gco...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-use...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's certainly an option to disable the g40
g41 g42 when using swivel knife, if you insist. I pretty much already have it
implemented (there is really hardly any math needed for this option), but not
in the GUI only when exporting to file. With the GUI it's too much of hassle,
because of the set nearest starting point, and change of direction.
I will upload it in the weekend, I think, so feel free to put it in the GUI.
Also, I will look into adding you to the sourceforge Christian
All right I have implemented the function, but it’s not yet finished (check the svn and uncomment line 862 in dxf2gcode.py).
If it needs to do a swivel action with an angle bigger than dragAngle then I set a flag (drag in ArcGeo) such that the Write_GCodefunction knows that it needs to retract to a sufficient “drag-depth”. But ATM I do not check this at Write_GCode function in Shape.py, because the source code would be a big mess (at least how I did it :P ). So this part still needs to be implemented.
ATM I have placed the function in dxf2gcode.py (updateshapewithswivelknife loc 885) such that you can see directly the result of the swivelknife option, but this code can be placed almost everywhere. If you now change the starting point of the shapes, then they are not updated, what it should if you want this option in the GUI. Because the starting point and the end point should be update such that your knife stays in the same direction each time.
Also keep in mind in the current situation you cannot mill with different infeed and final mill depth (because now with non-closed shapes it wants to cut backwards, what your knife can’t do without changing the end and starting point, or it needs to do an exact copy of the first run)
So still a few points that should be fixed/implemented. If someone wants to do that or has an nice idea please tell/go ahead
--
Well yes and no. I would say this is not
the fault of my program but the fault of the dxf file. Many of those dxf files
on the svn are terrible created. If I reproduce those shapes with autocad I got
no error at all. So I can really create al kind of difficult shapes without a
single error (if you need some example files, let me know).
The point.py "fix" you shouldn't use. That is not a fix but a try to
circumvent the true problem. How the hack can you have a geo with length
zero... That should not be possible, i.e. it means the dxf file is wrong.
The only true error you get is when you have points in the dxf file. but yeah..
how should deal with points if you use a knife. But again this does not give
traceback error, but it will just give a path that is not correct.
So honestly, I cannot reproduce the errors at all (if I have created the dxf file
decently, i.e. use autocad).
I think that would be great if you could do that Christian. Do remember that every time you change the direction or the start point of the shape you have to update the complete shape (which could be quite time consuming if you have to deal with many shapes – e.g. layer select etc).
And that the mill depth has to be changed every time the flag, drag (in ArcGeo), is set. This is needed because when this flag is set the knife makes a strong turn, which is not possible when it is too deep in the material; but it still has to “hit/cut” the material, because it has to drag, otherwise the knife will not change direction.
Thanks for finishing it
--
Tim

<drag_knife1.jpg>
JP & Christian
The GUI looked great and work well for selecting start points and changing directions, I thought screen updated very well. There are a couple of problems though, the first DXF file I tried with DXF2GCODE was the shape of a star. The GUI showed where I had selected the start point but in the g-code start point started after the end of the last arc which was at the end of path. This closed shape should not have had a swivel action at start point or at the end of path, which is the start point. Also there needs to be a place for inputting of drag knife offset,( distance from center line of spindle to tip of blade), which would determine the radius of arc for swivel action. The drag knife offset would be different if a different size blade was used or from one drag knife brand to another. The path for swivel action looked very good, just that arcs were very large, JP I think you nailed the math. Need to add bladeOffset, dragAngle and dragDepth. Second file was of some scallops results looked the same as first file with same problems. The third file is of a model airplane fuselage more complex with different layers. I have attached archive containing nc and DXF file for all tested. In addition nc files that I created using the old method to get swivel action so you could compare paths, take a look at them on a simulator.
Regards
The drag knife is now fully implemented and should work perfectly - remember to use it set maschine_type to drag_knife.
I have updated the gcode write function to support the drag depth change, also made small change with the feed rate (for all write functions) – now it no longer duplicates the previous rate, in the exported file
"Z infeed depth"/axis3_slice_depth is changed to "Z Drag depth"/axis3_slice_depth if the maschine_type is set to drag_knife.
JP
After further testing I agree with you I was always trying to figure out cut order from the drawing end. The fuselage drawing I provided in last email was not drawn correctly. I fixed mistakes that were in it and DXF2GCODE worked perfectly. Now I also know about tool setup in config file after Christian posted. Just as a note the manufacture of drag knife suggested always start cuts in a plus x attitude with blade. Maybe that is the way they have to do it with the cam software they use and sell. The drawing of the fuselage has a couple of lead in and lead out cuts I thought were needed with the old way I did swivel action to get blade ready for next cut. That effort is not needed any more with the way you set this up. You are a genius just put the blade in the attuide of first cut and let DXF2GCODE do all the work. Attached DXF file I used in my last test, nc file is results. Swivel action moves are just barely visable but with my drag knife .140" offset is all that is needed.
Thank-you for the birthday persent
Tim
On 3/24/2014 6:44 PM, JP wrote:
Hi, again :|
Well it precisely reacts how I wanted it - I have compared all your provided files. With the star: it starts at the correct point. The testOld actually starts too early - remember your knife "lags". And it should end with a swivel action! Because otherwise your knife does not end in the correct way... i.e. if I just let it end as in the testOld it will not be in the correct position to directly do another shape - now in this case you only have one shape but maybe I want to process right after it another gcode file... (as far as I could see cambam does it the exact same way, as I do it)
I think you should really test it on a working machine, and I'm pretty sure you will come to the same conclusions - with all your files.
Offset is already implemented check Christian's comment. (dragAngle, and dragDepth are partly implemented - still needs to be finished - now you have to add that little part of code manually)
So honestly I'm not gonna make a change... sorry. But I truly believe it's working correctly!!
On Monday, March 24, 2014 9:04:16 PM UTC+1, Christian Kohlöffel wrote:HI Tim,
Just checked the issue with the different starting points. I can not
confirm that. Just attached 2 parts of the exported files for same dxf.
So the s
...
...
--
Yes , a picture (foto) could say more than words.
Rg.
Iemhoff
Vom Handy gesendet.
Timothy March <timoth...@gmail.com> schrieb:
--
--