GRBL Postprocessor for Solidworks

 

As part of mentoring out High School’s First Robotics Team Andromeda One I have learned Solidworks.  Since we have a Jet Mill converted to CNC (running GRBL and a Chinese controller) and several of the other mentors, including myself, having CNC routers like the ShapeOKO 2 and X-carve we wanted to be able to have a one-stop shop for doing our design and CAM toolpath generation.  There are some generic postprocessors for Solidworks but none seemed to support exactly the post processing options and syntax I wanted to see.  As such I embarked on writing my own post for Solidworks.

I downloaded “Universal Post Generator” from Camworks who provides the CAM functionality for Solidworks.  This can be found here:  https://camworks.com/universal-post-generator/

When installing it is necessary to install it as Administrator.  If you do not it will not install properly/fully and may not work properly.  I then used this tool to edit a Postprocessor from scratch and compile it into something Solidworks understand.  Note, this was not very straight forward and resulted in several iterations of trial and error until I got it close enough.  I’m still getting syntax errors on comment lines.  For some reason the line starts with an “*” then the line number and then the tool comment.  I cannot determine where this “*” is coming from in the post or how to get rid of it.  The second issue is the line numbers,  These are very much a personal preference but even if they are disabled in the post configuration they still appear on the output in Solidworks.  In the end the postprocessor output needs to be post processed to run on my CNC with a text editor to fix the tool comment lines.

You can download the fruits of my labor here: SW_GRBL_POST.zip

I have included the source files for my SW_GRBL_POST you can edit in universal post generator as well as the compiled SW_GRBL_POST.ctl post for solidworks.  This can be configured by right clicking your Machine/Mill and clicking “Edit Definition” and clicking on the Post Processor Tab.  Browse to the CTL file and be sure to highlight the SW_GRBL_POST and click the “Select” button.  As part of my own learning of Solidworks CAM I created this Airizer Solo II holder for a friend and then milled it on my ShapeOko 2.  The Solidworks file and CAM configuration can be found in the download on Thingiverse:  Airizer Solo 2 Stand / Organizer

I cut this on my ShapeOko 2 out of Butternut (also known as white walnut) and finished it with a hand rubbed finish.  It was then buffed out with an all-natural beeswax/coconut oil polish.

 

** Update 2020/09/27 – I added a quick video on how to setup toolpaths which can be found here: Solidworks CAM Demo