Hi Kevin,
That sounds like the problem Ray was having. Basically the Interpreter is in a very special state after a Halt so that it can easily resume where it was. There are a few requirements to be able to resume: You must continue where the callback after the halt told you the line the halt occurred at. Also none of the axes should have moved (or you must do safe moves back to where it was).
But if you do not wish to resume then you must set the IsPreviouslyStopped property to Prev_Stopped_None. Otherwise the Interpreter will assume you wish to resume in the middle of the GCode line where you halted. This was just recently exposed to the .NET interface in V4.30k.
Hope this helps.
Regards
TK
PS haven't forgotten about your Buffered IO command issue.
| Group: DynoMotion |
Message: 6642 |
From: fireup_kev |
Date: 2/3/2013 |
| Subject: Re: Continue GCode Interpreter after a Halt in .NET? |
Tom,
I think I got it now. I didn't realize the Halt command calls the InterpreterComplete callback when it gets called. This allow me to save the last line it halted at...
Yes, I also notice you added IsPreviouslyStopped in version 4.30k, thanks for that.
Kevin
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Kevin,
>
> That sounds like the problem Ray was having. Basically the Interpreter is in a very special state after a Halt so that it can easily resume where it was. There are a few requirements to be able to resume: You must continue where the callback after the halt told you the line the halt occurred at. Also none of the axes should have moved (or you must do safe moves back to where it was).
>
> But if you do not wish to resume then you must set the IsPreviouslyStopped property to Prev_Stopped_None. Otherwise the Interpreter will assume you wish to resume in the middle of the GCode line where you halted. This was just recently exposed to the .NET interface in V4.30k.
>
> Hope this helps.
>
> Regards
> TK
>
> PS haven't forgotten about your Buffered IO command issue.
>
>
>
>
> ________________________________
> From: fireup_kev
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, February 3, 2013 8:58 AM
> Subject: [DynoMotion] Continue GCode Interpreter after a Halt in .NET?
>
>
> Â
> I can not seem to find a way to continue executing the Interpreter after I issue a Halt command. What flag to I set? Which command to I call? If I issue a Interpreter.Interpret again after a Halt command, it would backup to the beginning of the last segment and then start from the beginning of the GCode. I'm using Version 4.30k
>
> Kevin
>
|
|