Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Pich on December 09, 2009, 12:00:53 PM

Title: runfile not working from macro
Post by: Pich on December 09, 2009, 12:00:53 PM
Hi Everyone
I've looked around the forum for an answer but no luck.
I'm running this macro from a an LED button

LoadFile ("c:/mach3/work/patter")
sleep 1000
runfile

When I run the macro within the VB window using the play button it loads and stats the file no problem but when a run it from the LED to start the macro, the macro strts loads the file but does not run.  The only thing I noticed different was that the within the VB window the macro starts on the trailing edge of the button pressed and on the leading edge when using the LED.
Thanks
John
Title: Re: runfile not working from macro
Post by: Hood on December 09, 2009, 03:04:49 PM
What are you meaning by a LED button?
I have just tried it in a VB Button and it works fine.
Hood
Title: Re: runfile not working from macro
Post by: Pich on December 09, 2009, 06:58:59 PM
It works fine on the VB button, I am using Mach MAD to start the macros when I do that it will load but not run
Title: Re: runfile not working from macro
Post by: Hood on December 10, 2009, 02:18:14 AM
Ah OK, will test it out when I get to the workshop and see if that happens to me as well.
Hood
Title: Re: runfile not working from macro
Post by: Hood on December 10, 2009, 09:00:08 AM
I have tried all sorts to get it to work but looks like you will just have to wait until Rev 4 of Mach is out as it should support running macros from external buttons.

Hood