Rotary encoder for the programmer