Dead line encoder