cancel
Showing results for 
Search instead for 
Did you mean: 

Turn CW or CCW

jgil
Associate II
Posted on February 10, 2009 at 14:51

Turn CW or CCW

3 REPLIES 3
jgil
Associate II
Posted on May 17, 2011 at 10:15

Hi

In my application the motor turns in both directions Cw and CCW. I have seen that the fogui is alone positively and in changing PID SPEED REFERENCE RPM there is a compiler error.

Best regards

stello
Associate II
Posted on May 17, 2011 at 10:15

Hello ihsguru,

thanks a lot for your pointing out. The bug is at line 31 of MC_PID_regulators.c file.

Try changing

#define PID_SPEED_REFERENCE (u16)(PID_SPEED_REFERENCE_RPM/6)

into

#define PID_SPEED_REFERENCE (s16)(PID_SPEED_REFERENCE_RPM/6)

Regards,

BilLino

jgil
Associate II
Posted on May 17, 2011 at 10:15

Hello.

I have tried the solution that you propose me and it works.

Thank you very much.