cncjs / cncjs-shopfloor-tablet

A simplified UI for cncjs optimized for tablet computers in a production (shop floor) environment.
https://cncjs.github.io/cncjs-shopfloor-tablet/src
MIT License
35 stars 29 forks source link

Numeric inputs reverting #27

Open aerogeek217 opened 4 years ago

aerogeek217 commented 4 years ago

After entering a value into the X/Y/Z input box and clicking Done, the new value briefly appears in the input box and quickly reverts to the original value. Sometimes the new value persists long enough to successfully click X= or GoX, but most of the time it reverts after less than 1 second. I have experienced this issue this on PC, iPhone, iPad, and Kindle Fire with different browsers and have not yet found a pattern. The X/Y/Z input boxes have a greyed-out appearance, as if they're read-only.

With the exception of Probe, which does nothing when I click it, all other functions seem to work as expected (jog, start/stop jobs, etc.). I haven't tested MDI. I'm running shopfloor latest as of Sept 2020, and cncjs 1.9.22.

Thanks for any help.

EDIT: As a workaround, I can disable Work Position reporting by setting $10=1 (or any value that doesn't contain 2). This seems to stop the input boxes from being clobbered by updates from grbl. I'm not sure how cncjs gets its data, because work position still displays properly in cncjs even with $10=1. The only issue now is that planner and rx buffer no longer display in the main cncjs window. (Also not sure why those were working in the first place, when I had $10=3).