Welcome to Our Community

Some features disabled for guests. Register Today.

G Code Problems / Fusion 360

Discussion in 'CNC Mills/Routers' started by Colin Hart, Feb 20, 2019.

  1. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    Hi All...

    So I have built my new CNC machine - YAY
    I drew a picture with a sharpy - YAY

    I tried milling out a basic square drinks coaster drawn in fusion 360. I generated the G-Code however some issues then occurs.

    I loaded the Gcode into my Duet controller.
    I set the work zero - and the coordinates change on the webpage.

    When I run the g-code from Fusion360 a simple 2D facing operation the machine move rapidly moves to 0,0 of the machine, and then plunges the Z xis down.

    When I inspected the G-Code I executed line by line to try and see what was happening

    - Most commands are not supported as they are tool selection.
    - Then the command appears G54 - When I execute this the coordinates shown in the top corner revert back to the machine coordinates, meaning the next the command to run setting the X and Y are referenced from the machine 0,0 rather the work 0,0.

    Can anyone help?

    Something related maybe be when I hit the pause button the Z axies plunges into the workpiece then goes up, the x and y move a bit back and forth then all stays still. The movement buttons do not step the usual distance, much bigger distances.

    I have disabled G28 Safe retracts if that makes a difference?

    Home this all makes sense, G Code attached for the face operation. Happy to share access to the model in Fusion of that would make it easier to help with?

    Regards

    Colin.
     

    Attached Files:

  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    I am using fusion 360 with the post processor written by Oozenest and have no problems. Which post processor are you using?
    Alex.
     
  3. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    Hi Alex

    Im using the Grbl... - i've not installed a custom post processor. How do you install it?

    upload_2019-2-20_22-22-1.png
     
  4. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Also have you disabled "allow moves without homing" and homed all axes when you switched the machine on.
    How familiar are you with fusion 360? It sounds as though there is confusion about which axis is which.
    Alex
     
  5. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Go to Oozenest, search for fusion 360 post processor, go to workbee firmware updates, download latest version of fusion 360 post processor. Can't remember how I got fusion 360 to use it, but there are instructions in fusion. If you have difficulty with this message me and I will look it up tomorrow.
    Alex
     
  6. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
  7. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Thanks sharmstr, it's late here and I couldn't remember how I did it.
    Alex. :confused:
     
  8. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    No worries.

    Colin. If you still have issues after using the oozenest post, please let us know where you are setting your origin.
     
  9. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    Hi Alex

    Cheers - Just tested and and all cutting in teh right place!!!! FYI anyone else reading this post use mm not inches. I saw a video once say inches should be used .. not with this post processor!!!

    once again - THANK YOU!!!!
     
    Alex Chambers likes this.
  10. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    That was going to be my next question. Glad you figured it out :)
     
  11. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Glad to hear it.
    Alex :duh::duh::duh:
     
  12. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    Sorry Sharmstr I was in the garage testing it all out...

    the Good news.. its all working
    now I need to get my head around all the CAM stuff.

    @Alex thank you!!

    Now I have just realised the time... back to the real world of work tomorrow!!! :-(
     
    sharmstr likes this.
  13. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Look into creating CAM templates. Also, since I'm American, I find its easier to model in imperial, but cam in metric. I have cam templates for my most common types of materials, bits and toolpaths so I rarely need to worry about metric when I'm applying toolpaths. I just import the template I want, select the correct geometry and its done. To measure my stock I use a keychain size tape measure that has both imperial and metric.

    If you need fusion help, hit us up.
     
    Alex Chambers likes this.
  14. Colin Mccourt

    Colin Mccourt Journeyman
    Builder

    Joined:
    Jan 23, 2019
    Messages:
    354
    Likes Received:
    184
    Hi @Colin Hart
    One thing I've learnt on this build is problems no mater how small are always going to creep up and have to be solved (aint that just life lol) You've come a long way, a lot faster than me...I went a different route for the software CAD/CAM side of things in VECTRIC.. purely because it seemed a simplier GUI especially for a newbie as myself to get their head around...All that said...and no matter what folks are using to achieve a common goal, would you be so kind as to post up images of your first attempts at milling, (dont worry I'll be doing likewise) material choice, size of bit, speeds, and any other relevant data for the process......Just to gauge what can be expected from this machine (from birth if you like)..You say you are trying to mill a simple drinks coaster, once you get the post processor thing sorted out and try again, Would you say your pleased with your efforts, does the piece need much finishing i.e. sanding etc are there things (cad/cam) you could tweak to improve the piece. Did you surface your spoilerboard, what milling bit did you use?? Sorry for the inquisition :)
    atb
    C
     
    #14 Colin Mccourt, Feb 21, 2019
    Last edited: Feb 21, 2019
  15. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Hi @sharmstr, I'm old and British, so I am happy working in either imperial or metric - in fact I have been known to mix the two - larger numbers in imperial and smaller ones in metric.
    I am a newbie to cad/cam though and haven't heard of cam templates could you please enlighten me or point me to somewhere I can find out more?
    Alex :confused:
     
    sharmstr likes this.
  16. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    I'm old too so we have that in common :) There's a lot of resources out there, but two that I would recommend is John over at NYC CNC and Lars Christensen. While they probably dont have videos specifically targeted at cnc router users, I'm sure you can still learn a lot from both of them.

    Here's some videos I suggest. Some are a few years old so some things may have changed a bit, but it will get your started.








     
    Alex Chambers likes this.
  17. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Many thanks @sharmstr, I will have a play with those this afternoon.
    Alex :cool:
     
    sharmstr likes this.
  18. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Thanks again @sharmstr, that looks a); really straightforward, b); extremely useful.
    Alex :thumbsup::thumbsup::thumbsup:
     
  19. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    No problem. It really is. It took me a bit to get them setup and tested on the machine, but once its done you can fly through new jobs.
     
  20. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    @sharmstr- Awsome links.

    So I have daft question and this is probably the wrong place to post but it does follow the theme of #NewbieQuestions, and #SteapLearningCurve.

    I am preparing my CAM in Fusion 360 - (I had a list of guitar parts I wanted to work on, however, my 7-year-old son had other plans.

    I present article 1: Harry Potter!

    upload_2019-2-21_18-51-10.png

    a 10 x 10 wood thing.

    I have created 2 CAM jobs so far:
    1. 2D Adaptive Clear - 6mm 4 flute, straight end mill. This is fairly straight forward.

    upload_2019-2-21_18-52-58.png

    As you can see a fairly rough tool path clearing out much waste!!

    2. I then switch to a finer bit, however rather than taking into account the material removed from the previous process F36 has decided to remove stock that isn't there. I feel that I must be doing something total wrong, and "justified comments" are permitted.

    upload_2019-2-21_18-55-20.png


    Cheers all for reading from a middleaged Brit (who is going grey fast) :)

    Regards

    Colin.
     
  21. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Not a daft question. ( i believe that's the first time I've used the word daft without punk after it)

    Anyhow, you are looking for "Rest Machining". Its not available in 2D adaptive. Switch to 3D adaptive and select Rest Machining from Previous Operation.

    There's also "both ways" machining in the passes tab. Do a youtube search on it and see if you want to use it. It will allow you to use both climb and conventional cutting thereby reducing your run time. Again, watch a video or two on it because there are some gotchas!
     
  22. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    One More Time!!!! sorry, couldn't resist.
     
    Peter Van Der Walt and sharmstr like this.
  23. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Hi Colin, I am a complete beginner on Fusion 360, but I tried something similar to your project.
    Setup with 20 mm stock side offset, 6 mm tool, adaptive clearing, leave stock 0.5 mm
    I got the following toolpath
    [​IMG]

    Setup 2 stock side offset 0.5 mm, 1 mm tool, 2d contour, and got the following toolpath
    [​IMG]

    I don't know the details of your project (eg stock thickness) so I didn't bother with multiple passes or setting depth of cut, but I suspect your underlying problem may be that you didn't do a separate setup for the finishing cut.
    Like I said I am a beginner, so this is not a definitive answer, but it might steer you towards a solution. Please let me know what the outcome is.
    Alexo_O
     

    Attached Files:

    • HP1.png
      HP1.png
      File size:
      232.3 KB
      Views:
      1
    • HP2.png
      HP2.png
      File size:
      158.1 KB
      Views:
      1
  24. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Hi Alex. That's a good strategy. But if you look at the details of his model, the 2d contour might not get all the stock. As you say, its something he'll need to figure out. The good thing is that rest machining will only get the bits the bigger bit couldnt reach, then he can do the 2d contour as a finish pass.
     
    #24 sharmstr, Feb 21, 2019
    Last edited: Feb 21, 2019
  25. Colin Hart

    Colin Hart Well-Known
    Builder

    Joined:
    Feb 9, 2019
    Messages:
    68
    Likes Received:
    29
    Hey Alex.. this is interesting, i'll have a play over the weekend. The 3D tool paths do seem to do the trick to a degree.
     
  26. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Hi Colin, I have had a further play - @sharmstr was posting her response as I was composing mine. I think you need to read both responses @sharmstr is right about using rest machining AND you need two separate setups. My response suggested using 2d contour as the finishing toolpath, but this could miss some bits that the first roughing pass hadn't removed.
    Have fun and let us know how you get on.
    Alex
     
  27. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Side note. You dont have to make multiple setups, even if you change tools. Instead of selecting "Setup" when you post, just select the toolpath(s). Lets say the first toolpath uses a 1/4" endmill and the 2nd and 3rd toolpaths use an 1/8". Just select the first toolpath and then post process. Then select the 2nd toolpath, hold down ctrl and select the 3rd toolpath then post those to a different file.

    Edit: This comes in real handy when you want to use rest machining since I have found its better to have it know about the previous operations. It doesnt if you have different setups.

    When I get some spare time, I'm going to modify the post processor to automatically create separate .nc files for each tool change.
     
  28. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Thanks @sharmstr. Which post processor though? Colin and I are using the Duet controller which uses Reprap firmware - not Grbl.
    Alex.
     
  29. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    I'll be modifying the grbl based post for my needs if that's what you're asking. Though I looked at the Oozenest post and its not really that different. Looks like it was originally based of the grbl post.

    The ability to post toolpath(s) within a single setup is not post specific. So my advice is valid for you guys.
     
  30. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,780
    Likes Received:
    1,360
    Thanks @Colin Hart for posting your cam problem, I think I have learn't more from looking at that and @sharmstr's tips than I have in hours of trying to work through tutorials.
    Alex:):):)
     
    sharmstr likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice