So.....would the final code be this?
' M1000
ActivateSignal(output1)
Sleep(1000)
RefCombination(

While Ismoving()
Wend
DeacctivateSignal(output1)
Sleep(2000)
END
ActivateSignal(output1) 'unlock the turrent
Sleep(1000) 'Give it time to move to end of stroke
If GetCurrentTool() = 1 then ' Check for the Tool #
Code"G0 A0.000" ' Move to position
While Ismoving() 'wait for the movement to stop
Wend
End If
If GetCurrentTool() = 2 then
Code"G0 A45"
While Ismoving()
Wend
End If
If GetCurrentTool() = 3 then
Code"G0 A90"
While Ismoving()
Wend
End If
If GetCurrentTool() = 4 then
Code"G0 A135"
While Ismoving()
Wend
End If
If GetCurrentTool() = 5 then
Code"G0 A180"
While Ismoving()
Wend
End If
If GetCurrentTool() = 6 then
Code"G0 A225"
While Ismoving()
Wend
End If
If GetCurrentTool() = 7 then
Code"G0 A270"
While Ismoving()
Wend
End If
If GetCurrentTool() = 8 then
Code"G0 A315"
While Ismoving()
Wend
End If
DeacctivateSignal(output1) 'Release air cylinder
Sleep(2000) 'Give it time to move to end of stroke
End
Ill check and see if it works, also you mentioned safety switches? Would this be a switch that would sense the turret up, and then if it doesnt get the signal it will estop?
THANKS!