Beckhoff KS6031 Documentation page 35

Serial interface terminals
Table of Contents

Advertisement

Key
Bit
Name
SW.15
IL7 ... IL0
...
(InLenght*)
SW8
SW.7
-
SW.6
IL2* ... IL0*
...
(InLenght*)
SW.4
SW.3
BUF_F
SW.2
IA
(InitAccepted-Bit)
SW.1
RR
(ReceiveRequest)
SW.0
TA
(TransmitAccepted)
Data transfer examples
The examples use the large process image.
Data transfer from the controller to the terminal
Control word
CW.15 ... CW.8 CW.7 ... CW.1
0000 0000
0000 0000
bin
0000 0010
0000 0001
bin
0000 0010
0000 0001
bin
0001 0000
0000 0000
bin
0001 0000
0000 0000
bin
Data transfer from the terminal to the controller
Control word
CW.15 ... CW.8 CW.7 ... CW.1
xxxx xxxx
0000 000x
bin
xxxx xxxx
0000 000x
bin
xxxx xxxx
0000 001x
bin
xxxx xxxx
0000 001x
bin
xxxx xxxx
0000 000x
bin
KL6031/KS6031, KL6041/KS6041
Description
1
 ... 22
If the large process image is used: Number of input bytes available for transfer from the
dec
dec
terminal to the controller.
-
If the small/medium process image is used: not shown
0
reserved
bin
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.
1
The receive FIFO is full. All further incoming data will be lost!
bin
1
Initialization was completed by the terminal.
bin
0
The terminal is ready again for serial data exchange.
bin
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.
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.
Status word
SW.15 ... SW.8
xxxx xxxx
bin
bin
xxxx xxxx
bin
bin
xxxx xxxx
bin
bin
xxxx xxxx
bin
bin
xxxx xxxx
bin
bin
Status word
SW.15 ... SW.8
0000 0000
bin
bin
0000 0011
bin
bin
0000 0011
bin
bin
0001 0110
bin
bin
0001 0110
bin
bin
Version: 2.1.0
Comment
SW.7 ... SW.1
0000 x0x0
Start of data transmission
bin
0000 x0x0
The controller requests transmission
bin
of 2 bytes by the terminal
0000 x0x1
Command is executed: Terminal has
bin
loaded 2 bytes into the transmission
FIFO
0000 x0x1
The controller requests transmission
bin
of 16 bytes by the terminal
0000 x0x0
Command is executed: Terminal has
bin
loaded 16 bytes into the transmission
FIFO
Comment
SW.7 ... SW.1
0000 000x
Start of data transmission
bin
0000 001x
The terminal requests transfer of
bin
3 bytes from the controller
0000 001x
Acknowledgement: Controller has
bin
received 3 bytes from the receive
FIFO
0000 000x
The terminal requests transfer of
bin
22 bytes from the controller
0000 000x
Acknowledgement: Controller has
bin
received 22 bytes from the receive
FIFO
Access from the user program
35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kl6031Kl6041Ks6041

Table of Contents