Welcome to Our Community

Some features disabled for guests. Register Today.

GRBL ERROR! Error no: 24

Discussion in 'Interfaces' started by ButlerBowls, Feb 11, 2021.

  1. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    I've not seen this error when using my laptop and I have run successful jobs with the interface. All of the sudden last night I got the error in the picture and the machine stops moving but the router and vacuum continue to run.

    I restarted the job 3 times and it stopped 2 times in the same spot. The 3rd restart the job goes farther but makes an unexpected cut in the job.

    I then ran an air carve and it made it past this point of the error.

    Using V-Carve Pro I recreated the GCODE and saved it directly to the USB drive to ensure my copy from disk to USB didn't corrupt the GCODE.

    I probed and set the XYZ and ran the job on the 4th attempt. It made it to the last cut in the job and I got this error again.

    Can someone help me understand what is going on please?


    IMG_2308.jpeg
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Probably EMI related: See docs:blackbox:faq-emi [OpenBuilds Documentation] (Is your Dust hose grounded? if not, see the link for details)

    Worked through very similar yesterday: See INTERFACE CNC Touch Controller and downward - another user with similar issue, was EMI related

    Just make sure your firmware is up to date (v1.46 at the time of this reply): See docs:interface:firmware-update [OpenBuilds Documentation]

    But do submit the file, so we can try to replicate. ZIP the file, upload it to a reply, and we'll be happy to check it for you, run some tests on an Interface, etc
     
    #2 Peter Van Der Walt, Feb 11, 2021
    Last edited: Feb 11, 2021
  3. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    Thank you. Let me read and educate myself so I can get you what you are asking for.

    I think I know what the issue is .... I am going to give it another go and come back to you ....

    Thank you Peter!
     
    Peter Van Der Walt likes this.
  4. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    @Peter Van Der Walt Thank you!

    I figured it out... EMI is my issue via my dust collection hose. I need to get anti-static hose or figure out how to ground it.

    --Leon
     
    Peter Van Der Walt likes this.
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Length of bare copper wire (available at the big box store, in the electrical isle, as bare earth wires for pulling into PVC conduit) - ran down the full length of hose(inside the hose / or wrapped around the outside)
    Attach the side nearest the vacuum cleaner body to a suitable Earthing / Ground point (not DC GND)

    Some examples



     
  6. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    @Peter Van Der Walt

    Thank you for the videos. I took the time to run a piece of bare wire down the inside of my 2.5" dust hose and ground it at the vacuum side to a solid ground. I ran a test carve and I landed on the error again.

    With the jumper settings made in my BlackBox can I still use my laptop via the USB port to run OpenBuilds Control? I want to see if I get the error from the laptop...

    Attached is my file. I was able to successfully cut 2 of these yesterday but it was painful .. took me all day to just get 2 of these and I should have cut many.
     

    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,189
    Likes Received:
    4,346
    Yes, you can still connect directly. But USB is a little more immune against EMI, so not a perfect test setup (will likely run fine over USB cable)

    Do an aircut with spindle and vacuum off (zero well above material) and it shouldn't encounter as much EMI

    I will try and kick off a test aircut on this end with it thanks.
     
  8. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    Okay. I will run the test air cut as well. Could the cable between the interface and Blackbox need some form of shielding or grounding?
     
  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Couple ferrites could help, see the link above
     
  10. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    Read about those earlier .... I don't have any spares laying around .... let me see if I can cook up s some DIY ferrite..
     
  11. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Running firmware V1.47, aircut test ran through without any hiccups

    upload_2021-2-12_22-2-42.png
     
  12. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    @Peter Van Der Walt,
    I have grounded my dust collection to earth ground. I errand the cable for the Interface so it lay on no other electronics. I attempted to carve and I got the error again.

    i just successfully ran an air carve. What are the next steps please? I need this resolved or we’ll have to think about this differently.

    thank you,

    —Leon
     

    Attached Files:

  13. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Just keep at it. Is your spindle Earthed? If not, adding an earth to its body may help
     
  14. ButlerBowls

    Builder

    Joined:
    Oct 19, 2020
    Messages:
    17
    Likes Received:
    8
    I extended the ground wire and wrapped it round the body of the router and that worked.
     
    #14 ButlerBowls, Feb 23, 2021
    Last edited by a moderator: Feb 23, 2021
  15. Jumelle Eryc

    Builder

    Joined:
    Nov 29, 2023
    Messages:
    1
    Likes Received:
    0
    Bonjour "everybody,
    Je viens d'avoir une erreur ID:24, et si j'ai bonne mémoire, j'ai déjà été confronté à ce problème. N'étant pas doué en Anglais, je vous demanderai un peu d'indulgence. Thanks!
    Comme j'ai pu le comprendre, je pallie cette erreur en coupant le Gcode déjà exécuté, et je relance la gravure où a été détecté cette étrange erreur. Le Gcode est fait par un logiciel que je développe, qui me permet entre autres, de manipuler ce code (Grbl sender). J'utilise Grbl 0.9i sur une Arduino, CoppperCam, FlatCam, et une graveuse de fortune qui m'a rendu bien des services. Mais j'ai beau retourné le problème dans tous les sens, je ne comprends pas cette erreur, et les explications que j'ai trouvé sont vaseuses.. Le code est basique : G01 Xxx.xxx Yy.yy Ffff, et çà plante!! Quelqu'un aurait-il la solution?
    Merci à l'avance
     
  16. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,796
    Likes Received:
    1,374
  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,189
    Likes Received:
    4,346
    Error 24: Two G-code commands that both require the use of the XYZ axis words were detected in the block.

    Sounds like either you're missing the "newline" between commands or some form of serial corruption is happening. Genuine arduino? Or chinese knockoff with inferior USB to TTL chips?
     
  18. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,489
    Likes Received:
    1,925
    you can use ChatGPT to translate... (using it to transdlate our English to French may help you understand better too)
    grbl/doc/csv/error_codes_en_US.csv at master · gnea/grbl tells us the 24 means "More than one g-code command that requires axis words found in block."

    This means that the controller saw a line like
    G1 X5 G3
    two Gcode commands, but the G3 is missing an X/Y/Z word, though there shoudl not be two motion G commands on one line anyway.

    This tells me you have USB corruption, what is sent to the controller is not the same was what it receives
    OR
    it means your sender is sending incorrect lines.

    Please use OpenbuildsCONTROL to send the same file as a test to see if there is still a problem.
     

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