Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: derek on November 28, 2012, 05:55:37 PM

Title: And looking for a little more macro help
Post by: derek on November 28, 2012, 05:55:37 PM
Well I'm working out the final details (I hope) on my ATC.
I'm having a little trouble figuring out how something should be phrased.
Here is what I'm using

ActivateSignal(OutPut5)               
 Do While Not IsActive(Input1)
 sleep (10)         
 Loop
ActivateSignal(Output6)

But instead of it looking for input1 being active I need it to look for oemled 1005 being active.I've tried a few things but I can't seem to get a handle on it.

Thanks
Derek
Title: Re: And looking for a little more macro help
Post by: Hood on November 28, 2012, 06:30:47 PM
Not the best at VB but maybe this would work?

Do
ActivateSignal(OutPut5)
If GetUserLED(1005) Then Exit Do
Sleep 10
Loop
DeActivateSignal (OutPut5)
Sleep 10
ActivateSignal(OutPut6)


Hood
Title: Re: And looking for a little more macro help
Post by: derek on November 29, 2012, 11:14:44 AM
Worked like a champ!
Thanks Hood

Derek
Title: Re: And looking for a little more macro help
Post by: KNA on October 12, 2013, 11:35:35 AM
Mach3 ATC & Auto Tool Zero
Hello everyone
Does anyone know how to activate the Auto Tool Zero for every ATC perform a tool change. I've tried desperately to read almost anything about it in the MACH3 related pages, but without any luck. My m6 macro and auto z zero work fine separately. I am no expert in this area, so I appreciate any suggestions how I can modify or add something which combine the two activities together
Thanks in advance