Access from the user program
KL6031/KS6031, KL6041/KS6041
35
Version: 2.1.0
Key
Bit
Name
Description
SW.15
...
SW8
IL7 ... IL0
(InLenght*)
1
dec
... 22
dec
If the large process image is used: Number of input bytes available for transfer from the
terminal to the controller.
-
If the small/medium process image is used: not shown
SW.7
-
0
bin
reserved
SW.6
...
SW.4
IL2* ... IL0*
(InLenght*)
0
If the large process image is used: reserved
1 ... 6
If the medium process image is used: Number of input bytes available for transfer from
the terminal to the controller.
1 ... 4
If the small process image is used: Number of input bytes available for transfer from the
terminal to the controller.
SW.3
BUF_F
1
bin
The receive FIFO is full. All further incoming data will be lost!
SW.2
IA
(InitAccepted-Bit)
1
bin
Initialization was completed by the terminal.
0
bin
The terminal is ready again for serial data exchange.
SW.1
RR
(ReceiveRequest)
toggle
Via a change of state of this bit the terminal notifies the controller that the DataIn bytes
contain the number of bytes indicated via the IL bits. The controller has to acknowledge
receipt of the data in the control byte via a change of state of bit
then new data can be transferred from the terminal to the controller.
SW.0
TA
(TransmitAccepted)
toggle
The terminal acknowledges receipt of data by changing the state of this bit. Only now
new data can be transferred from the controller to the terminal.
Data transfer examples
The examples use the large process image.
Data transfer from the controller to the terminal
Control word
Status word
Comment
CW.15 ... CW.8 CW.7 ... CW.1
SW.15 ... SW.8
SW.7 ... SW.1
0000 0000
bin
0000 0000
bin
xxxx xxxx
bin
0000 x0x0
bin
Start of data transmission
0000 00
10
bin
0000 000
1
bin
xxxx xxxx
bin
0000 x0x0
bin
The controller requests transmission
of
2
bytes by the terminal
0000 0010
bin
0000 0001
bin
xxxx xxxx
bin
0000 x0x
1
bin
Command is executed: Terminal has
loaded
2
bytes into the transmission
FIFO
000
1 0000
bin
0000 000
0
bin
xxxx xxxx
bin
0000 x0x1
bin
The controller requests transmission
of
16
bytes by the terminal
0001 0000
bin
0000 0000
bin
xxxx xxxx
bin
0000 x0x
0
bin
Command is executed: Terminal has
loaded
16
bytes into the transmission
FIFO
Data transfer from the terminal to the controller
Control word
Status word
Comment
CW.15 ... CW.8 CW.7 ... CW.1
SW.15 ... SW.8
SW.7 ... SW.1
xxxx xxxx
bin
0000 000x
bin
0000 0000
bin
0000 000x
bin
Start of data transmission
xxxx xxxx
bin
0000 000x
bin
0000 00
11
bin
0000 00
1
x
bin
The terminal requests transfer of
3
bytes from the controller
xxxx xxxx
bin
0000 00
1
x
bin
0000 0011
bin
0000 001x
bin
Acknowledgement: Controller has
received
3
bytes from the receive
FIFO
xxxx xxxx
bin
0000 001x
bin
000
1 0110
bin
0000 00
0
x
bin
The terminal requests transfer of
22
bytes from the controller
xxxx xxxx
bin
0000 00
0
x
bin
0001 0110
bin
0000 000x
bin
Acknowledgement: Controller has
received
22
bytes from the receive
FIFO
Содержание 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: ......