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

Accessory state is not reported when everything is switched off #1242

Open
jes opened this issue Jan 17, 2024 · 3 comments
Open

Accessory state is not reported when everything is switched off #1242

jes opened this issue Jan 17, 2024 · 3 comments

Comments

@jes
Copy link

jes commented Jan 17, 2024

If you send an M3 S1000 then you get a status report with A:S to tell the GUI that the spindle is turned on.

But if you then send M5 to turn the spindle off, there is no accessory status report, because all the accessories are turned off.

It would be better if the accessory state were reported in response to changes even if all accessories are turned off (e.g. send a A:) so that the GUI can discover that the spindle has been turned off.

@jes
Copy link
Author

jes commented Jan 17, 2024

One workaround, if you don't have flood coolant, is to turn on flood coolant with M8 so that you then always get accessory status reports of A:F, and then when the spindle is turned on you get A:SF and when it's turned off it goes back to A:F.

@jes
Copy link
Author

jes commented Jan 17, 2024

The same bug exists with the Pn status: Grbl will report when a pin becomes activated, but won't report when the last pin became inactive, because reporting pin state is gated behind a check of whether any pins are active.

@jes
Copy link
Author

jes commented Jan 22, 2024

Update: I was incorrect about the pin states as they are reported on every update even if there have been no changes (so you know the probe pin is not active if you don't see any Pn report)

So this bug only exists for the accessory state.

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

1 participant