cancel
Showing results for 
Search instead for 
Did you mean: 

Motor under MC Workbench can spin but not with my codes

dannypkchan
Associate II

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

1 REPLY 1
luukredstone
Associate II

Did you find the problem?