ThomasHeb / 4AxisFoamCutter

Arduino based CNC foam cutter with display and SD-Card
14 stars 8 forks source link

SketchUp Foamcutter.rb does not generate GCODE as shown #9

Closed ThomasHeb closed 3 years ago

ThomasHeb commented 3 years ago

From youtube.com

After I select the paths, I am not getting the GCODE window to pop up like yours does at 5:49 Any idea why???

Please send me your SketchUp file for a deeper analysis.

Regards Thomas

CWO4 commented 3 years ago

Here is the file requested. Very simple cut going from square to round. It is on the same SketchUp file you included as an example. And also, the "Tower" gcode you included is not running correctly either. The code actually runs and cuts, but the shapes are all wrong.

Tower.zip

CWO4 commented 3 years ago

Here is a photo of the shape that results from the gcode that is produced.

PXL_20201014_183112009

ThomasHeb commented 3 years ago

thank you. I will check the code on my machine tomorrow. was your machine already parametrized and did you made some successful cuts before?

the cut out looks a bit like axis-traveling for x and y is not ok and positioning of the foam is not correct. but this can also be an issue due to missing post process (square to round is a complex shape and needs a post process with machine specific setup to calculate axis traveling from block shape, I will include some pictures tomorrow for better understandings)

CWO4 commented 3 years ago

Yes, my machine is working perfectly. I built the one posted by RCKeith on YouTube (Keith Howlett) and it has been producing perfect wings. I just wanted a way to get fuselage sections cut and I really like SketchUp. SketchUp can generate .stl files for my 3D printing, but no GCODE.

Tom

On Wed, Oct 14, 2020 at 2:56 PM ThomasHeb notifications@github.com wrote:

thank you. I will check the code on my machine tomorrow. was your machine already parametrized and did you made some successful cuts before?

the cut out looks a bit like axis-traveling for x and y is not ok and positioning of the foam is not correct. but this can also be an issue due to missing post process (square to round is a complex shape and needs a post process to calculate axis traveling from block shape, I will include some pictures tomorrow for better understanding)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ThomasHeb/4AxisFoamCutter/issues/9#issuecomment-708596629, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMASBBCNULKFM3NUNARHSTSKXX4NANCNFSM4SQ42IXA .

ThomasHeb commented 3 years ago

Hi Tom, using SketchUp for fuselage is exactly what I do. Your design is correct, you only missed the post process. Sketchup/Foamcutter.rb exports the two paths (left and right side) of the shape. If you do not run a post process, the foamcutter takes these paths as the machine movement. see picture below. If you add a foam somewhere in the middle, you get something between square and round. Bildschirmfoto 2020-10-15 um 06 54 33 I made a small video showing the steps and insides. postprocess.mov.zip

What is a bit strange on your photos.... the width and hight of the cutout looks different..... these should be equal.

Actually this doesn't help you, because my post processor is running on MacOS. But what I can offer is to extend the foamcutter.rb-tool with a basic post processor... but this will take some time and testing

Here you see the fuselage design of the Lo100: Bildschirmfoto 2020-10-15 um 06 59 51 IMG_3978

CWO4 commented 3 years ago

Thanks for the clarification.

I am very sorry this can't be used on a Windows machine. Too bad the software is not Java based (or other cross platform capable software) as there are a LOT of Windows users out there that would actually pay you for a program to do this since SketchUp has no other plugins that will do the job.

I will have to look elsewhere I guess.

Thanks again,

Tom

PS: You should add a note on your YouTube videos that this only works on a Mac. Will save a lot of wasted time for people using Windows.

On Thu, Oct 15, 2020 at 1:22 AM ThomasHeb notifications@github.com wrote:

Hi Tom, using SketchUp for fuselage is exactly what I do. Your design is correct, you only missed the post process. Sketchup/Foamcutter.rb exports the two paths (left and right side) of the shape. If you do not run a post process, the foamcutter takes these patches as the machine movement. see picture below. if you add a foam somewhere in the middle, you get something between square and round. [image: Bildschirmfoto 2020-10-15 um 06 54 33] https://user-images.githubusercontent.com/16707487/96078893-c6ab9300-0eb3-11eb-8495-86a0751f7499.png What is a bit strange on your photos.... the width and hight of the cutout looks different..... these should be equal. I made a small video showing the steps and insides. Actually this doesn't help you, because my post processor is running on MacOS. But what I can offer is to extend the foamcutter.rb-tool with a basic post processor... but this will take some time and testing postprocess.mov.zip https://github.com/ThomasHeb/4AxisFoamCutter/files/5382605/postprocess.mov.zip

