Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Durero on September 27, 2017, 08:14:08 PM

Title: Mach4 UI unresponsive during m6 macro
Post by: Durero on September 27, 2017, 08:14:08 PM
I'm getting a working ATC m6 script by following the Lua Scripting Manual.

So far so good, except that the UI is completely inactive during the toolchange, then updates correctly when m6 is finished.

I'd certainly prefer to see the DRO's update and be able to press Stop while I'm still working out the script.

Any ideas why the dead UI?

Thanks again to the patient helpers on this forum.
Leo
Title: Re: Mach4 UI unresponsive during m6 macro
Post by: Durero on September 27, 2017, 08:16:53 PM
Blind guess:

Does mc.mcCntlGcodeExecuteWait prevent the UI from updating while its Gcode statements run?
Title: Re: Mach4 UI unresponsive during m6 macro
Post by: joeaverage on September 27, 2017, 08:27:10 PM
Hi,
yes, there is a very current thread dealing with exactly this issue
http://www.machsupport.com/forum/index.php/topic,35666.0.html (http://www.machsupport.com/forum/index.php/topic,35666.0.html)

Craig
Title: Re: Mach4 UI unresponsive during m6 macro
Post by: Durero on September 27, 2017, 11:52:15 PM
Thanks very much for that link Craig.

How frustrating to follow several linked threads to find out that the Lua Scripting Manual has been deprecated since the beginning of 2016!

Why is it still featured on the main Mach4 documentation site?  http://www.machsupport.com/help-learning/product-manuals/

Well back to my machine!
Title: Re: Mach4 UI unresponsive during m6 macro
Post by: joeaverage on September 28, 2017, 01:26:26 AM
Hi,
the LUA API is in your Mach4 documents and its current.

One of the exciting, on the one hand and offputing on the other, things with an entirely new piece of software that inevitably the developments
exceed the documentation. Get used to it.

Artsoft is a very small company with a very modest income stream. It is simply not possible for such an organisation to devote the man hours
necessary to document all the changes and developments....unless they insist that their customers, that's you and me, pay bigtime, maybe $2000
straight up AND an annual subscription! I don't want them to do that!

As it turns out the link I posted is right next to your post, started within the last few days, its not hidden. Did you do any searching or reading before
you posted? The forum IS the manual.

Craig