12
« on: October 09, 2009, 11:42:50 AM »
When I run the following code and get to the DeActivateSignal(Output2) the Reset Button lights and the message says a limit switch has activated. I am no where near a limit switch and no movement is occurring anyway. My machine homes fine and the limit switches do stop an overtravel movement. Even though this is a new setup, I have been able to cut parts without issue. This is the 1st time I am trying to use the Activate Deactivate commands.
ActivateSignal(Output2)
Sleep(500)
DeActivateSignal(Output2) 'When it gets to this point the reset activates.
Sleep(500)
ActivateSignal(Output2)
Sleep(500)
DeActivateSignal(Output2)
Sleep(500)
ActivateSignal(Output2)
Sleep(500)
DeActivateSignal(Output2)
Sleep(500)
ActivateSignal(Output2)
Sleep(500)
DeActivateSignal(Output2)
Sleep(500)
Message "ALMOST DONE"
While IsMoving()
Sleep 100
Wend
Message "NOW WE ARE DONE"
I am using the VB editor and both running and stepping through the code. Same result. Any ideas why this would be happening and more importantly how to fix it.
Thanks
Haze