Access from the user program
5.3
Register description
All registers can be read or written via register communication. They are used for parameterizing the
terminals.
R0: Number of data bytes in the send buffer
R0 contains the number of data in the transmission FIFO.
R1: Number of data bytes in the receive buffer
R0 contains the number of data in the receive FIFO.
R6: Diagnostic register
Bit
Description
R6.15 ... R6.5
-
reserved
R6.4
1
Buffer is full
bin
R6.3
1
An overrun error has occurred
bin
R6.2
1
A framing error has occurred
bin
R6.1
1
A parity error has occurred
bin
R6.0
1
The receive buffer has overflowed, incoming data is lost
bin
R7: Command register
User code word
For the following commands to be executed, it is first necessary for the user code word, 0x1235, to
be entered into register R31 [} 39]!
Command 0x7000: Restore Factory Settings
Entering 0x7000 in register R7 restores the delivery state for the following registers.
R18 [} 39]: 0x0400
R32 [} 39]: 0x0006
R33 [} 39]: 0x0003
R34 [} 39]: 0x0181
R35 [} 39]: 0x0017
R8: Terminal type
The terminal name is contained in register R8:
KL6031: 0x178F (6031
dec
KL6041: 0x1799 (6041
dec
R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3143 = '1C'. The '0x31'
corresponds here to the ASCII character '1', while the '0x43' represents the ASCII character 'C'.
This value cannot be changed.
R16: Hardware version number
Register R16 contains the hardware version of the terminal.
38
)
)
Version: 2.1.0
KL6031/KS6031, KL6041/KS6041
default
-
0
bin
0
bin
0
bin
0
bin
0
bin