This is a pendant-style manual pulse generator (MPG) designed for CNC systems, compatible with FANUC via 5V TTL outputs. See photos for details. World Encoders.
eBay