Grasshopper G-Code Writer for Surface Milling
In this video, we will walk through how to setup a Grasshopper definition that will write the G-code for surface milling on a 3-axis CNC milling machine. When surface milling - the contouring engine is crucial. For speed reasons, I found the C# contouring definition written by Giulio Piacentino works extremely well because it allows the user to specify a step distance (tool path offset). After we have generated the contours (or tool paths) we can subdivide each curve, using the evaluate length component, to create a series of points which will guide the CNC mill head in order. Because we now have data structures, we can weave formatted text strings that have been derived from the point data into a G-code that will work with the ShopBot CAM software.
As in the previous example, we have formatted our text strings to work with the opensource CAM software, Shopbot. You can download a free version of the software here: http://www.shopbottools.com/controlsoftware.htm.
You can also check out this video in HD after the jump.
Note: This video is for demonstration purposes only. Andrew Payne and LIFT architects will not be held responsible for any damages that might arise from using this method. Please consult your machine's operating manual before implementing this fabrication method.
Reader Comments (4)
Once again, nice job, Andy. Kudos for extending Grasshopper into another realm of digital fabrication. Thanks for the info on Shopbot also. I've worked with MadCam in the past but I like the open-source idea of Shopbot.
Thanks.
Is there a shared grasshopper source file for this? I'm rather new to the grasshopper tool, getting acquainted with it. In any case, this would be a stellar find!
No more need for MasterCAM! Yayy!
Hi Day,
I have decided not to publicly release any of the g-code writer files because they have more liability attached to them if something were to go wrong. Ideally, you could put together the file after watching the video though. If you get stuck somewhere feel free to email me and I can try to trouble shoot your problem.
Cheers,
Andy
Does this include how to stream parametric data? I need that to write my essay.