Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: lfleiva on August 18, 2010, 01:58:48 PM

Title: How to ignore macros (M calls) in Run from here mode?
Post by: lfleiva on August 18, 2010, 01:58:48 PM
Hi!
In general config there is an option for Ignoring M calls while loading program which works great.
But Mach still runs M code macros when simulating in "run from here".
Anyone knows how to disable the macros in this case?

Thanks!
Luis fdo.

Title: Re: How to ignore macros (M calls) in Run from here mode?
Post by: zealous on August 19, 2010, 03:17:49 PM
One way is to set a UserLED when the user presses the RFH and reset the LED when they press the start and in your macro's check the state of the LED.
The "Estimating LED" LED18 will be active while it processing the RFH...so you could possiable use that LED.
Title: Re: How to ignore macros (M calls) in Run from here mode?
Post by: lfleiva on August 23, 2010, 06:23:02 PM
Used a UserLED.
Worked fine.

Thanks,
Luis