Author Topic: Zero speed sensor question  (Read 12289 times)

cch1955

  • Full Member
  • Posts: 198
  • Automated Machine Systems Designer
    • View Profile
Zero speed sensor question
« on: June 19, 2012, 10:22:09 AM »
FMD1616-10

I am using PULSEFREQUENCY to determine when an encoder input bit to HSC has zero or very low frequency (has come to a stop) . The issue is it detects the state very slowly - maybe 2-3 seconds. I have tried many ways of coding it with same results.

Possibly another tool is better at detecting low speed state change faster?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Zero speed sensor question
« Reply #1 on: June 19, 2012, 11:31:48 AM »
You could connect the encoder input in parallel to a regular input. The NO contact of this regular input drives one timer and the NC contact of this regular input drives another timer. Set both timers to time out after 1 seconds. As long as the encoder is rotating both timer will be reset and neither will time out. But when the encoder stop rotating, one of the timers will time out within 1 second since the encoder stop and this could be used by your program to determine that the encoder has stopped.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cch1955

  • Full Member
  • Posts: 198
  • Automated Machine Systems Designer
    • View Profile
Re:Zero speed sensor question
« Reply #2 on: June 25, 2012, 01:54:21 PM »
I appreciate the suggestion, nice simple idea. I used it 100% and so far, so good. Might be a good example to add to sample code section since need is common to many applications.