Setting up Servos in step/dir position mode

More
5 years 4 months ago #211343 by RoberCNC
Hey Tommy, how are you doing? then the math is ok. What exactly does that imply? I guess I can cut that number in half.

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

More
5 years 4 months ago #211350 by PCW
Yes, you would have to reduce the step time and step space to reach your requested velocities with the current step-scale. With a steptime and stepspace of 5.050 usec, the maximum steprate would be about 99 KHz but the requested stepgen velocity of 50 mm/sec at 2000 steps per mm needs a 100KHz step rate.

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

More
5 years 4 months ago #211351 by tommylight
Doing fine, thank you.
No idea about the math, most probably it is useless as most position servo drives will have another setting for the number of pulses per revolution that has nothing to do with the encoder.
But if that is the used resolution, then yes the math is correct.
The following user(s) said Thank You: RoberCNC

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

More
5 years 4 months ago #211358 by RoberCNC

PCW wrote: Yes, you would have to reduce the step time and step space to reach your requested velocities with the current step-scale. With a steptime and stepspace of 5.050 usec, the maximum steprate would be about 99 KHz but the requested stepgen velocity of 50 mm/sec at 2000 steps per mm needs a 100KHz step rate.

Are they reduced following some reasoning, I don't know if they maintain a numerical relationship, or am I lowering the values in trial and error mode?

And on the other hand, using the feedback of the encoder without scales, I understand that it would not solve in any way the possible mechanical backlash that the machine may have.

Thank you guys very much, reading you is always learning.

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

More
5 years 4 months ago #211387 by PCW
The reasoning is that it is impossible to generate a 100 KHz step rate (as required by the 50 mm/sec motion and 2000 steps/mm scaling in your .ini file (50mm/sec*2000 steps/mm = 100K steps per second) with the given step timings.

That is, the maximum possible step rate (without violating the step timing) is 1/(steptime+stepspace) which = about 99 KHz with your 5050 ns steptime and step space settings. If you drive can use shorter timings set these (5050) values lower
and higher step rates will be possible.
The following user(s) said Thank You: RoberCNC, Sadmeatball

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

More
5 years 4 months ago #211613 by RoberCNC
Maybe it is a stupid question but when I am driving servos I should not use INPUT_SCALE and ENCODER_SCALE instead of SCALE and STEP_SCALE forgetting about STEPGEN_MAXVEL / MAXACCEL or this is because being the step & dir signal for .INI purposes it is do they treat like steppers?

Thx.

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

Moderators: cmorley
Time to create page: 0.531 seconds
Powered by Kunena Forum