I have a series of 12 silos. All of the silos are filled by a cart that makes a simple limit switch to tell it which silo it's over. It runs foward and reverse, increasing and decreasing the position index. If I had a bad limit switch, it would increase the position by two. I need this to alarm if it misses a switch and I'm not sure how to write it. Basically, if I am traveling foward/reverse and my position increases/decreases by more that one, then energize a bit. How do I write it to determine a moving position index that moves more than one position? Thanks for the help