Posts Tagged ‘ cam

Using Autodesk Fusion 360 with the X-Carve CNC & 3D Mesh

Overview

I’d been stuck on an old Macbook Air for all my CAD/CAM work for the past number of years.  And because of that, I was limited to MeshCAM (no disrespect, I quite like it, but one of the few mac apps for CNC I could find) for all my 3d-mesh carving.  I’d dabbled with Autodesk Fusion 360, but the ol’ Mac wasn’t powerful enough to handle it well unfortunately.

Finally got a new PC, and can start to branch out into other CAD/CAM apps.  I’ve been using my X-Carve CNC for just over a year now, been a great learning experience both with its hardware, and the CAM software that generates the toolpaths for it.  And as much as I appreciate how much I’ve learned from MeshCAM, I felt like there could be a more robust solution, and that’s where F360 comes into play.  I am by no stretch any sort of CNC expert, just an avid hobbyist, but I was really surprised how much the F360 team has put into its CAM solutions.

The below post is an overview on my first steps to get it working, specifically for cutting 3d mesh (rather than parametric solids) so I don’t forget what I did in the future.

I should note though, if you don’t care about cutting 3d mesh, this tutorial is still a valid intro to generating toolpaths with F360.

Disclaimer : Not a CNC expert.  Not a F360 expert.  What I list below are ways I figured out how to do things by looking through the docs, and a lot of forum posts.  There may be better ways out there to do any of this.  If so, please let me know!

Note, I use the term “RMB” a lot below.  That means “RightMouseButton”.

Updates:

  • 2017-04-23 : Based on the 2.0.2989 release,  they made a huge improvement to importing mesh for CNC cutting.  While I’m not going to go through this whole post updating it, things worth calling out include:
    • It doesn’t have to be a solid body.
    • You no longer have to convert your mesh to a BRep to cut it.
    • It does seem a little twitchy:  Some mesh will come into the CAM workspace fine, others does not.

Fusion 360 CAM Docs

These are the docs I got the most out of when it came to learning its CAM capabilities.

And an informative tutorial:

F360 Installation

Really nothing to report here:  Install went off without a hitch.  It should be noted that F360 is cloud-app, meaning everything you do gets uploaded to the cloud.  I remember back in the day when it first came out there was a way around this, to only ever work locally.  I’ve not looked into that recently though.

Importing your mesh

F360’s CAM package can’t deal with 3d mesh natively (at least, I’ve been unable to find a way) : You first need to convert it into a solid it can deal with.  And in this case, it needs converted to a ‘BRep’ : I’ve been unable to actually figure out what the definition of a BRep is, but I’m guessing it’s a (solid)BodyRepresentation.  This process probably took me the most time to figure out, not having a broad knowledge of how F360 works.  The trick is, you can’t have any ‘history’ enabled when you do the conversion : The menu won’t even be there if that’s the case.

Note if you don’t care about 3d mesh, and just want to cut your solids, you can just skip this section.

Prep the mesh for import

Before you import/convert your mesh, you should be certain of a few things, based on the way you want to import/convert the mesh:

  • There are no holes in it.  It should be a solid mesh, no non-manifold geometry… quality solid geometry.

Triangulated:

  • It should be triangulated:  While F360 accepts quads or n-sided polys, I found that it’s internal triangulation function, which appears to be auto-ran when converting to a BRep, sucks, causing poorly converted mesh. Pre-triangulate your mesh.
  • F360 will complain (but still do the conversion if you tell it to) if the mesh is over 10k tri’s, citing poor performance to BRep’s.  I presume this is for good reason.  Right now, I just auto-downres my mesh via Meshmixer or Remake.
  • Note, if you want to use this method on mesh that is more than 10k tris, you can cut your mesh up into 10k or less chunks via software like Meshmixer, export all those chunks, then import them all in one at a time via the below instructions.  Super clunky.

