
Access from the user program
KL6031/KS6031, KL6041/KS6041
38
Version: 2.1.0
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
default
R6.15 … R6.5
-
reserved
-
R6.4
1
bin
Buffer is full
0
bin
R6.3
1
bin
An overrun error has occurred
0
bin
R6.2
1
bin
A framing error has occurred
0
bin
R6.1
1
bin
A parity error has occurred
0
bin
R6.0
1
bin
The receive buffer has overflowed, incoming data is lost
0
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
!
Command 0x7000: Restore Factory Settings
Entering 0x7000 in register R7 restores the delivery state for the following registers.
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.
Содержание KL6031 Series
Страница 1: ...Documentation EN KL6031 KS6031 KL6041 KS6041 Serial Interface Terminals 2022 06 08 Version 2 1 0...
Страница 2: ......
Страница 4: ...Table of contents KL6031 KS6031 KL6041 KS6041 4 Version 2 1 0...
Страница 52: ......