Skip to content
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

Error codes #112

Closed
MoonshineSG opened this issue Jan 2, 2017 · 4 comments
Closed

Error codes #112

MoonshineSG opened this issue Jan 2, 2017 · 4 comments

Comments

@MoonshineSG
Copy link

Starting with version 1 grbl does not send descriptions for error messages and settings. It would be useful if there is some sort of "translation" done by cnc.js...
All the codes descriptions are available at https://github.com/gnea/grbl-Mega/tree/edge/doc/csv

@cheton
Copy link
Collaborator

cheton commented Jan 12, 2017

Added error messages in 1.8.14

image

@cheton cheton closed this as completed Jan 12, 2017
@MoonshineSG
Copy link
Author

Yes, it works as shown above. I see that ALARM and Settings, not yet implemented, but will be as well?

Would maybe be nicer if the error is displayed in a more "human" way (not that we don't read json) ?

Smth like:

Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
> M6
Error 9: G-code lock

or even

Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
> M6
G-code lock (error 9)

Maybe, a mouse over long description ("G-code commands are locked out during alarm or jog state.") which would benefit those starting to explore cnc ?

@cheton
Copy link
Collaborator

cheton commented Jan 13, 2017

Detailed descriptions for ALARM and $$ will be implemented in a later version.

In my example above, I displayed additional error message in a well-formed json format {"err":{...}} that's because I want to differentiate translated result from Grbl's error message, especially showing the line number that caused an error while sending a g-code file.

image

Use a human readable format is fine with me according to your suggestions, I will try to find a better format to display errors.

@cheton
Copy link
Collaborator

cheton commented Jan 13, 2017

You can check out refined error messages (incl. alarm and settings) in 1.8.15.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants