Advice for Metric use of MakerCam

The online version of MakerCam is not recommended for Metric (mm).
It produces up to 16 digits after the decimal and that has lead to problems with ‘buffer-overflows’ in the past, with MaslowCNC and GRBL.
Although this issue was discovers a while back and we assume it has been fixed on our side, my recommendation is not to start with a g-code like that.

Offline version is crashing*.
The ‘offline-version / local’ has that fixed (other bugs where fixed as well) with the latest git-version (commit 25 Oct 2013) that sadly never made it online.
A local version also has the advantage that if your workshop with the MaslowCNC is off the gird and you are missing a small spacer or something, you can quickly create it without the internet.

Instructions if you choose to:
- Download the ‘ZIP’ from the link below with the green button, to a folder where you will find it.
- Find the ‘ZIP’ you downloaded and unpack/unzip/extract it into a folder from where you will use it.
- To use, navigate to the folder that you have un-zipped the file to and change to the directory ‘build’.
You will find a ‘partkam.html’ that you can open with your favourite (flash-enabled) browser.
(If you have ‘.swf-players’, they might work with the swf-file)

Offline MakerCam: (crashes!)
https://github.com/shapeoko/makercam

Disclaimer: SWFlash (.swf) can be a security risk, online and offline. Make sure it comes from a trusted source.

*Edit: Since the offline version crashes on various occasions the recommendation is to use Inch.
If you use metric and notice an interruption in the execution of the cut or other ‘strange things’, you can try if turning truncation on in GroundControl solves the matter.
-> Go to settings, click on Maslow Settings to access the Advanced Settings and turn on -> Truncate Floating Point Numbers (default is off).

image

Edit2 (1 more option):
Someone has written a .py script to fix the issue GRBL had with the metric numbers from makercam.
I have NOT TESTED it: https://github.com/jhessig/metric-gcode-truncator

2 Likes

Just a warning, that version of makercam seems to crash if you do a default profile operation without changing any of the settings, and it doesn’t save any of your work, so you’ll want to save your layout as a svg before you start creating toolpaths.

4 Likes

Confirmed on Ubuntu Mate. Never tried not changing anything. Good catch.

The ‘not saving work’ is the same as the online.

It doesnt just crash on default, it can crash when ever :frowning:

2 Likes

Thanks for the feedback @Jatt and @architectureunknown!
I’ve edited the post according to your feedback.

The reason that I would like to keep the post/warning up, is 2 recent reported troubleshoot errors that could not been tracked down to what had happened. Both had in common that the g-code was from metric makercam use and had the up to 16 digits after the decimal.
If you can confirm that a ‘full sheet cut’ goes well without turning truncation on, I will delete the post altogether.
For the moment my doubt that it’s a good idea to ‘stress-test’ the Arduino with this numbers is enough for me to keep the post up.

2 Likes

There is a fork that seems to not have these crashing issues, I’ve tested it a bit.
the fork is located at https://github.com/kosme/makercam

I’ve made a live version if people want to test it at http://maslowmakercam.000webhostapp.com/partkam2.swf

So far I haven’t managed to make it crash.

3 Likes

The local version still crashes for me, BUT !!! Online, the metric numbers are solved in this version! Great find.
image
vs.

1 Like

Thats great, tho mine is still crashing which is a pain. Tho Ive quite a few toolpaths so I wonder is this causing an issue

But so close :slight_smile:

1 Like

Look at this :slight_smile:


If I copy the partkam.swf from the main folder to overwrite the same file in the ‘build’ folder, the mm bug is fixed and is does not crash locally for me. Please test.

@Jatt Could you exchange the 2 .swf on the web? No need, the mm bug in tabs seems fixed in your online version.

I havent tried the local version - Just been working on the online one from the new build folder. Not sure how to work offline.
mm has def worked which is great. Just getting crashes still tho.

EDIT
Working perfectly

Cheers guys – lets hope she works a dream on the maslow :slight_smile:

3 Likes

Makercam from inch to mm.

The makercam program hardly works when you convert the inch to metric centimeter in the program. The problem is that makercam then turns it into very long codes. Now I have a fairly simple solution to still be able to work with makercam with metric values. It’s not difficult.

First of all, go to makercam. You go to edit and then edit preferences. There you remove two zeros from the machine tolerance and bitmap tolerance. 0.001 then becomes, for example, 0.1. That’s good enough to work with. (If you use a svg from inkscape you have to convert the default default resolution from 72 to 90 on the top page). You confirm the changes. (The 0.1 will then be 1/10th mm) You uncheck here, if you import a svg, snap, out to local points. If you want to make angular drawings, turn on snap.

Then you go back to the program and import your SVG from, for example, inkscape, or make your desired illustration in makercam. When you’re done, select your entire artwork. You go back to edit and choose option scale. There you change scale 100% to 1000%. (What I usually do is select a square with insert whose dimensions in mm correspond to the format I want. Then scale your image until it fits in the square and discard the square.)

Then you now work with everything you do, as if all values ​​are in mm. For example, you choose follow path and then have to enter the values. For example, it says 0.25 inch. When you use a cutter of 6 mm, you enter 6. Just read inch as mm now. I now have a feed rate of 600 and a plunge rate of 300. That works well for me. (wood) (In mach3 you can also adjust the speed somewhat later, for example by using 40% of the speed that the g-code reads in) Don’t forget to put a minus sign at the target depth.

Then select your drawing and choose calculate selected. Then choose export G-code. Now it is very important to open your g-code in notepad now. Otherwise, Mach3 (I work with that) thinks it’s still inch. Therefore change in notepad code G20 to G21. And save the code. Now you have your drawing in G code in metric value without the g code becoming very long.

To be sure, of course, after importing into mach3, for example, check your values ​​before you start milling. (in Mach3 toolpath AltF4 top right at program limits.

Good luck!!