Good Evening TP,
Tried the latest solution last night but without success, although I was very tired so I am going to have another go now.
Having watched the Brains videos it seems that may offer a faster reacting solution but I have never used them before.
I thought I could insert a phantom output in the toolchange macro which Brain would recognise, say output 6, and then have the brain terminate with button press 110 Spindle on/off when it sees Spindle Index change state. Something like:
SetOEmDro(817,20)
DoSpinCW()
Sleep(5000)
SetTimer(11)
ActivateSignal(OUTPUT6)
While GetOEmDro > 0
Sleep(1000)
Else DeActivateSignal(OUTPUT6)
If GetTimer(11) >10 Then
Message ("Spindle alignment not achieved")
Exit Sub
End If
Wend
I'm not sure how correct that is as I don't know if I've got the While, Else, and Ifs in the right order.
As far as the Brain is concerned I need to do an And that only executes it if Spindle speec is >0 and Output6 is =1
What are your thoughts?
...Sweep