Just another method, The GetUserDRO(2000) is a safety to get OUT of the loop if needed. For the macro to work you need to first set the UserDro(2000) to 99 with SetUserDro(2000,99). I have a saftey button on screen with the exit code "SetUserDro(2000,0)" that allows the loop to exit else you may stay in an endless loop.
ActivateSignal(OutPut5)
Do While Not IsActive(Input1) And GetUserDro(2000) = 99
sleep (10)
Loop
ActivateSignal(Output6)
End
Just a thought, TP