Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Revolution Counter with Rollover

Revolution Counter with Rollover 2 years, 1 month ago #1590

  • JefAWI
  • OFFLINE
  • Posts: 3
  • Karma: 0
Hi.
I have an application in which I have to run a SmartMotor continuously for several weeks or months as part of a product endurance test. I want to be able to reliably, and without loss, count the number of motor revolutions during the test. It's easy enough to come up with something that counts the revolutions but I'm having trouble with the encoder rollover. Has anyone done this before? Any tips or code that can be shared?

Thanks.

Jeff.

Re: Revolution Counter with Rollover 2 years, 1 month ago #1591

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
If it's a Class5 motor... Status Word 3, Bit 3 gets set when a Wraparound occurs. You could set up an interrupt to trigger on that bit, and increment an EEPROM location or a variable.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.39 seconds