Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: rait279 on April 14, 2014, 04:02:01 PM
-
Hello all,
please help me out with macro,
i use two outputs, first for plasma generatorand second for pilot arc unit.
Im stuck writing macro on that point,
ActivateSignal(Output2)
DoSpinCW
and now im stuck, i need that when Arc OK signal occures, then Output2 must switch off.
Please help,
regards,
Rait
-
Look at the arc good LED, when it comes on then deactivate the signal
ActivateSignal(Output2)
DoSpinCW
While not GetOemLed(36)
Loop
DeactivateSignal(output2)
-
Hello all,
thaks for help, its working, but for security reason, please tell me how to write something like that: if the arc good led is not come on 2 seconds, then stop the program.
Regards,
Rait
-
Timeout =0
ActivateSignal(Output2)
DoSpinCW
While not GetOemLed(36)
Sleep(1000)
Timeout = Timeout+1
If Timeout >1
End
End IF
Loop
DeactivateSignal(output2)
Something like that may work