Hello Guest it is October 22, 2019, 07:57:37 AM

Author Topic: And looking for a little more macro help  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

Offline derek

*
  •  201 201
    • View Profile
And looking for a little more macro help
« 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

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: And looking for a little more macro help
« Reply #1 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

Offline derek

*
  •  201 201
    • View Profile
Re: And looking for a little more macro help
« Reply #2 on: November 29, 2012, 11:14:44 AM »
Worked like a champ!
Thanks Hood

Derek

Offline KNA

*
  •  1 1
    • View Profile
Re: And looking for a little more macro help
« Reply #3 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