I am using a dc motor amplifier
http://www.newark.com/maxon-motor/230572/dc-motor-amplifier-dec-50-5-5a/dp/15R2893.
It has option to control motor'd direction/brake & other functions only.
I am interested in direction & brake.
What should be correct algo for reversing the direction of motor. Should I apply brake first & then reverse direction.
Is below method correct:
http://www.newark.com/maxon-motor/230572/dc-motor-amplifier-dec-50-5-5a/dp/15R2893.
It has option to control motor'd direction/brake & other functions only.
I am interested in direction & brake.
What should be correct algo for reversing the direction of motor. Should I apply brake first & then reverse direction.
Is below method correct:
while(1)
{
; motor runs for 1 min
; Apply brake by pulling line low
; wait 2 sec for complete halt
; change direction by changing direction pin state;
; wait 1 sec more before releasing brake
; release brake after which motor will move in opposite direction
}