Hello members and guest, first post here!
Has anyone else implemented spindle interlocking. I recently retrofitted a Bridgeport BOSS 5 where the M3 is actually a spindle request or enable. There is a input back to the controller that indicates when the spindle is running. I added this logic to the m3.m1s file.
DoSpinCW()
SystemWaitFor (Input2)
Code "G4 P2"
This holds the program until the operater starts the spindle. I had to put the spin up delay in the logic because it needs to happen after the spindle has been started. This should also work with the @ speed contact on most spindle drives, omit the delay. I started working on logic in the macropump to monitor the spindle and reached my coding limit. This is what I have so far and I know there must be a better way to code this (my mind is clouded with another controller's logic.).
If GetOEMLED (11) Then If Not IsActive (Input2) Then DoOEMButton (1003)
Message "PROGRAM STOPPED Spindle fault"
I would like to set a variable when leaving the m3.m1s file, example SpinRequest, then have the macro pump check this variable. If the variable has not been set then exit the logic. If the variable has been set then proceed to check input2. If input2 is on then exit the logic. If input2 is off then stop the program and issue a spindle fault message. I need Help learning the language. The logic above was the only thing I could come up with that would compile without a syntax error.
Darek Ashburn