I recently started playing around with Autodesk’s Fusion 360 3D modeling and CAM software. I managed to fumble my way through making some quick designs and setting up a simple cam job to make a tool holder. Designing the part was quick and so was setting up the CAM operation. However when exporting the G-Code through the grbl post-processor I discovered the G-code was using G28 (return to home) which isn’t supported in a stock ShapeOKO 2. Limit switches would need to be installed for this to work and for it to be turned on in grbl. The default startup G-Code using the grbl post processor looks like this:
% (1) (T4 D=6.35 CR=0 - ZMIN=-19.525 - flat end mill) G90 G94 G17 G21 G28 G91 Z0 G90
% (1) (T4 D=6.35 CR=0 - ZMIN=-19.525 - flat end mill) G90 G94 G17 G21 G0 Z15
This sets it to 15mm (assuming the machine is in mm mode) above the work. This makes the first move with the tool not drag the bit close to the top of the work. Even better the settings can be toggled at runtime, on windows at least, by changing the parameters. With the recent version of Fusion 360 the parameters can be saved in the cloud drive and accessed on all platforms. Go to you A360 Drive and off the “Top” you’ll see a directory named “CAMPosts”. Drop the ShapeOKO.cps in there and it will now show up with the cloud enabled settings. In the Post Process dialog change the source to “My Cloud Posts” and select the ShapeOKO.cps as the post processor.
You can download my custom post processor here: ShapeOKO.cps. This file needs to be decompressed before placing it in the CAMPosts cloud directory or in the local directory. I take no responsibility for any bodily injury or damage you cause to your equipment using this post processor. I only have limited testing on my machine and configuration. In the future I plan on adding a dwell at the safe Z height for several seconds to enable the operator to turn on the spindle. This code is partially implemented in this version but not yet enabled.