Wire-type Linear encoder