Access from the user program
KL6031/KS6031, KL6041/KS6041 35Version: 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 CW.1 [}34] (RA). Only
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
00000000
bin
00000000
bin
xxxxxxxx
bin
0000x0x0
bin
Start of data transmission
00000010
bin
00000001
bin
xxxxxxxx
bin
0000x0x0
bin
The controller requests transmission
of 2bytes by the terminal
00000010
bin
00000001
bin
xxxxxxxx
bin
0000x0x1
bin
Command is executed: Terminal has
loaded 2bytes into the transmission
FIFO
00010000
bin
00000000
bin
xxxxxxxx
bin
0000x0x1
bin
The controller requests transmission
of 16bytes by the terminal
00010000
bin
00000000
bin
xxxxxxxx
bin
0000x0x0
bin
Command is executed: Terminal has
loaded 16bytes 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
xxxxxxxx
bin
0000000x
bin
00000000
bin
0000000x
bin
Start of data transmission
xxxxxxxx
bin
0000000x
bin
00000011
bin
0000001x
bin
The terminal requests transfer of
3bytes from the controller
xxxxxxxx
bin
0000001x
bin
00000011
bin
0000001x
bin
Acknowledgement: Controller has
received 3bytes from the receive
FIFO
xxxxxxxx
bin
0000001x
bin
00010110
bin
0000000x
bin
The terminal requests transfer of
22bytes from the controller
xxxxxxxx
bin
0000000x
bin
00010110
bin
0000000x
bin
Acknowledgement: Controller has
received 22bytes from the receive
FIFO