I ran into a strange issue that I've not seen before. While jogging a motor on my test setup, I noticed the motor not spinning at full speed.
With my steps/unit set at 12800, any velocity settings above 640 cause this to occur. Is it a strange coincidence that it's exactly 20%? It sounds like the motor accelerates to full speed, then slows down. As I increase velocity above 640, the motor actually spins slower. This is jogging at 100% jog speed, but it also does it during rapid moves from MDI.
I have the kernel speed at 200Khz. When set to 100Khz, I don't see this issue, but can't spin the motor as fast.
At 200Khz, the max velocity is about 890, but the motor spins fastest at 639-640, and goes slower as I increase velocity.
I hadn't seen this behavior in the past, and the only thing that's changed is swapping my MB2 for the UB1 breakout board.
I tried UCCNC versions 1.2037, 1.2043, and 1.2047.
I'm using a Leadshine AM882, and I actually tried two different drives. The drives were originally set at 1/32 microstepping. I changed it to 1/16 with no difference.
I made a quick video. Listen to the sound of the motor, and you can hear the difference. I didn't record it at 890 velocity, but it spins much slower at that setting.
I'll send an email to Weerasak at CNC Room and ask his opinion.
https://youtu.be/TAEueiJ9_S4