Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: HobieCat on October 09, 2013, 10:15:22 PM

Title: VB macro runs when regenergating path
Post by: HobieCat on October 09, 2013, 10:15:22 PM
Hello,

I have a macro that has some JogOn commands called by my Gcode, each time I edit the Gcode and close/save it Mach3 regenerates the path and the macro runs, moving the tool around, but since the previous Gcode did not actually execute, it was just scanned for the path regen, the macro does weird/bad stuff.

Is there a way to inhibit the macro when the Gcode is just being scanned to regenerate the path? Is there a way to inhibit path regeneration?

Thanks,
Hobie
Title: Re: VB macro runs when regenergating path
Post by: Chaoticone on October 09, 2013, 10:53:18 PM
Try general config. Ignore M calls when loading.

Brett
Title: Re: VB macro runs when regenergating path
Post by: HobieCat on October 10, 2013, 11:38:53 AM
Thanks Brett,

That did it!

Title: Re: VB macro runs when regenergating path
Post by: Chaoticone on October 10, 2013, 12:13:19 PM
It's Hoods fault, you can blame him.  ;D

Brett