Not a problem... here is how the system is functioning:
a) Following error set to 500. (I want to kill the motor if it jams or experiences a following error greater than 500)
b) Motor begins to move.
c) It experiences a jam - following error shoots to 501
d) NI-Motion kills the motor, motor loses all power. (At this point, I need to maintain power in the motor, otherwise, the motor will drop from its vertical location).
e) I send a "STOP" command with Labview (Or using MAX by clicking on HALT). 2 times out of 10, the motor re-energizes using this command.
But, for the other 8 times, the motor attemps to HALT (and re-energize), but experiences another following error (somehow), which causes it to get killed again. At this point, I can keep rotating the motor shaft by hand, and pressing the HALT button on MAX. The motor never re-energizes and I keep getting a following error.
Now, the only solution I could think of is this:
** from above **
d) ..... motor is killed from a following error / jam ....
e) I reset the following error using a set_following_error.vi to 0 (thus, turning off the following error functionality).
f) Then, I send the STOP.vi command to re-energize the motor
g) Then, set the following error again using the same .vi as above, back to a value of 500.
This would work, but it will use up more processing cycles.