cancel
Showing results for 
Search instead for 
Did you mean: 

x-cube-spn1

Mehmet Sonmez
Associate
Posted on June 18, 2018 at 02:27

I'm using L6474h with X-CUBE-SPN1 Version 1.10.0.

I think there is a bug with the x-cube-spn1 library.

Step motor movement is delayed for a few seconds if the speed is adjusted more than two times (x2) of the previous speed.

There is no problem if the spped changes less than or equal to two times.(x2)

I think the problem is with the states at backside in the library.

You can try any stepping configuration. Problem is always same.

BSP_MotorControl_SetMaxSpeed(0,400); 

BSP_MotorControl_SetMinSpeed(0,200); 

BSP_MotorControl_Move(0,FORWARD,200); 

BSP_MotorControl_WaitWhileActive(0);

 // Speed is increased more than 2x times then

 // The following movement starts after 1-2 seconds. 

// Below; write 800 instead of 1000, and 400 insteaf of 500, then there is no delay. 

BSP_MotorControl_SetMaxSpeed(0,1000); // If this is 800(less than x2 times of previos speed then works fine 

BSP_MotorControl_SetMinSpeed(0,500);  // If this is 400(less than x2 times of previous speed then works fine  

BSP_MotorControl_Move(0,FORWARD,200); 

BSP_MotorControl_WaitWhileActive(0);

I am trying to write a g code parser, and I need to change speed at run time with the F parameter/letter of the g code.(feed rate)

But cant use x-cube-spn1 library if feed rate changes more than double or half.

#x-cube-spn1 #step-motor-l6474
0 REPLIES 0