Internet PLC Forum

General => Technical support => Topic started by: cch1955 on June 19, 2012, 10:22:09 AM

Title: Zero speed sensor question
Post by: cch1955 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?
Title: Re:Zero speed sensor question
Post by: support 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.

Title: Re:Zero speed sensor question
Post by: cch1955 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.