Skip to main content
dannypkchan
Associate III
April 27, 2022
Question

Motor under MC Workbench can spin but not with my codes

  • April 27, 2022
  • 1 reply
  • 927 views

Hi, I have one 6 pair magnet Motor can spin under profiler and workbench, however with generate code on IDE it's unable start, MOTOR STATE keep on RUN state

motorState = MC_GetSTMStateMotor1();

if (motorState == FAULT_OVER)

{

MC_AcknowledgeFaultMotor1();

}

if ((motorState == IDLE)||(motorState == RUN))

{

MC_ProgramSpeedRampMotor1(800, 1);

MC_StartMotor1();

}

thanks, Danny

Hardware : F303RE board + IHM083S

This topic has been closed for replies.

1 reply

Associate
March 1, 2024

Did you find the problem?