Register description

R0: Filter register (KL5151-0021 only)

Workpiece lengths are only valid if they are longer than the lengths specified here (specified in increments).

R6: Diagnostic register

Is not used

R7: Command register

Is not used

R8: Terminal description

Register R8 contains the terminal identifier in hexadecimal coding.
KL5151-0000: 0x141F (5151dec)
KL5151-0023: 0x141F (5151dec)
KL5151-0050: 0x141F (5151dec)
KL5152-0000: 0x1420 (5152dec)

R9: Firmware version

Register R9 contains the firmware revision level of the terminal in hexadecimal coding, e.g. 0x3341. This is to be interpreted as an ASCII code:
- ASCII code 0x33 represents the digit 3
- ASCII code 0x41 represents the letter A
So the firmware version is 3A in this example.

R10: Shift register length

0x0228

R11: Number of signal channels

KL5151-0000: 0x0128 (296dec)
KL5151-0023: 0x0150 (336dec)
KL5151-0050: 0x0228 (552dec)
KL5152-0000: 0x0228 (552dec)

R12: Minimum data length

KL5151-0000: 0x2828 (10280dec)
KL5151-0023: 0x5050 (20560dec)
KL5151-0050: 0xA8A8 (43176dec)
KL5152-0000: 0xA8A8 (43176dec)

R13: Data type

Register R13 contains the data type of the Bus Terminal. 0x0006 represents a special function.

R15: Alignment register

The terminal in the Bus Coupler is set to a byte limit with the bits of the alignment register.

R16: Hardware version number

Register R16 contains the hardware revision level of the terminal in hexadecimal coding, e.g. 0x0000 (0dec).

R29: Terminal type - special identification

KL5151-0000: 0x0000 (0dec)
KL5151-0023: 0x0017 (23dec)
KL5151-0050: 0x0032 (50dec)
KL5152-0000: 0x0000 (0dec)

User register

The user registers of the terminal can be written by the user program in order to change the characteristics of the terminal at run-time.

R31: Code word register

The code word is reset if the terminal is restarted.

R32: Feature register (KL5151-0000, KL5151-0050, KL5152-0000)

The feature register specifies a variety of properties for the terminal.

Bit

Feature

Value

Explanation

Default

R32.15

OperationMode

0bin

Encoder interface

0bin

1bin

One channel counter (32-bit up/down)

R32.14

-

reserved

0bin

...

...

...

...

R32.8

-

reserved

0bin

R32.7

-

reserved

KL5151-0000: 0bin
KL5151-0021: 0bin
KL5151-0050: 1bin
KL5152-0000: 1bin

R32.6

enCompact
ProcessImage

0bin

KL5151-0050, KL5152-0000:
complete process image with status and control bytes
KL5151-0000:
complete process image with status and control byte

KL5151-0000: 0bin
KL5151-0021: 0bin
KL5151-0050: 1bin
KL5152-0000: 1bin

1bin

KL5151-0050, KL5152-0000:
Compact process image without status byte but with control byte
KL5151-0000:
Compact process image without status byte and without control byte
Useful operation of the KL5151-0000 with compact process image is not possible, since the control byte is required for the control of the counter and the latch!

R32.5

enPosGateLock

0bin

A positive level at the gate input does not lock the counter.

0bin

1bin

A positive level at the gate input locks the counter.

R32.4

enNegGateLock

0bin

A negative level at the gate input does not lock the counter.

0bin

1bin

A negative level at the gate input locks the counter.

R32.3

-

reserved

0bin

...

...

...

...

R32.0

-

reserved

0bin

Register description 1:

Operation of KL5152-0000 (KL5151-0050) as one channel counter

Because for operation of KL5152-0000 (KL5151-0050) as a counter the A2 connector is used to enable the counter (gate), the operation as a two channel counter is not possible.

R32: Feature register (KL5151-0021)

The feature register specifies a variety of properties for the terminal.

Bit

Feature

Value

Explanation

Default

R32.15

-

reserved

0bin

R32.14

B_MES_INV

0bin

determine the positive edge first, then the negative

0bin

1bin

carry out an inverted measurement:
i.e. determine the negative edge first, then the positive

R32.13

-

reserved

0bin

...

...

...

...

R32.0

-

reserved

0bin

R35: Filter default (KL5151-0021 only)

The value stored here is entered after a reset of the terminal in register R0 (specified in increments).