Hello everyone, I run a few commands and then close the serial using pySerial after receiving "ok". I noticed that if the last command takes too long to complete (e.g from X100 Y100 send G1 F1000 X0 Y0) when the serial closes, it will not finish the travel, will stop in the middle of the path. So I realize that "ok" doesn't mean "done" but just queued, I'm thinking of putting a delay before closing but it's not very nice. Do you know a way to check if the last command is finished? Maybe related to $10... I have $10=1. Grbl v1.1 Thanks
I think what i'm looking for is the command "?" (will provide the current position). <Idle|MPos:83.276,-57.876,0.000|FS:0,20|Pn:Z|WCO:0.000,-65.000,0.000>okok <Run|MPos:83.272,-57.872,0.000|FS:100,0|Pn:Z|Ov:100,100,100>ok <Run|MPos:83.260,-57.864,0.000|FS:100,0|Pn:Z>ok <Run|MPos:83.244,-57.852,0.000|FS:100,0|Pn:Z>ok <Run|MPos:83.232,-57.844,0.000|FS:100,0|Pn:Z>ok
Yeah it's what i did but not too easy to find quickly what you are looking for, even with the search bar which i just recently notice, probably used a bad key word... @Peter Van Der Walt i did not make difference between Run and Idle, i was watching only MPos:0.000,0.000,0.000 or FS:0,0. I'll add that condition. Thanks