Welcome to Our Community

Some features disabled for guests. Register Today.

Program won’t run. Any help appreciated

Discussion in 'CNC Mills/Routers' started by Andreas Sørum, Oct 28, 2020.

  1. Andreas Sørum

    Builder

    Joined:
    Jun 13, 2020
    Messages:
    9
    Likes Received:
    3
    Hi guys.

    i’m running a cnc with openbuilds control box. Every job i have done ran fine, but today nothing happens after loading my g-code and i hit «run project»
    i’t reacts as if it’s running, but nothing happens.
    Tried another g-code, and the machine works, so it’s clearly the code.
    Can anyone spot any faults here?

    Link to the g-code

    First lines from code: (more can be added if needed)

    (Made in : Autodesk CAM Post Processor)
    (G Code optimized for GRBL V1.1 controller)
    (swarfers Openbuilds GRBL 1.1 post V15 for Blackbox,xPro etc)

    (Program Name : l nn v bit)
    (Program Comments : kunst)

    (1 Operation in 1 files.)
    (File List:)
    ( l nn v bit.nc)

    (This is file: 1 of 1)

    (This file contains the following operations: )
    (1 : Trace3)
    ( Tool 5: Chamfer Mill 2 Flutes, Diam = 12.7mm, Len = 19.00mm)
    ( Spindle : RPM = 5000)
    ( Machining time : 28 min 39 sec)

    G90 G94
    G17
    G21

    (When using Fusion 360 for Personal Use, the feedrate of rapid moves is reduced to match the feedrate of cutting moves, which can increase machining time. Unrestricted rapid moves are available with a Fusion 360 Subscription.)
    (Operation 1 of 1 : Trace3)

    G90
    G53 G0 Z0
    G54
    S5000 M3
    G4 P1.8
    G0 X3.203 Y83.16
    Z15
    G1 X3.203 Y83.16 F1000
    X3.203 Y83.16 Z5
    X3.203 Y83.16 Z-1.5
    X3.082 Y85.434
    X3 Y87.71
    X2.956 Y89.987
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,927
    Likes Received:
    4,291
    Just an overview, the motors won't spin if
    1) $4 in Grbl settings MUST be set to $4=1 (Enabled)
    2) It needs power
    So usually, check your Grbl settings, and if its not that, check power: Make sure PSU is plugged directly into the Wall, and the 115/230v switch is set correctly (see docs:powercase:start [OpenBuilds Documentation])


    As you mention gcode specific, any chance you have your 24v psu plugged into the IoT relay by mistake? (so it gets turned off by the M3)
     
  3. Andreas Sørum

    Builder

    Joined:
    Jun 13, 2020
    Messages:
    9
    Likes Received:
    3
    Thanks for the reply.
    The machine works fine if i run any other g-code, it’s just this it won’t run. So all wires and everything should be fine.

    neither did i change anything when i made the code. Same as all other g-codes i made.

    mayb i’ll just try to generate the code again and see if it works. I’m confused.
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,927
    Likes Received:
    4,291
    So can you post a Working gcode to compare against

    Attach the complete files (both working and not working) (not just a paste of a couple lines)

    And please do answer, is your 24v PSU directly into wall/powerstrip, or by accident into an IoT relay (common mistake, so lets eliminate it, do you have an IoT relay? It looks like a power strip, but its not) - see docs:blackbox:connect-dewalt-iotrelay [OpenBuilds Documentation]
     
  5. Andreas Sørum

    Builder

    Joined:
    Jun 13, 2020
    Messages:
    9
    Likes Received:
    3
    I do have a relay, but only the spindle is connected to it, the PSU is directly to the 230V wall.

    The "2.3 sponarmbrakett.nc" is a working code (just tried it and it works)
    "lønn v bit.nc" is not working
     

    Attached Files:

  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,927
    Likes Received:
    4,291
    Line 24 of the broken file:
    (When using Fusion 360 for Personal Use, the feedrate of rapid moves is reduced to match the feedrate of cutting moves, which can increase machining time. Unrestricted rapid moves are available with a Fusion 360 Subscription.)

    You aren't using our latest post, or latest Fusion360 that addresses the "too long comment" that Fusion adds.
    Update your Post Processor docs:software:fusion360 [OpenBuilds Documentation]
    Also update Fusion: See October 2020 Product Update - What's New - Fusion 360 Blog (they also fixed the too-long comment)

    More info Life After Fusion 360
     
    #6 Peter Van Der Walt, Oct 28, 2020
    Last edited: Oct 29, 2020
    sharmstr likes this.
  7. Andreas Sørum

    Builder

    Joined:
    Jun 13, 2020
    Messages:
    9
    Likes Received:
    3
    Ah. Thanks so much. I’ll give it a shot tomorrow morning.
     
  8. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,439
    Likes Received:
    1,909
    This post is deprecated...because...
    your job fails because this line is much too long for GRBL to process.
    You need to upgrade your post to the latest Openbuilds Post, which supercedes the swarfer one, and handles this long comment correctly, among other things..
    docs:software:fusion360 [OpenBuilds Documentation]
     
  9. Andreas Sørum

    Builder

    Joined:
    Jun 13, 2020
    Messages:
    9
    Likes Received:
    3
    It did the trick. You guys are life savers!
     

    Attached Files:

    Peter Van Der Walt 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