08-03-2018 07:34 AM - edited 08-03-2018 07:39 AM
Hello,
actually my Labview programm works mostly fine so far, but I've got one issue, and I don't get it. I set the speed of my stepper motor to 900 and Steps to move to 2080. The stepper motor changes the direction every turn. So always with the values 2080 and -2080. But somehow I end up beeing approx. two stepps to far on the negative side. What could be the reason?I am communication with the stepper motors via Arduino. Someone out there who's a specialist with stepper motors?
Thanks in advance!
PS: I'm using LV16, and the secon sequence is for correcting this mistake, but it is more or less cheating. I don't like this way.
08-05-2018 05:59 AM
Please, learn LabVIEW. Spend serious time with the Tutorials to learn the ideas that motivate LabVIEW, including the Principle of Data Flow (it's a lot more than dropping Controls, Indicators, and Functions and connecting them with non-straight colored wires). Some specific comments that will significantly improve the readability of your LabVIEW code:
Bob Schor
08-08-2018 08:14 AM - edited 08-08-2018 08:36 AM
So maybe this helps to understand the procedure. Now, the problem as mentioned aboive is that every time I change the direction I end up beeing two steps too far on the negative side. I had the idea that it could have something to do with the falling and rising edges of my pulse. So that the stepper motor realizes one pulse too late that it has to change the direction. But I couldn't find this information in any of those sub-VIs.
The problem just occurs when the motor turns anti-clockwise.
08-21-2018 02:57 PM
I don't have any of the Arduino toolkit vi's so I can offer only very limited thoughts based on the overall structure I see.
1. Nothing in your LabVIEW application code appears to make sure that a prior motion command has been completed before issuing a new one. This isn't causing your current symptom, but may be something to watch out for in the future.
2. What do you know about the lower-level Arduino code? As for myself, knowing nothing about it, I'm leaving it on my list of suspects. Probably #2.
3. What's the nature of the system you're driving? Any static loads (springs? gravity? pneumatic pressure?). Any gears or other transmission with backlash or lost motion?
How are you *measuring* this ~2 step error? Could the measurement device be subject to similar biasing loads or backlash?
-Kevin P
08-21-2018 03:22 PM
What is the motor and motor controller? I'm agreeing with Kevin and suspect a hardware setting is the culprit.
Have you tried a move to position rather than a jump? Are acceleration and deceleration rates balanced? Is the load equal in both directions?
Link to the whole drive chain components.
And, yes, I have swum in the deep end of that pool. It's easy to get over your head unless you understand the system.
What is being controlled and how fast?