Quadrangulated:

  • If you want to get passed the 10k poly limit, you can instead import quad-based OBJ data.  The trick is to first get it converted to a quad obj:  I learned most of this from this video.
  • Very important:  Make sure in your F360 Mesh Preferences, the “Triangulate Mesh Polygons” option is turned off.
  • Based on what I’ve read, you can do this via Remake:  First you should still decimate the model to some reasonable amount (via its Retopologize menu).
  • Then, via its Export Model windows ‘advanced’ tab, you can choose OBJ(Quads) as an export format.  You can additionally reduce the poly count here, but remember the tri count will be 2x the quad count you’re putting in.
  • Also note, this tool likes to blue-screen my PC from time to time :(
  • I’ve tried to get software like Meshlab to convert to quads and export as an OBJ, but F360 doesn’t seem to like that output (maybe I’m doing it wrong…).

Import into F360

Initial import steps:

To import in your mesh, regardless of it being triangles or quads:

  • From the Model Workspace, access Create -> Create Base Feature
  • Insert -> Insert Mesh
    • Browse to the mesh on disk, hit “Ok” in the “Insert Mesh” dialog

If you have triangulated mesh:

  • Once inserted, access the RMB marking menu on the mesh and “Mesh to BRep”
  • Finish Base Feature via the top menubar.

The imported mesh:

meshImport

Via either method, at this point you can delete the original mesh from the Browser.

This will now give you a ‘body’ the CAM package can deal with.

f360body

If you have quadrangulated mesh:

  • Press the “Finish Base Feature” after the mesh is imported.
  • Press the Create -> Create Form button:  This will open the Sculpt Environment.
  • Utilities -> Convert
    • Choose : Quad Mesh to T-Splines
    • Select the mesh
    • Hit OK
  • This will create a new T-Spline body.
  • Press “Finish Form” From the top menubar:  This will auto-convert the T-Spline into a BRep (Body1), ready for CAM.
  • And again, here’s the video link I learned most of this from.

Dealing with scale

Note, that based on where you authored your mesh and the units it was in, you may need to scale it up.  For example, I work in Autodesk Maya in cm units.  I need to scale that mesh up by a factor of 1o either before I export, or once in F360, to get it in mm correctly.

Setting up CAM

First, switch to the CAM workspace in F360.

Manage your tools

Before you can start making toolpaths, you need to tell F360 what cutting tools you have:  Via the CAM workspace, access MANAGE -> Tool Library.

Uncheck all the libraries on the left except “Local”/”My Tools”.  Select “My Tools”.

Press the “New Mill Tool” button on the top bar, and start filling out the info for all the bits you own/want to cut with.

Nice page showing what all the values mean:  “New Mill Tool Reference

But in general the below values are always equal to or less than the one that came before it, from the “Cutter” tab:

  • Overall Length:  Total length of the tool,  say, 2.5″ for a fictional bit.
  • Body Length : How much of the tool sticks out of the chuck, or “Holder” in F360 terms. Obviously variable every time you insert it, but say 1.5″ here.  That leaves 1″ inside the chuck.
  • Shoulder Length:  From the tip of the bit to the last part of the thread, even the non-cutting part of the thread, say 1.25″.  That leaves .25″ between the end of the shoulder, and the chuck.
  • Flute Length:  Length of the cutting surface, like 1″:  There’s .25″ of non-usable cutting surface.

I should also note that with the 1/4″ chuck on the DeWalt611, it has 2″ of internal space for bits.

You can also make “Holders” for your different chucks:  Doesn’t seem necessary, but I did it anyway.

Create a Setup

Setups collect the rules that define the the stock to cut, and the toolpaths to cut in them.

Via the SETUP menu: New Setup : This will immediately open the SETUP dialog.  Below are good defaults I start with, but obviously every situation is different.  I skip over values I don’t change.

  • Setup Tab
    • Setup:
      • Operation Type:  Set this to Milling.
    • Work Coordinate System (WCS):
      • Origin: Selected Point : I pick the point on my mesh in the top of bottom left corner, which is the usual (0,0,0) position for the X-Carve:
      • stockZero
  • Stock Tab
    • Stock
      • Mode : Relative Box Size : This creates stock relative to the size of the model you’re working with.
      • Stock Offset Mode : No additional stock:  The stock is the exact size of the model.

This creates a new Setup for the given solid model.  If you hide the body via the lightbulb in the browser, you’ll see a ghost of the resultant stock:

stockGhost

Create a rough clearing operation

Now that there is a setup which defines our stock and the WCS origin, we can start adding toolpaths.  The order is important, since F360 cuts them in that order in Simulate mode.

Note, F360 has great tooltips, many with pictures:  Hover over the given field and see what pops up.

Via the “3D” CAM button, there are two clearing options available:  “Adaptive Clearing” and “Pocket Clearing” :

  • Pocket clearing is closest to what I’m familiar with in MeshCAM:  It removes material layer by layer, which is good for a light-weight machine like the X-Carve.
  • Adaptive Clearing will attempt to burrow down to the full length of your tool, then start cutting material against the full length of the tool. While this sounds great, I’m not sure how well the X-Carve would handle it, and have yet to test at this point (probably would need to cut very slow…).

Choose the “Pocket Clearing” operation:

  • Tool Tab
    • Tool : Select a tool you defined above.  The below “Feed & Speed” section will be auto-populated with that tools defaults.
    • Feed & Speed
      • Adjust as necessary based on the type of material you’re cutting.  How do you know what to set?  Based on my hobbyist level experience it’s all about learning what others have done, + trial & error.
  • Geometry Tab : Controls what area of the mesh will be machined.
  • Heights Tab:  A nice graphical way to set the vertical areas to be machined, and how far the tool-head should retract.
  • Passes Tab
    • Passes
      • Manual Stepover : If you want direct control over this, you can check this and set the min/max values.  Note that F360 can either use hard-coded values, or expressions for the fields : RMB on the “Maximum Stepover” field and “Edit Expression”:  You’ll see something like this pop up:
        • Math.max((tool_diameter – (2 * tool_cornerRadius)) * 0.95; tool_diameter * 0.20)
      • Change it, edit it, etc, based on your needs.  Here’s an example video on how to do that.
      • Direction : Climb by default, but machines like the X-Carve should have it set to “Conventional”, so the cutting edge bites into the material with the direction of toolhead travel.
    • Stock to Leave:  Here you can set how much stock is left over for the finish passes.  How much should you leave?  I generally make this a percentage of the diameter of the finish bit I’m using.
    • Smoothing : In general it sounds like you want this checked on, check the tooltip.
  • Linking Tab
    • Linking
      • Retraction Policy : I’ve had good success with “Minimum Retraction”.
    • Ramp
      • Ramp Type :
        • If you’re cutting wood, “Plunge” seems good.  If you’re cutting metal, then “Helix” is the way to go.

There are obviously many more options, but the above got me started well.

After you hit “Ok” in the dialog, you’ll see the new Pocket operation in the browser show up : While it’s calculating the toolpath a % value will be visible.  After a few seconds, the toolpath should show up, presuming you have the pocket operation selected.

roughPocket2

 

Create one or more finish operations

F360 comes with quite a few finish operations.  Technically you can use can combine as many as you want, but again, build them in order of operation.  In this example, I’ll use the “Parallel” operation, because it most closely emulates what I’m used to in MeshCAM.

Via the 3D  Menu access “Parallel” operation:

  • Tool Tab
    • Tool : Select the tool for this pass. But default it’ll choose the tool used in the operation before it. Note if you choose a different tool, obviously you’ll need to go through a toolchange operation (which on the X-Carve is a very manual step), and need to save out your gcode as multiple files.
  • Geometry Tab : Controls what area of the mesh will be machined.
  • Heights Tab:  A nice graphical way to set the vertical areas to be machined, and how far the tool-head should retract.
  • Passes Tab
    • Passes Options to control the angle of the surface to be machined, the stepover, etc.
      • I like to set my stepover to be 10% of the bit width to give a nice, smooth finish, which you can set as an expression by RMB on the “Stepover” field & “Edit Expression”:
        • tool_diameter * .1
    • Smoothing : Like in the rough cut, this seems good to check on.
  • Linking Tab
    • Linking
      • Retraction Policy : I’ve had good results with “Minimum Retraction”.

After you hit “Ok” in the dialog, you’ll see the new Parallel operation in the browser show up : While it’s calculating the toolpath a % value will be visible.  After a few seconds, the toolpath should show up, presuming you have the parallel operation selected.

parallelFinish

Like mentioned above, you can add more finish passes using different techniques here as needed.

Name your setup and operations

It’s a good idea to name your setup and operations, so you know what you were up to months later.  Click once on a name in the Browser, then click again after a second: It’ll let you rename them:

passNames

Save operation templates

Presuming you get values you like and want to resuse thes on other cuts later, there are two ways to access the data:

  • You can open a previous cut, then RMB on any operation and “copy” it.   You can go to your other cut’s setup, and “paste” it.  Works, but clunky.
  • Better, is to select one or more operations in the browser, and RMB on them -> Store as template : This will give you a broswer to your local HD for storage, and later import via the “Create from Template” Setup RMB menu.

Simulate / preview the cut

This is an incredibly powerful part of F360:  You can pre-visualize your cut.  Either select your setup folder in the Browser, or multi-select all the operations you want to preview (basically, whatever toolpaths are shown will be simulated), and press the  ACTIONS -> Simulate button.

In the SIMULATE popup, check on the “Stock” box.  This will show you the uncut stock.  You can uncheck the “Toolpath” if you don’t want the lines to obscure the view.  Then simply press the > Play button at the bottom of the screen:  All the selected operations will begin previewing their cut:

cutPreview

Green is the roughcut, blue is the final pass.

Using the correct postprocessor

For F360 to generate the correct gcode/nc data, it needs to be post-processed for your given machine.  Since I’m using an Inventables X-Carve (grbl-based), I had to do some searching.

This section has been edited since the original blogging:  Originally I’d found a couple postprocessors online, and they “worked”, but had a “bug” where at the end of the cut, they’d send the machine back to the “machine home” (where the toolhead was when the machine was powered on), not the “work home” (the zero/home position of the cut).  This caused two failed cuts for me as the tool-head ripped into my stock trying to go somewhere bad.

After troubleshooting and posting on the forums, I was made aware that F360 comes with a ‘generic grbl postprocessor’, that needs only one small adjustment.  I’ll show that info below.

Generate or “post” the gcode/nc data

Once you’re happy with your toolpaths, you can ‘post’ the data for your CNC to use.

The big decision here is how you’ll save the operations you’ve made previous:  If they all share the same bit, you can select them all at once in the Browser, and save a single file for all of them.  However, if toolchange is needed, you should save each operation as a separate file, selecting one at a time and going through the below steps.

Via the ACTIONS -> Post Process Menu:

  • Setup your postprocessor.  Since I’m using an X-Carve that runs grbl:
    • Setup : Use Generic Posts
    • In the Post Configuration section, select “grbl.cps – Generic grbl”
    • In the “Property” section in the bottom right, make sure that “useG28” is “No”.  If this is “Yes”, it’ll return to machine home (instead of work home, where you zeroed the cut) upon completion of the job, discussed above.  If this is “No”, it simply raises the toolhead and leaves it there.
    • grbl_post
  • Define the Output folder where you want the .nc data saved.
  • Under Program Settings, set the name of the file under “Program name or number”.
  • Press the “Post” button:  The .nc data is saved to disk.

Cutting with the data

There are number of sender software available to send the .nc data to your machine:  Easel (browser-based) can do it, I’ve had success with Chlipeppr (browser-based), I hear good things about LaserWeb/CNCWeb (browser-based, not yet tried), but currently use Universal GCode Sender (Java applet)  for all my work.

The F360 data didn’t cut any differntly in UGS than MeshCAM data, and had great result:

finalCut

In fact, the few hard-edges around the hemisphere are due to a pencil-cut I was toying around with as an extra pass.

In Conclusion

I feel F360 provides a tremendous amount of power to the hobbyist CNC user, especially considering the price (free).  The learning curve is a bit steep, but it has a large amount of helpful documentation, and videos available.  It’ll be my go-to piece of CAM software in the future, hands down.

 

Building the X-Carve CNC Router

Disclaimer:  I have no affiliation with Inventables.  I’m writing this review purely as my initial experience with this tool.


xcarve_assembled

I’ve been 3D printing for over 3.5 years now, and it’s been an extremely enjoyable hobby:  The transition from my virtual work in video-games to tangible objects has been surprisingly fulfilling.  Which has lead me to aluminum sand-casting, and I dabble in wood-working in my spare time as well.  The more I 3d print, sandcast, and woodwork, the more I want to make… more things, with new methods.

Over the past few years there has been an emergence of desktop CNC machines, and after much research (thanks to Make Magazine, and the internets) I settled on the 1000mm X-Carve kit, by Inventables.  It arrived earlier this month, and I’ve been spending a few hours a day putting it together.  Finally, on Christmas, I finished it up and made my first cuts.

Why did I choose it?

  • Honestly, I really liked how it looked.
  • Had the biggest footprint of the popular kits.  I don’t know what I want to make yet, but I don’t want to feel limited in a year.
  • Amazing online instructions and videos I was able to research ahead of time.
  • Active user community in the forums.
  • Their CAD/CAM software, Easel.  Sort of like CNC training-wheels:  I can imagine eventually growing out of this software, but in the beginning it gives you a great, gentle introduction into this world, and was a huge selling point.
  • A good collections of projects to start with.
  • Entirely Open Source.  While I really have no problem with closed-source, I give them kudos for this.

At first I considered doing a series of blogs like when I assembled my C-Bot 3D Printer.  But very quickly I realized I don’t think it would have been a value-add to the internet:  Inventible (as mentioned above) has amazing online instructions, for which I have very little to add.

Inventables claims you can assemble the whole thing in eight hours:  I believe that is possible.  While I didn’t time myself, I’m guessing I took around twelve total, really taking my time.

Things that impressed me during the build:

  • As mentioned above, the great online instructions and videos.  It assembled exactly as described.
  • Packaging of all the parts:  Everything was individually bagged with a serial number, making it easy to confirm I’d collected the correct parts for each step.
  • Nothing missing:  Every piece accounted for (but a single damaged nut, see below).

General Gotchas:

  • One nylon lock-nut was damaged.  Looks like during manufacturing it got squished beyond usability, and was missing its nylon insert.  Since they give you exactly the number of parts you need, I ended up one nut short.  Luckily my parts bin had something that worked.
  • If you use a router like the DeWalt 611 that has ‘manual spindle control’ (I didn’t even know what that meant until building this), but ordered the wire for ‘automatic spindle control’, you can get confused, if you’re a noob like me:  Since the overall instructions are done so well, when something doesn’t make sense (what is this wire for?  How do I hook it to my router?), it’s actually even more confusing because you think you’re missing something.  In this case no, I wasn’t missing anything, the instructions just presume you know a bit more in this area than I did.
  • While you can order a toolkit with it (which I did not do), nowhere I can find do they list the tools you need.  For example, you’ll need a soldering iron, to do some (pretty simply) solders.  I can imagine that if you’ve never soldered anything before, this may cause anxiety.  Plus you need a number of metric hex-wrenches, a carpenters square, etc, etc.  A tool-list would be nice.  Maybe I’m just missing it…?
  • No dust-shoe.  I find it surprising they don’t provide one (for purchase), considering how much dust this thing makes.  There are a multitude of DIY ones the forums though, and will be one of the first things I build to accompany it.
  • In Easel, I have yet to find a way to manually jog the steppers, other than going through the “Set up you machine” phase.  In the 3d printing world, manual stepper control is pretty commonplace to help move the toolhead around the bed.  Maybe I’m missing this too?
  • The top of the DeWalt 611 router hits the top of the Z-assembly, near where the leadscrew affixes to its belt.  Reading the forums people claim you can turn it to move the colliding bits out of the way.  I was unable to achieve this, and used my belt-sander to grind off a good 1/8″ of plastic and metal.  Problem solved, but seems a bit clunky.
  • The shipping cost of the 1000mm wasteboard is crazy (That sized wasteboard + hardware is $128, and the shipping is more than that).  Being a CNC noob, I didn’t know how important it was to get that wasteboard, are all those holes needed, etc?  Because of that, I ended up ‘just getting it’ (thanks to a $100 off special before Christmas, which I mentally ‘applied to shipping’).  They do provide the cad files online (being open source and all) so you can make your own, presuming you have access to a… CNC router.  And there is discussion on the forum over wastebord options, but it’s a bit scattered, and not entirely clear to a new user.  I think if Inventables provided a way to manually build your own wasteboard using say, a table-saw or circular-saw and some MDF, it’d go a long way to attracting new users that couldn’t afford the shipping.  Are all those holes needed?  No.  But they are handy.

First Cut:

xcarve_firstCut

After the machine was assembled and I ran through their Easel tutorial, I created my own “Merry Xmas”/snowflake combo (shown above).  Affixed a 5.5″ x 5″ x .75″ block of scrap wood to the wasteboard, installed my 1/8” dual-flute ball end (which as it turns out, is the smallest bit I ended up buying), and started cutting.

Thoughts:

  • Cutting seemed slow (based on my CNC Experience Level 1).  I have a feeling the software was just being safe using the defaults.
  • I’m still learning Easel, and got the order of the snowflake and text wrong, so the snowflake blocked the text, rather than the text cutting the snowflake.  Live and learn.
  • All things considered, super simple to do.
  • I need to get a dust-shoe setup.

Final Thoughts:

Overall, I give this build and initial use a solid A.  Far less work than my C-Bot build (which admittedly was muuuuch more DIY).  I really look forward to learning the world of CNC, and how it can compliment my 3D printing.