Table 11 Legend For The Control Word; Table 12 Status Word Structure; Table 13 Legend For Status Word - Beckhoff CX8180 Manual

Embedded pc with rs232/rs485
Hide thumbs Also See for CX8180:
Table of Contents

Advertisement

Configuration
Table 11: Legend for the control word.
Bit
Name
CW.3
Reserved
CW.2
IR
(InitRequest)
CW.1
RA
(ReceiveAccepted)
CW.0
TR
(TransmitRequest)
Table 12: Status word structure.
Bit
15 14 13 12 11 10 09 08 07 06 05 04 03
Name Length of data in the buffer ((IL bits)
Table 13: Legend for status word
Bit
Name
SW.3
BUF_F (buffer full)
SW.2
IA
(InitAccepted bit)
SW.1
RR
(ReceiveRequest)
SW.0
TA
(TransmitAccepted)
Example
In this sample program, the operating principle is explained using the RS232 interface. Data is sent via the
RS232 interface and received via a bridge (PIN 2 to 3).
Download: https://infosys.beckhoff.com/content/1033/CX8180_HW/Resources/2495112075/.zip
42
Comment
-
-
1
The controller requests initialization. The send and
bin
receive functions are blocked, the FIFO indicators
are reset, and the interface is again initialized with
the value. The interface acknowledges completion
of the initialization via bit SW.2 (IA).
0
The controller once again requests the interface to
bin
prepare for serial data exchange.
toggle
The controller acknowledges receipt of data by
changing the state of this bit. Only then new data
can be transferred from the interface to the
controller.
toggle
Via a change of state of this bit the controller
notifies the interface that the DataOut bytes contain
the number of bytes indicated via the OL bits. The
interface acknowledges receipt of the data in the
status word via a change of state of bit SW.0 (TA).
Only now new data can be transferred from the
controller to the interface.
BUF_F
Comment
1
The receive FIFO is full. All further incoming data
bin
will be lost!
1
Initialization was completed by the interface.
bin
0
The interface is ready again for serial data
bin
exchange.
toggle
Via a change of state of this bit the interface 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 word via a change of state of bit CW.1
(RA). Only then new data can be transferred from
the interface to the controller.
toggle
The interface acknowledges receipt of data by
changing the state of this bit. Only now new data
can be transferred from the controller to the
interface.
Version: 1.5
02
01
00
IA bit
RR bit
TA bit
CX8180

Advertisement

Table of Contents
loading

Table of Contents