So at work, on our main chain, we have an encoder disk with a set number of holes around the edge and a photoeye that sits there and is made and broken as holes and solid portions of the disk are passed between the transmitter and receiver. This is used to track trolleys as they travel down the chain. What I am curious about is how do you do the math to relate the number of holes and size of the disk to the pulses and speed of the chain, it is seeming to elude me. I would like to learn how to do the math for something such as this.