photoelectric encoder testing