Convert workpiece to machine coordinates