Hello, everyone
I programmed a macro that turns on an output and then waits for a limit switch. Short pause and the output is switched off again.
The program itself works when I call it.
ActivateSignal(Output4)
While IsActive(Input4)
Sleep100
Wend
Sleep500
DeactivateSignal(Output4)
But if I write the macro in a program so that it runs automatically. Mach3 gets stuck at the position of the macro and waits for the input. If I activate the input, the program is then loaded.
Mach 3 shouldn't get stuck in a loop condition while loading the program.
What can I do against it?
Thanks and best regards
Stefan