NEMA 23, weird velocity results.. need help

More
21 Nov 2013 03:16 #41034 by andypugh

When inputting in stepconf, we insert the number in servo thread or base thread?.


Base thread.
The following user(s) said Thank You: fannlow

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:21 #41035 by fannlow
No wonder I am so thrown off :angry:

I have been using servo thread...
In that case I assume servo thread is for servo motors and base thread is for steppers?

In my case the base thread is much better now.
Only around 21000ish, compared to previously 33585..


Many thanks

Let me tests and see how it runs

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:29 #41036 by andypugh

NIn that case I assume servo thread is for servo motors and base thread is for steppers?

It's not quite that simple.
The "servo thread" is where all the complex calculations are done, and that runs at about 1kHz.
The "base thread" is where all the simple but fast stuff is done, and that runs at 10kHz to 50kHz.

Systems that use hardware step generators (such as FPGA cards) generally don't even have a "base thread"

Let me tests and see how it runs

Stepconf might still decide on a 100uS base thread, even if you tell it the latency is lower. I don't know what logic it uses.

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:39 #41038 by fannlow
The results came in..

New base 21742,

Managed to get only 8mm/s :(

Any ideas?
What else I can try?
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:44 #41039 by andypugh

What else I can try?


What base period is stepconf giving you?

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:52 #41042 by fannlow
Base period is 100, 000.
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 03:58 #41043 by andypugh

Base period is 100, 000.


So change it!

Let stepconf finish the configuration, with quite a high max velocity.

Then edit the config files to change the base period (the reason it is choosing 100,000 is probably because you are only asking for 8mm/sec so it doesn't think it needs to be any lower. A bit of a chicken-and-egg situation).

Then start LinuxCNC with your new config and see how fast you can jog axes (adjusting the speed sliders).

I don't think that "test axis" is the best place to optimise the axis speed with your particular (fine leadscrew) setup.

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 04:01 #41044 by fannlow
Any idea where did .hal get the

Steplen 1
Stepspace 0
Dirhold 56742
Dirsetup 56742

Also changing and saving .ini doesnt reflect out when I run the machine?

I have changed the base period to 50000
And up the velocity from 8 to 20 now and still same though..?

Something I did wrong?
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 04:06 #41047 by fannlow
Using stepconf to up the velocity as you suggested and here is the new .ini file.

Though in stepconf I set max velocity to 135mm/s, in .ini, I see that max accel is cap at 128.251613306mm/s

Now testing slow jog
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Nov 2013 04:07 #41048 by andypugh

Steplen 1
Stepspace 0
Dirhold 56742
Dirsetup 56742

1, 0 is normal for a config that uses "reset" as a way to get a step pulse every cycle, rather than ever second cycle. That part is right.
The dir hold and dir setup seem strangely long, but they are in the region of one servo-period, so that's fine.

Also changing and saving .ini doesnt reflect out when I run the machine?
I have changed the base period to 50000
And up the velocity from 8 to 20 now and still same though..?
Something I did wrong?


In the screenshot the speed limit is still 8 for [AXIS_0]. Which one are you jogging?

Please Log in or Create an account to join the conversation.

Time to create page: 0.244 seconds
Powered by Kunena Forum