
onlinecomponents.com
Description of the Inline Controller
7805_en_02
PHOENIX CONTACT
2-25
The block is activated by setting the REQUEST input. If the data has been copied to the
created DATA memory area, DONE is set for one cycle. There is no waiting for data. If no
data is present in the receive buffer, a corresponding error is indicated.
BUFFER_FULL is reset once REQUEST and DONE have been set and reset.
The amount of data read depends on the created memory area (DATA output). The size of
the array is written as a maximum. If the receive buffer is still not empty, the
BUFFER_NOT_EMPTY and RECEIVE_BUFFER_COUNT outputs are set accordingly.
Table 2-4
Inputs and outputs of the RS232_RECEIVE function block
Name
Data type
Data direction
Description
REQUEST
BOOL
Input
Block activation
DONE
BOOL
Output
FALSE: Data has not been copied.
TRUE:
Data has been copied from the internal receive
buffer.
ERROR
BOOL
Output
FALSE: No errors occurred when reading.
TRUE:
An error occurred when reading.
STATUS
WORD
Output
Error code when ERROR is set (for error codes,
see Table 2-6 on page 2-27)
BUFFER_NOT_EMPTY
BOOL
Output
FALSE: No characters to read.
TRUE:
At least one character to read
(set independently of REQUEST).
BUFFER_FULL
BOOL
Output
FALSE: The receive buffer is not completely full.
TRUE:
The receive buffer is completely full
(set independently of REQUEST).
RECEIVE_BUFFER_COUNT
INT
Output
Number of characters in the receive buffer
(set independently of REQUEST)
DATA_COUNT
INT
Output
Amount of data read
DATA
BYTE array
Output
Memory area to which the receive buffer data is copied