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
- If you write values into the user registers without previously having entered the user code word (0x1235) in the code word register, these values are only stored in the RAM registers, but not in the EPROM registers and are therefore lost if the terminal is restarted.
- If you write values into the user registers and have previously entered the user code word (0x1235) in the code word register, these values are stored in the RAM registers and in the EPROM registers and are therefore retained if the terminal is restarted.
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 | |
R32.6 | enCompact | 0bin | KL5151-0050, KL5152-0000: | KL5151-0000: 0bin |
1bin | KL5151-0050, KL5152-0000: | |||
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 |
![]() | 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: | |||
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).