onlinecomponents.com
UM EN ILC 1XX
2-26
PHOENIX CONTACT 7805_en_02
2.13.4 RS232_SEND
Figure 2-20 RS232_SEND
The RS232_SEND block is used to transmit data to the internal transmit buffer.
The block is activated by setting the REQUEST input. If the data of the created DATA
memory area has been transmitted, DONE is set for one cycle.
When REQUEST is set, the contents of DATA are copied to the internal transmit buffer of
the interface and data transmission is started via the interface.
REQUEST
DONE
SEND_BUFFER_COUNT
STATUS
DATA
RS232_SEND
ERROR
DATA_COUNT
BUFFER_EMPTY
RS232_SEND_1
7406A022
Table 2-5 Inputs and outputs of the RS232_SEND function block
Name Data type Data direction Description
REQUEST BOOL Input Block activation.
DONE BOOL Output FALSE: Data has not been sent.
TRUE: Data has been sent to the internal receive buffer
and transmitted via the serial interface.
ERROR BOOL Output FALSE: No errors occurred when sending.
TRUE: An error occurred when sending.
STATUS WORD Output Error code when ERROR is set (for error codes,
see Table 2-6 on page 2-27).
SEND_BUFFER_COUNT INT Output Number of characters still to be sent.
BUFFER_EMPTY BOOL Output FALSE: Data to send.
TRUE: No data to send (set independently of REQUEST).
DATA_COUNT INT Input Amount of data to be written.
DATA BYTE array Input Memory area from which data is to be copied to the transmit
buffer.