BECKHOFF KL6001 User Manual

Page 15

Advertising
background image

Data transfer, function

KL6001

15


Example

Output

Control byte

Input
status byte

Comment

00000000

0XXXX0X0

Start of data transfer

00100001

Data bytes: in D0 and D1

0XXXX0X0

Controller requests sending of
2-data from the terminal

....

....

00100001

Data bytes: in D0 and D1

0XXXX0X1

Terminal has loaded 2-data
into the send FIFO and the-
command has been executed.

01010000

Data bytes in D0 to D4

0XXXX0X1
Data bytes:DC

Controller requests sending of
5-data (D0-D4) from the termi-
nal

....

....

01010000

Data bytes: in D0 und D1

0XXXX0X0

Terminal has loaded 5-data
into the send FIFO and the
command has been executed



RA/RR:REICEIVE-
ACCEPTED/RECEIVE-
REQUEST

By way of a status change of RR, the terminal informs the controller that
the number of data items indicated in IL0-IL1 is located in D0-D4. Transfer
of the data is acknowledged in the control byte with RA, and only then is
new data transferred from the terminal to the controller.

Example

Output

control byte

Input
status byte

Comment

00000000

0XXXX00X

Start of data transfer

0XXX000X

0011X01X

Terminal requests acceptance of 3-
data from D0-D2 by the controller.

....

....

0XXX001X

0011X01X

Controller has accepted data

0XXX001X

0101X00X

Terminal requests acceptance of
5-data from D0-D4 by the controller

....

....

0XXX000X

0101X00X

Controller has accepted data



IR/IA:
INIT-REQUEST/INIT-
ACCEPTED

The terminal performs initialization if IR is high. The send and receive func-
tions are disabled, the FIFO flags are reset and the interface is initialized
with the values of the responsible registers (R32-R35,R18). The terminal
acknowledges execution of initialization with IA.

Example

Output

control byte

Input
status byte

Comment

0XXXXXXX

0XXXXXXX

Start of data transfer

00000100

0XXXXXXX

Initialization is requested by the con-
troller.

....

....

00000100

00000100

Terminal has completed initialization

00000000

00000100

Controller requests data exchange

....

....

00000000

00000000

Terminal is ready

Advertising
This manual is related to the following products: