10.1.4 FC/SFC 218 - SER_RCV - Receive from PtP
Please note that this block can only be used in CPUs from VIPA or in
S7-300 CPUs from Siemens!
This block receives data via the serial interface. Using the FC/SFC 218 SER_RCV after
SER_SND with the protocols USS and Modbus the acknowledgement telegram can be
read.
Parameters
Parameter Declaration Data type Description
DATAPTR IN ANY Pointer to Data Buffer for received data
DATALEN OUT WORD Length of received data
ERROR OUT WORD Error Number
RETVAL OUT WORD Return value (0 = OK)
Here you set a range of the type Pointer for the receive buffer where the reception data is
stored. You have to set type, start and length.
Example:
n Data is stored in DB5 starting at 0.0 with a length of 124byte.
n DataPtr:=P#DB5.DBX0.0 BYTE 124
n Word where the number of received Bytes is stored.
n At STX/ETX and 3964R, the length of the received user data or 0 is entered.
n At ASCII, the number of read characters is entered. This value may be different from
the read telegram length.
This word gets an entry in case of an error. The following error messages may be created
depending on the protocol:
ASCII
Bit Error Description
0 overrun Overflow, a sign couldn’t be read fast enough from the inter-
face
1 framing error Error that shows that a defined bit frame is not coincident,
exceeds the allowed length or contains an additional bit
sequence (Stop bit error)
2 parity Parity error
3 overflow Buffer is full
Description
DATAPTR
DATALEN
ERROR
VIPA SPEED7
Serial Communication
Serial communication > FC/SFC 218 - SER_RCV - Receive from PtP
HB00 | OPL_SP7 | Operation list | en | 18-30 213