Machsupport Forum

Mach Discussion => Mach SDK plugin questions and answers. => Topic started by: Raedle905 on March 10, 2018, 01:14:47 PM

Title: IsMoving - VS2013
Post by: Raedle905 on March 10, 2018, 01:14:47 PM
I'm using C# with VS2013 Express to communicate with Mach3. Thank you Brian for excellent instructions. https://www.briandorey.com/post/mach3-control-via-c-sharp-winform-application

The program is fine. However, I cannot figure our how to implement "IsMoving". I tried all kind of ways to capture the result of "IsMoving", but my code just runs pass it without stopping/waiting for motion command to complete. Please help! Thank you

               script.Code("G0 x1y2z3");
               
               while (script.IsMoving() != 0)
                {
                    Thread.Sleep(10);
                }
Title: Re: IsMoving - VS2013
Post by: Raedle905 on March 10, 2018, 04:00:55 PM
Found my problem. I had a data conversion issue :)