-
Hello all, when I abort a running program with "!", I get strange error messages afterwards when I send normal commands to the controller. For example, with a simple "G90" I get the error message 22. "Feed rate has not yet been set or is undefined". With GRBL and also with Mega-5X it works. What am I doing wrong ? Does anyone have an idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer. The commands are part of the handling after which the operator cancels a program because something is not correct. So in this case a function is needed that deletes all commands from the input buffer and puts everything in a kind of home position, so that I can send normal commands again afterwards. |
Beta Was this translation helpful? Give feedback.
-
I have now tried a lot again, but cannot find any error in my sequence. I can also send the command sequence to the controller via my command line. Then it works exactly the same as with an external terminal (CoolTerm). Inside my program it does not work. I think that the difference is that in terminal mode the input buffer does not run full. Is it possible that you log the received commands in a file ? Then you could see if I am not still sending something wrong. |
Beta Was this translation helpful? Give feedback.
-
My STM32F103 sadly let out the magic smoke a while ago so I cannot debug with that. BTW I was led astray by another error from the Due emanating from my test program, it had a M7 command (mist on), which is not supported by the board I tested with. I have already updated the source for the Due that is used by the web builder, will commit to github a little later. |
Beta Was this translation helpful? Give feedback.
-
Great that you were able to fix the problem so quickly. Thanks again for your great program. I'm looking forward to trying out all the features. :) |
Beta Was this translation helpful? Give feedback.
My STM32F103 sadly let out the magic smoke a while ago so I cannot debug with that.
However when I test with your sequence above I am able to duplicate on the F756 and yes, there is a bug - in fact a regression dating back more than 3 years! Strange that it has not been reported before, could be due to you always issuing a feed hold (!) before reset when a program is running? I belive most, if not all other, senders has a separate reset button that immediately stops any motion.
BTW I was led astray by another error from the Due emanating from my test program, it had a M7 command (mist on), which is not supported by the board I tested with.