# Step by Step guide to creating GCode for the Maslow with FreeCAD

First, I’d like to thank @Gero and everyone who helped me learn this, in addition to this Tutorial. I thought I’d write it up with some screen shots to help anyone else learn without as much Q&A. This is a simple example of a small wheel. You can make it a bit more complex as in the Tutorial if you want, but it helps to go through once with a simple object before trying more complex creations.

## Part 1: Create the Sketch

Save often!

### Step 4: Draw a circle the same or larger diameter as the bit you’ll be using to test this, and then a larger circle to make a wheel shape.

If you zoom in you can be very precise!

## Part 2: Give it a 3rd dimension

### Step 7: Add the pad, click reversed so it will be below 0 point on Zaxis.

I use 20mm for thickness, because that will cut 1mm beyond a 3/4 inch thick piece of plywood.

## Part 3: Create the GCode

### Step 12: Define how fast the motors will move when cutting.

I like to use 42 mm/s.

### Step 13: In the SetupSheet, define how fast the motors will move when NOT cutting.

I like to use 100 mm/s.

## Part 4: Run it in Maslow!

### Step 18: Open GroundControl, Hit Action, then Load GCode, then choose your file. When ready hit Play to start the file running.

13 Likes

I’ve also created a maslow_post.py for FreeCAD. It doesn’t do anything special, except it removes all unsupported codes and I updated the Pre and Postamble. Also, it says Maslow in the GCode now. If there are any suggestions for improvements, please let me know.

maslow_post.py (10.8 KB)

7 Likes

Great!!!

For creating tabs in FreeCAD you can check the video here.

Please go directly to time stamp 5:57

1 Like

I love your postscript… I’ll give it a test this week

2 Likes

My python is a bit rusty, but if you think of anything you want me to add, let me know and, if it’s within my ability, I’ll get to it as time allows.

Or if anyone wants to help develop new features for it… https://github.com/waltmoorhouse/maslow_post

5 Likes

I’m new to using python in FreeCAD. How do you implement this file? Thanks,

1 Like

Hi there. I just copied and installed this, although I haven’t used it yet.

Download the maslow_post.py file from GitHub, then place it in this directory:

Done!

3 Likes

Ok, there’s a couple of things I have noticed here. First, the feed rates are a little high in the tutorial. 42mm/s for cutting and 100mm/s are too fast for Maslow. The maximium speed is about 40ipm, which is about 1220mm/min or 20mm/s. Based on discussions elsewhere, a good cutting speed is around 30ipm or lower, which is 760mm/min or 12.7mm/s

Secondly, internally, FreeCAD stores speeds in mm/s, so this must be converted by the post-processor into mm/min for Maslow. So the Python post-processor (maslow_post.py) must be edited, around line 266 to multiply the speed by 60. Like this:

``````outstring.append(param + format(c.Parameters['F'] * 60, '.2f'))
``````

I’ll submit a pull request on GitHub for this change (unless someone points out I have made an error). In the meantime I have edited my file locally.

3 Likes

You can change FreeCAD units to mm/min for better CNC support in FreeCAD preferences here:

Sliptonic is a major contributor to FreeCAD CNC tool path generation and a pretty dedicated communicator. I follow his youtube channel for walk through tutorials.

1 Like

That’s good to know, however, I suspect that that setting only changes the display units, so internally it’s still mm/s therefore the post-processor must still multiply by 60.

Haven’t heard from @waltmoorhouse regarding this, but my patched version of his post-processor works for me.

I use the grbl postprocessor and I get both displayed and gcode units expressed in mm/min.

Right, because you selected “Metric small parts” to change FreeCAD’s display as you mentioned above, and because the grbl post-processor has a line that multiplies the feed speed by 60 to convert from mm/s to mm/min. That’s how I knew to edit the Maslow post-processor- I checked what the grbl one did.

The internal FreeCAD units do not change.

1 Like

Is there a way to cut a ring without using a pocket tool path in the center? To cut out the inner-diameter with a similar spiral as the outside with tabs?

1 Like

Welcome to the Forum!
I do not understand the question, sorry, my mind seems blocked.
Edit: I think I got it. Let me open FreedCAD and draw the ring for a screen shot to confirm i understand correctly.

Edit2:
Does this come close 2 what you are looking for?
Using the ‘Profile based on edges’ choosing the outside/inside edges and setting outside/inside?

Edit3: You can set tabs on either path or on both (recommended)

Okay, I see. It doesn’t make that spiral path when cutting the depth when using edges, for me:

versus this:

It looks like the path of the inner circle is drawn around the exterior of it too.