Access from the user program
KL6781
18
Version: 2.0.0
4
Access from the user program
4.1
Register Overview
The registers are used for parameterization the M-bus master terminal. They can be read or written by
means of the
.
Register no.
Comment
Default value
R/W
Memory
Number of data bytes in the send buffer
variable
variable
R
RAM
Number of data bytes in the receive buffer
variable
variable
R
RAM
R2
Number of parity errors
0x0000
0
dec
R
-
R3
Number of framing errors
0x0000
0
dec
R
-
R4
reserved
0x0000
0
dec
R
-
R5
reserved
0x0000
0
dec
R
-
Diagnostic register
variable
variable
R
RAM
Command register
0x0000
0
dec
R/W
RAM
Terminal type
0x1A7D
6781
dec
R
ROM
Firmware version
variable
variable
R
ROM
R10
reserved
0x0000
0
dec
-
-
...
...
...
...
...
...
R15
reserved
0x0000
0
dec
-
-
R16
Hardware version
e.g. 0x0000
e.g.: 0
dec
...
EEPROM
R17
reserved
0x0000
0
dec
-
-
...
...
...
...
...
...
R18
reserved
0x0000
0
dec
-
-
Terminal type - special identification
0x0000
0
dec
R
EEPROM
R30
reserved
0x0000
0
dec
R/W
RAM
Code word register
0x0000
0
dec
R/W
RAM
Baud rate register
0x0004
4
dec
R/W
EEPROM
R33
reserved
0x0000
0
dec
R/W
-
...
...
...
...
...
...
R63
reserved
0x0000
0
dec
R/W
-