cancel
Showing results for 
Search instead for 
Did you mean: 

What you need to do for the correct switching micro step mode on the fly on IC ST L6472? Full step bug after Run commands!

Am.14
Associate

Dear ST.

What you need to do for the correct switching micro step mode on the fly on IC ST L6472? 

When i simple change STEP Mode and Reset EL_POS register i have spurioos bug with incorect direction after execute Run command my steper motor(rotate in opposite direction

).

This bug only in full step mode.in all microsteps behavior motor is normal.

CODE for this sequnce

cSPIN_Hard_HiZ();
 
   cSPIN_Registers_Set(&g_cSPIN);
 
   cSPIN_SetAcc(ACC);
 
   cSPIN_SetDec(DEC);
 
   cSPIN_SetMinSpeed(BeginSpeed);
 
   cSPIN_Set_Param(cSPIN_STEP_MODE,(uint8_t)(g_StepMode | 0x8)); 
 
   cSPIN_Set_Param(cSPIN_ABS_POS,0);
 
   cSPIN_Set_Param(cSPIN_EL_POS,0); 
 
   cSPIN_Reset_Pos();
 
   uint32_t EndSpeedW = Speed_Steps_to_Par(EndSpeed);
 
   cSPIN_Run(Direction,EndSpeedW);
 

What i doing wrong?

Best Regards.

0 REPLIES 0