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 | 1bin | Buffer is full | 0bin |
R6.3 | 1bin | An overrun error has occurred | 0bin |
R6.2 | 1bin | A framing error has occurred | 0bin |
R6.1 | 1bin | A parity error has occurred | 0bin |
R6.0 | 1bin | The receive buffer has overflowed, incoming data is lost | 0bin |
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! |
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 (6031dec)
KL6041: 0x1799 (6041dec)
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.
R18: Buffer full
Register R18 defines the number of data in the input FIFO from which the BUF_F bit is set in the Status word
R31-R35: User registers
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 written into the RAM registers and in the EEPROM registers and are therefore retained if the terminal is restarted.
The code word is reset when the terminal is restarted.
R32: Bit/s rate
R32 defines the bit/s rate of the terminal. The delivery state is 9600 bit/s.
Bit 15 … 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | Baud rate |
---|---|---|---|---|---|
reserved | 1 | 0 | 1 | 0 | 115200 bit/s |
reserved | 1 | 0 | 0 | 1 | 57600 bit/s |
reserved | 1 | 0 | 0 | 0 | 38400 bit/s |
reserved | 0 | 1 | 1 | 1 | 19200 bit/s |
reserved | 0 | 1 | 1 | 0 | 9600 bit/s (default) |
reserved | 0 | 1 | 0 | 1 | 4800 bit/s |
R33: Data Frame
R33 defines the setting of the data format. The delivery state is 8 data bits, no parity.
Bit 15 … 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | Meaning |
---|---|---|---|---|---|
reserved | 0bin: 1 stop bit; 1bin: 2 stop bits | 1 | 0 | 1 | 8 data bits, odd parity |
reserved | 0bin: 1 stop bit; 1bin: 2 stop bits | 1 | 0 | 0 | 8 data bits, even parity |
reserved | 0bin: 1 stop bit; 1bin: 2 stop bits | 0 | 1 | 1 | 8 data bits, no parity (default) |
reserved | 0bin: 1 stop bit; 1bin: 2 stop bits | 0 | 1 | 0 | 7 data bits, odd parity |
reserved | 0bin: 1 stop bit; 1bin: 2 stop bits | 0 | 0 | 1 | 7 data bits, even parity |
R34: Feature register
R34 defines the operation mode of the terminal.
Bit | Description of the operation mode | default | ||
---|---|---|---|---|
R34.15 … R34.9 | - | reserved | - | |
R34.8 | 0bin | No transfer rate optimization | 1bin | |
1bin | Transfer rate optimization | |||
R34.7 | 0bin | Small and medium process data image | 1bin | |
1bin | Extended process data image | |||
R34.6 | 0bin | Direct transmission from the FIFO | 0bin | |
1bin | Continuous transmission from the FIFO | |||
R34.5 | 0bin | KL6031: | reserved | - |
KL6041: | Point to point connection disabled | 0bin | ||
1bin | KL6031: | reserved | - | |
KL6041: | Point to point connection enabled | - | ||
R34.4 | 0bin | No support for the XON/XOFF protocol when receiving data | 0bin | |
1bin | Support for the XON/XOFF protocol when receiving data | |||
R34.3 | 0bin | No support for the XON/XOFF protocol when transmitting data | 0bin | |
1bin | Support for the XON/XOFF protocol when transmitting data | |||
R34.2 | 0bin | No delayed Status byte | 0bin | |
1bin | Delayed Status byte | |||
R34.1 | 0bin | Standard output format (note R35!) | 0bin | |
1bin | Alternative output format | |||
R34.0 | 0bin | KL6031: | RTS, CTS deactivated | - |
KL6041: | Full duplex | 0bin | ||
1bin | KL6031: | RTS, CTS activated | 1bin | |
KL6041: | Half duplex | - |
R35: Number of data bytes mapped in the Bus Coupler
R35 defines the number of data bytes mapped in the Bus Coupler.
Bit 15 … 15 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | Data bytes |
---|---|---|---|---|---|---|
reserved | 1 | 0 | 1 | 1 | 1 | 22 bytes + 1 Control/Status word in the extended process data image (see R34.7) |
reserved | 0 | 0 | 1 | 1 | 0 | 5 bytes + 1 Control/Status byte |
reserved | 0 | 0 | 0 | 1 | 1 | 3 bytes + 1 Control/Status byte |