I've had a tool changer workign for a few months now. Also been fine tunning the macro to better protect things and have safetys. Had alot of issues lately with the spindle starting out at the proper rpm for orient and then speeding up and the orientation fails. Just a mild problem, wasn't breaking anything. Well yesterday i'm setting up to recut some parts. Rolled off, set the first tool, mdi'd t2m6. The z goes home as it should but it starts the spindle at 6k and tries to orient.....What the......Blew up the bearing that orients....great....now i gotta fix that. So i get it fixed tonight, type in m19 and don't you know it did it again. Wiped out more than just a bearing this time. Well after some investigation, the line in the macro that resets spindle over ride to 100% is now somehow setting the spindle to 6000 and maxing out the over ride. If i take that line out it is fine. Anyone got any ideas? Stuxnet virus?lol
Here is the macro for orientation
SetOEMDRO(74,100)
SetOEMDRO(821,100)
Message ("Spindle Orient")
Code "S23"
Sleep 100
ActivateSignal(OUTPUT19)
Sleep 100
DoSpinCW()
Sleep 100
Sleep 2200
DoSpinStop()
Sleep 100
If Not IsActive(INPUT3) then
CodE "M30"
SetCurrentTool(toolold)
MsgBox ("ORIENTATION FAILED")
STOP
Message (" ")
End If