1
Mach4 General Discussion / Re: Mach sometimes ignores mcCntlGcodeExecuteWait() without an error
« on: April 21, 2021, 07:15:01 AM »
I agree that the script shouldn't be stopped by Mach, it was just a bit of a surprise back when I wrote the script, as the custom M6 example in the manual makes no mention of this.
This time, however, the API function doesn't even seem to set an error. I'll see if updating Mach solves this.
In order to totally fool-proof the script, I thought of adding checks to make sure that the machine really is at the destination after a move. If it isn't, I'd stop the machine. I'd implement this by reading the actual machine coordinates and checking if they are within a small enough distance from the requested location. This comes with quite a bit of added complexity, though, so if anyone has any suggestions, I'd be happy to hear them.
This time, however, the API function doesn't even seem to set an error. I'll see if updating Mach solves this.
In order to totally fool-proof the script, I thought of adding checks to make sure that the machine really is at the destination after a move. If it isn't, I'd stop the machine. I'd implement this by reading the actual machine coordinates and checking if they are within a small enough distance from the requested location. This comes with quite a bit of added complexity, though, so if anyone has any suggestions, I'd be happy to hear them.