Been trying out Solidworks CAM and needed a grbl post processor before SW can generate the gcode. Found this version while googling, which seems to work with the limited testing done. This is a 3 axis post version. There are two issues that I didn’t like, a M00 pause at the beginning and a syntax error with a extra asterisk in the tool comment line. They were fixed using the Camworks post processor editor. Also made separate inch and metric version by adding in the appropriate g20/g21 gcode at the beginning. I haven’t tested much so use at your own risk. The free Notepad++ and Ncnetic gcode plugin can be used to view, simulate, verify the generated gcode before running on the CNC.

11/8/2023
Update#1
I enabled coolant selection in the post, before it was only M8. You can choose either mist M7 or flood M8 for each tool configuration in the Cutting parameters. To enable this option, Machine>Posting and select Define coolant from Tool.
I removed the G28 Z0 line at the end of the gcode program. Z will be sent to the rapid plane height that can be set in the NC planes menu.

Update#2
grbl does not support canned cycles for drilling operations. By default the post will use canned cycles but now you can disable them in Solidworks by unchecking “Canned cycle output” under the Operations Parameters tool menu. The post will now output G1 moves instead of using G81.

Update#3
Added M30 for Program End, turn off spindle/laser and stops the machine

11/9/2023
Update#4
At program end, post will send tool back to G28 X&Y Home reference point. This is good if you have homing switches on your machine. Reference Home before running a gcode program for G28 to work right. There is now a no G28 post version that sends tool to X0, Y0. My grbl machine doesn’t have homing switches for G28 to operate correctly. Z will be sent to the rapid plane height that can be set in the NC planes menu.

Download the modified Solidworks grbl post here

Copy the above files to the Solidworks post directory. I use the 2023 version and the default location is C:\ProgramData\SOLIDWORKS\SOLIDWORKS CAM 2023\Posts\Mill

Thank you Mike for the original grbl post processor.