-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid gcode errors #1674
Comments
by the device |
Thanks for the link. In the code, the following 2 lines give a delta X of 8.12mm (49.97 - 41.85) :
Delta Y is also 8.12mm (8.15 - 0.03). I replaced all arc center offsets (8.11) with 8.12. Now, the engraver does not report errors anymore. So, the problem comes from LaserGrbl, not the engraver. Right ? Note : Grbl version given when connection is established is 1.12930h |
Right, I can reproduce it too.
@svenhb do you mean is a rounding error? |
@svenhb thanks for your hint! I changed DecimalPlaces from 2 to 3 and the issue disappear. |
Do you mean your engraver has a check functionality ? |
Yes, it checks the radii before and after the G2 / G3 command, if the difference is > than allowed by grbl it shows the error. |
In case of error, my engraver reports an error and skip the command. If LaserGrbl is not configured to stop on error, the result is... surprising. |
grbl firmware can check gcode for you, no need of external app: https://github.com/gnea/grbl/wiki/Grbl-v1.1-Commands#c---check-gcode-mode |
Ha, that's useful information. Thanks. Thanks for the quick fix. 😃 |
Could you please zip and upload the original .svg file and the gcode generated by LaserGRBL (menu file -> quick save)? |
svg: https://cdn.thingiverse.com/assets/6d/30/46/40/34/holders.svg gcode : holders.zip Thanks for such a prompt response ! |
Your GCode is wrong, but not because of rounding.... the data of the parameter J is missing! But if I load the svg file to my LaserGRBL I have a different code. Also LaserGRBL does not write "CIRCLE" in the code. |
I'm pretty sure I installed from the installer from github. Maybe the source of the problem is that I'm running it in Linux (Ubuntu jammy) in PlayWithLinux/wine emulation. Should I open a separate issue to track this ? Happy to help debug. As a workaround, I'll try to search/replace in the generated gcode and reload it into LaserGRBL to run the correct GCODE. |
With some files (png or svg), I get errors
Invalid gcode ID:xx
.Are these errors generated by LaserGRBL or by the connected device ?
Hardware and software configuration :
The text was updated successfully, but these errors were encountered: