- Posts: 19306
- Thank you received: 0
Trying to optimize base period, etc.
nerdsite wrote: if I manually increase the base period in the BOB.ini file from 62,000 to something greater I get "following errors" in running the axis test file.
With a stepper system the "following error" means that the system simply hasn't been able to make enough steps to move the motor far enough.
If the base period is 50uS then is can only make 20,000 steps per second. If the base period is longer then it can make less.
What's the PC? 5.1uS isn't particularly good latency. Have you tried any optimisation?
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
linuxcnc.org/docs/2.5/html/motion/tweaking_steppers.html
does the max speed override the program g-code speed settings?
Yes.
Rick G
Please Log in to join the conversation.
nerdsite wrote: I thought 5100ns was pretty good jitter (just according to what I read on this site).
Sorry, my mistake. Yes, 5100 nS is excellent. I was out by a factor of 10.
So, with a 5100nS latency but realtime delays on a 60,000nS base thread, something funny is going on. Maybe an infrequent issue that didn't happen during the latency test?
Have you tried running the latency-histogram?
Please Log in to join the conversation.
Please Log in to join the conversation.
nerdsite wrote: Yes; however, that doesn't mean I understand it all fully. It seems if I put microsteps, then the calcs change.
Yes, because at 4 micro-steps it takes 4 x as many steps per second to move at the same speed as it does at full-stepping.
The motor is probably 200 steps per rev. A 4x microstepping it is 800 steps per rev, at 16 microsteps it would be 3200 steps per rev.
Please Log in to join the conversation.
Please Log in to join the conversation.
I found that a CamView tab in Axis ruined my otherwise-good latency, so there are definitely things that can cause problems that don't show up in the test.
Please Log in to join the conversation.
