2022-04-26 10:18 PM
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
2024-03-01 04:30 AM
Did you find the problem?