Welcome to Our Community

Some features disabled for guests. Register Today.

4-axis CNC hot wire foam cutter

Discussion in 'Other Builds' started by marco_ul, Mar 3, 2023.

  1. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    59
    Likes Received:
    60
    Try this binary. A and Z limit switches has to be connected in series or parallell depending on the type (NC or NO).
     

    Attached Files:

    Peter Van Der Walt and marco_ul like this.
  2. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    I connected the A and Z limit switches in parallel and hooked them in the Z-probe port in the X32 controller. Flash the firmware with the new binary, re-configure grblhal for my machine and... it worked!

    Thanks you so much @Peter Van Der Walt and @terjeio!
     
    Peter Van Der Walt likes this.
  3. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    Next step is to try to run some gcode and see how it behaves (just dry runs for now). I'm planning to use Profili Pro 2 to generate the gcode to cut wing cores. I know it's been discontinued for a while now, and replaced by devFoam2, but that's what I have. I might consider upgrading if I can't get it to work properly. Stay tuned!
     
  4. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    @terjeio, will this change (hack) to the source code be merged permanently to grblhal?

    @Peter Van Der Walt, will this new binary be available (embeded) in OpenBuilds Control and available (as an option) to flash the firmware?
     
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,482
    Likes Received:
    4,209
    Yes it will get merged (see auto Square issue · Issue #64 · grblHAL/ESP32) and you are helping with the testing before it does :)

    At this time we advise people to use Web Builder for latest-latest firmware. Builds in CONTROL are older. On a different project at the moment but when we get allocated time to work on CONTROL again, there is plans to integrate Web Builder directly so users can customize at will and have the latest code too. Same as using Web Builder in essence, just in the wizard. Two extra clicks gets you that already :)
     
    Rick 2.0 likes this.
  6. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    Great plans! Can't wait. Looks like there's a lot work ahead.

    I noticed that the wifi portion was left off in the new experimental firmware. I'm OK with this for now, but I like the idea of ditching the hard connection with the computer (although I'm sure some people think this is a no-no).
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,482
    Likes Received:
    4,209
    Once its tested and merged you'll be able to tick on Wifi/Telnet etc in Web Builder
     
  8. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    I generated a gcode file and did a dry run and it all went good!

    I have one more question. What do I need to add to the gcode header to perform the homing routine and set that as zero?
     
  9. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    I looked it up a bit and my understanding is that you cannot add auto homing into the gcode header with grbl. I thought you could do as you do with a 3D printer running Marlin, where you send an auto home code (G28). I guess the equivalent with grbl is to run manually $H, then G28.1 and then run your gcode file.
     
  10. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    2,975
    Likes Received:
    1,660
    When you home, you are setting the zero point in the Machine Coordinate System.

    The thing about a 3D printer is that the tool head never changes so the Z zero in the Work Coordinates System never changes. If you just ran a homing sequence and started cutting, the machine would not know how long your end mill was, how thick your material is, how it is clamped/fastened down, or where your work stock is located on the machines work surface. Therefore there are two coordinate systems in play. You home the machine after turning it on so it can find the Machine Coordinate System XYZ zero point. From there it knows the boundary of our machine if you have soft limits active. You then have to set your Work Coordinate System XYZ Zero manually once you figure out where you plan to do the cutting on your piece.
     
  11. marco_ul

    marco_ul New
    Builder

    Joined:
    Feb 27, 2023
    Messages:
    21
    Likes Received:
    2
    Thanks for the detailed explanation @Giarc !

    My foam cutter has a fixed toolhead and the piece of foam I’m cutting will always be located at the same location (it’s bottom left corner). Thickness may vary, but all those parameters are set in the gcode generating software. I guess it’s another type of specialized CNC machine like a 3D-printer. That why I thought I could just add both MCS and WCS in the header of my gcode (because they’ll always be the same). But now I realize that this is not how grbl was designed and you explained to me very well why that is. It’s for flexibility (and safety) purposes.

    I’m glad I’m (slowly) learning all that stuff. Having to build a custom machine forced me to dive in into all the settings. And the support I’m getting from the OpenBuilds team is amazing!
     
    Giarc 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