LaserWeb / deprecated-LaserWeb1

Deprecated: use http://github.com/openhardwarecoza/LaserWeb3 instead
186 stars 45 forks source link

Add support for Drag knife #118

Closed rafffel closed 8 years ago

rafffel commented 8 years ago

Can be cool to enhance you're open software to drag knife. i have on the way an open source plotter with drag knife. i actually use DXF2Gcode(https://sourceforge.net/projects/dxf2gcode/?source=navbar) for generate the drag knife gcode with swiwel specific due to offset rotating cutter Source is avaible

ghost commented 8 years ago

Definitely will be adding! (: On 7 Apr 2016 12:03, "rafffel" notifications@github.com wrote:

Can be cool to enhance you're open software to drag knife. i have on the way an open source plotter with drag knife. i actually use DXF2Gcode( https://sourceforge.net/projects/dxf2gcode/?source=navbar) for generate the drag knife gcode with swiwel specific due to offset rotating cutter Source is avaible

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/openhardwarecoza/LaserWeb/issues/118

ghost commented 8 years ago

Offset is already available, check github.com/openhardwarecoza/LaserWeb2

Enable the Tool Offset under the gear icon on LaserWeb2 -> Application Settings.

Whats missing for proper drag knife is some simple Z moves. I'll try adding that tonight if time allows On 7 Apr 2016 13:53, "Peter van der Walt (Gmail)" peter.plaaswerf@gmail.com wrote:

Definitely will be adding! (: On 7 Apr 2016 12:03, "rafffel" notifications@github.com wrote:

Can be cool to enhance you're open software to drag knife. i have on the way an open source plotter with drag knife. i actually use DXF2Gcode( https://sourceforge.net/projects/dxf2gcode/?source=navbar) for generate the drag knife gcode with swiwel specific due to offset rotating cutter Source is avaible

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/openhardwarecoza/LaserWeb/issues/118

rafffel commented 8 years ago

Wow good to ear :)

the most important part in drag knife is swiwel rotation : http://www.cambam.co.uk/forum/index.php?action=dlattach;topic=3628.0;attach=11582

Due to offset of knife (that's allow to knife to rotate into the microbearing) for rotate the knife to cut path need some offset in gcode path specific to drag knife/ It's was really tricky move that i have didn't noticed until i have done my own plotter and try a simple gcode out of simple 3d printer slicer ^^'

i'm going to check the you're laserweb2 :)

ghost commented 8 years ago

Nice demonstration of what's needed - though that's not in there yet. But do have a play with what is, and lets see how far off we are (: On 7 Apr 2016 19:38, "rafffel" notifications@github.com wrote:

Wow good to ear :)

the most important part in drag knife is swiwel rotation : http://www.cambam.co.uk/forum/index.php?action=dlattach;topic=3628.0;attach=11582

Due to offset of knife (that's allow to knife to rotate into the microbearing) for rotate the knife to cut path need some offset in gcode path specific to drag knife/ It's was really tricky move that i have didn't noticed until i have done my own plotter and try a simple gcode out of simple 3d printer slicer ^^'

i'm going to check the you're laserweb2 :)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/openhardwarecoza/LaserWeb/issues/118#issuecomment-207019224

ghost commented 8 years ago

Looks like we have something to see how its calculated here http://donektools.com/free-cnc-router-software/links-2/ On 7 Apr 2016 19:44, "Peter van der Walt (Gmail)" peter.plaaswerf@gmail.com wrote:

Nice demonstration of what's needed - though that's not in there yet. But do have a play with what is, and lets see how far off we are (: On 7 Apr 2016 19:38, "rafffel" notifications@github.com wrote:

Wow good to ear :)

the most important part in drag knife is swiwel rotation : http://www.cambam.co.uk/forum/index.php?action=dlattach;topic=3628.0;attach=11582

Due to offset of knife (that's allow to knife to rotate into the microbearing) for rotate the knife to cut path need some offset in gcode path specific to drag knife/ It's was really tricky move that i have didn't noticed until i have done my own plotter and try a simple gcode out of simple 3d printer slicer ^^'

i'm going to check the you're laserweb2 :)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/openhardwarecoza/LaserWeb/issues/118#issuecomment-207019224

rafffel commented 8 years ago

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/core/stmove.py

the main calculation in DXf2Gcode is function make_swivelknife_move at line 145 The logic is dependen of 2 parameter angle threshold for do a swiwel move and offset of knife (offset from center of microbearing) you need to go a bit far from the rotation point once (endpoint + offset) then do a rotation around this point for rotate knife in the right angle to drag and drag to next threshold angle detected.

rafffel commented 8 years ago

maybe need to move this enchancement to laserweb2 if i got some time next week i will look more deeper in you're code for add some code about plotter drag knife (like swiwel if it isn't done and tweak for pressure control).

FYI my plotter is at his state : https://www.youtube.com/watch?v=r97FQ8E5q-I

But z motor doesn't great IMHO i would move to a servo motor with gear for control pressure applied by spring. And i want to get an eady vinyl adhesive load (so that's my problem :p )

I also use Marlin firmware With ramps for control all of that i will look about gcode customisation (seem to view some possibility already done :) ).

ghost commented 8 years ago

Any coding help is welcomed with open arms! On 7 Apr 2016 20:11, "rafffel" notifications@github.com wrote:

maybe need to move this enchancement to laserweb2 if i got some time next week i will look more deeper in you're code for add some code about plotter drag knife (like swiwel if it isn't done and tweak for pressure control).

FYI my plotter is at his state : https://www.youtube.com/watch?v=r97FQ8E5q-I

But z motor doesn't great IMHO i would move to a servo motor with gear for control pressure applied by spring. And i want to get an eady vinyl adhesive load (so that's my problem :p )

I also use Marlin firmware With ramps for control all of that i will look about gcode customisation (seem to view some possibility already done :) ).

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/openhardwarecoza/LaserWeb/issues/118#issuecomment-207032898

ghost commented 8 years ago

Gave you push access to the LaserWeb2 repo