Linear scale magnetic grating ruler with origin reference point CNC displacement sensor machine tool digital display