fellesverkstedet / Bark-beetle-parametric-toolpaths

A grasshopper plugin for digital fabrication. Enables direct fabrication of geometry with 3D printers, CNC milling, Laser cutters, Robot arms and more. Also featuring 1:1 augmented reality toolpath projections.
97 stars 18 forks source link

How to generate Gcode? #61

Open zohozer opened 4 years ago

zohozer commented 4 years ago

Hi. I just installed BarkBeetle and I am trying to generate some Gcode for a MasterWood machine, but unfortunately I can't find a way to start the generation of the Gcode. I made all the setup as described on the front-page but I have a folder with a bunch of .sbp files that are not containing the actual generated Gcode.

NewProject

How I can get a preview of the toolpaths like in this picture?

NewProject.zip

Siemenc commented 4 years ago

If you zoom out in grasshopper there's a button under Post Processor settings that says make gcode not shopbot code: image image This will create .NC files. Let me know if this works for you.

zohozer commented 4 years ago

Unfortunately I can't get the results I need. Now I get the ShopBot code in .nc files.

Capture result

Actually nothing seems to be calculated, only the headers are there without any really Gcode.

zohozer commented 4 years ago

Also, forgot to mention, I can't get any preview of the tool-paths as shown in the picture from the original post.

Siemenc commented 4 years ago

Hi @zohozer,

You are actually right. That's a clear bug. But fortunately this is an easy fix which you can do before I have time to fix this in the current verison on github: Zoom out to see the canvas and then zoom in on this part on the right, above the blue panels: image Here you can switch the output extensions: Link .NC to 0 and .sbp to 1. image And then in your case you'll need to turn "Make shopbotcode not g-code" and "Include start code" to False again. I recreated these steps on your part and then I get the code streaming to the correct folder.

image

A few extra things to note:

zohozer commented 4 years ago

Thank you. I used Rhino7 WIP.

Switching back to Rhino6, now I do have the Gcode line visualisation on viewport but the generated files still are missing the Gcode inside. I do only have the header for my CNC machine that I declared on the "Custom start G-code" panel.

=============

% |1 3DFinish1 |2 0 |3 1 |4 500.000 |5 47.991 |6 200.000 |7 0 0 0 0 |8 0 |9 |10 |11 |12 |13 |14 G0 Z25 ;jog to material height G92 Z0 ; make top of material Z zero G1 F3600 Z14 M3 S18000 ; start spindle and set spindle speed G4 P5 ;wait a few seconds for the spindle to start M5

zohozer commented 4 years ago

This is how looks the toolpath on Rhino:

Parallel_Finish

and this is what I do want to achieve (screenshot from Alphacam):

Alphacam_Parallel_Finish

In alphacam I can limit the mechanisation to a boundary, in this case the green square lines.

It is possible to add a boundary limit also in Bark-Beetle?