Welcome to Our Community

Some features disabled for guests. Register Today.

ERRORS IN CODE??

Discussion in 'General Talk' started by Lloyd Downunder, Sep 6, 2019.

  1. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    OK i have two Blackboxes one is in use the other almost ready to use.
    G code i have used to date has worked, and the result is great.
    Í have asked in the passed months for some tutorials on this, but no avail, 'told ask on Forum ****. your forum is too complicated.
    Now that above Code now throws up error's 9 etc. also the jogging dosnt work, yes i am connected to the BOX.
    i believe that this is a Brain fade GRBL? so how to fix. similar with Marlin a while ago.
    So in , again your tutorials, non existent ??? does it tell you what to do ??
    there is a section in the controller menu after u load a file that , grbl setting box pops up, it has RESET 3 Items. is this area where we can re-flash the brain, and how?? information = tutorials guys.

    only the developers to answer my concerns
    please reply to my email.
    Lloyd
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    More likely error in your wiring or error in your actions.

    First of all:
    DO NOT REFLASH YOUR CONTROLLER. IT WILL NOT FIX THIS OR ANY OF YOUR OTHER ISSUES. Flashing is advanced and can destroy your controller. It needs some skill and understanding. Or at least "me telling you to do it and this is what to do specifically" - in this case i am saying Dont because its not the issue. There is no such thing as "Brain fade GRBL? so how to fix. similar with Marlin a while ago" - thats just not how EEPROM memory works man! :) (made me laugh a little)

    It's probably rather one of these:

    Actions: grab the Serial Log when it happens, we can help you check what lead up to the event.
    Before the error, something happened that put Grbl into an ALARM state. Either you sent incorrect gcode, clicked jog buttons too quickly, its busy with a jog and you are trying to do something else at the same time to it, or its in an ALARM state because of some error like a wiring short on a limit, or probe, or something else.

    Or connected to the above:
    Wiring: check troubleshooting tab, any limits ON when they arent on the switch? Probe showing On when its not. Etc. Post a screenshot if you need help interpreting. Something in your setup had Grbl say "Whoa there! Something isnt right here, lets hold on a minute, fix it before I'll let you do anything else!"

    Grbl is in an ALARM state so just refusing to do anything until you fix what caused it to alarm.

    Also check the Clear Alarm button at the top - maybe it was a temporary Alarm and you just forgot to click Clear Alarm

    The Error 9 dialog should have told you:
    error:9: G-code locked out during alarm or jog state - just takes a little thinking ( cant give a tutorial for every possibility) but the error itself is pretty clear on why its not continuing...

    Ps. Thats not an error from Control. It comes from Grbl: see Grbl Wiki: gnea/grbl

    In terms of tutorials: Checkout my previous reply to you: Where are the Tutorials
     
    #2 Peter Van Der Walt, Sep 6, 2019
    Last edited: Sep 6, 2019
    Alex Chambers and sharmstr like this.
  3. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    Gyday peter

    Thanks for the advise , tho somewhat confused? As i reloaded a g code that had run perfectly before. But now has come up with 5 errors, nothing has been changed in the settings by me.

    i have tried other codes that worked ok, but not now? All come up similar errors. See below.

    The workshop computers are not online, also they cannot do a screenshot, old win7.

    You say grab the serial log when it happens ? The Connect (alarm blinks)or the g code file?

    Error 20 unsupported or invalid g code command found in block. (u see code)

    Error 9 g code locked out during alarm or jog state. 3 of these? (u see code)

    Alarm 2 g code motion target exceeds machine travel. Machine position safety retained.
    Alarm maybe unlocked (u see code) clear alarm or cancel.

    Thanks Lloyd
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    I never said any settings changed

    Windows 7 has Snipping Tool to take screenshots.

    Post screenshots, serial log after errors occured (select, copy, paste from the Serial Log tab) and upload the gcode files (use Attach button) . Its not magic :) - error 20 line in log will show exactly which gcode it didn't like.
    Error 9 will have an alarm beforehand for something wiring, or wrongdoing related
    Error 2: either your GCODE is larger than the machine bed, or machine size in Grbl Settings > max travel is not correctly defined.
     
    #4 Peter Van Der Walt, Sep 7, 2019
    Last edited: Sep 7, 2019
  5. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    Print Screen key in all versions of windows will capture the whole screen to the clipboard.
    ALT-PrintScreen will capture the active window.

    then just paste into Paint and save, copy to flash stick, walk to internet connected computer (called sneaker net :) and proceed ...
     
    Peter Van Der Walt likes this.
  6. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    Ok print screen, not all computers Do. dummy. u picked on me.
    and ALT is not the control to print screen?? ??
    OK to day i replaced the seasoned black box , i said i have two,and all works well, why???/?????

    please explain Lloyd
     
  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    Probably on one you have hard limits enabled in Grbl Settings, and on the other you did not.
    That would prevent error 2 (but in turn result in actual crashes causing damage and injury when you run gcodes larger than the Machine - you kinda want limits on for safety)
    Error 20 would still happen when you load incompatible gcode files
    Error 9 - like i said before, something has to make it alarm first (either wiring or earlier errors)
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    Off topic, and personal question, feel free to not answer if it offends, but is the 1941 in your email address a year of birth or just random? :)
     
  9. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    Yep. makes me a cranky old 78.
     
    sharmstr and Peter Van Der Walt like this.
  10. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    Hehehe! Awesome man, well, kudos to you for still learning a new hobby :)
     
    Lloyd Downunder and sharmstr like this.
  11. jpimienta

    jpimienta New
    Builder

    Joined:
    Sep 9, 2019
    Messages:
    5
    Likes Received:
    1
    Hi, I have problem with the CAM software. I'm trying to generate Gcode from any DXF and in all of them the program show me errors. I don't know what to do.
    And in this exactly moment I'm having problem to create new operations the program don't let me do it, in consequences it doesn't generate the GCODE.
    Can I use other CAM program like inskape to load the Gcode to Open build?
    I'd wondering if someone could help me.
     
  12. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Can you clarify what " the CAM software" is? Are you talking about OpenBuilds CAM? To answer your question though, you can use any program you want to create your gcode as long as it has a GRBL compatible post processor (i.e. it creates GRBL compatible gcode).
     
    jpimienta likes this.
  13. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    And DXFs should be "R14 Polyline" format. Explode all splines, arcs etc into Polylines.
    Read From CAD to CAM, Cleaning up 2D DWG files for CNC.

    Ps: please open a new thread, your issue is not at all related to this issue (that is called "Thread Hijacking") - CAM threads go here: CAM
     
    jpimienta likes this.
  14. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    Gyday Guys

    Re ; errors in code! Some days ago? Not finished with.

    Thanks for the reply's , but i am having trouble trying to do what u guys ask, that is copy and paste from the Controller??And send it to u guys? Dont work fore me? Ok got the shits. I removed the troublesome No. One Box, and replaced with No. Two Box , brand new . (yep i have two, that's $500. Bucks?? Spent on a promise that's supposted to work) so with that i want answers not the guessing competition on that is happing now. (sorry)

    Now, No, two hasn't missed a beat using (wait for it) the same code No. One used and it spat the dummy with, why. I now have a useless box that's needs to be reinstated as to its original state to use again. SO what button do you use , To Reset. On the box or in the controller. Ok guys Put on the thinking caps and Explain to ME (email) and the World.

    LLOYD the old Fart!
     
  15. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    Without troubleshooting data from you, best we can offer is guesses sometimes

    That said, each error has a specific reason. No guesswork there
    OpenBuilds CONTROL - Grbl Setting Tab - erase EEPROM buttons at the top. Click all three. Reset with button on front of BlackBox

    Now load the same settings you did for no 2. Most importantly, $4=1 must be set

    Copy paste from the serial terminal. Copy/paste is pretty basic PC skill LMGTFY
     
    Rick 2.0 likes this.
  16. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    thanks Peter
    will give this a go,

    Lloyd
     
  17. Lloyd Downunder

    Builder

    Joined:
    Jun 5, 2019
    Messages:
    27
    Likes Received:
    8
    gyday Peter

    It worked! wish this was said weeks ago?
    the box is resurrected (hailaloya) Jeas ''s that took awhile?

    OK close the door on this topic, but leave it a little ajar! "I may be Back"?
    i still think something had a brain fade! one of us three? OK.

    in all guys there is a lesson in this. we all learn.

    the old Fart Lloyd
     
  18. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,986
    Likes Received:
    4,105
    Glad you are running again, but you will be back (; to say you got Error 20 or 9 again (; Read my earlier posts...

    Yes you are now "running" since you have hard limits disabled. That means a) either you are loading files too large for your machine or b) your max travel distance settings is wrong. Disabling Hard Limits just hides the actual wrong setting / wrong file
    (Note gave you that info on 8 Sept already):

    Also that just works around one of the 3 errors you experienced.

    My earlier comments:
    Still applies :)
    None of these are "controller" errors, its a) gcode you load or b) combination of settings wrong

    Do take the time one day and read the Grbl Wiki : click the blue text to the right, all blue text on the forum are clickable links, from some of your follow ups i can gather you did not read some of the earlier links yet)
    gnea/grbl - especially read the Configuring Grbl page on there (menu on right)
     
    sharmstr and David the swarfer like 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