Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

forward/reverse limit

Solved!
Go to solution

Hello,

 

 

I'musing a stepper motor which connected to a NI 9512 drive and I have a forwardlimit and reverse limit buttons. I  placed a Line movement block in awhile loop and connected the error out to the error in with shift register.

 

Whenit reaches one of the limits, let's say the forward limit, the motor stops. Butthen, when I trying to move it backwards it doesn't move because there is anerror occured. If i disconnect the error input, it works well for me, but i'msure it is right to do it, because maybe another error may occur.

Howcan i solve the problem without disconnecting the error in input?

 

Thanks 

 

0 Kudos
Message 1 of 2
(3,751 Views)
Solution
Accepted by topic author Tacchi

Hello Tacchi,

 

You can use Clear Error VI in your program once the user has designated a new position. Essentially reinitialize the motor drive if the it hits a limit AND the user specify a new location.

Andy Chang
National Instruments
Message 2 of 2
(3,736 Views)