KL5111 - Incremental encoder interface

Basic Function Principles

The KL5111 incremental encoder interface terminal enables any incremental encoder to be connected to the Bus Coupler or the controller. The terminal can be operated in two operation modes (adjustable via feature register). The terminal is supplied as an incremental encoder interface. In this operation mode, the terminal evaluates the encoder signals A, B, C as a 4-fold quadrature decoder. The encoder is supplied with the available supply voltage (24 VDC). In addition, the KL5111 can be used as a 16-bit up/down counter. Regardless of the operation mode set, a period measurement with a resolution of 200 ns of input A is possible.


LED display

The signal LEDs indicate the state of the encoder inputs A, B, C. The corresponding LED is switched on for each high signal at the input.



A, B, zero signals

Shield connection

24 VDC power contacts for encoder supply with automatic potential bridging to adjacent terminal.


Operation modes

Can be set via the feature register (default setting incremental encoder):
A, B, zero pulse incremental encoder (default)

Up/down counter with:

A = count; the positive edges of the input pulses are counted
B = up/down input
B = 0: Up count direction
B = 1: Down count direction
C = gate input
C = 0: Counter enabled
C = 1: Counter is locked


Set counter
Activate zero pulse and save valid value
Determination of the period duration between two pulses with a resolution of 200 ns (the time between two positive edges of input signal A is evaluated).
Display of the input signals A, B, C in the process data
Display of a counter overflow or underflow.

Process data

The KL5111 always occupies 6 bytes of input data and 6 bytes of output data. The control/status byte is located at the lowest byte offset. The data word D0/D1 contains the counter word (read/set), the data word D3/D4 contains the latch word (read).