Register description
The registers are used for parameterization the M-Bus master terminal. They can be read or written by means of the register communication.
R0: Number of data bytes in the send buffer
Register R0 contains the number of data in the transmit FIFO.
R1: Number of data bytes in the receive buffer
Register R1 contains the number of data in the receive FIFO.
R6: Diagnostic register
Bit | R6.15 | R6.14 | R6.13 | R6.12 | R6.11 | R6.10 | R6.9 | R6.8 |
Name | - | - | - | - | - | - | - | - |
Bit | R6.7 | R6.6 | R6.5 | R6.4 | R6.3 | R6.2 | R6.1 | R6.0 |
Name | - | - | - | BufferOverflow | Overrun | Framing error | Parity error | RxBufferOverflow |
Key
Bit | Name | Description | default | |
---|---|---|---|---|
R6.15…5 | - | - | reserved | - |
R6.4 | BufferOverflow | 1bin | Buffer is full | 0bin |
R6.3 | Overrun | 1bin | An overrun error has occurred | 0bin |
R6.2 | Framing error | 1bin | A framing error has occurred | 0bin |
R6.1 | Parity error | 1bin | A parity error has occurred | 0bin |
R6.0 | RxBufferOverflow | 1bin | The receive buffer has overflowed, incoming data is lost. | 0bin |
R7: Command register
The command register of the KL6781 is not used.
R8: Terminal type
The terminal name is contained in register R8:
KL6781: 0x1A7D (6781dec)
R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3141 = '1A'. The '0x31' corresponds here to the ASCII character '1', while the '0x41' represents the ASCII character 'A'.
This value cannot be changed.
R16: Hardware version
Register R16 contains the hardware version of the terminal.
R29: Terminal type - special identification
The name of the special type of the terminal is contained in register R29. KL6781-0000: 0x0000 (0000dec)
R31: Code word register
- If you write values into the user registers without first entering the user code word (0x1235) into the code word register, the terminal will not accept the supplied data.
- 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 SEEPROM registers and are therefore retained when the terminal is restarted.
The code word is reset when the terminal is restarted.
R32: Baud rate register
Bit | R32.15 | R32.14 | R32.13 | R32.12 | R32.11 | R32.10 | R32.9 | R32.8 |
Name | - | - | - | - | - | - | - | - |
Bit | R32.7 | R32.6 | R32.5 | R32.4 | R32.3 | R32.2 | R32.1 | R32.0 |
Name | - | - | - | - | - | Baud rate |
Key
Bit | Name | Description | default | |
---|---|---|---|---|
R32.15 - R32.3 | - | reserved | 0bin | |
R32.2 - R32.0 | Baud rate | 110bin | 9600 baud | 100bin |
101bin | 4800 baud | |||
100bin | 2400 baud (default) | |||
11bin | 1200 baud | |||
010bin | 600 baud | |||
001bin | 300 baud |