Skip to main content
jgil
Associate III
February 10, 2009
Question

Turn CW or CCW

  • February 10, 2009
  • 3 replies
  • 802 views
Posted on February 10, 2009 at 14:51

Turn CW or CCW

This topic has been closed for replies.

3 replies

jgil
jgilAuthor
Associate III
May 17, 2011
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

jgil
jgilAuthor
Associate III
May 17, 2011
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.

stello
Visitor II
May 17, 2011
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