Hello Thomas, how are you again? I hope it's ok!
I'm testing the script you gave me and it seems to work correctly, that's great.
At this moment I have another problem, apparently the macro is executed when the G code finishes running, let's say; While the axes are running the coordinates this macro appears to be invalid. Maybe I did some wrong configuration...
I add that input1 is also being emulated when activating oemtrigger#1.
Thank you very much for your help, you are being very useful for me.
Kind regards,
Fred.
sorry, my fault:
If IsActive (OEMTRIG1) Then
Code "M00"
While (IsActive(Input1))
Sleep(100)
Wend
End If