tune stepper function

More
6 years 1 month ago #182920 by PCW
Replied by PCW on topic tune stepper function

So 10500mm/min is my max. velocity ...
Now I wanted to know, whether things change with different accelerations.
Short answer: it does not.
No matter, whether I use 50mm/s², 500mm/s² or 5000mm/s² - max velocity does not change.
I tried to lower resolution / microsteps to see, whether I could break the limit, but it does not make any difference. Lower resolution fails beyond 10500mm/min too.


Maximum velocity can be dependent on acceleration with simple open loop step motor drives
since they lose torque very quickly with increasing RPM. Depending on inertial load, they can stall
during acceleration at higher velocities since the have insufficient torque.

I suspect you are not using simple open loop step drives

Please Log in to join the conversation.

More
6 years 1 month ago #183018 by Reinhard
Replied by Reinhard on topic tune stepper function

... with simple open loop step motor drives
since they lose torque very quickly with increasing RPM.

Hm, isn't that true for every stepper system?
.

I suspect you are not using simple open loop step drives

Well, I do. On my cheap chinese 3D-printer ...
... but I can't take that for serious cnc machines. They are more like crap
- and yes, they loose steps very easily.

My plans are to integrate linuxcnc into closed loop. But for that I have to finish electronics, which is not my skil.

Please Log in to join the conversation.

More
6 years 3 weeks ago #184780 by Reinhard
Replied by Reinhard on topic tune stepper function
Different motor/driver, similar problem:
.

Attachment not found


Timings are set according driver specs.

What causes the braking ramp slowing down to fast, so that a slow movement is necessary.
And where is the speed for that slow motion configured?
Slow-motion speed is 12.7°/s

After a quick grep I found that numbers in halfile at a line like this:
Code:
setp pid.a.maxerror 0.0127
analogy by chance or related values?

@cmorley
Chris, would it be possible, to link sampling of halscope to run-button of axis-tune dialog?
Would be nice to be able to examine recorded data after stopping motor without any hurry.

Please Log in to join the conversation.

More
6 years 3 weeks ago #184785 by Reinhard
Replied by Reinhard on topic tune stepper function
I finally got into roll/stop function of the scope :ohmy:

So I could grab a more detailled picture of what is happening:
.

Attachment not found



Any hints, how I could find out, why the motor does not follow commanded velocity?

Please Log in to join the conversation.

More
6 years 3 weeks ago #184805 by PCW
Replied by PCW on topic tune stepper function
Probably because you have no headroom in the stepgen velocity
(that is your step timings bound the maximum velocity so the PID does bad things)

Please Log in to join the conversation.

More
6 years 3 weeks ago #184806 by Reinhard
Replied by Reinhard on topic tune stepper function
So the white curve is NOT (?) what goes out to stepper driver?
What do I need to add to scope to see the output of PID?

Please Log in to join the conversation.

More
6 years 3 weeks ago #184807 by PCW
Replied by PCW on topic tune stepper function
The white trace is basically the stepgen velocity command
( fed forward via the PIDs FF1 = 1.00 parameter )

But if you have the stepgen's steplen and stepspace
settings too long for the commanded rate, the stepgen will be
unable to follow.

Please Log in to join the conversation.

More
6 years 3 weeks ago #184808 by Reinhard
Replied by Reinhard on topic tune stepper function
Is that behaviour linuxcnc specific?
I haven't heard similar restrictions before.

Please Log in to join the conversation.

More
6 years 3 weeks ago #184809 by PCW
Replied by PCW on topic tune stepper function
Any stepgen that does not violate minimum step pulse high and low timings will have these
limitations. That is if I have a step length of 2.5 usec and a step space of 2.5 usec, the
minimum total period is 5 usec or 200 KHz. If I command a higher speed, the step generator
will lag behind. In addition there needs to be some control overhead so the actual maximum speed
will need to be somewhat lower than 200K steps per second.

Please Log in to join the conversation.

More
6 years 3 weeks ago #184810 by Reinhard
Replied by Reinhard on topic tune stepper function
The timing limitations are clear. Was a silly mistake at beginning of this thread.

But the control overhead - is that linuxcnc specific?
Never heard that restriction before.

Please Log in to join the conversation.

Time to create page: 0.164 seconds
Powered by Kunena Forum