how to measure conveyor speed with encoders