Skip to main content
CBeif.1
Associate II
May 18, 2020
Question

POWERSTEP01, When in external step mode, how does KVAL get calculated for VOLTAGE MODE?

  • May 18, 2020
  • 3 replies
  • 1060 views

I know that Vout = Vs * Kval

I know that

Kval = [(Kval_x * BEMF_COMP) * VSCOMP * K_THERM]*microstep

In the datasheet KVal_x is either KVAL_ACC, KVAL_DEC, KVAL_RUN, or KVAL_HOLD

depending on the state of the motion planner.

But, I am not using the internal motion planner, I am providing an external

step pin. So how do I control the Kval in this situation?

This topic has been closed for replies.

3 replies

Cristiana SCARAMEL
ST Employee
May 22, 2020

In Step-clock mode the SPEED register is set to zero and motor status is considered stopped regardless of the STCK signal frequency.

So you need to consider the KVAL_HOLD.

"If you feel a post has answered your question, please click ""Accept as Solution"""
CBeif.1
CBeif.1Author
Associate II
June 4, 2020

Thanks, Does that also mean BEMF compensation does not work in external STEP MODE?

Cristiana SCARAMEL
ST Employee
June 8, 2020

Acceleration compensation curve is applied when the motor runs.

No BEMF compensation is applied when the motor is stopped as is in fact considered the motor in step-clock mode.

"If you feel a post has answered your question, please click ""Accept as Solution"""