[image: Bildschirmfoto 2020-10-15 um 06 59 51] https://user-images.githubusercontent.com/16707487/96079116-3faaea80-0eb4-11eb-910d-c83b558f2121.png [image: Bildschirmfoto 2020-10-15 um 06 59 51] https://user-images.githubusercontent.com/16707487/96079122-4174ae00-0eb4-11eb-97bc-41311a423a13.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ThomasHeb/4AxisFoamCutter/issues/9#issuecomment-708904692, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMASBCTBJ42TNTWJ2UAYILSK2BI5ANCNFSM4SQ42IXA .

ThomasHeb commented 3 years ago

Tom, stay tuned. the first SketchUp post processor is working.... I will post a demo here and hope you can support me for testing.

P.S.: Maybe someone could use my source and port it to Java.

ThomasHeb commented 3 years ago

Hi Tom,

appending you find the foamcutter_V002.rb file. Please open SketchUp, the Ruby Code Editor and load this rb file and execute it. You will find a new menu "Foam Cutter Tool PP" Bildschirmfoto 2020-10-15 um 20 22 20

I modified your example (attached tower.skp.zip). You have to add your machine dimensions at (1) and (4). the distance in between is the the distance between your axis (I used my machine width of 721mm). The shape is placed in between and is equals the position of the foam inside the machine and the thickness of the foam (distance between (2) and (3)). Bildschirmfoto 2020-10-15 um 20 17 13

Select the Foamcutter Tool PP. Select

The tool calculates the movement of the axis, draws the movements inside SketchUp. exports the gcode, including hotwire on/of, power setting and feed speed (see foamcutter settings menu). the gcode file can be executed directly. Bildschirmfoto 2020-10-15 um 20 17 55 As you can see, my machine is too small to produce this shape.... I would need to reduce the machine width.

default.gcode.zip foamcutter_V002.rb.zip Tower.skp.zip

Can you please test this?... of course you need to modify to your machine dimensions.

Limitations of that tool: Axis and shapes are parallel, the tool is not calculating shapes which are rotated! For position of machine and left/right side of the shape, the first point is used only (distance between shape is distance between first points of the paths, kind of parallel projection for each path). Bildschirmfoto 2020-10-15 um 20 40 17 The selected/blue path equals the one next to it right side, because rotation is ignored and and for position between the machine only the first point is relevant. This allows more complex cutouts and back travel of the hotwire.

Regards Thomas

CWO4 commented 3 years ago

That looks REALLY nice! I will test it tonight.

Tom

CWO4 commented 3 years ago

I am enclosing the SketchUp file modified to show my part and my machine's dimensions.

Part placement is apparently critical. However, I did manage to gee a good part after a couple of tries.

This was only my first attempt tonight. I will try more tomorrow.

Thanks again,

Tom

ThomasHeb commented 3 years ago

Hi Tom,

Thanks for the first feedback. Not everything is possible inside a simple script compared to 3D calculation in Swift, but if you have ideas and wishes, let me know!

I had several problems on my fuselage, too. the small segments have a width of 60mm and behind the wing a big difference between the left and the right shape paths, so my axis movements have been too small. I reduced operational width of the machine from 721 to 350mm and for the nose to 200mm, so I could use full axis movement to produce big angles between the axis. The nose had 2 outer and two inner cut-outs per side, which I combined in my post processor and checked visual, if the hotwire is not intersecting the final piece.

Bildschirmfoto 2020-10-16 um 05 58 42 Bildschirmfoto 2020-10-16 um 05 59 54

I tried to rebuild that in the SketchUp PP Tool and this is not possible in a single calculation. But you can calculate the 4 cutting steps separate and then copy the relevant parts from the gcode together to one big file...

Bildschirmfoto 2020-10-16 um 06 10 21

ThomasHeb commented 3 years ago

foamcutter.rb with integrated post processor is released