Welcome to Our Community

Some features disabled for guests. Register Today.

G code running but not machine

Discussion in 'OpenBuilds Bug Report' started by Bilrob, Oct 29, 2024.

  1. Bilrob

    Bilrob New
    Builder

    Joined:
    Aug 12, 2020
    Messages:
    29
    Likes Received:
    3
    Hi guys, I home my machine, works fine. When I come to run the job, it goes to the start point, the g code runs in the control but nothing happens. Any ideas what's causing this?
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,041
    Likes Received:
    4,312
    Any chance you have an IoT relay for the spindle?
    And if so, any chance you mistook it for a power strip and also plugged your 24v PSU into it (PSU supposed to be connected to the wall, not the IoT, only spindle connects to IoT)
     
    Giarc likes this.
  3. Bilrob

    Bilrob New
    Builder

    Joined:
    Aug 12, 2020
    Messages:
    29
    Likes Received:
    3
    Hi Peter, my machine is standard from Open Builds. I bought everything from them. I don't understand the terminology so I don't know what are: lo T relay or PSU. I installed my machine exactly as in the video of installation at the time. It worked fine before these issues. I didn't change anything because I'm not good at this side of things. I installed ferrite cores on all wires. Here's pictures of my installation, hope you can help.
     

    Attached Files:

  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,041
    Likes Received:
    4,312
    This thing

    [​IMG]

    Is the IoT Relay IOT Switching Relay Power Strip

    And ONLY the Router should plug into it.

    Move the other plugs to the wall sockets / normal power strip directly! Not via the IoT
     
  5. CircleM

    CircleM New
    Builder

    Joined:
    Dec 24, 2016
    Messages:
    5
    Likes Received:
    0
    I have been chasing this problem for months. It doesn’t make sense, but if it works, I guess I don’t have to understand why.

    Oddly enough, though, during my troubleshooting I found that when I commented out the M3 line in the G-Code file (and plugged my router into the “Always On” IoT socket), the machine would run. The PSU is still plugged into the IoT as well. But, I had to turn the router on and off manually.

    After reading this post and playing around with the plugs on the IoT, I found that plugging the PSU into the “Normally On” socket (where Bilrob has the CNC marked), would turn on the router (M3 now uncommented) and the DRO would show movement, but the machine would not actually be moving.

    And Finally, if I plugged the PSU into the “Always On” plug (where Bilrob has Laptop marked), and the router into the “Normally Off” socket (the 2 on the bottom of the IoT), everything worked as expected.

    And – of course, plugging the PSU into the wall socket and the router into an IoT “Normally Off” socket made everything work also. I recommend using this combination as Peter has suggested.

    Thank you, Peter.
     
    #5 CircleM, Nov 9, 2024
    Last edited: Nov 10, 2024
  6. Bilrob

    Bilrob New
    Builder

    Joined:
    Aug 12, 2020
    Messages:
    29
    Likes Received:
    3
    Thanks Peter. It fixed that issue. I do still have the same error code all the time. I put ferrite cores on all power cords. My Z hits the limit switch every time. I put a video for you to see. Thanks
     

    Attached Files:

  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,041
    Likes Received:
    4,312
    The error just states the switch was hit, which you can see in the video too, so "as expected"

    As to why the machine moves up: Usually just following the gcode: Post your gcode for review, making sure your toolpaths are setup correctly. And you did remember to Home prior to probing?
     
  8. Bilrob

    Bilrob New
    Builder

    Joined:
    Aug 12, 2020
    Messages:
    29
    Likes Received:
    3
    I did rehome before, toolpaths are perfect in v-carve, I've enclosed the gcode
     

    Attached Files:

  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,041
    Likes Received:
    4,312
    Reviewing your gcode, it does a 2.08 inch Z move (in work coordinates) right at the start of the job (Clearance move)

    upload_2024-11-11_14-16-40.png

    Looking at your video:

    upload_2024-11-11_14-35-17.png

    There's less than a wheel's diameter between current Z position and machine's Z-max (Switch)

    Right after probing you should be at 9mm plate thickness + 6mm retract = 15mm current work coordinates, then lets just say you have about a wheel's width of free space there (Marked in red line on my picture above)

    upload_2024-11-11_14-20-42.png

    15mm + 24mm wheel diameter = +-39mm of Z-clearance available between stock and Limit switch being hit (actually less, but for the sake of the calculation based off measurements by comparing known dimensions on a video screenshot) available

    So yes, sending a 2.0830 inch move ( 52.9082 mm) - you will crash, 100% correct. 52mm exceeds the (less than) 39mm available.

    Machine is just following the gcode there.

    Check your Toolpaths setup, and lower your clearance values (Z Gaps) to fit the available space, then regenerate gcode. Doesn't have to be 2 inches, just a couple millimeters to clear the stock's high points
    upload_2024-11-11_14-39-25.png

    Or home/start position, not sure which one is set so high in your current setup
     
  10. Bilrob

    Bilrob New
    Builder

    Joined:
    Aug 12, 2020
    Messages:
    29
    Likes Received:
    3
    Thank you so much Peter, problem was in the settings. I appreciate the input you gave which enabled me to find where to look.
     

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