Access from the user program
KL6001
32
Version: 3.0.0
Feature bit no.
Description of the operation mode
Bit 0
1
/RTS, /CTS enable [1]
Bit 1
0/1
0: Standard output format (note R35!)
1: Alternative output format [1]
Bit 2
1
The status byte is copied from the terminal into the shift registers of
the K-bus one cycle later than the higher data bytes. This reduces the
rate of data transmission to the controller. [0]
Bit 3
1
The XON/XOFF protocol is supported by the terminal when data is
sent, i.e. the terminal sends the data transferred by the controller until
it receives the XOFF character (DC3==0x13) from the partner device.
Once this has occurred, transmission is halted until the XON
character (DC1==0x11) is received. [0]
Bit 4
1
The XON/XOFF protocol is supported by the terminal when data is
received. The terminal sends the control character XOFF when the
terminal buffer contains 118 characters. XON is sent if XOFF was
sent previously and the value falls below the lower buffer limit of
18 bytes. [0]
Bit 5
-
not used – do not change!
Bit 6
1
Continuous sending of data from the FIFO. The send buffer is filled
(up to 16 bytes) by the controller. The filled buffer content is
transmitted with a rising edge in Control Byte 3. The terminal
acknowledges the data transfer to the controller by setting the Status
Byte 2 bit. Status Byte 2 is reset with Control Byte 3.
Bit 7-15
-
not used – do not change!
Note on bit 6
This feature is available for all terminals with software version 3x or higher. The version information
can be found on the right-hand side of the terminal in the serial number: xxxx3xxx
Example: 5298
3A
2A = software version
3A
•
R35: Number of data bytes mapped in the Bus Coupler
[0x0003]
Low byte: Number of data bytes transferred in the Bus Coupler and to the controller. Between 1 and 5
data bytes can be transferred. If more than 3 bytes of user data are to be transferred, the new number
of bytes must be entered in this register.
High byte = not used
•
R47 - R63
Extended registers with additional functions.
5.5
Register communication KL6001
Register access via process data exchange
•
Bit 7=1: Register mode
If bit 7 of the control byte is set, the first two bytes of the user data are not used for process data
exchange but written into the register set of the terminal or read from it.
•
Bit 6=0: read, bit 6=1: write
Bit 6 of the control bytes is used to specify whether a register should be read or written.
◦
Bit 6=0:
A register is read without changing it. The value can be found in the input process image.
◦
Bit 6=1:
The user data are written into a register. The process is complete once the status byte in
the input process image has returned an acknowledgment (see example).
•
Bit 0 to 5: Address
The address of the register to be addressed is entered in bits 0 to 5 of the control byte.
Содержание KL6001
Страница 1: ...Documentation KL6001 Serial Interface RS232 C 3 0 0 2019 09 25 Version Date...
Страница 2: ......
Страница 4: ...Table of content KL6001 4 Version 3 0 0...