Was messing with something else for myself and thought about this post. The macro I posted earlier wouldnt work properly, code wouldnt wait until it was finished but this should work, the trigger for the macro doing what you want would be the Cycle Start Led, also the sleep dropped my CPU % from 40% down to 0-1%. (I thought the sleeps were automatic now but not in the version I am using iot would seem)
If GetOemLED(804) Then
Do
ActivateSignal (OutPut1)
If IsActive (Input1) Then Exit Do
Sleep 10
Loop
DeActivateSignal(OutPut1)
Code "G91G0A60"
While IsMoving()
Wend
Code"G90"
End If
Hood