11-20-2009 03:39 AM
Hi, im using PXI7340 Motion controler and i get error code -71622 which is not defined if i try to search it in the explain error help section. I get this error when i try to use read encoder data vi. I would like to get index data and i cant find another vi thet does that. Any sugestions
Solved! Go to Solution.
11-20-2009 04:03 AM
Hi,
sorry about this question, but are you really sure about this error number? All NI-Motion errors start with -70xxx andt it's really strange that I can't find any reference to this error in any of our internal databases at NI.
Could you please provide some more information?
Thanks and kind regards,
Jochen Klier
National Instruments
11-20-2009 04:59 AM - edited 11-20-2009 05:01 AM
11-20-2009 06:59 AM
Thank you for posting the screenshot. According to the NI-Motion help, Read Encoder Data returns the captured index position after a Find Index search (Find Reference). I can't see the Find Reference operation in your screenshot. Is it part of your code and did you make sure to execute it before calling Read Encoder Data? If not, the index position is not captured, yet and the vi might throw an error.
Jochen
11-20-2009 08:23 AM
11-20-2009 08:32 AM
Again, could you please show me how you have implemented that?
Let's step back a bit. What exactly are you trying to accomplish? Do you want to find the index position? Then Find Reference should do the job for you.
11-23-2009 04:45 AM
11-23-2009 06:22 AM - edited 11-23-2009 06:23 AM
3000 rpm is typically the upper limit of a stepper motor's specs and at such a high velocity the motor's maximum torque is very limited. The picture below shows a typical torque vs. speed diagram of a stepper motor. This specific diagram contains two curves for two different motor voltages.
As you can see, at high velocities the maximum torque drops dramatically, so depending on your mechanical setup you may or may not be able to reach the motor's maximum velocity rating. Please note, that also the inertia ratio between the motor's rotor and the load is also very important to reach high velocities. Ideally this ratio is 1:1.
If neither the maximum torque nor the inertia ratio is the problem, you might have run into a limitation for the minimum acceleration and deceleration (that's probably the issue you are referring to). Besides increasing these values, you could also increase your board's PID cycle time. While there is no real PID algorithm running with a closed loop stepper, this timing still has an impact on several internal timings of the 73xx boards and increasing this value allows longer periods for the acceleration and deceleration parts of your trajectory.
In your post you are referring to closed loop operation. Do you get a following error? What happens if you run the axis in open loop mode?
Jochen
11-24-2009 06:56 AM - edited 11-24-2009 07:03 AM
The thing is, the motor is actually servo, but i have to specify it as stepper because for it to work in position mode i have to send pulses to it and the only way PXI7340 generates pulses is to configure output as stepper output. I set following error to 0, because it works better that way. It works identically in open and closed loop, which makes sens now that you told me that the PID regulation isnt functional on stepper outputs. For speeds little above 2200 RPM it rotates much slower and loses accuracy, for speeds around 3000 RPM it completely loses accuracy.
11-24-2009 08:32 AM
In this case it sounds like a similar problem, that I have experienced with a Yaskawa servo drive, that was configured in P-Command mode (step/direction commands).
With the Yaskawa drive the issue was caused by the limited bandwidth of the frequency input. At some point the frequency of the step pulse train got too high and the drive didn't recognize the pulses correctly anymore. I have resolved this issue by configuring a higher gearing ratio for the drive (e. g. 1 pulse at the step input corresponds to 5 pulses of the drive's internal resolution). If your drive provides gearing, this could be also a solution for you, but of course increasing the gearing ratio means sacrificing some accuracy, so this approach might or might not be applicable.
Jochen