I’ve programmed for other motion control systems before, but this is my first experience with G-code. Please correct me if I’m missing something, but it looks like there is currently not a way to:
1: Immediately stop the motors if something goes wrong or I need to clear chips, etc.
2: Interrogate the grblshield for the current position of the motors and whether a movement command is in progress or complete.
I’m writing a Python program to stream G-code commands to the grblsheild, but I’d like to wait until the current command completes or is near ( maybe 1/2 second ) before issuing the next one. In this case, I could check to see if the user wishes to interrupt the program to make a change. For now, I’m just going to estimate how long I think it’ll take and just wait that long, but that’s kind of stupid and ugly.
It would be super useful to be able to query the grblshield for the axis positions. It would also be very useful to be able to simply inquire if the motors are moving or not.
Thanks for the consideration.
-John
Thanks