02-07-2007 01:05 PM
02-08-2007
03:23 AM
- last edited on
07-11-2025
09:00 AM
by
Content Cleaner
It looks like you have already done most of the troubleshooting but please verify that you have really done everything that is described here:
Title:
Stepper Motors Work in Open Loop Mode, But Do Not in Closed Loop with Encoder Feedback
Problem:
I can command my motion controller to move a stepper motor to a target position in open loop mode. When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position. Why is this?
Solution:
These are some other symptoms you might see:
Here are some troubleshooting tips for these problems:
Note: Closed loop steppers work differently from closed loop servos. Instead of adjusting the output on each PID iteration like a servo system, closed loop steppers will do a pull-in move at the end of a move to adjust for any difference between the target position and the encoder feedback. By default, it will attempt the pull-in move three times. This can be adjusted to any number between 0 and 32,767 using the SetU32 VI in LabVIEW or the flex_setu32 function in C/VB with the "Pull-in Tries" attribute.
This text is from a knowledgebase article that is currently taken from the web for review.
If these hints don't help please check if there is a gear between the motor and the encoder. In this case you would have to take into account the gearing ratio when entering the steps/rev and counts/rev settings.
Please also make sure that you are using the latest NI-motion version which can be found here.
I hope this helps,
Jochen Klier
National Instruments Germany
02-09-2007 08:12 AM